/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Colors — Deep dark palette with vibrant accents */
    --bg-primary:    #060611;
    --bg-secondary:  #0c0c1d;
    --bg-card:       #0e0e20;
    --bg-card-hover: #12122a;
    --bg-elevated:   rgba(16, 16, 40, 0.85);

    --text-primary:   #e8e8f0;
    --text-secondary: #9898b8;
    --text-muted:     #5a5a7a;
    --text-dim:       #3a3a5a;

    /* Accent gradients */
    --purple:        #8b5cf6;
    --purple-dim:    #6d28d9;
    --blue:          #3b82f6;
    --blue-dim:      #1d4ed8;
    --gold:          #f59e0b;
    --gold-dim:      #b45309;
    --cyan:          #06b6d4;
    --magenta:       #ec4899;

    --gradient-hero:     linear-gradient(135deg, #8b5cf6, #3b82f6, #f59e0b);
    --gradient-purple:   linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-blue:     linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-gold:     linear-gradient(135deg, #f59e0b, #f97316);
    --gradient-card:     linear-gradient(145deg, rgba(139,92,246,0.08), rgba(59,130,246,0.04), transparent);
    --gradient-card-border: linear-gradient(145deg, rgba(139,92,246,0.3), rgba(59,130,246,0.1), transparent);

    /* Glow */
    --glow-purple: 0 0 60px rgba(139, 92, 246, 0.15);
    --glow-blue:   0 0 60px rgba(59, 130, 246, 0.15);
    --glow-gold:   0 0 60px rgba(245, 158, 11, 0.15);

    /* Typography */
    --font-primary:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.25rem;
    --fs-2xl:  1.5rem;
    --fs-3xl:  2rem;
    --fs-4xl:  2.5rem;
    --fs-5xl:  3.25rem;
    --fs-6xl:  4rem;

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Borders */
    --border-subtle:  1px solid rgba(139, 92, 246, 0.1);
    --border-card:    1px solid rgba(139, 92, 246, 0.15);
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast:   150ms;
    --duration-normal: 300ms;
    --duration-slow:   500ms;

    /* Z-index scale */
    --z-base:    1;
    --z-nav:     100;
    --z-overlay: 200;
    --z-modal:   300;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    color: inherit;
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-32) 0;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════ */
.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.section__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-hero);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.section__title {
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-purple);
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn--primary:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.8);
}

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

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: var(--border-card);
}

.btn--ghost:hover {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.05);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-base);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    padding: var(--space-4) 0;
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
}

.nav--scrolled {
    background: rgba(6, 6, 17, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    padding: var(--space-3) 0;
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 10;
}

.nav__logo-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient-hero) border-box;
    position: relative;
}

.nav__logo-ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--gradient-hero);
    opacity: 0.6;
}

.nav__logo-text {
    color: var(--text-primary);
}

.nav__logo-dot {
    color: var(--purple);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav__link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav__link.active::after,
.nav__link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav__link--cta {
    background: var(--gradient-purple);
    color: #fff !important;
    border: 1px solid rgba(139, 92, 246, 0.5);
    margin-left: var(--space-4);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: 10;
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(6, 6, 17, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-out);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.mobile-nav__link {
    font-size: var(--fs-3xl);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
    letter-spacing: -0.02em;
}

.mobile-nav__link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ambient background glows */
.hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: ambient-drift 12s ease-in-out infinite alternate;
}

.hero__glow--purple {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--purple), transparent);
}

.hero__glow--gold {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--gold), transparent);
    animation-delay: -6s;
}

@keyframes ambient-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}

/* Orbital / Black-hole visualization */
.hero__orbital {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: var(--space-12);
    z-index: 1;
}

.hero__orbital-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #1a1040, #060611 70%);
    box-shadow:
        0 0 60px rgba(139, 92, 246, 0.25),
        0 0 120px rgba(139, 92, 246, 0.1),
        inset 0 0 40px rgba(0,0,0,0.8);
}

