/**
 * CINEMATIC EXPERIENCE STYLES
 * 
 * Design Philosophy:
 * - Content is minimal overlay on 3D world
 * - Typography creates visual hierarchy without competing with WebGL
 * - Transitions are choreographed, not abrupt
 * - Depth is expressed through layering and opacity
 */

/* ==================== RESET & BASE ==================== */

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

:root {
    /* Color Palette - Space Shark Nebula Theme (pink/purple cosmic) */
    --color-primary: #FF1493; /* Hot pink (shark body) */
    --color-secondary: #9D4EDD; /* Purple nebula */
    --color-tertiary: #FF69B4; /* Light pink accent */
    --color-accent: #FFB6C1; /* Soft pink */
    --color-text-strong: #FFE4F0; /* Very light pink */
    --color-text-muted: #E0BBE4; /* Lavender */
    --color-dark: #0a0a0a;
    --color-darker: #0D0415; /* Deep space purple-black */
    --color-shark-glow: #FF1493; /* Hot pink glow */
    --color-nebula-purple: #8B5CF6; /* Bright purple nebula */
    
    /* Typography Scale */
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.25rem;
    --font-size-lg: 2rem;
    --font-size-xl: 3rem;
    --font-size-xxl: 5rem;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Z-Index Layers */
    --z-background: -1;
    --z-content: 10;
    --z-nav: 100;
    --z-modal: 1000;
    --z-loading: 9999;
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-cinematic: 1.2s cubic-bezier(0.65, 0.0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-accent);
    background: linear-gradient(180deg, #0D0415 0%, #1a0a2e 30%, #16001e 70%, #0D0415 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== CANVAS ==================== */

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
}

/* ==================== CONTENT WRAPPER ==================== */

.content-wrapper {
    position: relative;
    z-index: var(--z-content);
    pointer-events: none;
}

.content-wrapper * {
    pointer-events: auto;
}

/* ==================== NAVIGATION ==================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    z-index: var(--z-nav);
    background: linear-gradient(180deg, rgba(26, 10, 46, 0.95) 0%, rgba(139, 92, 246, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
    transition: transform var(--transition-medium);
    gap: var(--space-sm);
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.15);
}

.nav-logo {
    font-size: var(--font-size-md);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #E5D4F7; /* Brighter color */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* Added shadow for depth */
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: #E5D4F7; /* Brighter color */
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* Added shadow */
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-shark-glow), var(--color-nebula-purple));
    box-shadow: 0 0 8px var(--color-shark-glow);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--color-shark-glow);
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.6);
}

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

/* ==================== SCENE SECTIONS ==================== */

.scene-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
}

.scene-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp var(--transition-cinematic) forwards;
    animation-delay: 0.3s;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.scene-content > * {
    max-width: 100%;
}

.scene-content > :not(.section-stars) {
    position: relative;
    z-index: 1;
}

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

/* ==================== HERO SECTION ==================== */

#hero {
    height: 100vh;
    text-align: center;
}

.hero-brand {
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding: 0.35rem 0.9rem;
    font-size: clamp(0.95rem, 1.9vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: transparent;
    background-image: linear-gradient(
        110deg,
        rgba(255, 180, 220, 0.65) 0%,
        rgba(255, 255, 255, 1) 38%,
        rgba(255, 80, 175, 0.95) 62%,
        rgba(165, 110, 255, 0.8) 100%
    );
    background-size: 220% auto;
    background-position: 120% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    border: 1px solid rgba(255, 120, 195, 0.35);
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.2);
    opacity: 0;
    transform: translateY(18px);
    animation: heroBrandReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards, heroBrandSweep 3.2s ease-in-out infinite;
    animation-delay: 0.15s, 1.15s;
}

@keyframes heroBrandReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroBrandSweep {
    0% {
        background-position: 120% 50%;
    }
    100% {
        background-position: -30% 50%;
    }
}

