/* =====================================================
   KUBIO PORTFOLIO — Modern Futuristic CSS
   Theme: Dark Cyber / Neon Glassmorphism
   Fully Responsive + Proper Light Mode
   Author: Muhammad Habiburrahman
   ===================================================== */

/* ===================== GOOGLE FONTS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ===================== CSS VARIABLES (DARK DEFAULT) ===================== */
:root {
    --bg-primary:        #050816;
    --bg-secondary:      #0d1117;
    --bg-card:           rgba(13, 17, 23, 0.9);
    --bg-glass:          rgba(255, 255, 255, 0.04);
    --bg-glass-hover:    rgba(255, 255, 255, 0.08);
    --bg-input:          rgba(255, 255, 255, 0.05);

    --cyan:              #00f5ff;
    --cyan-dim:          rgba(0, 245, 255, 0.15);
    --cyan-glow:         0 0 20px rgba(0, 245, 255, 0.4);
    --purple:            #a855f7;
    --purple-dim:        rgba(168, 85, 247, 0.15);
    --pink:              #f72585;
    --pink-dim:          rgba(247, 37, 133, 0.15);
    --green:             #00ff88;
    --orange:            #ff8c00;
    --gold:              #ffd700;
    --blue:              #4361ee;

    --text-primary:      #e6edf3;
    --text-secondary:    #8b949e;
    --text-muted:        #484f58;

    --border:            rgba(255, 255, 255, 0.08);
    --border-glow:       rgba(0, 245, 255, 0.3);

    --gradient-main:     linear-gradient(135deg, #00f5ff, #a855f7);
    --gradient-text:     linear-gradient(90deg, #00f5ff, #a855f7, #f72585);
    --gradient-card:     linear-gradient(135deg, rgba(0,245,255,0.08), rgba(168,85,247,0.08));

    --shadow-card:       0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-cyan:  0 0 30px rgba(0, 245, 255, 0.2);
    --shadow-glow-purple:0 0 30px rgba(168, 85, 247, 0.2);

    --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition:        0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm:  8px;
    --radius:     14px;
    --radius-lg:  24px;
    --radius-xl:  36px;

    --header-h:   72px;

    /* Icon button foreground in dark */
    --icon-color: #050816;
}

/* ===================== LIGHT THEME ===================== */
[data-theme="light"] {
    --bg-primary:        #f0f4f8;
    --bg-secondary:      #e8edf3;
    --bg-card:           #ffffff;
    --bg-glass:          rgba(255, 255, 255, 0.7);
    --bg-glass-hover:    rgba(255, 255, 255, 0.95);
    --bg-input:          #ffffff;

    --cyan:              #0077a8;
    --cyan-dim:          rgba(0, 119, 168, 0.12);
    --cyan-glow:         0 0 20px rgba(0, 119, 168, 0.2);
    --border-glow:       rgba(0, 119, 168, 0.35);

    --purple:            #6d28d9;
    --purple-dim:        rgba(109, 40, 217, 0.12);

    --pink:              #c41466;
    --green:             #059669;

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

    --border:            rgba(15, 23, 42, 0.12);

    --gradient-main:     linear-gradient(135deg, #0077a8, #6d28d9);
    --gradient-text:     linear-gradient(90deg, #0077a8, #6d28d9, #c41466);
    --gradient-card:     linear-gradient(135deg, rgba(0,119,168,0.08), rgba(109,40,217,0.08));

    --shadow-card:       0 4px 24px rgba(0,0,0,0.08);
    --shadow-glow-cyan:  0 4px 20px rgba(0, 119, 168, 0.15);
    --shadow-glow-purple:0 4px 20px rgba(109, 40, 217, 0.15);

    --icon-color: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-h);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 3px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== SCROLL PROGRESS ===================== */
.progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 9999;
}
.progress-bar {
    height: 100%;
    background: var(--gradient-main);
    width: 0%;
    transition: width 0.15s linear;
    box-shadow: var(--cyan-glow);
}

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
    position: fixed; top: 90px; right: 20px;
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    color: var(--cyan);
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.theme-toggle:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    box-shadow: var(--cyan-glow);
    transform: rotate(20deg) scale(1.1);
}
[data-theme="light"] .theme-toggle {
    background: #ffffff;
    color: var(--purple);
    border-color: rgba(109,40,217,0.3);
}
[data-theme="light"] .theme-toggle:hover {
    background: var(--purple-dim);
    border-color: var(--purple);
    box-shadow: var(--shadow-glow-purple);
}

/* ===================== HEADER ===================== */
#header {
    position: fixed; top: 0; width: 100%;
    height: var(--header-h);
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
[data-theme="light"] #header {
    background: rgba(240, 244, 248, 0.95);
    border-bottom-color: rgba(15,23,42,0.1);
}
#header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
    border-bottom-color: var(--border-glow);
}
[data-theme="light"] #header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