.hero__orbital-core::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(139, 92, 246, 0.6),
        rgba(59, 130, 246, 0.3),
        rgba(245, 158, 11, 0.4),
        rgba(139, 92, 246, 0.1),
        rgba(139, 92, 246, 0.6)
    );
    z-index: -1;
    animation: rotate-core 8s linear infinite;
}

@keyframes rotate-core {
    to { transform: rotate(360deg); }
}

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

.hero__orbital-ring--1 {
    width: 160px;
    height: 160px;
    border-color: rgba(139, 92, 246, 0.15);
    animation: ring-pulse 4s ease-in-out infinite;
}

.hero__orbital-ring--2 {
    width: 240px;
    height: 240px;
    border-color: rgba(59, 130, 246, 0.1);
    animation: ring-pulse 5s ease-in-out infinite 1s;
}

.hero__orbital-ring--3 {
    width: 310px;
    height: 310px;
    border-color: rgba(245, 158, 11, 0.06);
    animation: ring-pulse 6s ease-in-out infinite 2s;
}

@keyframes ring-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

/* Skill nodes orbiting */
.hero__skill-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-hero);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
    z-index: 2;
}

.hero__skill-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.hero__orbital:hover .hero__skill-label {
    opacity: 1;
}

/* Hero content */
.hero__content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-hero);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--fs-5xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

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

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: var(--space-10);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    z-index: 1;
}