.hero-title {
    font-size: clamp(2.64rem, 8.8vw, 4.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: #FFE4F0;
    text-shadow: 
        0 4px 12px rgba(255, 20, 147, 0.7), 
        0 8px 24px rgba(157, 78, 221, 0.5), 
        0 2px 4px rgba(255, 105, 180, 0.9),
        0 0 40px rgba(139, 92, 246, 0.4);
    transition: all var(--transition-medium);
    animation: premiumTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, nebulaGlow 3s ease-in-out infinite;
    animation-delay: 0.2s, 1.5s;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

@keyframes nebulaGlow {
    0%, 100% {
        text-shadow: 
            0 4px 12px rgba(255, 20, 147, 0.7), 
            0 8px 24px rgba(157, 78, 221, 0.5), 
            0 2px 4px rgba(255, 105, 180, 0.9),
            0 0 40px rgba(139, 92, 246, 0.4);
    }
    50% {
        text-shadow: 
            0 4px 12px rgba(255, 20, 147, 1), 
            0 8px 24px rgba(157, 78, 221, 0.8), 
            0 2px 4px rgba(255, 105, 180, 1),
            0 0 60px rgba(139, 92, 246, 0.6);
    }
}

@keyframes premiumTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line::before {
    content: attr(data-text);
    display: inline-block;
    animation: revealText var(--transition-slow) cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: calc(var(--line-index, 0) * 0.2s);
}

.hero-subtitle {
    font-size: var(--font-size-md);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #D4C2E8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: calc(var(--space-lg) * 1.15);
    opacity: 0;
    animation: premiumFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    transform: translateY(30px);
}

@keyframes premiumFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

#hero .scene-content {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

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

.cta-button {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #FF1493 0%, #8B5CF6 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: premiumButtonReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
    box-shadow: 
        0 4px 15px rgba(255, 20, 147, 0.5), 
        0 10px 30px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(255, 105, 180, 0.3);
}

@keyframes premiumButtonReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

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

.cta-button:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 20, 147, 0.6), 
        0 15px 45px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(255, 105, 180, 0.5);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: premiumFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards, premiumFloat 3s ease-in-out infinite;
    animation-delay: 1.8s, 2.5s;
}

@keyframes premiumFloat {
    0%, 100% { 
        transform: translate(-50%, 0);
    }
    50% { 
        transform: translate(-50%, -15px);
    }
}

.scroll-line {
    width: 2px;
    height: 70px;
    background: linear-gradient(180deg, transparent 0%, var(--color-tertiary) 30%, var(--color-shark-glow) 70%, transparent 100%);
    margin: 0 auto var(--space-sm);
    animation: premiumScrollLine 2s ease-in-out infinite;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-shark-glow);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(0, 217, 255, 0.8), 
        0 0 20px rgba(0, 255, 202, 0.6),
        0 0 30px rgba(5, 191, 219, 0.4);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes premiumScrollLine {
    0%, 100% {
        transform: scaleY(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D4C2E8;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* ==================== SECTION TITLES ==================== */

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    color: #E5D4F7;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65), 0 6px 20px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(123, 44, 191, 0.5);
    transition: all var(--transition-medium);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-shark-glow) 50%, transparent 100%);
    border-radius: 2px;
    opacity: 0;
    animation: underlineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    box-shadow: 0 0 10px var(--color-shark-glow);
}

@keyframes underlineReveal {
    0% {
        opacity: 0;
        width: 0px;
    }
    100% {
        opacity: 1;
        width: 80px;
    }
}

/* ==================== PHILOSOPHY SECTION ==================== */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.philosophy-card {
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(8, 131, 149, 0.12) 0%, rgba(5, 191, 219, 0.06) 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(8, 131, 149, 0.15),
        inset 0 1px 0 rgba(0, 255, 202, 0.1);
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 202, 0.15) 50%, transparent 100%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.4) 0%, rgba(5, 191, 219, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.philosophy-card:hover {
    background: linear-gradient(135deg, rgba(8, 131, 149, 0.2) 0%, rgba(5, 191, 219, 0.12) 100%);
    border-color: rgba(0, 255, 202, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 217, 255, 0.3), 
        0 10px 30px rgba(8, 131, 149, 0.2),
        0 0 40px rgba(0, 255, 202, 0.2);
}

.philosophy-card:hover::before {
    left: 100%;
}

.philosophy-card:hover::after {
    opacity: 1;
}

.philosophy-card h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: #E5D4F7; /* Brighter heading color */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* Added shadow for depth */
}

.philosophy-card p {
    font-size: var(--font-size-sm);
    color: #C8B5DC; /* Brighter body text */
    line-height: 1.7;
    transition: color var(--transition-fast);
}