nav {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    flex-shrink: 0;
}
.logo-icon { color: var(--cyan); font-size: 1.4rem; }
.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--cyan);
    border-radius: 1px;
    transition: width var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: transparent;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link.active { color: var(--cyan); }
[data-theme="light"] .nav-link.active { color: var(--purple); }
[data-theme="light"] .nav-link::after { background: var(--purple); }

/* Hamburger */
.mobile-menu-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    padding: 8px; border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.mobile-menu-toggle:hover { background: var(--bg-glass); }
.hamburger-line {
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== HERO ===================== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(0,245,255,0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.07) 0%, transparent 60%),
                var(--bg-primary);
    padding-top: var(--header-h);
}
[data-theme="light"] .hero {
    background: radial-gradient(ellipse at 20% 50%, rgba(0,119,168,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(109,40,217,0.06) 0%, transparent 60%),
                var(--bg-primary);
}

.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 {
    width: 500px; height: 500px; top: -100px; left: -150px;
    background: radial-gradient(circle, rgba(0,245,255,0.12) 0%, transparent 70%);
}
.hero-orb--2 {
    width: 400px; height: 400px; bottom: -50px; right: -100px;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
    animation-delay: -3s;
}
.hero-orb--3 {
    width: 300px; height: 300px; top: 50%; left: 50%;
    background: radial-gradient(circle, rgba(247,37,133,0.07) 0%, transparent 70%);
    animation-delay: -5s;
}
[data-theme="light"] .hero-orb--1 { background: radial-gradient(circle, rgba(0,119,168,0.1) 0%, transparent 70%); }
[data-theme="light"] .hero-orb--2 { background: radial-gradient(circle, rgba(109,40,217,0.1) 0%, transparent 70%); }
[data-theme="light"] .hero-orb--3 { background: radial-gradient(circle, rgba(196,20,102,0.06) 0%, transparent 70%); }

@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.97); }
}

.particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
    position: absolute; width: 2px; height: 2px;
    border-radius: 50%; opacity: 0;
    animation: particleFly linear infinite;
}
@keyframes particleFly {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-20px) scale(1.5); opacity: 0; }
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 780px; padding: 4rem 0;
    animation: fadeInUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 50px;
    font-size: 0.8rem; font-weight: 500;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}
[data-theme="light"] .hero-badge {
    border-color: rgba(0,119,168,0.3);
    background: rgba(0,119,168,0.1);
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 3s linear infinite;
}
@keyframes gradientShift { 0%{background-position:0% center;} 100%{background-position:200% center;} }

.typing-wrapper {
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    color: var(--cyan);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}
.typing-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--purple);
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.hero-subtitle {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 580px; margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-subtitle em { color: var(--cyan); font-style: normal; }
[data-theme="light"] .hero-subtitle em { color: var(--purple); }

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

.hero-stats {
    display: flex; align-items: center; gap: 2rem;
}
.hero-stat { text-align: center; }
.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-scroll-hint {
    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.75rem;
    animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(6px);} }
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid var(--border-glow);
    border-radius: 14px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
    width: 4px; height: 8px; border-radius: 2px;
    background: var(--cyan);
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1;} 100%{transform:translateY(10px);opacity:0;} }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
    position: relative; overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0,245,255,0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0,245,255,0.5);
}
[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 15px rgba(0,119,168,0.3);
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0,119,168,0.4);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-3px);
}
[data-theme="light"] .btn-ghost {
    background: rgba(255,255,255,0.85);
    border-color: rgba(109,40,217,0.3);
}
[data-theme="light"] .btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-dim);
}