.hero__scroll span {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.about {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.about__card {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about__card-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.about__card-inner {
    background: var(--gradient-card);
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    display: flex;
    gap: var(--space-10);
    align-items: center;
}

/* Photo */
.about__photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.about__photo {
    width: 160px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(139,92,246,0.1), rgba(59,130,246,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__photo-placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.about__photo-ring {
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-lg) + 6px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    pointer-events: none;
}

.about__info {
    flex: 1;
}

.about__name {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-1);
}

.about__role {
    font-size: var(--fs-sm);
    color: var(--purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-4);
}

.about__divider {
    width: 40px;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 2px;
    margin-bottom: var(--space-4);
}

.about__bio {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.about__stats {
    display: flex;
    gap: var(--space-8);
}

.about__stat {
    display: flex;
    flex-direction: column;
}

.about__stat-value {
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Quote */
.about__quote {
    padding: var(--space-6) var(--space-10);
    border-top: 1px solid rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(139, 92, 246, 0.02);
}

.about__quote-mark {
    font-size: var(--fs-4xl);
    line-height: 1;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about__quote p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════════ */
.projects {
    background: var(--bg-secondary);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* Project Card */
.project-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    transition: all var(--duration-slow) var(--ease-out);
    overflow: hidden;
}

.project-card__glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--duration-slow) var(--ease-out);
}

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

.project-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Corner decorations */
.project-card__corner {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.project-card:hover .project-card__corner {
    opacity: 0.3;
}

.project-card__corner--tl {
    top: 12px;
    left: 12px;
    border-top: 1px solid var(--purple);
    border-left: 1px solid var(--purple);
}

.project-card__corner--br {
    bottom: 12px;
    right: 12px;
    border-bottom: 1px solid var(--purple);
    border-right: 1px solid var(--purple);
}

.project-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.project-card__icon {
    width: 48px;
    height: 48px;
}

.project-card--aurora .project-card__icon { color: var(--purple); }
.project-card--genesis .project-card__icon { color: var(--cyan); }
.project-card--synthetica .project-card__icon { color: var(--gold); }

.project-card__tags {
    display: flex;
    gap: var(--space-2);
}

.project-card__tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-muted);
    background: rgba(139, 92, 246, 0.05);
}

.project-card__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.project-card--aurora .project-card__title { color: var(--purple); }
.project-card--genesis .project-card__title { color: var(--cyan); }
.project-card--synthetica .project-card__title { color: var(--gold); }

.project-card__desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    flex: 1;
}

.project-card__tech {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.project-card__tech span {
    font-size: var(--fs-xs);
    font-family: var(--font-mono);
    color: var(--text-muted);
    padding: var(--space-1) var(--space-3);
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card__footer {
    border-top: 1px solid rgba(139, 92, 246, 0.08);
    padding-top: var(--space-4);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.project-card__link svg {
    transition: transform var(--duration-normal) var(--ease-out);
}

.project-card__link:hover {
    color: var(--purple);
}

.project-card__link:hover svg {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════════ */
.skills {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.skill-cell {
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.skill-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.skill-cell:hover::before {
    opacity: 1;
}

.skill-cell:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.skill-cell__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-5);
    color: var(--purple);
    transition: transform var(--duration-slow) var(--ease-out);
}

.skill-cell:hover .skill-cell__icon {
    transform: scale(1.1);
}

.skill-cell:nth-child(2) .skill-cell__icon { color: var(--cyan); }
.skill-cell:nth-child(3) .skill-cell__icon { color: var(--blue); }
.skill-cell:nth-child(4) .skill-cell__icon { color: var(--gold); }
.skill-cell:nth-child(5) .skill-cell__icon { color: var(--magenta); }
.skill-cell:nth-child(6) .skill-cell__icon { color: #10b981; }

.skill-cell__title {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
}

.skill-cell__sub {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

.skill-cell__bar {
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-cell__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--gradient-hero);
    transition: width 1.2s var(--ease-out);
}

.skill-cell:nth-child(2) .skill-cell__bar-fill {
    background: var(--gradient-blue);
}

.skill-cell:nth-child(4) .skill-cell__bar-fill {
    background: var(--gradient-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact {
    background: var(--bg-primary);
    text-align: center;
}

.contact__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-16) var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: var(--border-card);
    overflow: hidden;
}

.contact__glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.12), transparent 70%);
    pointer-events: none;
}

.contact__inner .section__eyebrow {
    display: inline-flex;
    margin-bottom: var(--space-6);
}

.contact__title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

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

.contact__desc {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(139, 92, 246, 0.06);
    padding: var(--space-12) 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--text-dim);
}

.footer__socials {
    display: flex;
    gap: var(--space-3);
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.footer__social:hover {
    color: var(--text-primary);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.footer__copy {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    width: 100%;
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(139, 92, 246, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 17, 0.85);
    backdrop-filter: blur(10px);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--duration-slow) var(--ease-out);
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.modal__close:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.modal__title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.modal__subtitle {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* Form */
.form__group {
    margin-bottom: var(--space-5);
}

.form__label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-dim);
}

.form__input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(139, 92, 246, 0.03);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS (Scroll-triggered)
   ═══════════════════════════════════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance */
.hero__content {
    animation: hero-fade-up 1s var(--ease-out) 0.3s both;
}

.hero__orbital {
    animation: hero-fade-up 1s var(--ease-out) 0.1s both;
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__title {
        font-size: var(--fs-4xl);
    }

    .section__title {
        font-size: var(--fs-3xl);
    }

    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-32: 5rem;
    }

    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero__title {
        font-size: var(--fs-3xl);
    }

    .hero__orbital {
        width: 240px;
        height: 240px;
        margin-bottom: var(--space-8);
    }

    .hero__orbital-core {
        width: 60px;
        height: 60px;
    }

    .hero__orbital-ring--1 { width: 120px; height: 120px; }
    .hero__orbital-ring--2 { width: 180px; height: 180px; }
    .hero__orbital-ring--3 { width: 230px; height: 230px; }

    .about__card-inner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8) var(--space-6);
    }

    .about__stats {
        justify-content: center;
    }

    .about__quote {
        padding: var(--space-4) var(--space-6);
        flex-direction: column;
        text-align: center;
    }

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

    .skills__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__title {
        font-size: var(--fs-3xl);
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .hero__actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .section__header {
        margin-bottom: var(--space-10);
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--fs-2xl);
    }

    .hero__subtitle {
        font-size: var(--fs-base);
    }

    .section__title {
        font-size: var(--fs-2xl);
    }

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

    .about__stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .contact__title {
        font-size: var(--fs-2xl);
    }

    .about__photo {
        width: 120px;
        height: 150px;
    }
}