/* ==================== SERVICES SECTION ==================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.service-card {
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(5, 191, 219, 0.08) 0%, rgba(0, 255, 202, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 
        0 4px 20px rgba(8, 131, 149, 0.1),
        inset 0 1px 0 rgba(0, 255, 202, 0.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 202, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-shark-glow) 100%);
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    opacity: 0.5;
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(5, 191, 219, 0.15) 0%, rgba(0, 255, 202, 0.1) 100%);
    border-color: rgba(0, 255, 202, 0.4);
    transform: translateY(-12px) rotateX(5deg) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 217, 255, 0.35), 
        0 15px 35px rgba(8, 131, 149, 0.2),
        0 0 40px rgba(0, 255, 202, 0.25);
}

.service-card:active {
    transform: translateY(-8px) rotateX(2deg) scale(1.01);
}

.service-card h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: #E5D4F7; /* Brighter heading */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* Added shadow */
}

.service-card p {
    font-size: var(--font-size-sm);
    color: #C8B5DC; /* Brighter body text */
    transition: color var(--transition-fast);
}

/* ==================== CONTACT SECTION ==================== */

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-sm) var(--space-sm) 0;
    border-radius: 16px;
}

.contact-ambient {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 20, 147, 0.2) 0%, rgba(157, 78, 221, 0.1) 45%, rgba(157, 78, 221, 0) 75%);
    filter: blur(24px);
    opacity: 0.75;
    pointer-events: none;
    animation: contactAuraPulse 5s ease-in-out infinite;
}

