/**
 * Nebula Portfolio Theme - Main Stylesheet
 * Premium galaxy-themed portfolio with advanced animations
 * Production-ready, performance-optimized, accessible
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Nebula Palette */
    --color-primary: #8b5cf6;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #6d28d9;
    --color-secondary: #ec4899;
    --color-accent: #f472b6;
    
    /* Background Colors */
    --color-bg-dark: #0a0a1f;
    --color-bg-darker: #050510;
    --color-bg-card: rgba(17, 17, 45, 0.6);
    --color-bg-card-hover: rgba(17, 17, 45, 0.8);
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #c7d2fe;
    --color-text-muted: #94a3b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-nebula: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    --gradient-accent: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #ec4899 100%);
    
    /* Premium Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --spacing-3xl: 10rem;
    
    /* Container Widths - Multi-tier System */
    --container-content: 800px;
    --container-wide: 1200px;
    --container-full: 1400px;
    
    /* Typography Scale - Fluid & Premium */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);
    --font-size-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --font-size-5xl: clamp(3rem, 2.5rem + 3vw, 5rem);
    
    /* Borders & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Premium Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 24px 48px rgba(139, 92, 246, 0.25);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-glow-hover: 0 8px 40px rgba(139, 92, 246, 0.4);
    
    /* Premium Easing Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-index Scale */
    --z-cosmic-bg: -1;
    --z-content: 1;
    --z-header: 1000;
    --z-backdrop: 1050;
    --z-menu: 1100;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

/* Allow specific elements to be full width */
html, body, #page-wrapper, 
section, article, header, footer, main,
.cosmic-bg, .nebula-layer, .stars {
    max-width: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-darker);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Scroll lock - ONLY when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===================================
   COSMIC BACKGROUND
   =================================== */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: var(--z-cosmic-bg);
    background: var(--color-bg-darker);
    pointer-events: none;
    overflow: hidden;
}

.nebula-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: float 20s ease-in-out infinite;
}

.nebula-1 {
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    animation-delay: 0s;
}

.nebula-2 {
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.12) 0%, transparent 65%);
    animation-delay: 5s;
}

.nebula-3 {
    top: 40%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at center, rgba(109, 40, 217, 0.1) 0%, transparent 70%);
    animation-delay: 10s;
}

.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: twinkle 3s ease-in-out infinite;
}

/* ===================================
   PREMIUM TYPOGRAPHY SYSTEM
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: var(--font-size-5xl);
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: var(--font-size-4xl);
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
}

h4 { 
    font-size: var(--font-size-2xl);
    margin-bottom: 0.875rem;
}

p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

/* Premium Text Styles */
.text-large {
    font-size: var(--font-size-xl);
    line-height: 1.6;
}

.text-balance {
    text-wrap: balance;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===================================
   PREMIUM LAYOUT & CONTAINERS
   =================================== */
#page-wrapper {
    position: relative;
    min-height: 100vh;
    z-index: var(--z-content);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Multi-tier Container System */
.container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    overflow-x: hidden;
}

