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

:root {
    --bg: #030303;
    --surface: #0f0f11;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #3b82f6;
    --secondary: #4c1d95;
    --accent: #3b82f6;
    --border: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.02);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 90px;
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
    --section-padding: clamp(4rem, 10vw, 10rem);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent scroll while loading */
    -webkit-font-smoothing: antialiased;
}

/* Premium Loader CSS */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030303;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    position: absolute;
    left: -100%;
    animation: loadingBar 1.5s infinite linear;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loadingBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 29, 149, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, .headline {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h1 { font-size: clamp(2rem, 10vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 4vw, 2.5rem); }
p { font-size: clamp(0.95rem, 1.1vw, 1.125rem); }

.authority-text {
    background: linear-gradient(to right, #c6a06e, #e2c08d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 10px 20px rgba(198, 160, 110, 0.2);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pre-title {
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.hero-description {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.value-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.8;
}

.cta-description {
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.cta-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    transition: all 0.4s ease;
}

header.scrolled {
    top: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0 1.5rem;
}

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.1);
}

.logo-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

nav ul li a:hover {
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% auto;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
    background-position: right center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

/* Hero Section Rewritten */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.4); /* Less blur to see something, more brightness control */
    transform: scale(1.05); /* Prevent edge flicker */
}

/* Add a gradient overlay to ensure left-side text is readable on any image */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(3, 3, 3, 0.8) 0%, rgba(3, 3, 3, 0.4) 60%, transparent 100%);
    pointer-events: none;
}

.hero-content h1 {
    margin-bottom: 2rem;
    line-height: 0.9;
    text-transform: uppercase;
}

.hero-image {
    display: none; /* Removed the old single image */
}

.hero-image:hover {
    transform: translateY(-10px) rotateX(2deg);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: clamp(1rem, 5vw, 3rem);
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-number {
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto;
}

/* Value Prop Section */
.value-prop {
    padding: var(--section-padding) 0;
    background: linear-gradient(to bottom, var(--bg), var(--surface));
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

/* Benefits Section */
.benefits {
    background: var(--surface);
    padding: var(--section-padding) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Portfolio */
.portfolio {
    padding: 6rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-card-link.hidden {
    display: none !important;
}

.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-card-link:hover {
    transform: translateY(-12px);
}

.portfolio-card {
    border-radius: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-card-link:hover .portfolio-card {
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result {
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

/* Process Steps */
.process {
    padding: var(--section-padding) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step:hover {
    border-color: var(--secondary);
    transform: scale(1.02);
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(168, 85, 247, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 2rem;
}

.step h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* FAQ */
.faq {
    padding: 6rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

/* Footer CTA */
.footer-cta {
    padding: 8rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #0a0a0a, #111);
    border: 1px solid var(--primary);
    padding: 6rem 2rem;
    border-radius: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design System */
/* ==========================================================================
   SENIOR RESPONSIVE GRID & UI/UX OPTIMIZATIONS (L'ELITE MOBILE FIRST)
   ========================================================================== */

@media (max-width: 1200px) {
    .container { max-width: 95%; }
    .hero-content h1 { font-size: 4.5rem; }
}

@media (max-width: 1024px) {
    :root { --header-height: 80px; }
    
    .container { padding: 0 2rem; }
    .section-title h2 { font-size: 3rem; }
    
    .value-grid { gap: 3rem; }
    .portfolio-grid { grid-template-columns: repeat(1, 1fr); gap: 2.5rem; }
    .process-steps { gap: 2rem; }
}

@media (max-width: 768px) {
    /* Layout Reset */
    .container { padding: 0 1.5rem; }
    
    /* Sticky Header & Mobile Menu */
    header { 
        width: 95%; 
        top: 15px; 
        padding: 0 1rem;
        justify-content: space-between;
        will-change: transform, top;
    }
    
    section {
        will-change: transform; /* Hint GPU for smooth scrolling */
    }
    
    .nav-wrapper { justify-content: space-between; }
    
    .menu-toggle { display: flex !important; }
    
    #nav-menu {
        display: block; /* Always block, but hidden */
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 3rem 1.5rem;
        border-radius: 28px;
        border: 1px solid var(--border);
        box-shadow: 0 30px 60px rgba(0,0,0,0.8);
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }
    
    #nav-menu.active { 
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }
    
    #nav-menu ul { 
        flex-direction: column; 
        gap: 2rem; 
        text-align: center;
        width: 100%;
    }
    
    #nav-menu ul li a {
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
        display: block;
        padding: 0.5rem;
    }
    
    .nav-cta { display: none; }
    
    /* Hero Scaling */
    .hero { height: auto; min-height: 100vh; padding: 120px 0 80px; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-content h1 { font-size: 3.2rem; letter-spacing: -2px; }
    .hero-content p { font-size: 1.1rem; line-height: 1.5; }
    .hero-ctas { justify-content: center; flex-direction: column; width: 100%; max-width: 320px; margin: 3rem auto 0; }
    
    /* Stacking Sections */
    .value-grid { grid-template-columns: 1fr; gap: 4rem; }
    .value-text { text-align: center; }
    .value-text h2 { font-size: 2.5rem; }
    .value-points { text-align: left; }
    
    .value-visual { 
        width: 100%; 
        max-width: 480px; 
        margin: 0 auto;
        transform: scale(0.95);
    }
    
    .value-visual [style*="position: absolute"] {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 1rem;
        transform: none !important;
    }
    
    .stats-grid { 
        flex-direction: column; 
        gap: 3rem; 
        padding: 4rem 2rem; 
        border-radius: 40px;
    }
    
    .portfolio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .portfolio-img { height: 200px; }
    
    .process-steps { grid-template-columns: 1fr; gap: 2rem; }
    .step { padding: 3rem 2rem; border-radius: 24px; }
    
    .section-title h2 { font-size: 2.6rem; }
    
    .cta-box h2 { font-size: 2.5rem; }
    .footer-nav { flex-direction: column; gap: 1.5rem; align-items: center; }
}

@media (max-width: 480px) {
    header { top: 10px; height: 70px; border-radius: 20px; }
    .logo { font-size: 1.3rem; }
    
    .hero-content h1 { font-size: 2.4rem; line-height: 1.1; }
    .hero-content p { font-size: 1rem; }
    
    .section-title h2 { font-size: 2.2rem; line-height: 1.2; }
    .section-title p { font-size: 1rem; }
    
    /* Touch Target & Button Optimization */
    /* Mobile Button Optimization */
    .btn { 
        width: 100%; 
        padding: 1.25rem 2rem; 
        font-size: 0.95rem; 
        min-height: 60px; /* Enhanced touch target */
        margin-bottom: 0.5rem;
    }
    
    .nav-cta { display: none !important; }
    
    .stat-item h3 { font-size: 2.5rem; }
    .step h3 { font-size: 1.8rem; }
    
    .cta-box { padding: 4rem 1.5rem; border-radius: 32px; }
    .cta-box h2 { font-size: 2rem; line-height: 1.1; }
    
    .logos-grid { gap: 2rem; justify-content: center; }
    .logo-item { font-size: 0.75rem; text-align: center; width: 100%; }
    
    .faq-question { padding: 1.2rem; font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .faq-answer { padding: 0 1.2rem 1.2rem; font-size: 0.9rem; }
    
    /* Optimization for Mobile GPU */
    .bg-glow {
        display: none; /* Disable expensive fixed backgrounds on mobile for max FPS */
    }
    
    .hero-background img {
        filter: brightness(0.4); /* Removed blur for mobile performance */
    }
}

/* Hard reset for horizontal scroll prevention */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