.section-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-stars::before,
.section-stars::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.section-stars::before {
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 3% 8%, rgba(255, 248, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 10% 22%, rgba(255, 212, 245, 0.85) 0 1.5px, transparent 3px),
        radial-gradient(circle at 18% 7%, rgba(255, 244, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 26% 18%, rgba(250, 220, 255, 0.8) 0 1.5px, transparent 3px),
        radial-gradient(circle at 34% 11%, rgba(255, 248, 255, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle at 41% 26%, rgba(255, 212, 245, 0.8) 0 1.5px, transparent 3px),
        radial-gradient(circle at 50% 10%, rgba(255, 248, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 58% 20%, rgba(248, 208, 255, 0.78) 0 1.5px, transparent 3px),
        radial-gradient(circle at 66% 9%, rgba(255, 248, 255, 0.92) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 23%, rgba(255, 212, 245, 0.82) 0 1.5px, transparent 3px),
        radial-gradient(circle at 83% 12%, rgba(255, 248, 255, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle at 92% 19%, rgba(247, 205, 255, 0.78) 0 1.5px, transparent 3px),
        radial-gradient(circle at 6% 44%, rgba(255, 248, 255, 0.88) 0 1.7px, transparent 3px),
        radial-gradient(circle at 15% 57%, rgba(245, 202, 255, 0.74) 0 1.3px, transparent 3px),
        radial-gradient(circle at 24% 49%, rgba(255, 248, 255, 0.9) 0 1.7px, transparent 3px),
        radial-gradient(circle at 33% 61%, rgba(242, 196, 255, 0.72) 0 1.3px, transparent 3px),
        radial-gradient(circle at 44% 46%, rgba(255, 248, 255, 0.88) 0 1.7px, transparent 3px),
        radial-gradient(circle at 54% 58%, rgba(244, 200, 255, 0.73) 0 1.3px, transparent 3px),
        radial-gradient(circle at 64% 43%, rgba(255, 248, 255, 0.88) 0 1.7px, transparent 3px),
        radial-gradient(circle at 73% 56%, rgba(242, 194, 255, 0.7) 0 1.3px, transparent 3px),
        radial-gradient(circle at 84% 47%, rgba(255, 248, 255, 0.86) 0 1.7px, transparent 3px),
        radial-gradient(circle at 93% 59%, rgba(239, 188, 255, 0.68) 0 1.3px, transparent 3px),
        radial-gradient(circle at 4% 79%, rgba(255, 248, 255, 0.9) 0 1.8px, transparent 3px),
        radial-gradient(circle at 12% 92%, rgba(245, 202, 255, 0.74) 0 1.3px, transparent 3px),
        radial-gradient(circle at 22% 85%, rgba(255, 248, 255, 0.9) 0 1.8px, transparent 3px),
        radial-gradient(circle at 31% 96%, rgba(242, 196, 255, 0.7) 0 1.2px, transparent 3px),
        radial-gradient(circle at 42% 81%, rgba(255, 248, 255, 0.88) 0 1.8px, transparent 3px),
        radial-gradient(circle at 52% 93%, rgba(244, 200, 255, 0.72) 0 1.3px, transparent 3px),
        radial-gradient(circle at 63% 83%, rgba(255, 248, 255, 0.88) 0 1.8px, transparent 3px),
        radial-gradient(circle at 74% 95%, rgba(242, 194, 255, 0.68) 0 1.2px, transparent 3px),
        radial-gradient(circle at 85% 82%, rgba(255, 248, 255, 0.88) 0 1.8px, transparent 3px),
        radial-gradient(circle at 96% 90%, rgba(239, 188, 255, 0.66) 0 1.2px, transparent 3px);
    animation: starFieldPulse 4.8s ease-in-out infinite;
}

.section-stars::after {
    opacity: 0.38;
    background-image:
        radial-gradient(circle at 7% 33%, rgba(255, 248, 255, 0.85) 0 1.5px, transparent 3px),
        radial-gradient(circle at 14% 25%, rgba(242, 197, 255, 0.7) 0 1.2px, transparent 3px),
        radial-gradient(circle at 23% 37%, rgba(255, 246, 255, 0.88) 0 1.5px, transparent 3px),
        radial-gradient(circle at 31% 29%, rgba(243, 199, 255, 0.7) 0 1.2px, transparent 3px),
        radial-gradient(circle at 39% 35%, rgba(255, 248, 255, 0.84) 0 1.5px, transparent 3px),
        radial-gradient(circle at 48% 24%, rgba(238, 189, 255, 0.68) 0 1.2px, transparent 3px),
        radial-gradient(circle at 57% 39%, rgba(255, 248, 255, 0.86) 0 1.5px, transparent 3px),
        radial-gradient(circle at 65% 27%, rgba(244, 202, 255, 0.7) 0 1.2px, transparent 3px),
        radial-gradient(circle at 73% 36%, rgba(255, 248, 255, 0.85) 0 1.5px, transparent 3px),
        radial-gradient(circle at 82% 28%, rgba(237, 184, 255, 0.66) 0 1.2px, transparent 3px),
        radial-gradient(circle at 91% 34%, rgba(255, 248, 255, 0.84) 0 1.5px, transparent 3px),
        radial-gradient(circle at 5% 66%, rgba(255, 248, 255, 0.8) 0 1.4px, transparent 3px),
        radial-gradient(circle at 17% 72%, rgba(236, 183, 255, 0.62) 0 1.1px, transparent 3px),
        radial-gradient(circle at 26% 63%, rgba(255, 248, 255, 0.82) 0 1.4px, transparent 3px),
        radial-gradient(circle at 36% 74%, rgba(238, 188, 255, 0.64) 0 1.1px, transparent 3px),
        radial-gradient(circle at 47% 67%, rgba(255, 248, 255, 0.8) 0 1.4px, transparent 3px),
        radial-gradient(circle at 58% 73%, rgba(236, 183, 255, 0.62) 0 1.1px, transparent 3px),
        radial-gradient(circle at 69% 65%, rgba(255, 248, 255, 0.82) 0 1.4px, transparent 3px),
        radial-gradient(circle at 79% 74%, rgba(238, 188, 255, 0.64) 0 1.1px, transparent 3px),
        radial-gradient(circle at 90% 68%, rgba(255, 248, 255, 0.8) 0 1.4px, transparent 3px),
        radial-gradient(circle at 8% 93%, rgba(255, 248, 255, 0.78) 0 1.3px, transparent 3px),
        radial-gradient(circle at 21% 88%, rgba(236, 183, 255, 0.6) 0 1.1px, transparent 3px),
        radial-gradient(circle at 33% 97%, rgba(255, 248, 255, 0.8) 0 1.3px, transparent 3px),
        radial-gradient(circle at 46% 90%, rgba(238, 188, 255, 0.62) 0 1.1px, transparent 3px),
        radial-gradient(circle at 59% 95%, rgba(255, 248, 255, 0.78) 0 1.3px, transparent 3px),
        radial-gradient(circle at 72% 89%, rgba(236, 183, 255, 0.6) 0 1.1px, transparent 3px),
        radial-gradient(circle at 84% 96%, rgba(255, 248, 255, 0.8) 0 1.3px, transparent 3px),
        radial-gradient(circle at 95% 91%, rgba(238, 188, 255, 0.62) 0 1.1px, transparent 3px);
    animation: starFieldPulseSlow 6.5s ease-in-out infinite;
}

.section-stars .star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffe8ff;
    box-shadow: 0 0 8px rgba(255, 232, 255, 0.85), 0 0 16px rgba(255, 155, 225, 0.55);
    opacity: 0.45;
    animation: starTwinkle 2.8s ease-in-out infinite;
}

.section-stars .s1 { top: 8%; left: 18%; animation-delay: 0.1s; }
.section-stars .s2 { top: 12%; left: 31%; animation-delay: 0.5s; }
.section-stars .s3 { top: 6%; left: 47%; animation-delay: 1.1s; }
.section-stars .s4 { top: 10%; left: 62%; animation-delay: 1.6s; }
.section-stars .s5 { top: 15%; left: 76%; animation-delay: 0.9s; }
.section-stars .s6 { top: 22%; left: 24%; animation-delay: 1.9s; }
.section-stars .s7 { top: 20%; left: 54%; animation-delay: 0.3s; }
.section-stars .s8 { top: 18%; left: 70%; animation-delay: 2.2s; }

.contact-status-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 auto var(--space-md);
}

.status-pill {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 105, 180, 0.35);
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3d6ff;
    background: rgba(85, 29, 120, 0.28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.contact-message {
    position: relative;
    z-index: 1;
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    color: #E5D4F7; /* Brighter color */
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4); /* Enhanced shadows */
    transition: color var(--transition-medium), text-shadow var(--transition-medium);
}

.contact-intent-chips {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.intent-chip {
    border: 1px solid rgba(255, 105, 180, 0.35);
    background: rgba(123, 44, 191, 0.24);
    color: #f1dbff;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.intent-chip:hover {
    transform: translateY(-2px);
    background: rgba(157, 78, 221, 0.34);
    border-color: rgba(255, 105, 180, 0.7);
}

.intent-chip.is-active {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.45), rgba(157, 78, 221, 0.45));
    border-color: rgba(255, 190, 225, 0.85);
    color: #ffffff;
}

.contact-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm);
    font-size: var(--font-size-sm);
    font-family: inherit;
    color: #E5D4F7; /* Brighter input text */
    background: rgba(123, 44, 191, 0.08); /* Slightly more opaque background */
    border: 1px solid rgba(157, 78, 221, 0.3); /* More visible border */
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #B8A5CC; /* Brighter placeholder */
    opacity: 0.9;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(123, 44, 191, 0.08);
    border-color: var(--color-primary);
}