.btn-outline-primary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}
.btn-outline-primary:hover {
    background: var(--cyan-dim);
    transform: translateY(-3px);
    box-shadow: var(--cyan-glow);
}
[data-theme="light"] .btn-outline-primary {
    color: var(--purple);
    border-color: var(--purple);
}
[data-theme="light"] .btn-outline-primary:hover {
    background: var(--purple-dim);
    box-shadow: var(--shadow-glow-purple);
}

/* ===================== SECTION COMMONS ===================== */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem; color: var(--cyan);
    display: block; margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}
[data-theme="light"] .section-tag { color: var(--purple); }
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px; margin: 0 auto;
    line-height: 1.7;
}

.section-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.section-reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== ABOUT ===================== */
.about { background: var(--bg-secondary); }
[data-theme="light"] .about { background: #dde4ee; }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem; align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-container {
    position: relative;
    display: inline-block;
}
.about-photo {
    width: 280px; height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative; z-index: 2;
    filter: grayscale(15%);
    transition: var(--transition);
}
.about-photo:hover { filter: grayscale(0%); transform: scale(1.02); }

.about-image-glow {
    position: absolute; inset: -20px;
    background: radial-gradient(circle, rgba(0,245,255,0.15) 0%, transparent 70%);
    border-radius: var(--radius-lg);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}
[data-theme="light"] .about-image-glow {
    background: radial-gradient(circle, rgba(0,119,168,0.15) 0%, transparent 70%);
}
@keyframes glowPulse { 0%,100%{opacity:0.6;} 50%{opacity:1;} }

.about-image-border {
    position: absolute; inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: var(--gradient-main);
    z-index: 0; opacity: 0.6;
}

.floating-badge {
    position: absolute;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem; font-weight: 500;
    backdrop-filter: blur(10px);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 3;
    box-shadow: var(--shadow-card);
}
.badge-html { top: 10%; right: -30px; color: #e34c26; border-color: rgba(227,76,38,0.4); }
.badge-css  { top: 35%; right: -50px; color: #2965f1; border-color: rgba(41,101,241,0.4); animation-delay: -1s; }
.badge-js   { bottom: 30%; right: -30px; color: #d4a017; border-color: rgba(212,160,23,0.4); animation-delay: -2s; }
.badge-net  { bottom: 10%; left: -40px; color: var(--cyan); border-color: var(--border-glow); animation-delay: -3s; }
@keyframes floatBadge { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }

.about-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem; font-weight: 600;
    color: var(--cyan); margin-bottom: 1.2rem;
}
[data-theme="light"] .about-text h3 { color: var(--purple); }
.about-text p {
    color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 1rem;
    font-size: 0.95rem;
}
.about-text em { color: var(--purple); font-style: normal; }

.about-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.85rem; margin-top: 2rem;
}
.info-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}
[data-theme="light"] .info-card {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.info-card:hover { border-color: var(--border-glow); background: var(--bg-glass-hover); }
[data-theme="light"] .info-card:hover { background: #ffffff; box-shadow: 0 4px 16px rgba(0,119,168,0.15); }
.info-card > i { color: var(--cyan); font-size: 1rem; flex-shrink: 0; }
[data-theme="light"] .info-card > i { color: var(--purple); }
.info-card strong { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.info-card span { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }

/* ===================== GOALS ===================== */
.goals { background: var(--bg-primary); }
[data-theme="light"] .goals { background: #f0f4f8; }

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.goal-card {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    transition: var(--transition);
}
[data-theme="light"] .goal-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.goal-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-cyan);
}
[data-theme="light"] .goal-card:hover {
    box-shadow: var(--shadow-glow-purple);
    border-color: rgba(109,40,217,0.35);
}

.goal-icon-wrap {
    width: 52px; height: 52px;
    background: var(--gradient-main);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #ffffff;
}

.goal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.goal-body p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

.goal-card-glow {
    position: absolute; inset: 0;
    background: var(--gradient-card);
    opacity: 0; transition: opacity var(--transition);
    pointer-events: none;
}
.goal-card:hover .goal-card-glow { opacity: 1; }

/* ===================== SKILLS ===================== */
.skills { background: var(--bg-secondary); }
[data-theme="light"] .skills { background: #dde4ee; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
[data-theme="light"] .skill-category-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.skill-category-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-main);
}
.skill-category-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-cyan);
}
[data-theme="light"] .skill-category-card:hover {
    box-shadow: var(--shadow-glow-purple);
    border-color: rgba(109,40,217,0.35);
}

