/* ========================================
   NOIR ATLAS - Premium Portfolio Website
   CSS Architecture
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Dark Premium Palette */
    --color-bg-primary: #0a0a0b;
    --color-bg-secondary: #111113;
    --color-bg-tertiary: #161619;
    --color-surface: #1c1c1f;
    --color-surface-hover: #222225;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    
    /* Accent Colors */
    --color-accent-gold: #d4af37;
    --color-accent-gold-light: #e8c547;
    --color-accent-silver: #c0c0c0;
    --color-accent-lime: #a3e635;
    --color-accent-blue: #60a5fa;
    
    /* Glow Colors */
    --color-glow-gold: rgba(212, 175, 55, 0.3);
    --color-glow-lime: rgba(163, 230, 53, 0.25);
    --color-glow-blue: rgba(96, 165, 250, 0.2);
    
    /* Gradients */
    --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                      radial-gradient(ellipse at 70% 80%, rgba(96, 165, 250, 0.06) 0%, transparent 50%),
                      radial-gradient(ellipse at 50% 50%, rgba(163, 230, 53, 0.03) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 5.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 7rem);
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 8rem);
    --space-3xl: clamp(4rem, 3rem + 5vw, 10rem);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Z-Index Scale */
    --z-preloader: 9999;
    --z-cursor: 9998;
    --z-navbar: 100;
    --z-overlay: 50;
    --z-content: 10;
    --z-background: 1;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Selection */
::selection {
    background: var(--color-accent-gold);
    color: var(--color-bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-surface-hover);
}

/* Reduced Motion */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-glow-gold) 0%, transparent 70%);
    pointer-events: none;
    z-index: var(--z-cursor);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    pointer-events: none;
    z-index: var(--z-cursor);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.1s ease;
}

body:hover .cursor-glow,
body:hover .cursor-dot {
    opacity: 1;
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .cursor-glow,
    .cursor-dot {
        display: none !important;
    }
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderTextReveal 0.8s ease forwards;
}

.preloader-text.atlas {
    animation-delay: 0.2s;
}

.preloader-divider {
    width: 2px;
    height: 1.5rem;
    background: var(--color-accent-gold);
    opacity: 0;
    animation: preloaderDividerReveal 0.6s ease 0.4s forwards;
}

.preloader-line {
    width: 200px;
    height: 1px;
    background: var(--color-surface);
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-full);
}

.preloader-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
    transform: translateX(-100%);
    animation: preloaderProgress 2s ease-in-out forwards;
}

@keyframes preloaderTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloaderDividerReveal {
    to {
        opacity: 1;
    }
}

@keyframes preloaderProgress {
    to {
        transform: translateX(0);
    }
}

/* ========================================
   NOISE OVERLAY
   ======================================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-overlay);
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    padding: var(--space-md) 0;
    transition: background var(--transition-base), backdrop-filter var(--transition-base), padding var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-sm) 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-noir,
.logo-atlas {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.logo-divider {
    width: 1px;
    height: 1rem;
    background: var(--color-accent-gold);
}

.logo-atlas {
    color: var(--color-text-secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-gold);
    transition: width var(--transition-base);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-hover);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-gold);
    transform: translateY(-2px);
}

.nav-cta svg {
    transition: transform var(--transition-base);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-gold-light));
    color: var(--color-bg-primary);
    box-shadow: 0 4px 20px var(--color-glow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--color-glow-gold);
}

.btn-primary svg {
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-surface-hover);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-text-tertiary);
    transform: translateY(-3px);
}

.btn-cta {
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-gold-light));
    color: var(--color-bg-primary);
    padding: 1.25rem 2.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    box-shadow: 0 4px 30px var(--color-glow-gold);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px var(--color-glow-gold);
}

.btn-cta svg {
    transition: transform var(--transition-base);
}

.btn-cta:hover svg {
    transform: translateX(6px);
}

/* ========================================
   SECTION LABELS
   ======================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent-gold);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-3xl) var(--space-lg);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
    background: var(--gradient-hero);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent-gold);
    top: -200px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent-blue);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--color-accent-lime);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 25s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-line.vertical:nth-child(1) { left: 20%; }
.grid-line.vertical:nth-child(2) { left: 40%; }
.grid-line.vertical:nth-child(3) { left: 60%; }

.grid-line.horizontal {
    width: 100%;
    height: 1px;
    left: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.grid-line.horizontal:nth-child(4) { top: 33%; }
.grid-line.horizontal:nth-child(5) { top: 66%; }

.hero-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-hover);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    width: fit-content;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-lime);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-headline {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.headline-line {
    display: block;
}

.headline-line.accent {
    color: var(--color-accent-gold);
    font-style: italic;
}

.hero-subtext {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual - Glass Card Cluster */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card-cluster {
    position: relative;
    width: 400px;
    height: 400px;
}