.container-content {
    max-width: var(--container-content);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-full {
    max-width: var(--container-full);
}

/* ===================================
   GLOBAL SECTION SPACING SYSTEM
   =================================== */

/* Standard section padding - normalized across entire site */
.section-padding {
    padding: clamp(3.5rem, 8vw, 7.5rem) 0;
}

/* Expanded sections for major content breaks */
.section-padding-lg {
    padding: clamp(5.5rem, 12vw, 11.5rem) 0;
}

/* Compact sections for related content groupings */
.section-padding-sm {
    padding: clamp(1.7rem, 4vw, 3.7rem) 0;
}

/* Page headers - consistent top margin from nav */
.page-header {
    padding: clamp(4.5rem, 10vw, 9.5rem) 0 clamp(1.7rem, 4vw, 2.7rem);
}

.site-wrapper {
    position: relative;
    z-index: var(--z-content);
}

/* Container already defined above - this consolidates */
.container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* Mobile spacing refinements */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
    
    .section-padding {
        padding: clamp(2.7rem, 6vw, 4.7rem) 0;
    }
    
    .section-padding-lg {
        padding: clamp(3.7rem, 8vw, 5.7rem) 0;
    }
    
    .section-padding-sm {
        padding: clamp(1.2rem, 3vw, 2.2rem) 0;
    }
    
    .page-header {
        padding: clamp(3.7rem, 8vw, 5.7rem) 0 clamp(1.2rem, 3vw, 1.7rem);
    }
    
    .container {
        padding: 0 1.5rem;
        overflow-x: hidden;
    }
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: rgba(10, 10, 31, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(10, 10, 31, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo .logo-link {
    display: block;
}

header .site-logo {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Navigation */
.primary-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

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

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

.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: calc(var(--z-menu) + 2);
    position: relative;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    height: 18px;
    position: relative;
}

.menu-icon span {
    width: 25px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-normal);
    position: absolute;
    left: 0;
}

.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 8px; }
.menu-icon span:nth-child(3) { top: 16px; }

.menu-toggle.active .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 31, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: var(--z-backdrop);
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

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

.btn-secondary {
    background: rgba(139, 92, 246, 0.08);
    color: var(--color-primary-light);
    border: 2px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

.hero .hero-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--spacing-lg);
    display: block;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.hero-title-line {
    display: block;
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.35s; }
.hero-title-line:nth-child(3) { animation-delay: 0.5s; }

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

.hero-title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-cta .btn {
    min-width: 180px;
}

/* Hero Background Accents */
.hero-bg-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
}

.accent-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: 10%;
    left: -10%;
}

.accent-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: 10%;
    right: -15%;
    animation-delay: 5s;
}

.accent-3 {
    width: 300px;
    height: 300px;
    background: var(--color-primary-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* ===================================
   PREMIUM CARDS
   =================================== */
.card,
.service-card,
.addon-card,
.case-study {
    background: linear-gradient(135deg, rgba(17, 17, 45, 0.6), rgba(17, 17, 45, 0.4));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.card::before,
.service-card::before,
.addon-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before,
.service-card:hover::before,
.addon-card:hover::before {
    opacity: 1;
}

.card:hover,
.service-card:hover,
.addon-card:hover {
    background: linear-gradient(135deg, rgba(17, 17, 45, 0.8), rgba(17, 17, 45, 0.6));
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-glow-hover);
}

/* Premium Case Study Cards */
.case-study {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: clamp(2rem, 5vw, 3rem);
}

.case-study:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-glow-hover);
}

.case-study-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: transform 0.8s var(--ease-out-expo);
}

.case-study:hover .case-study-image {
    transform: scale(1.02);
}

.case-study-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.case-study-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.case-study-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Showcase Card - Work Page Gallery Feel */
.showcase-card {
    margin-bottom: clamp(4rem, 8vw, 8rem);
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.2);
    cursor: pointer;
}

.showcase-card .case-study-header {
    position: relative;
}

.showcase-card .case-study-header::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--color-primary-light);
    transition: transform 0.4s var(--ease-out-expo);
}

.showcase-card.expanded .case-study-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.showcase-card .case-study-content {
    max-height: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.8s var(--ease-out-expo), opacity 0.6s ease;
    opacity: 0;
}

.showcase-card.expanded .case-study-content {
    opacity: 1;
    max-height: 5000px;
}

.showcase-card .case-study-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-bg-card));
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.showcase-card:not(.expanded) .case-study-content::after {
    opacity: 1;
}

.showcase-card .reveal-on-hover__hidden {
    margin-top: var(--spacing-md);
}

.showcase-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.case-study-expand-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--color-primary-light);
    transition: all 0.3s ease;
}

.showcase-card.expanded .case-study-expand-hint {
    display: none;
}

/* Premium Section Headers */
.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--font-size-4xl);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-light);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ===================================
   SECTIONS
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.page-header {
    padding-top: calc(var(--spacing-xl) + 80px);
    text-align: center;
}

.page-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   GRIDS
   =================================== */
/* Premium Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin: clamp(3rem, 8vw, 6rem) 0;
}

.service-card {
    padding: clamp(2rem, 4vw, 3rem);
}

.service-card h3 {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   PREMIUM SERVICE BLOCKS - SERVICES PAGE
   =================================== */

