/* =============================================
   VICTORIA'S CREATIONS - IMMERSIVE PORTFOLIO
   Palette: Purple #7B2FBE -> #A855F7, Blue #3B82F6,
   Cyan #06B6D4, Magenta #D946EF, Dark #08070f
   Fonts: Playfair Display (titles), Cormorant Garamond (accent), Quicksand (body)
   ============================================= */

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

/* Custom scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.25) transparent;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.45);
}

:root {
    --purple: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-deeper: #4C1D95;
    --purple-light: #C084FC;
    --blue: #3B82F6;
    --cyan: #06B6D4;
    --magenta: #D946EF;
    --bg-dark: #08070f;
    --bg-dark-2: #0c0b18;
    --white: #ffffff;
    --gray: #2a2a3a;
    --font-title: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Quicksand', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: none;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; }
button { cursor: none; }

/* =============================================
   LOADER
   ============================================= */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #1a1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.loader-logo-wrap {
    width: 420px;
    position: relative;
    overflow: hidden;
}

.loader-logo {
    width: 100%;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 0px rgba(139, 92, 246, 0));
    position: relative;
    z-index: 1;
}

/* SVG logo parts: start invisible, paths drawn with stroke then filled */
.logo-part {
    fill: transparent;
    stroke: rgba(192, 132, 252, 0.8);
    stroke-width: 1;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* Text paths: start hidden, JS reveals them filled (no stroke-only phase) */
.part-text-victorias path,
.part-text-creations path {
    fill: transparent;
    stroke: none;
}

.logo-part.drawn {
    transition: fill 0.8s ease;
    fill: white;
}

/* Light sweep that moves across the logo */
.loader-light-sweep {
    position: absolute;
    top: -20%;
    left: -60%;
    width: 40%;
    height: 140%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(168, 85, 247, 0.08) 20%,
        rgba(192, 132, 252, 0.25) 40%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(192, 132, 252, 0.25) 60%,
        rgba(168, 85, 247, 0.08) 80%,
        transparent 100%
    );
    transform: skewX(-15deg);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.loader-enter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple-light);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--ease);
}

.loader-enter-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--purple-light);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    opacity: 0;
}

#custom-cursor.visible {
    opacity: 1;
}

#cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 10002;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
}

/* =============================================
   HERO
   ============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8,7,15,0.2) 0%,
        rgba(8,7,15,0.05) 40%,
        rgba(8,7,15,0.4) 80%,
        rgba(8,7,15,1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#stars-transition {
    height: 150vh;
    position: relative;
    background: transparent;
}

#portal-tunnel-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

#portal-flash {
    position: fixed;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: radial-gradient(circle at center,
        #ffffff 0%,
        rgba(240, 230, 255, 0.98) 25%,
        rgba(200, 170, 255, 0.95) 50%,
        rgba(139, 92, 246, 0.9) 75%,
        rgba(8, 7, 15, 0.85) 100%
    );
    opacity: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: linear-gradient(to bottom, rgba(8,7,15,0.6), transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-logo {
    height: 22px;
    width: auto;
    filter: brightness(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--purple-light);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--white);
}

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

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 200px;
    background: rgba(12, 11, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 0.6rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
}

.dropdown li a::after { display: none; }

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* =============================================
   FIXED BUTTONS
   ============================================= */
#fixed-buttons {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}

#fixed-buttons.nav-hidden {
    transform: translateY(-50%) translateX(120%);
    opacity: 0;
}

.btn-fixed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 50px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--purple-light);
    backdrop-filter: blur(10px);
}

.btn-fixed:hover {
    background: rgba(139, 92, 246, 0.35);
    border-color: var(--purple-light);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.btn-star {
    font-size: 0.9em;
    display: inline-block;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* =============================================
   STATS SECTION
   ============================================= */
#stats {
    position: relative;
    padding: 10rem 2rem;
    background: var(--bg-dark);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stats-subtitle {
    text-align: center;
    margin-top: 3rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: normal;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
}

.stat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: scale(0.7);
}

.circle-glow-wrap {
    position: relative;
    width: 180px;
    height: 180px;
}

.circle-ring {
    width: 100%;
    height: 100%;
}

.circle-progress {
    transform: rotate(-90deg);
    transform-origin: center;
}

.orbiting-light {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--purple-light);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--purple-light), 0 0 40px var(--purple);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.stat-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 140px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--purple-light);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    line-height: 1.5;
}


/* =============================================
   BRAND STATEMENT
   ============================================= */
#brand-statement {
    position: relative;
    padding: 12rem 2rem;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.brand-logo {
    width: 120px;
    margin: 0 auto 3rem;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    opacity: 0;
}

