﻿:root {
    color-scheme: dark;
    --night: #05060b;
    --ink: #0b1020;
    --glow: #4ef3c3;
    --electric: #ff66d8;
    --accent: #7dd3fc;
    --muted: #94a3b8;
    --card: rgba(255, 255, 255, 0.03);
    --stroke: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 20% 20%, rgba(255, 102, 216, 0.08), transparent 28%),
                radial-gradient(circle at 80% 0%, rgba(126, 214, 255, 0.1), transparent 30%),
                linear-gradient(140deg, #05060b 0%, #05060b 35%, #0a0d19 100%);
    color: #e8edf9;
    line-height: 1.7;
    font-family: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background-color: var(--night);
}

a {
    color: #c7e8ff;
    text-decoration: none;
}

a:hover {
    color: #e5f6ff;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(126, 214, 255, 0.3);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #e8edf9;
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    z-index: 50;
    transition: top 0.2s ease;
}

.skip-link:focus-visible {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.gridOverlay {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 160px 160px;
    opacity: 0.25;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.glowOrb {
    position: fixed;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.55;
    z-index: 0;
}

.glowOrbOne {
    width: 360px;
    height: 360px;
    background: #1bffd8;
    top: -80px;
    left: -40px;
    animation: drift-slow 28s ease-in-out infinite alternate;
}

.glowOrbTwo {
    width: 380px;
    height: 380px;
    background: #6128ff;
    right: -120px;
    top: 160px;
    animation: drift-medium 24s ease-in-out infinite alternate;
}

.glowOrbThree {
    width: 300px;
    height: 300px;
    background: #ff66d8;
    left: 30%;
    bottom: -140px;
    animation: drift-fast 20s ease-in-out infinite alternate;
}

.heroLines {
    position: absolute;
    inset: 10% -10% auto -10%;
    height: 220px;
    background: linear-gradient(120deg, rgba(78,243,195,0.5), rgba(255,102,216,0.45), rgba(125,211,252,0.5));
    opacity: 0.12;
    filter: blur(30px);
    transform: translateZ(0);
    animation: slide-lines 18s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.glass {
    background: var(--card);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(78, 243, 195, 0.12);
}

.floatingCard {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(120deg, var(--electric), var(--glow));
    color: #05060b;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 40px rgba(255, 102, 216, 0.3), 0 0 25px rgba(78, 243, 195, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 50px rgba(255, 102, 216, 0.38), 0 0 35px rgba(78, 243, 195, 0.38);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: #ffffff;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: none;
    letter-spacing: 0.02em;
    color: #e8edf9;
}

.pill-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(78, 243, 195, 0.5);
    color: var(--accent);
    font-weight: 700;
}

.tag {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(126, 214, 255, 0.14);
    color: #e0f2fe;
    border: 1px solid rgba(126, 214, 255, 0.4);
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    border-radius: 1.4rem;
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(78, 243, 195, 0.35);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(78, 243, 195, 0.2);
}

.service {
    padding: 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    color: #dce7ff;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    color: #e6edff;
}

.link-row:hover {
    border-color: rgba(78, 243, 195, 0.5);
    color: #ffffff;
    transform: translateX(2px);
}

.callout {
    border: 1px dashed rgba(126, 214, 255, 0.5);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.chip {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #dbeafe;
}

.highlightCard {
    position: absolute;
    bottom: -46px;
    left: 12px;
    right: 12px;
}

.photoTape {
    position: absolute;
    top: 14px;
    width: 38px;
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 102, 216, 0.8), rgba(126, 214, 255, 0.9));
    border-radius: 8px;
    filter: blur(0.2px);
}

.photoTapeLeft {
    left: 18px;
    transform: rotate(-6deg);
}

.photoTapeRight {
    right: 18px;
    transform: rotate(6deg);
}

.animate-pulse-soft {
    animation: pulse-soft 2.6s ease-in-out infinite;
}

.hero-portrait {
    filter: saturate(1.15) contrast(1.05) drop-shadow(0 12px 35px rgba(78, 243, 195, 0.25));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.hero-portrait:hover {
    filter: saturate(1.2) contrast(1.08) drop-shadow(0 16px 45px rgba(255, 102, 216, 0.25));
    transform: translateY(-2px);
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes drift-slow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, 25px, 0) scale(1.05); }
    100% { transform: translate3d(-15px, 40px, 0) scale(1.02); }
}

@keyframes drift-medium {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-30px, 10px, 0) scale(1.08); }
    100% { transform: translate3d(25px, -20px, 0) scale(1.03); }
}

@keyframes drift-fast {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -30px, 0) scale(1.1); }
    100% { transform: translate3d(-25px, 15px, 0) scale(1.04); }
}

@keyframes slide-lines {
    0% { transform: translate3d(-8%, 0, 0); }
    50% { transform: translate3d(6%, 0, 0); }
    100% { transform: translate3d(-8%, 0, 0); }
}


.auroraGlow {
    position: fixed;
    inset: -20% -10%;
    background: conic-gradient(from 120deg, rgba(126,214,255,0.18), rgba(255,102,216,0.15), rgba(78,243,195,0.18), rgba(126,214,255,0.18));
    opacity: 0.35;
    filter: blur(90px);
    mix-blend-mode: screen;
    animation: aurora 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora {
    0% { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.32; }
    50% { transform: translate3d(6%, 4%, 0) scale(1.08); opacity: 0.38; }
    100% { transform: translate3d(-3%, 6%, 0) scale(1.02); opacity: 0.34; }
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after {
    animation-play-state: paused !important;
    transition: none !important;
}

.motion-paused .btn-primary:hover,
.motion-paused .btn-ghost:hover,
.motion-paused .project-card:hover,
.motion-paused .link-row:hover {
    transform: none !important;
}

.theme-light {
    background: #f8fafc;
    color: #0f172a;
}

.theme-light body,
body.theme-light {
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08), transparent 32%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.1), transparent 32%),
                linear-gradient(140deg, #f8fafc 0%, #eef2ff 60%, #e0f2fe 100%);
    color: #0f172a;
}

.theme-light .gridOverlay {
    background-image: linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    opacity: 0.45;
}

.theme-light .auroraGlow {
    opacity: 0.2;
    mix-blend-mode: normal;
    filter: blur(110px);
}

.theme-light a {
    color: #0f172a;
}

.theme-light a:hover {
    color: #111827;
}

.theme-light .glass,
.theme-light .floatingCard,
.theme-light .project-card,
.theme-light .service,
.theme-light .chip,
.theme-light .callout,
.theme-light .highlightCard {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.theme-light .pill,
.theme-light .pill-outline,
.theme-light .tag {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.theme-light .btn-primary {
    color: #0b1020;
}

.theme-light .btn-ghost {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

.theme-light .section-title,
.theme-light .text-slate-300,
.theme-light .text-slate-200,
.theme-light .text-slate-400 {
    color: #0f172a;
}

.theme-light footer {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.theme-light header {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.theme-light nav a,
.theme-light .text-slate-200,
.theme-light .text-slate-300,
.theme-light .text-slate-400 {
    color: #0f172a;
}

.theme-light .btn-primary {
    background: linear-gradient(120deg, #6366f1, #22c55e);
    color: #f8fafc;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.mobileNavLink {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.mobileNavLink:hover {
    background: rgba(78, 243, 195, 0.08);
    color: #fff;
}
@media (max-width: 768px) {
    .highlightCard {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .btn-primary:hover,
    .btn-ghost:hover,
    .project-card:hover,
    .link-row:hover {
        transform: none;
    }
}