/* Container for all services - replaces grid */
.services-list {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
    margin-top: clamp(3rem, 6vw, 4rem);
}

/* Individual service floating container */
.service-block {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(17, 17, 45, 0.4) 0%, 
        rgba(17, 17, 45, 0.2) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: clamp(2.5rem, 5vw, 4rem);
    transition: all 0.6s var(--ease-out-expo);
}

.service-block::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(236, 72, 153, 0.1) 100%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.service-block:hover::before {
    opacity: 1;
}

.service-block:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Service item inside the block */
.service-block .service-item {
    background: transparent;
    border: none;
    padding: 0;
}

.service-block .depth-card__surface {
    background: transparent;
}

.service-icon-large {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        rgba(236, 72, 153, 0.1) 100%);
    border-radius: 16px;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-light);
}

.service-item-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.service-item-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0 0;
}

.service-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary-light);
    font-weight: 600;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .services-list {
        gap: clamp(2rem, 4vw, 3rem);
    }
    
    .service-block {
        padding: clamp(1.5rem, 4vw, 2rem);
    }
    
    .service-icon-large {
        width: 56px;
        height: 56px;
    }
}

/* ===================================
   PREMIUM FOOTER
   =================================== */
.site-footer {
    background: rgba(5, 5, 16, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

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

.footer-heading {
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--color-text-secondary);
    transition: color 0.3s var(--ease-out-expo);
    font-size: var(--font-size-base);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--color-primary-light);
    transform: translateX(4px);
}

.footer-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.footer-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.copyright,
.footer-credits {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 900px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 100px;
        background: rgba(10, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(139, 92, 246, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-menu);
        overflow-y: auto;
    }
    
    .primary-nav.active {
        right: 0;
    }
    
    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .primary-nav.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .primary-nav.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .primary-nav.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .primary-nav.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
    .primary-nav.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
    .primary-nav.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
    .primary-nav.active .nav-item:nth-child(6) { transition-delay: 0.6s; }
    
    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.25rem;
        text-align: left;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding-top: 110px;
        min-height: calc(100vh - 110px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   IMMERSIVE EXPERIENCE UTILITIES
   =================================== */

/* Visual Separators - Guide the Eye */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.3) 50%, 
        transparent 100%);
    margin: clamp(4rem, 8vw, 8rem) auto;
    max-width: 600px;
}

.section-divider--glow {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.6) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Depth Layers - Spatial Storytelling */
.depth-layer {
    position: relative;
    z-index: 1;
}

.depth-layer::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.depth-layer--elevated {
    transform: translateZ(20px);
    z-index: 2;
}

/* Content Rhythm - Alternating Density */
.rhythm-spacious {
    padding: clamp(6rem, 12vw, 12rem) 0;
}

.rhythm-intimate {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.rhythm-breath {
    margin-bottom: clamp(4rem, 8vw, 8rem);
}

/* Visual Moments - Break Text Flow */
.visual-moment {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin: clamp(3rem, 6vw, 6rem) 0;
}

.visual-moment__content {
    flex: 1;
}

.visual-moment__accent {
    width: 4px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Progressive Disclosure - Hover Reveals */
.reveal-on-hover {
    position: relative;
    overflow: hidden;
}

.reveal-on-hover__hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out-expo);
}

.reveal-on-hover:hover .reveal-on-hover__hidden {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Invitation - Subtle Motion Cue */
.scroll-invitation {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatInvite 2s ease-in-out infinite;
}

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

.scroll-invitation__icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-invitation__icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 16px); opacity: 0.3; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

/* Parallax Layers - Depth on Scroll */
.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-medium {
    transform: translateZ(0);
    will-change: transform;
}

/* Interactive Depth Cards */
.depth-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo);
}

.depth-card:hover {
    transform: translateY(-12px) rotateX(2deg);
}

.depth-card__surface {
    position: relative;
    z-index: 1;
}

.depth-card__shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.3), transparent);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out-expo);
}

.depth-card:hover .depth-card__shadow {
    opacity: 1;
}