.brand-content h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-style: italic;
    word-break: keep-all;
    overflow-wrap: normal;
}

.brand-content p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   MAGIC TEXT REVEAL
   ============================================= */
.magic-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.magic-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.magic-char {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(15px);
    transition: all 0.6s var(--ease);
}

.magic-char.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
}

.magic-char.glow {
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.8), 0 0 60px rgba(139, 92, 246, 0.4);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
#projects {
    position: relative;
    padding: 0;
    overflow: visible;
    min-height: 100vh;
}

.projects-header {
    text-align: center;
    padding: 4rem 2rem 1rem;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Stars canvas behind slides */
#projects-stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Color background that tints per project */
.projects-color-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: background 0.8s ease;
    background: radial-gradient(ellipse at center, rgba(30, 25, 60, 0.6) 0%, transparent 70%);
}

/* Showcase container */
.projects-showcase {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 80vh;
    overflow: visible;
}

/* Each slide */
.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 4rem;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

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

/* Visual container — floating image */
.project-slide-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.project-float-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    animation: projectFloat 4s ease-in-out infinite;
}

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

/* Fog / mist around image */
.project-fog {
    position: absolute;
    top: -40%;
    left: -35%;
    width: 170%;
    height: 180%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(96, 165, 250, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 70%, rgba(217, 70, 239, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    filter: blur(30px);
    animation: fogDrift 8s ease-in-out infinite alternate;
}

@keyframes fogDrift {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    50% { transform: scale(1.05) translate(8px, -5px); opacity: 1; }
    100% { transform: scale(0.98) translate(-6px, 4px); opacity: 0.75; }
}

/* Curved screen — concave shape via SVG clip-path */
.curved-screen {
    position: relative;
    z-index: 2;
    width: clamp(500px, 80vw, 1050px);
    aspect-ratio: 24/9;
}

.curved-screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url(#concave-clip);
}

/* Reflection glow on the floor */
.curved-screen-glow {
    position: absolute;
    bottom: -20px;
    left: 15%;
    width: 70%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 80%);
    filter: blur(16px);
    pointer-events: none;
}

/* Info below image */
.project-slide-info {
    text-align: center;
    margin-top: 0.5rem;
    max-width: 500px;
}

.project-title {
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.project-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* Nav dots */
.projects-nav {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 5;
}

.projects-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 0 4px rgba(255,255,255,0.15);
}

.projects-nav-dot.active {
    background: var(--purple-light);
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.7), 0 0 14px rgba(139, 92, 246, 0.4), 0 0 22px rgba(139, 92, 246, 0.2);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about {
    position: relative;
    z-index: 2;
    padding: 10rem 2rem;
    overflow: hidden;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-container {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 3/4;
    margin-left: -2rem;
}

#hologram-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 8px;
}

/* photo-reveal is now unused — fade happens directly on canvas */
.about-image-container .photo-reveal {
    display: none;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 50px;
    color: var(--purple-light);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-discover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(168,85,247,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-discover:hover::before {
    opacity: 1;
}

.btn-discover:hover {
    border-color: var(--purple-light);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* =============================================
   CTA SECTION
   ============================================= */
#contact {
    position: relative;
    padding: 14rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #7B2FBE, #A855F7);
    border-radius: 50px;
    color: var(--white);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #A855F7, #D946EF, #3B82F6, #A855F7);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

.btn-cta:hover::after {
    opacity: 1;
}

.btn-cta:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5), 0 0 80px rgba(139, 92, 246, 0.2);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    padding: 4rem 2rem 2rem;
    background: transparent;
    position: relative;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 220px;
    margin: 0 auto 0.8rem;
    opacity: 0.8;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-socials a {
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    opacity: 1;
    transform: scale(1.2);
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.08em;
}

/* (shooting stars now rendered via canvas in JS) */

/* =============================================
   HAMBURGER MENU BUTTON
   ============================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(8, 7, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.mobile-nav-links li a:hover {
    color: var(--purple-light);
}

.mobile-nav-dropdown {
    list-style: none;
    padding: 0.8rem 0 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.mobile-nav-dropdown a {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 0.08em;
}

.mobile-nav-dropdown a:hover {
    color: var(--purple-light) !important;
}

.mobile-nav-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.mobile-nav-socials a {
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-socials a:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Large tablets / small desktops --- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .curved-screen {
        width: clamp(400px, 70vw, 800px);
    }

    .about-wrapper {
        gap: 4rem;
    }
}

/* --- Tablets & mobile (hamburger kicks in) --- */
@media (max-width: 768px) {
    /* Cursor: use native on touch devices */
    body { cursor: auto; }
    a, button { cursor: auto; }
    #custom-cursor, #cursor-trail { display: none; }

    /* ---- LOADER ---- */
    .loader-logo-wrap {
        width: clamp(220px, 70vw, 380px);
    }

    .loader-inner {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .loader-enter-btn {
        font-size: 0.75rem;
        padding: 0.8rem 2rem;
    }

    /* ---- NAVIGATION: Hamburger ---- */
    #main-nav {
        padding: 0.8rem 1.2rem;
    }

    .nav-center { display: none; }
    .nav-right .social-icons { display: none; }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav-overlay {
        display: flex;
    }

    .nav-logo {
        height: 18px;
    }

    /* ---- STATS ---- */
    #stats {
        padding: 6rem 1.5rem;
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        max-width: 380px;
    }

    .circle-glow-wrap {
        width: clamp(110px, 30vw, 150px);
        height: clamp(110px, 30vw, 150px);
    }

    .stat-number {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .stat-suffix {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
    }

    .stat-label {
        font-size: clamp(0.55rem, 1.8vw, 0.68rem);
    }

    .stat-content {
        width: clamp(80px, 24vw, 120px);
    }

    .stats-subtitle {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        margin-top: 2rem;
    }

    /* ---- BRAND STATEMENT ---- */
    #brand-statement {
        padding: 6rem 1.5rem;
        min-height: auto;
    }

    .brand-logo {
        width: 80px;
        margin-bottom: 2rem;
    }

    .brand-content h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .brand-content p {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    /* ---- PROJECTS ---- */
    .projects-header {
        padding: 3rem 1.5rem 0.5rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .section-subtitle {
        font-size: clamp(0.78rem, 2.2vw, 0.9rem);
    }

    .projects-showcase {
        height: 70vh;
        overflow: hidden;
    }

    .curved-screen {
        width: clamp(260px, 85vw, 480px);
        aspect-ratio: 16/9;
    }

    .project-slide {
        padding: 0 1rem 3rem;
    }

    .project-slide-visual {
        margin-bottom: 0.8rem;
    }

    .project-fog {
        filter: blur(20px);
    }

    .project-title {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
    }

    .project-desc {
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
        padding: 0 0.5rem;
    }

    .project-slide-info {
        max-width: 90vw;
    }

    .projects-nav {
        bottom: 0.3rem;
    }

    .projects-nav-dot {
        width: 7px;
        height: 7px;
    }

    /* ---- ABOUT ---- */
    #about {
        padding: 5rem 1.5rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .about-image-container {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    #hologram-canvas {
        max-width: 280px;
    }

    .about-text .section-title {
        text-align: center;
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .about-text p {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
        margin-bottom: 1.5rem;
    }

    .btn-discover {
        font-size: 0.75rem;
        padding: 0.85rem 1.8rem;
    }

    /* ---- CTA ---- */
    #contact {
        padding: 7rem 1.5rem;
    }

    .cta-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        margin-bottom: 2rem;
    }

    .btn-cta {
        font-size: 0.78rem;
        padding: 1rem 2rem;
    }

    /* ---- FOOTER ---- */
    #footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-logo {
        width: clamp(140px, 40vw, 200px);
    }

    .footer-tagline {
        font-size: 0.78rem;
    }

    .footer-socials {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-copy {
        font-size: 0.65rem;
    }

    /* ---- FIXED BUTTONS ---- */
    #fixed-buttons {
        right: 50%;
        transform: translateX(50%);
        top: auto;
        bottom: 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    #fixed-buttons.nav-hidden {
        transform: translateX(50%) translateY(120%);
    }

    .btn-fixed {
        font-size: 0.6rem;
        padding: 0.65rem 0.9rem;
        backdrop-filter: blur(15px);
    }

    .btn-star {
        font-size: 0.75em;
    }

    /* ---- POPUP FORM ---- */
    .popup-modal {
        width: min(380px, 92vw);
        padding: 22px 20px;
        border-radius: 18px;
        max-height: 90vh;
    }

    .popup-title {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
    }

    .popup-subtitle {
        font-size: 0.78rem;
        margin-bottom: 16px;
    }

    .popup-field label {
        font-size: 0.7rem;
    }

    .popup-field input,
    .popup-field textarea {
        font-size: 0.85rem;
        padding: 9px 12px;
        border-radius: 10px;
    }

    .popup-submit {
        padding: 12px 32px;
        font-size: 0.82rem;
    }

    .popup-close {
        top: 0.8rem;
        right: 1rem;
        font-size: 1.4rem;
    }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
        max-width: 320px;
    }

    .circle-glow-wrap {
        width: 105px;
        height: 105px;
    }

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

    .stat-suffix {
        font-size: 0.85rem;
    }

    .stat-content {
        width: 75px;
    }

    .stat-label {
        font-size: 0.5rem;
        letter-spacing: 0.04em;
    }

    .curved-screen {
        width: clamp(240px, 90vw, 360px);
    }

    .projects-showcase {
        height: 65vh;
    }

    .project-title {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
    }

    .project-desc {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    }

    .about-image-container {
        max-width: 220px;
    }

    #hologram-canvas {
        max-width: 220px;
    }

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

    .btn-cta {
        font-size: 0.72rem;
        padding: 0.9rem 1.6rem;
    }

    .mobile-nav-links li a {
        font-size: 1rem;
    }

    .mobile-nav-dropdown a {
        font-size: 0.8rem !important;
    }

    .popup-modal {
        width: 95vw;
        padding: 18px 16px;
    }

    .btn-fixed {
        font-size: 0.55rem;
        padding: 0.55rem 0.75rem;
    }

    #fixed-buttons {
        bottom: 0.8rem;
    }

    .footer-logo {
        width: clamp(120px, 45vw, 160px);
    }
}