.glass-card {
    position: absolute;
    width: 160px;
    height: 200px;
    background: rgba(28, 28, 31, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.card-icon {
    color: var(--color-accent-gold);
}

.card-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.card-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: cardFloat1 6s ease-in-out infinite;
}

.card-2 {
    bottom: 0;
    left: 0;
    animation: cardFloat2 7s ease-in-out infinite;
}

.card-3 {
    bottom: 0;
    right: 0;
    animation: cardFloat3 8s ease-in-out infinite;
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

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

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

.glass-card:hover {
    transform: scale(1.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-1:hover {
    transform: translateX(-50%) scale(1.05);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: var(--z-content);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-accent-gold);
    border-radius: var(--radius-full);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% {
        top: -20px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-scroll-indicator span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   VISION SECTION
   ======================================== */
.vision {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.vision-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.vision-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.vision-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-evenly;
}

.v-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.vision-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
}

.vision-header {
    margin-bottom: var(--space-2xl);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.vision-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.vision-title .italic {
    font-style: italic;
    color: var(--color-accent-gold);
}

.vision-paragraph {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.vision-statement {
    text-align: center;
    padding: var(--space-2xl);
    position: relative;
}

.statement-quote {
    font-family: var(--font-display);
    font-size: 8rem;
    color: var(--color-accent-gold);
    opacity: 0.1;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.statement-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-primary);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   WORK SECTION
   ======================================== */
.work {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.work-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.work-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

.work-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
}

.work-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.work-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.2;
    margin-top: var(--space-md);
}

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

.work-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-hover);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-visual {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-placeholder.fashion {
    background: linear-gradient(135deg, #1a1a1f, #0f0f12);
}

.visual-placeholder.architecture {
    background: linear-gradient(135deg, #151519, #0c0c0e);
}

.visual-placeholder.fragrance {
    background: linear-gradient(135deg, #1f1a1a, #120f0f);
}

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

/* Fashion Shapes */
.fashion-shapes {
    position: relative;
    width: 120px;
    height: 120px;
}

.f-shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--color-accent-gold);
}

.f-shape.shape-1 {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.f-shape.shape-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    opacity: 0.5;
}

.f-shape.shape-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    background: var(--color-accent-gold);
    opacity: 0.2;
}

.work-card:hover .f-shape.shape-1 {
    animation: shapeRotate 10s linear infinite;
}

.work-card:hover .f-shape.shape-2 {
    animation: shapeRotate 8s linear infinite reverse;
}

@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Architecture Grid */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100px;
    height: 100px;
}

.a-cell {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all var(--transition-base);
}

.a-cell.highlight {
    background: var(--color-accent-blue);
    opacity: 0.3;
}

.work-card:hover .a-cell {
    animation: cellPulse 1s ease-in-out infinite;
}

.work-card:hover .a-cell:nth-child(2) { animation-delay: 0.1s; }
.work-card:hover .a-cell:nth-child(3) { animation-delay: 0.2s; }
.work-card:hover .a-cell:nth-child(4) { animation-delay: 0.3s; }
.work-card:hover .a-cell:nth-child(5) { animation-delay: 0.4s; }
.work-card:hover .a-cell:nth-child(6) { animation-delay: 0.5s; }

@keyframes cellPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Fragrance Orb */
.fragrance-orb {
    position: relative;
    width: 100px;
    height: 100px;
}

.f-orb {
    position: absolute;
    border-radius: 50%;
}

.f-orb.orb-inner {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    background: radial-gradient(circle, var(--color-accent-gold), transparent);
    opacity: 0.5;
}

.f-orb.orb-outer {
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent-gold);
    opacity: 0.3;
}

.work-card:hover .f-orb.orb-inner {
    animation: orbPulse 2s ease-in-out infinite;
}

.work-card:hover .f-orb.orb-outer {
    animation: orbExpand 2s ease-in-out infinite;
}

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

@keyframes orbExpand {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.1; }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-surface), transparent);
    opacity: 0.5;
}

.card-info {
    padding: var(--space-lg);
}

.card-category {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    margin-bottom: var(--space-xs);
    display: block;
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-link svg {
    transition: transform var(--transition-base);
}

.card-link:hover {
    color: var(--color-accent-gold);
}

.card-link:hover svg {
    transform: translateX(4px);
}

.work-card:hover .card-link {
    color: var(--color-accent-gold);
}

/* ========================================
   METRICS SECTION
   ======================================== */
.metrics {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.metrics-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.metrics-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(163, 230, 53, 0.05) 0%, transparent 50%);
}

