/* ============================================
   ANUK - MATERIAL COSMOS (Phase 1 & 2)
   Cinematic Background Engine
   ============================================ */

:root {
    --bg-void: #020208;
    --nebula-c1: rgba(99, 102, 241, 0.25);
    --nebula-c2: rgba(14, 165, 233, 0.2);
    --nebula-c3: rgba(251, 191, 36, 0.12);
    --nebula-blur: 120px;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: #ffffff;
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- THE CANVAS ENGINE --- */
.cosmos-canvas {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    /* High-Fidelity Asset Replacement */
    background: url('cosmic-bg.png') no-repeat center center;
    background-size: cover;
    animation: cosmicBreath 60s ease-in-out infinite alternate;
}

@keyframes cosmicBreath {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Nebulas are now part of the background image */
.nebula,
.nebula-purple,
.nebula-blue,
.nebula-gold {
    display: none;
}

.nebula-purple {
    /* Increased from 0.25 to 0.4 */
    background: radial-gradient(circle at 35% 45%, rgba(99, 102, 241, 0.4) 0%, transparent 60%);
    animation-delay: -5s;
}

.nebula-blue {
    /* Increased from 0.2 to 0.35 */
    background: radial-gradient(circle at 65% 55%, rgba(14, 165, 233, 0.35) 0%, transparent 60%);
    animation-duration: 50s;
}

.nebula-gold {
    /* Increased from 0.12 to 0.2 */
    background: radial-gradient(circle at 50% 30%, rgba(251, 191, 36, 0.2) 0%, transparent 50%);
    mix-blend-mode: color-dodge;
}

@keyframes nebulaDrift {
    from {
        transform: translate(-2%, -2%) scale(1);
    }

    to {
        transform: translate(2%, 2%) scale(1.1);
    }
}

/* Parallax Stars - Sharper and More Numerous */
.starfield {
    position: absolute;
    inset: -100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, #fff, transparent),
        radial-gradient(1px 1px at 80% 40%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 15% 75%, #eee, transparent),
        radial-gradient(2px 2px at 45% 85%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 75% 65%, #fff, transparent),
        radial-gradient(1px 1px at 30% 90%, #fff, transparent),
        radial-gradient(1px 1px at 90% 10%, #fff, transparent);
    background-size: 600px 600px;
    opacity: 0.4;
    /* Increased from 0.25 */
    animation: rotateSlow 800s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* High Fidelity Geometry - Fixed Link and Opacity */
.geometry-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vh;
    height: 85vh;
    /* Using local SVG object for pixel-perfect fidelity and 404 fix */
    display: none;
    /* User requested hiding to test "clean" look */
    /* display: flex; */
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    /* Boosted from 0.35 */
    filter: drop-shadow(0 0 15px rgba(165, 180, 252, 0.6)) drop-shadow(0 0 45px rgba(99, 102, 241, 0.4));
    mix-blend-mode: screen;
    animation: pulseGeometry 8s ease-in-out infinite alternate;
}

.geometry-svg {
    width: 100%;
    height: 100%;
    /* Invert colors to ensure white lines on black if original is black-on-white */
    /* The downloaded SVG is Grey on Transparent, so Invert might make it dark. CHECK VISUALLY. */
    /* Assuming standard B/W SVG, we might want to invert if lines are black. */
    /* SVG inspected: fill="#CCC". This is light grey. So NO inversion needed for light mode. */
    /* But blending mode screen needs light values. */
    filter: contrast(1.2) brightness(1.5);
}

/* End of geometry svg styles */

/* Rhythmic Heartbeat - Alive */
@keyframes heartbeat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    15% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.7;
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    45% {
        transform: translate(-50%, -50%) scale(1.01);
        opacity: 0.65;
    }

    60% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

/* Post-Processing (Grain & Vignette) */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.02;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42IiBudW1PY3RhdmVzPSIzIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+');
}

.cinematic-vignette {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.8) 90%, #000 130%);
}

/* --- PHASE 3: HUD & GLASSMORPHISM --- */

/* Layering */
.hud-layer {
    position: relative;
    z-index: 10;
    /* Above background, below vignette/grain */
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header & Nav */
.anuk-header {
    display: flex;
    justify-content: flex-end;
    /* Nav stays on right after logo removal */
    align-items: center;
    padding: 2rem 4rem;
    width: 100%;
    position: fixed;
    /* Sticky behavior */
    top: 0;
    left: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

.brand-link {
    text-decoration: none;
    display: block;
}

/* Shared Glass Pill Component */
.glass-pill {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(165, 180, 252, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;

    /* Adjust specific pill padding for logo */
    padding: 0.5rem 1.5rem;
}

/* Logo specific overrides - No Glass Background */
.brand.glass-pill {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    /* Remove padding to let it flow */
}

/* New Golden Wordmark Styling - Bigger & Blended */
.brand-wordmark {
    height: 80px;
    /* Much bigger per user request */
    width: auto;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4)) brightness(1.1);
    mix-blend-mode: screen;
    /* Key fix: Blends black background into transparency */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-link:hover .brand-wordmark {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.7)) brightness(1.2);
}

.cosmic-nav {
    display: flex;
    gap: 2rem;
    /* Styles now handled by .glass-pill class in HTML */
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(165, 180, 252, 0.8);
}

/* Hero Section */
.hero-section {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 5rem;
}

/* Clean Hero Content (No Glass Panel) */
.hero-content-clean {
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Softened from 0.08 */
    padding: 4rem 6rem;
    border-radius: 2px;
    /* Brutalist/Sharp corners fit sci-fi better than rounded */
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;

    /* Edge Lighting via pseudo-element or box-shadow */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        /* Softened from 0.05 */
        0 0 30px rgba(99, 102, 241, 0.1);
    /* Subtle indigo ambient glow around card */
}

/* Typography Bloom */
.glow-text {
    color: #fff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        /* New core brightness */
        0 0 25px rgba(165, 180, 252, 0.4),
        /* Intensified mid-glow */
        0 0 50px rgba(99, 102, 241, 0.3);
    /* Extended outer bloom */
}

/* Golden Glow for Brand */
.glow-text-gold {
    color: #fbbf24;
    /* Amber-400 */
    text-shadow:
        0 0 10px rgba(251, 191, 36, 0.5),
        0 0 25px rgba(245, 158, 11, 0.4);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 10rem;
    /* Massive scale for ANUK */
    line-height: 0.9;
    font-weight: 100;
    /* Thin and elegant */
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.4);
    /* Soft bloom behind clip */
}

.hero-subtitle-caps {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    padding-left: 0.6em;
    /* Optical alignment for tracking */
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 0 auto 2rem auto;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.cta-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.content-section {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    /* Lighter backdrop to show Nebula */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-section.active {
    display: flex;
    /* Show when active */
    opacity: 1;
    pointer-events: auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.app-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.app-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.app-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.app-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    align-self: flex-start;
}

.app-status.live {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.app-status.coming-soon {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* --- ABOUT SECTION --- */
.about-panel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    /* Slightly more transparent than standard glass */
}

.about-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #fbbf24;
    /* Gold */
    margin-bottom: 2rem;
}

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

.about-text strong {
    color: #fff;
    font-weight: 600;
}

/* --- CONTACT SECTION --- */
.contact-panel {
    width: 100%;
    max-width: 500px;
}

.contact-email {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.glass-input {
    resize: vertical;
    min-height: 100px;
}

/* --- FOOTER --- */
.metric-footer {
    position: fixed;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    /* Let clicks pass through to background if needed */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

    /* Header Adjustments */
    .anuk-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(2, 2, 8, 0.8);
        /* Add background for readability on scroll */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .brand.glass-pill {
        width: 100%;
        justify-content: center;
    }

    .brand-wordmark {
        height: 60px;
        /* Smaller logo */
    }

    .cosmic-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .nav-icon {
        width: 14px;
        height: 14px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 5rem;
        /* Massive reduction from 10rem */
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .content-section {
        padding: 6rem 1rem;
        /* Reduce side padding */
    }

    /* Stack Apps Grid */
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-card {
        padding: 2rem;
    }

    .app-card h3 {
        font-size: 1.5rem;
    }
}