/* --- Very small phones (iPhone SE, etc.) --- */
@media (max-width: 360px) {
    .loader-logo-wrap {
        width: 200px;
    }

    .stats-grid {
        gap: 1rem;
        max-width: 280px;
    }

    .circle-glow-wrap {
        width: 90px;
        height: 90px;
    }

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

    .stat-content {
        width: 65px;
    }

    .stat-label {
        font-size: 0.45rem;
    }

    .curved-screen {
        width: 92vw;
    }

    .mobile-nav-links {
        gap: 1.4rem;
    }

    .mobile-nav-links li a {
        font-size: 0.9rem;
    }
}

/* =============================================
   POPUP FORM
   ============================================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

#popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Glow spots on glass card */
.glow-spot {
    position: absolute;
    pointer-events: none;
    filter: blur(25px);
    opacity: 0;
    animation: glowPulse var(--dur) ease-in-out var(--delay) infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; transform: scale(0.7) rotate(0deg); }
    30% { opacity: 0.9; transform: scale(1.1) rotate(8deg); }
    70% { opacity: 0.6; transform: scale(0.95) rotate(-5deg); }
}

.popup-modal {
    position: relative;
    z-index: 1;
    width: min(420px, 90vw);
    max-height: 96vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 28px 32px;
    border-radius: 24px;
    background: rgba(22, 22, 22, 0.02);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.025);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-modal::-webkit-scrollbar {
    display: none;
}