.skill-cat-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.skill-cat-icon {
    width: 44px; height: 44px;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 1.05rem;
    flex-shrink: 0;
}
.skill-cat-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 600;
    color: var(--text-primary);
}

.skill-list { display: flex; flex-direction: column; gap: 1.1rem; }

.skill-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.4rem;
}
.skill-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.skill-pct { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--cyan); font-weight: 500; }
[data-theme="light"] .skill-pct { color: var(--purple); }

.skill-track {
    height: 7px;
    background: var(--bg-glass);
    border-radius: 4px; overflow: hidden;
    border: 1px solid var(--border);
}
[data-theme="light"] .skill-track { background: #e2e8f0; }
.skill-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated { width: var(--pct); }

/* ===================== PROJECTS ===================== */
.projects { background: var(--bg-primary); }
[data-theme="light"] .projects { background: #f0f4f8; }

.project-filters {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0.65rem;
    margin-bottom: 3rem;
}
.filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 8px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.83rem; font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
[data-theme="light"] .filter-btn {
    background: #ffffff;
    border-color: rgba(15,23,42,0.15);
    color: var(--text-secondary);
}
.filter-count {
    background: var(--bg-card);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 0.72rem;
}
[data-theme="light"] .filter-count {
    background: #e8edf3;
    color: var(--text-secondary);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn:hover {
    box-shadow: var(--shadow-glow-purple);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
[data-theme="light"] .project-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-cyan);
}
[data-theme="light"] .project-card:hover {
    box-shadow: var(--shadow-glow-purple);
    border-color: rgba(109,40,217,0.35);
}
.project-card.hidden { display: none; }

.project-badge-featured {
    position: absolute; top: 12px; left: 12px;
    z-index: 5;
    padding: 4px 12px;
    background: var(--gradient-main);
    border-radius: 50px;
    font-size: 0.7rem; font-weight: 700;
    color: #ffffff;
}

.project-img-wrap {
    height: 200px; overflow: hidden; position: relative;
}
.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover .project-img { transform: scale(1.08); }

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(5,8,22,0.92));
    opacity: 0; transition: opacity var(--transition);
    display: flex; align-items: flex-end; padding: 1.2rem;
}
[data-theme="light"] .project-overlay {
    background: linear-gradient(to bottom, transparent 30%, rgba(15,23,42,0.85));
}
.project-card:hover .project-overlay { opacity: 1; }

.project-links { display: flex; gap: 0.6rem; }
.proj-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 7px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 0.78rem; font-weight: 500;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    color: #ffffff;
}
.proj-link:hover {
    background: var(--cyan); color: #050816;
    border-color: var(--cyan);
}
[data-theme="light"] .proj-link:hover {
    background: var(--gradient-main);
    color: #ffffff;
}

.project-body { padding: 1.4rem; }
.proj-category-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,245,255,0.2);
    border-radius: 50px;
    font-size: 0.7rem; color: var(--cyan);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
}
[data-theme="light"] .proj-category-label {
    background: var(--purple-dim);
    border-color: rgba(109,40,217,0.2);
    color: var(--purple);
}
.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    color: var(--text-primary);
}
.project-desc {
    font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 1.1rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
    padding: 3px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.72rem; color: var(--text-secondary);
    transition: var(--transition-fast);
}
[data-theme="light"] .tag {
    background: #e8edf3;
    border-color: rgba(15,23,42,0.1);
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); }
[data-theme="light"] .tag:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-dim); }

.projects-cta { text-align: center; }

.empty-state {
    text-align: center; padding: 4rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }

/* ===================== JOURNEY / TIMELINE ===================== */
.journey { background: var(--bg-secondary); }
.journey-page { background: var(--bg-primary); }
[data-theme="light"] .journey { background: #dde4ee; }
[data-theme="light"] .journey-page { background: #f0f4f8; }

.timeline {
    position: relative;
    max-width: 900px; margin: 0 auto;
}

.timeline-spine {
    position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple), var(--pink));
    transform: translateX(-50%);
    opacity: 0.3;
}
[data-theme="light"] .timeline-spine { opacity: 0.5; }

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item.right {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline-node {
    position: absolute; left: 50%; top: 1.5rem;
    transform: translateX(-50%);
    width: 52px; height: 52px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #ffffff;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0,245,255,0.35);
}
[data-theme="light"] .timeline-node { box-shadow: 0 0 20px rgba(0,119,168,0.3); }
.node-inner { position: relative; z-index: 1; }
.node-pulse {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    opacity: 0.3;
    animation: nodePulse 2s ease-in-out infinite;
}
[data-theme="light"] .node-pulse { border-color: var(--purple); }
@keyframes nodePulse { 0%,100%{transform:scale(1);opacity:0.3;} 50%{transform:scale(1.2);opacity:0;} }

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.75rem;
    max-width: 380px;
    transition: var(--transition);
}
[data-theme="light"] .timeline-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.timeline-card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow-cyan); }
[data-theme="light"] .timeline-card:hover { box-shadow: var(--shadow-glow-purple); border-color: rgba(109,40,217,0.35); }

.timeline-date {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem; color: var(--cyan);
    margin-bottom: 0.5rem;
}
[data-theme="light"] .timeline-date { color: var(--purple); }
.timeline-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.timeline-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ===================== JOURNEY STATS ===================== */
.journey-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem; margin-bottom: 4rem;
}
.journey-stat-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
[data-theme="light"] .journey-stat-card {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.journey-stat-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
[data-theme="light"] .journey-stat-card:hover { box-shadow: var(--shadow-glow-purple); border-color: rgba(109,40,217,0.35); }
.jstat-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #ffffff;
}
.jstat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem; font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.jstat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ===================== CONTACT ===================== */
.contact { background: var(--bg-primary); }
[data-theme="light"] .contact { background: #f0f4f8; }

.contact-wrap {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem; align-items: start;
}

.contact-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.wave-emoji { display: inline-block; animation: wave 2s ease-in-out infinite; }
@keyframes wave { 0%,100%{transform:rotate(0deg);} 25%{transform:rotate(20deg);} 75%{transform:rotate(-10deg);} }

.contact-info > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; font-size: 0.95rem; }

.contact-cards { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text-primary);
}
[data-theme="light"] .contact-card {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.contact-card:hover { border-color: var(--cyan); background: var(--cyan-dim); transform: translateX(6px); }
[data-theme="light"] .contact-card:hover { border-color: var(--purple); background: var(--purple-dim); }
.contact-card-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #ffffff;
}
.contact-card h4 { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); }
.contact-card p { font-size: 0.78rem; color: var(--text-secondary); }

/* Form */
.contact-form-wrap {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
}
[data-theme="light"] .contact-form-wrap {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.form-alert {
    display: none;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}
.form-alert.success {
    display: block;
    background: rgba(0,255,136,0.1);
    border-color: rgba(0,255,136,0.4);
    color: var(--green);
}
[data-theme="light"] .form-alert.success {
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,0.3);
    color: #047857;
}
.form-alert.error {
    display: block;
    background: rgba(247,37,133,0.1);
    border-color: rgba(247,37,133,0.4);
    color: var(--pink);
}
[data-theme="light"] .form-alert.error {
    background: rgba(196,20,102,0.08);
    border-color: rgba(196,20,102,0.3);
    color: #9d174d;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.83rem; font-weight: 500; color: var(--text-secondary); }
.form-group label span { color: var(--pink); }
[data-theme="light"] .form-group label span { color: #c41466; }

.input-wrap { position: relative; }
.input-wrap > i {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.85rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}
.textarea-wrap > i { top: 1rem; transform: none; }

.input-wrap input, .input-wrap textarea {
    width: 100%;
    padding: 0.8rem 0.9rem 0.8rem 2.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition-fast);
    outline: none;
    resize: none;
}
[data-theme="light"] .input-wrap input,
[data-theme="light"] .input-wrap textarea {
    background: #f8fafc;
    border-color: rgba(15,23,42,0.15);
    color: var(--text-primary);
}
.input-wrap input::placeholder, .input-wrap textarea::placeholder { color: var(--text-muted); }
.input-wrap input:focus, .input-wrap textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
    background: var(--bg-glass-hover);
}
[data-theme="light"] .input-wrap input:focus,
[data-theme="light"] .input-wrap textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-dim);
    background: #ffffff;
}
.input-wrap:focus-within > i { color: var(--cyan); }
[data-theme="light"] .input-wrap:focus-within > i { color: var(--purple); }