/* Spotlight Effect - Focus Attention */
.spotlight-section {
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Content Flow - Alternate Layouts */
.flow-alternate {
    display: grid;
    gap: clamp(4rem, 8vw, 8rem);
}

.flow-alternate > *:nth-child(even) {
    direction: rtl;
}

.flow-alternate > *:nth-child(even) * {
    direction: ltr;
}

/* Sticky Progress Indicator */
.progress-rail {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-rail__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-rail__dot--active {
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
    transform: scale(1.5);
}

/* Enhanced Text Moments */
.text-moment {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    font-weight: 300;
    color: var(--color-text-primary);
    margin: clamp(3rem, 6vw, 6rem) 0;
    position: relative;
    padding-left: clamp(2rem, 4vw, 4rem);
}

.text-moment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===================================
   PREMIUM NEBULA CONTACT FORM
   =================================== */

/* Contact Page Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
    margin-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem);
    }
}

/* Form Container - Immersive Nebula Design */
.nebula-form-container {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(17, 17, 45, 0.6) 0%, 
        rgba(17, 17, 45, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
}

/* Subtle Ambient Glow Effect */
.nebula-form-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(139, 92, 246, 0.08) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.nebula-form-container:hover .nebula-form-glow {
    opacity: 1;
}

.nebula-form-container:focus-within {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 20px 60px rgba(139, 92, 246, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.nebula-form-container:focus-within .nebula-form-glow {
    opacity: 1;
}

/* Form Header */
.form-header {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.form-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.form-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Form Layout */
.nebula-contact-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Premium Form Fields - Floating Label Design */
.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.nebula-input,
.nebula-textarea,
.nebula-select {
    width: 100%;
    background: rgba(17, 17, 45, 0.4);
    border: none;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px 12px 0 0;
    padding: 1rem;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    transition: all 0.4s var(--ease-out-expo);
    outline: none;
}

.nebula-textarea {
    resize: vertical;
    min-height: 140px;
    padding: 1rem;
}

.nebula-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.nebula-select option {
    background: var(--color-bg-darker);
    color: var(--color-text-primary);
    padding: 0.5rem;
}

/* Static Label Above Input */
.nebula-label-static {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.label-required {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Input Border Accent */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s var(--ease-out-expo);
    z-index: 1;
}

.nebula-input:focus ~ .input-border,
.nebula-textarea:focus ~ .input-border {
    width: 100%;
}

/* Input Focus States */
.nebula-input:focus,
.nebula-textarea:focus {
    background: rgba(17, 17, 45, 0.6);
    border-bottom-color: transparent;
    box-shadow: 
        0 8px 24px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

/* Input Hover States */
.nebula-input:hover:not(:focus),
.nebula-textarea:hover:not(:focus) {
    background: rgba(17, 17, 45, 0.5);
    border-bottom-color: rgba(139, 92, 246, 0.3);
}

/* Textarea Specific */
.form-field-textarea {
    margin-top: 0.5rem;
}

/* Premium Submit Button */
.form-submit {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.nebula-submit-btn {
    position: relative;
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1.25rem 2rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.nebula-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.nebula-submit-btn:active .btn-content {
    transform: scale(0.98);
}

/* Button Glow Effect */
.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nebula-submit-btn:hover .btn-glow {
    opacity: 1;
}

.nebula-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 16px 40px rgba(139, 92, 246, 0.4),
        0 8px 16px rgba(236, 72, 153, 0.2);
}

.nebula-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.btn-loader .spinner {
    animation: spin 1s linear infinite;
}

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

/* Form Message Feedback */
.nebula-form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: var(--font-size-base);
    text-align: center;
    animation: slideIn 0.4s var(--ease-out-expo);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nebula-form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.nebula-form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Accessibility - Focus Visible */
.nebula-input:focus-visible,
.nebula-textarea:focus-visible,
.nebula-submit-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .nebula-form-container {
        padding: clamp(1.5rem, 4vw, 2rem);
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }select,
    .nebula-label-static
    
    .form-heading {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .nebula-submit-btn {
        padding: 1.125rem 1.5rem;
        font-size: var(--font-size-base);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nebula-input,
    .nebula-textarea,
    .nebula-label,
    .input-border,
    .nebula-submit-btn,
    .btn-content,
    .btn-icon {
        transition: none;
    }
    
    .nebula-form-glow {
        display: none;
    }
    
    @keyframes slideIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 40px rgba(139, 92, 246, 0.4),
        0 8px 16px rgba(236, 72, 153, 0.2);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1);
}

.scroll-to-top svg {
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-2px);
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 46px;
        height: 46px;
    }
}

/* Reduced motion support for scroll button */
@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none !important;
    }
    
    .scroll-to-top.visible {
        transform: none;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top svg {
        transition: none;
    }
}

/* ===================================
   CONTACT PAGE INFO SIDEBAR
   =================================== */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.info-card {
    background: linear-gradient(135deg, 
        rgba(17, 17, 45, 0.5) 0%, 
        rgba(17, 17, 45, 0.3) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 2.5rem);
    transition: all 0.4s var(--ease-out-expo);
}

.info-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.info-heading {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.info-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-primary-light);
    margin-top: 2px;
}

.info-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.info-step {
    display: flex;
    gap: 1rem;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}

.step-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.response-time {
    display: flex;
    align-items: center;
}

.response-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--color-primary-light);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.faq-item {
    background: linear-gradient(135deg, 
        rgba(17, 17, 45, 0.4) 0%, 
        rgba(17, 17, 45, 0.2) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: all 0.4s var(--ease-out-expo);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.1);
}

.faq-question {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.faq-answer {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   CASE STUDY ACTIONS
   =================================== */

.case-study-actions {
    display: flex;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    flex-wrap: wrap;
}

.case-study-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.case-study-actions .btn svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .case-study-actions {
        flex-direction: column;
    }
    
    .case-study-actions .btn {
        width: 100%;
    }
}
/* ===================================
   PREMIUM PROCESS PAGE STYLING
   =================================== */

.process-journey {
    position: relative;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto clamp(4rem, 8vw, 6rem);
    text-align: center;
}

.intro-text {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

/* Process Stage Containers */
.process-stage {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.process-stage.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-stage[data-delay="100"].visible {
    transition-delay: 0.1s;
}

.process-stage[data-delay="200"].visible {
    transition-delay: 0.2s;
}

.process-stage[data-delay="300"].visible {
    transition-delay: 0.3s;
}

.stage-marker {
    position: sticky;
    top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.stage-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stage-container {
    background: linear-gradient(
        135deg,
        rgba(17, 17, 45, 0.6) 0%,
        rgba(17, 17, 45, 0.4) 100%
    );
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1) inset;
    backdrop-filter: blur(20px);
    transition: all var(--transition-slow);
}

.process-stage:hover .stage-container {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 12px 48px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.2) inset;
    transform: translateY(-2px);
}

/* Stage Header */
.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    gap: 1rem;
    flex-wrap: wrap;
}

.stage-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.stage-duration {
    font-size: var(--font-size-sm);
    color: var(--color-primary-light);
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    white-space: nowrap;
}

/* Stage Overview */
.stage-overview {
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.stage-intro {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 300;
}

/* Stage Deliverables */
.stage-deliverables {
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.deliverables-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem 0;
    opacity: 0.8;
}

.deliverable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.875rem;
}

.deliverable-item {
    padding: 0.875rem 1.125rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 8px;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    transition: all var(--transition-fast);
}

.deliverable-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateX(4px);
}

/* Stage Outcome */
.stage-outcome {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(236, 72, 153, 0.08) 100%
    );
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
}

.outcome-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.outcome-text {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 400;
}

/* Process Page Responsive */
@media (max-width: 900px) {
    .process-stage {
        grid-template-columns: 60px 1fr;
        gap: 1.5rem;
    }
    
    .stage-marker {
        width: 60px;
        height: 60px;
        top: 100px;
    }
    
    .stage-number {
        font-size: 1.5rem;
    }
    
    .stage-container {
        padding: clamp(1.5rem, 4vw, 2rem);
    }
    
    .deliverable-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .process-stage {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stage-marker {
        position: relative;
        top: 0;
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .stage-number {
        font-size: 1.25rem;
    }
    
    .stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-stage {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===================================
   FUNNEL PAGE STYLING
   =================================== */