.metrics-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
}

.metrics-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.metrics-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.2;
    margin-top: var(--space-md);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.metric-item {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-hover);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.metric-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.metric-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-accent-gold);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.counter-suffix {
    font-size: 0.6em;
    vertical-align: super;
}

.metric-label {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.metric-desc {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    line-height: 1.6;
}

/* ========================================
   STORY SECTION (Scroll Storytelling)
   ======================================== */
.story {
    position: relative;
    height: 400vh;
}

.story-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.story-sticky {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-panels {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 70vh;
    margin: 0 auto;
}

.story-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: 0 var(--space-lg);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.story-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.panel-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-accent-gold);
    opacity: 0.5;
    margin-bottom: var(--space-sm);
    display: block;
}

.panel-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.panel-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

.panel-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-visual {
    width: 300px;
    height: 300px;
    position: relative;
}

/* Discover Visual */
.discover-v .d-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-accent-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.discover-v .d-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px dashed var(--color-accent-gold);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Design Visual */
.design-v .d-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dg-cell {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.dg-cell.active {
    background: var(--color-accent-gold);
    opacity: 0.3;
}

.story-panel.active .dg-cell.active {
    animation: cellGlow 2s ease-in-out infinite;
}

@keyframes cellGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Develop Visual */
.develop-v {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dv-line {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), transparent);
    border-radius: var(--radius-full);
    opacity: 0.5;
}

.story-panel.active .dv-line {
    animation: linePulse 1.5s ease-in-out infinite;
}

.story-panel.active .dv-line:nth-child(2) {
    animation-delay: 0.2s;
}

.story-panel.active .dv-line:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes linePulse {
    0%, 100% { transform: scaleX(1); opacity: 0.5; }
    50% { transform: scaleX(1.2); opacity: 0.8; }
}

/* Deliver Visual */
.deliver-v .dv-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.star-point {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 40px solid var(--color-accent-gold);
    opacity: 0.3;
    top: 50%;
    left: 50%;
    transform-origin: 50% 100%;
}

.star-point:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.star-point:nth-child(2) { transform: translate(-50%, -100%) rotate(72deg); }
.star-point:nth-child(3) { transform: translate(-50%, -100%) rotate(144deg); }
.star-point:nth-child(4) { transform: translate(-50%, -100%) rotate(216deg); }
.star-point:nth-child(5) { transform: translate(-50%, -100%) rotate(288deg); }

.story-panel.active .star-point {
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Story Progress */
.story-progress {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.progress-line {
    width: 200px;
    height: 2px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-dots {
    display: flex;
    gap: var(--space-md);
}

.p-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-surface);
    transition: all var(--transition-base);
    cursor: pointer;
}

.p-dot.active {
    background: var(--color-accent-gold);
    transform: scale(1.2);
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.approach-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.approach-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    filter: blur(60px);
}

.approach-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
}

.approach-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.approach-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.2;
    margin-top: var(--space-md);
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-accent-gold);
    opacity: 0.5;
    line-height: 1;
}

.step-content {
    padding-bottom: var(--space-lg);
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.step-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-surface), transparent);
}

.step-item:last-child .step-line {
    display: none;
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */
.testimonial {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.testimonial-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.testimonial-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

.testimonial-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-content {
    text-align: center;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-accent-gold);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-accent-gold);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-primary);
}

.author-title {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.cta-orb.orb-left {
    width: 400px;
    height: 400px;
    background: var(--color-accent-gold);
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
}

.cta-orb.orb-right {
    width: 300px;
    height: 300px;
    background: var(--color-accent-blue);
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.cta-container {
    position: relative;
    z-index: var(--z-content);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.cta-title .accent {
    color: var(--color-accent-gold);
    font-style: italic;
}

.cta-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    position: relative;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--color-surface);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
    justify-content: flex-end;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.group-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.link-group a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--color-accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-surface);
}

.copyright,
.credit {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
[data-reveal=""] + [data-reveal] { transition-delay: 0.1s; }
[data-reveal=""] + [data-reveal] + [data-reveal] { transition-delay: 0.2s; }
[data-reveal=""] + [data-reveal] + [data-reveal] + [data-reveal] { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .story-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .panel-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-primary);
        flex-direction: column;
        padding: var(--space-2xl);
        padding-top: 80px;
        transition: right var(--transition-slow);
        border-left: 1px solid var(--color-surface);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: calc(var(--z-navbar) + 1);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
        --text-3xl: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .glass-card-cluster {
        transform: scale(0.8);
    }
}
