/* ==================== */
/* CSS Variables & Reset */
/* ==================== */

/* Default Theme - Cosmic Purple */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #13131a;
    --card-bg: #1a1a24;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --border-color: #27272a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme 1: Sunset Orange */
body[data-theme="sunset"] {
    --primary-bg: #0f0a08;
    --secondary-bg: #1a120e;
    --card-bg: #241814;
    --accent-color: #ff6b35;
    --accent-hover: #e85d2f;
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-2: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    --gradient-cosmic: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd93d 100%);
    --border-color: #2a1f1a;
}

/* Theme 2: Ocean Blue */
body[data-theme="ocean"] {
    --primary-bg: #08090f;
    --secondary-bg: #0e1419;
    --card-bg: #141b24;
    --accent-color: #00b4d8;
    --accent-hover: #0096c7;
    --gradient-1: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    --gradient-2: linear-gradient(135deg, #90e0ef 0%, #00b4d8 100%);
    --gradient-cosmic: linear-gradient(135deg, #00b4d8 0%, #0096c7 50%, #48cae4 100%);
    --border-color: #1a2632;
}

/* Theme 3: Forest Green */
body[data-theme="forest"] {
    --primary-bg: #0a0f0a;
    --secondary-bg: #0f1a0f;
    --card-bg: #162416;
    --accent-color: #52b788;
    --accent-hover: #40916c;
    --gradient-1: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    --gradient-2: linear-gradient(135deg, #95d5b2 0%, #52b788 100%);
    --gradient-cosmic: linear-gradient(135deg, #52b788 0%, #40916c 50%, #74c69d 100%);
    --border-color: #1e2a1e;
}

/* Theme 4: Rose Pink */
body[data-theme="rose"] {
    --primary-bg: #0f0a0d;
    --secondary-bg: #1a0f15;
    --card-bg: #24141d;
    --accent-color: #ff006e;
    --accent-hover: #d90058;
    --gradient-1: linear-gradient(135deg, #ff006e 0%, #d90058 100%);
    --gradient-2: linear-gradient(135deg, #ff4d9f 0%, #ff006e 100%);
    --gradient-cosmic: linear-gradient(135deg, #ff006e 0%, #d90058 50%, #fb5607 100%);
    --border-color: #2a1a23;
}

/* Theme 5: Cyber Cyan */
body[data-theme="cyber"] {
    --primary-bg: #0a0f0f;
    --secondary-bg: #0f1a1a;
    --card-bg: #142424;
    --accent-color: #00ffff;
    --accent-hover: #00d9d9;
    --gradient-1: linear-gradient(135deg, #00ffff 0%, #00b8b8 100%);
    --gradient-2: linear-gradient(135deg, #7fffd4 0%, #00ffff 100%);
    --gradient-cosmic: linear-gradient(135deg, #00ffff 0%, #00d9d9 50%, #5fffd7 100%);
    --border-color: #1a2a2a;
}

/* Theme 6: Gold Luxury */
body[data-theme="gold"] {
    --primary-bg: #0f0e0a;
    --secondary-bg: #1a1810;
    --card-bg: #241f14;
    --accent-color: #ffd700;
    --accent-hover: #daa520;
    --gradient-1: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    --gradient-2: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    --gradient-cosmic: linear-gradient(135deg, #ffd700 0%, #daa520 50%, #ffed4e 100%);
    --border-color: #2a2519;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cosmic);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

#cyclingTitle {
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-width: 300px;
    text-align: left;
}

.gradient-text {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
}

.cosmic-orb {
    width: 400px;
    height: 400px;
    background: var(--gradient-cosmic);
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cosmic-orb::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.profile-image {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

/* ==================== */
/* Buttons */
/* ==================== */

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
}

/* ==================== */
/* Section Styles */
/* ==================== */

section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== */
/* About Section */
/* ==================== */

.about {
    background: var(--secondary-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.skills {
    margin-top: 2rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== */
/* Work Section */
/* ==================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-color);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==================== */
/* Resume Section */
/* ==================== */

.resume {
    background: var(--secondary-bg);
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.resume-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 2px;
    height: calc(100% + 1.5rem);
    background: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== */
/* Contact Section */
/* ==================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==================== */
/* Footer */
/* ==================== */

.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
}

.footer-content p {
    margin: 0.25rem 0;
}

/* ==================== */
/* Animations */
/* ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        height: 0;
    }
    50% {
        opacity: 1;
        height: 50px;
    }
    100% {
        opacity: 0;
        height: 50px;
    }
}

/* ==================== */
/* Responsive Design */
/* ==================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cosmic-orb {
        width: 300px;
        height: 300px;
    }

    .about-content,
    .resume-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--secondary-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cosmic-orb {
        width: 250px;
        height: 250px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cosmic-orb {
        width: 200px;
        height: 200px;
        display: none;
    }

    .project-content {
        padding: 1.5rem;
    }
}