.btn-submit { width: 100%; justify-content: center; position: relative; }
.btn-loader {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading i, .btn-submit.loading span { opacity: 0.7; }

/* ===================== PAGE HERO (sub-pages) ===================== */
.page-hero {
    padding: calc(var(--header-h) + 4rem) 0 4rem;
    text-align: center;
    position: relative; overflow: hidden;
    background: var(--bg-secondary);
}
[data-theme="light"] .page-hero { background: #dde4ee; }
.page-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,245,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(168,85,247,0.05) 0%, transparent 60%);
}
[data-theme="light"] .page-hero-bg {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,119,168,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(109,40,217,0.08) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1.2;
    margin: 0.75rem 0;
    color: var(--text-primary);
}
.page-hero-desc {
    color: var(--text-secondary);
    max-width: 560px; margin: 0 auto;
    font-size: 1rem; line-height: 1.7;
}

/* ===================== ACHIEVEMENTS ===================== */
.achievements-page { background: var(--bg-primary); }
[data-theme="light"] .achievements-page { background: #f0f4f8; }

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
}
.achievement-card {
    display: flex; gap: 1.1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    transition: var(--transition);
}
[data-theme="light"] .achievement-card {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.achievement-card:hover { transform: translateY(-6px); }

.achievement-card.color-gold  { --ach-color: #b8860b; }
.achievement-card.color-cyan  { --ach-color: #0077a8; }
.achievement-card.color-purple{ --ach-color: #6d28d9; }
.achievement-card.color-green { --ach-color: #059669; }
.achievement-card.color-orange{ --ach-color: #c05c00; }
.achievement-card.color-blue  { --ach-color: #2c4aab; }

[data-theme="dark"] .achievement-card.color-gold  { --ach-color: #ffd700; }
[data-theme="dark"] .achievement-card.color-cyan  { --ach-color: #00f5ff; }
[data-theme="dark"] .achievement-card.color-purple{ --ach-color: #a855f7; }
[data-theme="dark"] .achievement-card.color-green { --ach-color: #00ff88; }
[data-theme="dark"] .achievement-card.color-orange{ --ach-color: #ff8c00; }
[data-theme="dark"] .achievement-card.color-blue  { --ach-color: #4361ee; }

.achievement-card { border-top: 3px solid var(--ach-color, var(--cyan)); }
.achievement-card:hover { border-color: var(--ach-color, var(--cyan)); box-shadow: 0 0 20px rgba(0,0,0,0.15); }

.ach-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--ach-color, var(--cyan));
    background: rgba(128,128,128,0.05);
}

.ach-body { flex: 1; min-width: 0; }
.ach-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.ach-org {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    color: var(--ach-color, var(--cyan));
    text-transform: uppercase;
}
.ach-year {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem; color: var(--text-muted);
    margin-left: auto;
}
.ach-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-primary); }
.ach-body p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; }

.coming-soon-note {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--purple-dim);
    border: 1px solid rgba(109,40,217,0.3);
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}
[data-theme="light"] .coming-soon-note {
    background: rgba(109,40,217,0.07);
}
.coming-soon-icon {
    font-size: 2rem; color: var(--purple); flex-shrink: 0;
    animation: badgePulse 2s infinite;
}
.coming-soon-note h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-primary); }
.coming-soon-note p { font-size: 0.88rem; color: var(--text-secondary); }

/* ===================== PROJECTS PAGE ===================== */
.projects-page { background: var(--bg-primary); padding: 3.5rem 0 6rem; }
[data-theme="light"] .projects-page { background: #f0f4f8; }

/* ===================== FOOTER ===================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
[data-theme="light"] footer {
    background: #dde4ee;
    border-top-color: rgba(15,23,42,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem; font-weight: 700;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}
[data-theme="light"] .footer-logo { color: var(--purple); }

.footer-section > p {
    color: var(--text-secondary);
    font-size: 0.88rem; line-height: 1.7;
    margin-bottom: 1.25rem;
}
.footer-section h3 {
    font-size: 0.82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-link {
    width: 36px; height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
[data-theme="light"] .social-link {
    background: #ffffff;
    border-color: rgba(15,23,42,0.15);
}
.social-link:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links li {
    font-size: 0.85rem; color: var(--text-secondary);
}
.footer-links li:not(.no-hover li) a {
    display: flex; align-items: center; gap: 0.5rem;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}
.footer-links li a:hover { color: var(--cyan); transform: translateX(4px); }
[data-theme="light"] .footer-links li a:hover { color: var(--purple); }
.footer-links li i { color: var(--text-muted); font-size: 0.78rem; }

.footer-bottom { text-align: center; }
.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin-bottom: 1.25rem;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-muted); }
.heart-icon { color: var(--pink); animation: heartBeat 1.5s ease-in-out infinite; }
@keyframes heartBeat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.3);} }

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 0.95rem;
    cursor: pointer;
    opacity: 0; transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-glow-cyan);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.1); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===================== RESPONSIVE — 1200px ===================== */
@media (max-width: 1200px) {
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > .footer-section:last-child { grid-column: 1 / -1; }
}

/* ===================== RESPONSIVE — 1024px ===================== */
@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrap { display: flex; justify-content: center; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .skills-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ===================== RESPONSIVE — 768px ===================== */
@media (max-width: 768px) {
    :root { --header-h: 64px; }

    section { padding: 80px 0; }

    /* --- Nav mobile --- */
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column; gap: 0;
        padding: 0;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    [data-theme="light"] .nav-links {
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { 
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateY(0);
    }
    .nav-link {
        display: block;
        padding: 0.85rem 1rem; width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
        text-align: center;
        position: relative;
    }
    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { 
        display: block;
        width: 0; height: 2px;
        bottom: 8px; left: 50%;
        transform: translateX(-50%);
        border-radius: 1px;
        transition: width var(--transition-fast);
    }
    .nav-link:hover::after, .nav-link.active::after { 
        height: 2px; 
        width: 40px;
    }
    .mobile-menu-toggle { display: flex; }
    .theme-toggle { top: 74px; right: 14px; width: 38px; height: 38px; font-size: 0.9rem; }

    /* --- Hero --- */
    .hero-content { padding: 3rem 0 2rem; }
    .hero-stats { gap: 1.2rem; }
    .stat-divider { height: 28px; }
    .hero-scroll-hint { display: none; }

    /* --- About --- */
    .about-photo { width: 220px; height: 270px; }
    .floating-badge { display: none; }
    .about-info-grid { grid-template-columns: 1fr; }

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

    /* --- Timeline --- */
    .timeline-spine { left: 22px; transform: none; }
    .timeline-item,
    .timeline-item.right {
        padding-left: 68px; padding-right: 0;
        justify-content: flex-start;
    }
    .timeline-node { left: 22px; transform: none; }
    .timeline-card { max-width: 100%; }

    /* --- Contact --- */
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 1.4rem; }

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

    /* --- Goals --- */
    .goals-grid { grid-template-columns: 1fr; }

    /* --- Journey stats --- */
    .journey-stats { grid-template-columns: repeat(2, 1fr); }

    /* --- Achievements --- */
    .achievements-grid { grid-template-columns: 1fr; }

    /* --- Footer --- */
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===================== RESPONSIVE — 576px ===================== */
@media (max-width: 576px) {
    .container { padding: 0 16px; }

    section { padding: 64px 0; }

    .logo { font-size: 1.35rem; }

    .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
    .hero-stats { gap: 1rem; }
    .stat-number { font-size: 1.6rem; }

    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

    .about-photo { width: 190px; height: 230px; }

    .about-info-grid { grid-template-columns: 1fr; }
    .info-card { flex-direction: row; }

    .project-img-wrap { height: 175px; }

    .journey-stats { grid-template-columns: 1fr 1fr; }

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

    .coming-soon-note { flex-direction: column; text-align: center; }

    .btn { padding: 11px 22px; font-size: 0.88rem; }
}

/* ===================== RESPONSIVE — 400px ===================== */
@media (max-width: 400px) {
    .hero-stats { flex-direction: column; gap: 0.75rem; }
    .stat-divider { display: none; }
    .journey-stats { grid-template-columns: 1fr; }
    .logo-text { font-size: 1.2rem; }
    .theme-toggle { width: 36px; height: 36px; font-size: 0.85rem; }
}
