/* ===============================
   CSS Variables & Design Tokens
   =============================== */
:root {
    /* Colors - Premium Deep Dark */
    --bg-primary: #050508;
    --bg-secondary: #0a0a10;
    --bg-tertiary: #12121c;
    --bg-nav: rgba(10, 10, 15, 0.85);
    /* Richer Glassmorphism */
    --bg-card: rgba(20, 20, 30, 0.4);
    --bg-card-hover: rgba(35, 35, 55, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #f8f8f8;
    --text-secondary: #a3a3c2;
    --text-muted: #73739c;

    /* Vibrant Accents */
    --accent-primary: #8b5cf6;
    --accent-secondary: #d946ef;
    --accent-tertiary: #0ea5e9;
    --accent-glow: rgba(139, 92, 246, 0.4);

    /* Dynamic Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #d946ef, #0ea5e9);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #f43f5e);
    --gradient-text: linear-gradient(135deg, #d946ef, #0ea5e9);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(14, 165, 233, 0.05));

    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(139, 92, 246, 0.6);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ===============================
   Light Theme Overrides
   =============================== */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-nav: rgba(255, 255, 255, 0.85);
    
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.5);
    --bg-glass-hover: rgba(255, 255, 255, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Keep vibrant accents or adjust slightly for contrast */
    --accent-primary: #7c3aed;
    --accent-secondary: #c026d3;
    --accent-tertiary: #0284c7;
    --accent-glow: rgba(124, 58, 237, 0.2);

    --gradient-primary: linear-gradient(135deg, #7c3aed, #c026d3, #0284c7);
    --gradient-secondary: linear-gradient(135deg, #7c3aed, #e11d48);
    --gradient-text: linear-gradient(135deg, #c026d3, #0284c7);
    --gradient-card: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(2, 132, 199, 0.05));

    --border-color: rgba(0, 0, 0, 0.08);
    --border-active: rgba(124, 58, 237, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.1);
}

/* ===============================
   Reset & Base
   =============================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============================
   Animated Background
   =============================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.3;
    animation: floatParticle linear infinite;
    box-shadow: 0 0 6px currentColor; /* Subtle soft glow */
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* ===============================
   Navigation
   =============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link.active {
    color: white;
    background: var(--accent-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Theme Toggle Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-active);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-toggle svg {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all var(--transition-medium);
}

.theme-toggle .sun-icon {
    transform: translateY(30px);
    opacity: 0;
}

.theme-toggle .moon-icon {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .theme-toggle .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

body.light-theme .theme-toggle .moon-icon {
    transform: translateY(-30px);
    opacity: 0;
}

/* ===============================
   Hero Section
   =============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-tertiary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
}

.title-line {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.title-name {
    display: block;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.title-accent {
    -webkit-text-fill-color: var(--accent-primary);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 2em;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.typed-cursor {
    animation: blink 1s infinite;
    color: var(--accent-primary);
    font-weight: 100;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.hero-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--gradient-primary);
    opacity: 0.15;
    filter: blur(60px);
    animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-color: rgba(124, 58, 237, 0.15);
    animation: rotateRing 20s linear infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(168, 85, 247, 0.1);
    animation: rotateRing 30s linear infinite reverse;
}

.ring-3 {
    width: 440px;
    height: 440px;
    border-color: rgba(6, 182, 212, 0.06);
    animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #050505 0%, #000000 60%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 0 40px rgba(139, 92, 246, 0.4),
        inset 0 0 35px rgba(0, 0, 0, 1),
        inset 0 0 10px rgba(139, 92, 246, 0.7);
    z-index: 5;
    animation: eventHorizonPulse 4s ease-in-out infinite alternate;
}

@keyframes eventHorizonPulse {
    0% {
        box-shadow: 
            0 0 30px rgba(139, 92, 246, 0.3),
            inset 0 0 30px rgba(0, 0, 0, 1),
            inset 0 0 10px rgba(139, 92, 246, 0.4);
        border-color: rgba(139, 92, 246, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 
            0 0 60px rgba(14, 165, 233, 0.6),
            inset 0 0 45px rgba(0, 0, 0, 1),
            inset 0 0 15px rgba(14, 165, 233, 0.8);
        border-color: rgba(14, 165, 233, 0.7);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

body.light-theme .hero-core {
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 60%, rgba(14, 165, 233, 0.1) 100%);
    animation: eventHorizonPulseLight 4s ease-in-out infinite alternate;
}

@keyframes eventHorizonPulseLight {
    0% {
        box-shadow: 
            0 0 30px rgba(139, 92, 246, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 1),
            inset 0 0 10px rgba(139, 92, 246, 0.5);
        border-color: rgba(139, 92, 246, 0.4);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 
            0 0 60px rgba(14, 165, 233, 0.5),
            inset 0 0 45px rgba(255, 255, 255, 1),
            inset 0 0 15px rgba(14, 165, 233, 0.7);
        border-color: rgba(14, 165, 233, 0.7);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.code-float {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-size: 1rem;
    color: var(--accent-tertiary);
    opacity: 0.4;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    animation: floatCode 6s ease-in-out infinite;
}

.code-float-1 { top: 15%; left: 10%; animation-delay: 0s; }
.code-float-2 { top: 70%; left: 5%; animation-delay: 1.5s; }
.code-float-3 { top: 25%; right: 5%; animation-delay: 3s; }
.code-float-4 { bottom: 15%; right: 15%; animation-delay: 4.5s; }

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
    z-index: 2;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid var(--text-muted);
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

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

/* ===============================
   Buttons
   =============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===============================
   Section Common
   =============================== */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: none;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ===============================
   About Section
   =============================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-image-card {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-avatar {
    position: relative;
    z-index: 2;
}

.avatar-placeholder {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-xl);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 0;
}

.about-image-decoration {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--accent-primary);
    opacity: 0.2;
    top: 20px;
    left: calc(50% - 110px);
    z-index: 1;
}

.about-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.detail-item:hover {
    border-color: var(--border-active);
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

.detail-icon {
    font-size: 1.2rem;
}

.detail-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===============================
   Skills Section
   =============================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.skill-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.skill-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon-wrapper {
    margin-bottom: 24px;
}

.skill-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.skill-icon svg {
    width: 26px;
    height: 26px;
}

.skill-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.skill-card:hover .skill-tag {
    border-color: var(--border-active);
    color: var(--accent-tertiary);
}

.skill-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-glass);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-primary);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   Projects Section
   =============================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

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

.project-card:hover {
    border-color: var(--border-active);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.project-info {
    padding: 28px;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--accent-tertiary);
}

/* ===============================
   Contact Section
   =============================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-glass-hover);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-textarea + .form-label {
    top: 20px;
    transform: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    transform: none;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    background: var(--bg-primary);
    padding: 0 8px;
    left: 12px;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
    border-radius: 1px;
}

.form-input:focus ~ .form-highlight {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    padding: 16px 40px;
}

/* ===============================
   Experience & Certifications
   =============================== */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.timeline-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-tertiary);
}

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 36px;
    border-left: 2px solid var(--border-color);
    margin-left: 8px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.timeline-content {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--border-active);
    transform: translateX(4px);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0 4px;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent-tertiary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.certifications {
    position: relative;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.cert-item:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.cert-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary);
    color: white;
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
}

.cert-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===============================
   Footer
   =============================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ===============================
   Reveal Animations
   =============================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .about-image-wrapper {
        display: flex;
        justify-content: center;
    }

    .about-details {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--border-color);
        gap: 4px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-link {
        padding: 12px 20px;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        gap: 24px;
    }

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

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .stat-label {
        margin-top: 0;
    }
}

/* ===============================
   Scroll Reveal Animations
   =============================== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ===============================
   Scroll to Top
   =============================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* ===============================
   Form Feedback
   =============================== */
.form-result {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.form-result.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