.popup-overlay.open .popup-modal {
    transform: translateY(0) scale(1);
}

.popup-inner {
    position: relative;
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s;
    z-index: 2;
}

.popup-close:hover {
    color: rgba(60, 200, 240, 0.9);
}

.popup-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.5rem);
    font-weight: 600;
    color: rgba(60, 200, 240, 0.92);
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.popup-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(60, 190, 230, 0.4);
    margin: 0 0 20px;
    letter-spacing: 0.03em;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.popup-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.popup-field label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(60, 190, 230, 0.55);
}

.popup-field input,
.popup-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    color: rgba(60, 200, 240, 0.9);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.popup-field textarea {
    min-height: 60px;
}

.popup-field input::placeholder,
.popup-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.popup-field input:focus,
.popup-field textarea:focus {
    border-color: rgba(100, 80, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(80, 60, 220, 0.15);
}

/* Prevent browser autofill white background */
.popup-field input:-webkit-autofill,
.popup-field input:-webkit-autofill:hover,
.popup-field input:-webkit-autofill:focus,
.popup-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(22, 22, 22, 0.95) inset !important;
    -webkit-text-fill-color: rgba(60, 200, 240, 0.9) !important;
    caret-color: rgba(60, 200, 240, 0.9);
    border-color: rgba(255, 255, 255, 0.08) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.popup-submit {
    width: auto;
    margin: 12px auto 0;
    padding: 14px 40px;
    display: block;
    background: rgba(60, 200, 240, 0.06);
    border: 1px solid rgba(60, 200, 240, 0.5);
    border-radius: 30px;
    color: rgba(60, 200, 240, 0.95);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-submit:hover {
    background: rgba(60, 200, 240, 0.15);
    box-shadow: 0 0 20px rgba(60, 200, 240, 0.25);
    transform: translateY(-1px);
}

.popup-submit:active {
    transform: translateY(0);
}

.popup-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 20px 0;
}

.popup-footer-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(60, 190, 230, 0.5);
    margin: 12px 0 0;
    letter-spacing: 0.05em;
    text-align: center;
}

.popup-success {
    text-align: center;
    padding: 2rem 0;
}

.popup-success p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(60, 200, 240, 0.85);
    margin-top: 0.5rem;
}

/* popup responsive handled in main responsive section above */
