@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Cinematic Deep */
    --bg-base: #050505;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Cinematic Backgrounds */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #050505 100%);
}

.noise-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}

#cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
}

/* Glassmorphism */
.glass-ui {
    background: rgba(255, 255, 255, 0.05); /* Slightly higher opacity */
    backdrop-filter: blur(16px); /* Stronger blur for better separation */
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Added shadow for depth */
}

/* Page Shutter */
.page-shutter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    z-index: 10000;
    transform: translateY(100%);
}

/* Global Navbar (Premium) */
.nav-reveal {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 500;
    transition: var(--transition-slow);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--accent-glow);
    background: rgba(59, 130, 246, 0.1); /* Subtle background on active/hover */
    border-radius: 100px;
    padding: 0.5rem 1rem;
    margin: -0.5rem -1rem;
}

/* Utility Animations */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
}

/* Cinematic Overlaps & Blending */
.blend-diff { mix-blend-mode: difference; }
.blend-overlay { mix-blend-mode: overlay; }
.blend-screen { mix-blend-mode: screen; }

.z-negative { z-index: -1; }
.z-max { z-index: 999; }

.perspective-deep { perspective: 2000px; }
.preserve-3d { transform-style: preserve-3d; }

.parallax-layer {
    transition: transform 0.1s linear;
}

.mask-gradient-b {
    mask-image: linear-gradient(to bottom, black 80%, transparent);
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

/* Interactive CTA */
.btn-cinematic {
    position: relative;
    padding: 1.25rem 3rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-slow);
}

.btn-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.btn-cinematic:hover::before {
    left: 100%;
}

.btn-cinematic:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Workflow Circuit Visuals */
.circuit-glow {
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 20px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.circuit-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: white;
    filter: blur(5px);
    opacity: 0.5;
    animation: circuit-pulse 3s infinite linear;
}

@keyframes circuit-pulse {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Cinematic Polish Extensions */
.shimmer-card {
    position: relative;
    overflow: hidden;
}

.shimmer-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: card-shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes card-shimmer {
    0% { transform: rotate(0deg) translateY(0); }
    100% { transform: rotate(360deg) translateY(0); }
}

.bg-asset-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: saturate(0.5) contrast(1.2);
    mix-blend-mode: color-dodge;
}

/* New High-End Image Effects */
.cinematic-img-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-base);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.cinematic-img-container img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    transition: transform 1.5s var(--ease-cinematic);
    opacity: 0.7;
}

.cinematic-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-base) 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%);
    pointer-events: none;
    transition: opacity 0.8s var(--ease-cinematic);
}

.cinematic-img-container:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.cinematic-img-container:hover::after {
    opacity: 0.5;
}

/* Premium Cart Button */
.cart-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s var(--ease-cinematic);
    margin-left: 1rem;
}

.cart-node:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.cart-node i {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Controlled by JS toggle */
        flex-direction: column;
        padding: 2rem;
        border-radius: 20px;
        position: absolute;
        top: 5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-nav-toggle {
        display: block;
        padding: 1rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-glass);
        border-radius: 50%;
    }
}