.submit-button {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-dark);
    background: linear-gradient(135deg, #E5D4F7 0%, #CDA2EA 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3), 0 8px 25px rgba(123, 44, 191, 0.15);
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7B2CBF 0%, #9D4EDD 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-button:hover {
    background: linear-gradient(135deg, #CDA2EA 0%, #B584D8 100%);
    color: #E5D4F7;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.4), 0 15px 45px rgba(123, 44, 191, 0.25);
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:hover::after {
    width: 300px;
    height: 300px;
}

.submit-button:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.contact-info {
    position: relative;
    z-index: 1;
    margin-top: var(--space-lg);
}

@keyframes contactAuraPulse {
    0%, 100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

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

@keyframes starFieldPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.65; }
}

@keyframes starFieldPulseSlow {
    0%, 100% { opacity: 0.24; }
    50% { opacity: 0.5; }
}

.contact-info a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: var(--font-size-md);
    transition: color var(--transition-fast);
}

.contact-info a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 50%;
    font-size: var(--font-size-xs);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==================== LOADING SCREEN ==================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    opacity: 1;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.loading-screen.hidden {
    opacity: 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(5, 191, 219, 0.2);
    border-top-color: var(--color-shark-glow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-md);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    letter-spacing: 0.1em;
}

/* ==================== PERFORMANCE MONITOR ==================== */

.performance-monitor {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(10, 10, 10, 0.9);
    padding: var(--space-sm);
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-family: 'Courier New', monospace;
    color: var(--color-accent);
    z-index: var(--z-modal);
    backdrop-filter: blur(10px);
}

.fps-counter,
.scene-indicator {
    margin-bottom: var(--space-xs);
}

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

@media (max-width: 768px) {
    :root {
        --font-size-xxl: 3rem;
        --font-size-xl: 2rem;
        --font-size-lg: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 4rem;
    }
    
    .main-nav {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-links {
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-links a {
        font-size: var(--font-size-xs);
    }
    
    .scene-section {
        padding: var(--space-lg) var(--space-md);
    }

    .scroll-indicator {
        bottom: var(--space-md);
    }
    
    .philosophy-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .contact-content {
        padding: var(--space-sm) 0 0;
    }

    .contact-ambient {
        width: 260px;
        height: 260px;
    }
}

/* ==================== UTILITIES ==================== */

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