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

:root {
    --primary: #00d9ff;
    --secondary: #0f172a;
    --accent: #00ff9a;
    --success: #00ff88;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --bg-dark: #0a0e27;
    --bg-card: #0f1729;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a2e 100%);
    color: var(--text-primary);
    overflow-x: hidden; /* Ensure no horizontal scroll */
    line-height: 1.6;
}

/* ===== CUSTOM CURSOR ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 15% 20%, rgba(0, 217, 255, 0.25), transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(0, 255, 154, 0.2), transparent 50%);
    filter: blur(10px);
}

.laser-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(0, 217, 255, 0.18), transparent 65%);
}

.laser-grid::before,
.laser-grid::after {
    content: '';
    position: absolute;
    inset: 0;
}

.laser-grid::before {
    background-image:
        linear-gradient(120deg, rgba(0, 217, 255, 0.45) 1px, transparent 1px),
        linear-gradient(-120deg, rgba(0, 255, 154, 0.35) 1px, transparent 1px);
    background-size: 140px 140px, 160px 160px;
    animation: laser-shift 16s linear infinite;
    opacity: 0.6;
    mix-blend-mode: screen;
}

.laser-grid::after {
    background: radial-gradient(ellipse 120% 100% at 50% 60%, rgba(0, 255, 154, 0.08) 0%, rgba(0, 255, 154, 0.05) 30%, rgba(0, 255, 154, 0.03) 50%, rgba(0, 255, 154, 0.01) 70%, transparent 90%);
    animation: drift 18s linear infinite;
    mix-blend-mode: screen;
    filter: blur(30px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
}

@keyframes pulse-border {
    0% { border-color: rgba(0, 217, 255, 0.2); }
    50% { border-color: rgba(0, 217, 255, 0.8); }
    100% { border-color: rgba(0, 217, 255, 0.2); }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes code-glow {
    0%, 100% { color: var(--primary); }
    50% { color: var(--accent); }
}

@keyframes drift {
    from { transform: translateY(100px); }
    to { transform: translateY(-100px); }
}

@keyframes laser-shift {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 200px -200px, -150px 150px, 0 0; }
}

@keyframes slide-laser {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    padding: 0.75rem 1rem;
    animation: slide-in 0.6s ease-out;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-sizing: border-box;
}

.header-content {
    /* Resetting these for mobile specific handling below */
    width: auto; /* Let it shrink/grow as needed by flex children */
    max-width: none; /* No max-width */
    margin: 0;
    padding: 0;
    display: contents; /* Make children direct children of header for flexbox */
    flex-grow: 1; /* Allow to grow to take space */
    box-sizing: border-box;
    gap: 0; /* No gap */
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo a {
    display: inline-flex;
    height: 100%;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

nav a {
    color: var(--text-secondary);
    margin: 0 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 60%;
    margin: 0 auto;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.menu-toggle:hover {
    transform: rotate(3deg);
    border-color: var(--accent);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 21, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

.mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100%;
    padding: 3rem 2.5rem;
    background: rgba(13, 20, 40, 0.96);
    border-left: 1px solid rgba(0, 217, 255, 0.2);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    box-shadow: -40px 0 80px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.mobile-nav-overlay.visible .mobile-nav {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.mobile-nav .cta-button {
    width: 100%;
    margin-top: 1.5rem;
}

.mobile-nav-kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.menu-close span {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
}

.menu-close span:first-child {
    transform: translateY(-50%) rotate(45deg);
}

.menu-close span:last-child {
    transform: translateY(-50%) rotate(-45deg);
}

.desktop-only {
    display: inline-flex;
}
.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: visible;
    margin-top: 10px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 154, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.network-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
    opacity: 0.75;
}

.network-background canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 50px;
    animation: fade-in-up 0.8s ease-out;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h1 .sun-emoji {
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8))
            drop-shadow(0 0 20px rgba(255, 200, 0, 0.6))
            drop-shadow(0 0 30px rgba(255, 200, 0, 0.4))
            drop-shadow(0 0 40px rgba(255, 200, 0, 0.3));
    animation: sun-glow 3s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8))
                drop-shadow(0 0 20px rgba(255, 200, 0, 0.6))
                drop-shadow(0 0 30px rgba(255, 200, 0, 0.4))
                drop-shadow(0 0 40px rgba(255, 200, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 220, 0, 1))
                drop-shadow(0 0 25px rgba(255, 220, 0, 0.8))
                drop-shadow(0 0 35px rgba(255, 220, 0, 0.6))
                drop-shadow(0 0 50px rgba(255, 220, 0, 0.4));
    }
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

.hero-visual {
    perspective: 1000px;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.code-card {
    background: var(--bg-card);
    border: 2px solid;
    border-color: var(--primary);
    border-radius: 15px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: glow 3s ease-in-out infinite, float 4s ease-in-out infinite;
    transform: rotateY(5deg) rotateX(-5deg);
}

.code-card code {
    color: var(--primary);
    animation: code-glow 4s ease-in-out infinite;
}

/* ===== INTRO SECTION ===== */
.intro-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.intro-content {
    background: rgba(15, 23, 41, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 3.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(0, 217, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.intro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    animation: slide-in 1.5s ease-out;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.intro-text strong {
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* ===== INTERNATIONAL SECTION ===== */
.international-section {
    max-width: 1200px;
    margin: 1.5rem auto 0.5rem;
    padding: 4rem 2rem;
    position: relative;
    animation: fade-in-up 0.8s ease-out;
}

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

.section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease-out;
}

.international-card {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(0, 217, 255, 0.02));
    overflow: hidden;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.international-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    animation: slide-shine 3s infinite;
    z-index: 1;
}

.international-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.5) 0%, rgba(255, 0, 110, 0.2) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: pulse-border 3s infinite;
    z-index: 1;
}

@keyframes slide-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.international-card h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.international-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    animation: fade-in-up 0.8s ease-out 0.4s both;
}

.dots-decoration {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.5s both;
}

.dot {
    display: inline-block;
    font-size: 1rem;
    animation: dot-pulse 2s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }
.dot-4 { animation-delay: 0.6s; }
.dot-5 { animation-delay: 0.8s; }

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

.international-card:hover {
    border-color: rgba(0, 217, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 217, 255, 0.04));
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.2), inset 0 0 40px rgba(0, 217, 255, 0.05);
}

/* ===== FEATURES SECTION ===== */
.features {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: fade-in-up 0.8s ease-out;
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 217, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fade-in-up 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    min-height: 60px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== SOLUTIONS SECTION ===== */
.solutions {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.solution-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 14px;
    padding: 2.2rem;
    margin-bottom: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    animation: fade-in-up 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.solution-item:nth-child(1) { animation-delay: 0.1s; }
.solution-item:nth-child(2) { animation-delay: 0.2s; }
.solution-item:nth-child(3) { animation-delay: 0.3s; }
.solution-item:nth-child(4) { animation-delay: 0.4s; }

.solution-item:hover {
    border-color: rgba(0, 255, 154, 0.6);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 40px rgba(0, 217, 255, 0.15);
}

.solution-item::before,
.solution-item::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-item::before {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 154, 0.05));
}

.solution-item::after {
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 255, 154, 0.25), transparent 55%);
    mix-blend-mode: screen;
}

.solution-item:hover::before,
.solution-item:hover::after {
    opacity: 1;
}

.solution-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.solution-item p {
    color: var(--text-secondary);
}

/* ===== TECH STACK ===== */
.tech-stack {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(0, 255, 154, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(0, 217, 255, 0.1);
    animation: fade-in-up 0.8s ease-out;
}

.tech-stack h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--bg-card);
    border: 2px solid rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.tech-item:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 154, 0.3);
}

.tech-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    max-width: 1000px;
    margin: 6rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 154, 0.1));
    border-radius: 20px;
    border: 2px solid var(--primary);
    text-align: center;
    animation: fade-in-up 0.8s ease-out;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ===== CONTACT MODAL ===== */
.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 21, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    /* Masquer la scrollbar tout en gardant le scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.modal-overlay::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    width: calc(100% - 2rem);
    max-width: 600px;
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    background: var(--bg-card);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    /* Masquer la scrollbar tout en gardant le scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE et Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal-overlay.visible .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 255, 154, 0.15), transparent 50%);
    opacity: 0.8;
}

.modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom left, rgba(0, 217, 255, 0.15), transparent 50%);
    opacity: 0.6;
}

.modal-inner {
    position: relative;
    z-index: 2;
}

.modal-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.modal-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid rgba(0, 217, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.close-button:hover {
    background: rgba(0, 217, 255, 0.2);
    color: var(--secondary);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 154, 0.2);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-helper {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.form-meta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-wrapper.is-hidden {
    display: none;
}

.form-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--text-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.form-status[data-state] {
    display: inline-flex;
}

.form-status::before {
    content: attr(data-icon);
    font-size: 1rem;
}

.form-status[data-state="pending"] {
    background: rgba(0, 217, 255, 0.12);
    border-color: rgba(0, 217, 255, 0.4);
    color: var(--primary);
}

.form-status[data-state="success"] {
    background: rgba(0, 255, 154, 0.12);
    border-color: rgba(0, 255, 154, 0.5);
    color: var(--accent);
}

.form-status[data-state="error"] {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff8c8c;
}

.contact-form.is-submitting button[type="submit"] {
    opacity: 0.6;
    pointer-events: none;
}

.contact-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(0, 255, 154, 0.3);
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: fade-in-up 0.6s ease;
}

.contact-success.visible {
    display: flex;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 154, 0.8), rgba(0, 217, 255, 0.4));
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #04101f;
    box-shadow: 0 0 30px rgba(0, 255, 154, 0.4);
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    .about-card-full-width {
        grid-column: 1 / -1;
    }
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-card h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.about-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.about-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 154, 0.4);
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(0, 255, 154, 0.05);
}

.about-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

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

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.contact-chip a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.chip-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== TECH MODAL ===== */
.tech-modal .modal-inner {
    padding: 0;
}

.monitor {
    background: #040b1f;
    border-radius: 18px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 217, 255, 0.1);
}

.monitor-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.15), rgba(0, 255, 154, 0.1));
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.monitor-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 154, 0.8);
}

.monitor-screen {
    padding: 1.8rem;
    min-height: 220px;
    background: radial-gradient(circle at top, rgba(0, 255, 154, 0.08), transparent 60%);
}

.monitor-screen pre {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 1rem;
    white-space: pre-wrap;
    line-height: 1.6;
    min-height: 160px;
}

/* ===== SOLUTION MODAL ===== */
.solution-modal .modal-inner {
    padding: 0;
}

.solution-modal-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.solution-icon-large {
    font-size: 5rem;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 154, 0.3), rgba(0, 217, 255, 0.2));
    border-radius: 50%;
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 40px rgba(0, 255, 154, 0.3), inset 0 0 30px rgba(0, 217, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

.solution-modal-header .modal-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.solution-modal-header h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solution-modal-content {
    padding: 2rem 2.5rem 2.5rem;
}

.solution-modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    text-align: justify;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(255, 0, 110, 0.05) 50%, var(--bg-dark) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 2px solid var(--primary);
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    animation: slide-laser 3s infinite;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: radial-gradient(ellipse 200px 1px at center, var(--primary), transparent);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

footer .footer-section h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

footer .footer-section:nth-child(1) h3 { animation-delay: 0.1s; }
footer .footer-section:nth-child(2) h3 { animation-delay: 0.2s; }
footer .footer-section:nth-child(3) h3 { animation-delay: 0.3s; }

footer .footer-section ul {
    list-style: none;
    padding: 0;
}

footer .footer-section li {
    margin: 0.8rem 0;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

footer .footer-section:nth-child(1) li:nth-child(1) { animation-delay: 0.15s; }
footer .footer-section:nth-child(1) li:nth-child(2) { animation-delay: 0.25s; }
footer .footer-section:nth-child(2) li:nth-child(1) { animation-delay: 0.25s; }
footer .footer-section:nth-child(2) li:nth-child(2) { animation-delay: 0.35s; }
footer .footer-section:nth-child(3) li:nth-child(1) { animation-delay: 0.35s; }
footer .footer-section:nth-child(3) li:nth-child(2) { animation-delay: 0.45s; }

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

footer a:hover::before {
    width: 100%;
}

footer a:hover {
    color: var(--primary);
}

footer .footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.5s forwards;
}

footer .footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer .footer-bottom p:first-child {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
}

footer .footer-bottom p:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

footer .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    background: transparent;
    cursor: pointer;
    position: relative;
}

footer .social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

footer .social-link:hover::before {
    opacity: 0.2;
}

footer .social-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

/* Karaoké effect styles */
.solution-modal-content .karaoke-word {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    color: var(--text-secondary); /* Default color */
}

.solution-modal-content .karaoke-word.highlight {
    color: var(--primary); /* Highlight color */
    text-shadow: 0 0 15px var(--primary), 0 0 25px rgba(0, 217, 255, 0.4); /* Stronger glow */
}

.solution-modal-content .word-spacer {
    color: var(--text-secondary); /* Ensure spaces maintain text color */
}

footer p {
    margin: 0.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%; 
        overflow-x: hidden;
        box-sizing: border-box;
    }

    header {
        padding: 0.6rem 1rem; 
        width: 100%;
        box-sizing: border-box;
        display: flex; /* Explicitly ensure flex on header */
        justify-content: space-between; /* Space out children */
        align-items: center; /* Vertically align */
    }

    .header-content {
        /* These styles are now handled by the direct children of header */
        display: contents; /* This will make .logo and .menu-toggle direct flex items of header */
    }

    .logo {
        flex-grow: 0;
        flex-shrink: 0;
        margin-right: 0; /* Remove any margin */
    }
    nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto; 
        flex-shrink: 0;
        position: static; 
        transform: none; 
    }

    .desktop-only {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid,
    .solutions,
    .tech-stack,
    .case-studies,
    .cta-section {
        padding: 2rem 1rem; /* Added top and bottom padding for cta-section */
    }

    header {
        padding: 0.6rem 1rem; /* Changed from 0.6rem 0 to 0.6rem 1rem to add horizontal padding */
    }
}

@media (max-width: 640px) {
    footer .footer-content {
        display: none;
    }

    footer {
        padding: 3rem 1.5rem;
    }

    footer .footer-bottom {
        margin-top: 0;
        border-top: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-study-card {
        padding: 2rem;
    }

    .case-study-icon {
        font-size: 3.5rem;
    }

    .case-study-card h3 {
        font-size: 1.3rem;
    }

    .metric-item {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text {
        order: 1;
    }

    .solution-item {
        padding: 1.8rem;
    }

    .intro-section {
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    .intro-content {
        padding: 2rem 2rem;
    }

    .intro-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .international-section {
        margin: 1rem auto 0.5rem;
        padding: 2rem 1.5rem;
    }

    .international-card {
        padding: 2rem 1.5rem;
    }

    .international-card h2 {
        font-size: 1.6rem;
    }

    .international-card p {
        font-size: 1rem;
    }

    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .cta-section {
        margin: 4rem auto;
    }

    .modal-content {
        padding: 1.2rem 0.9rem; /* Reduced padding for mobile modal */
        border-radius: 16px;
        width: min(420px, calc(100vw - 1rem)); /* Ensure modal fits within viewport */
        margin: 0.5rem; /* Add some margin to prevent it from touching the edges */
        max-height: calc(100vh - 1rem); /* Limit height to viewport height minus margin */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .modal-header {
        margin-bottom: 1rem; /* Reduced margin for modal header */
    }

    .modal-header p {
        margin-bottom: 1rem; /* Reduced margin for modal header paragraph */
    }

    .contact-form {
        gap: 0.8rem; /* Reduced gap in form */
    }

    .form-row {
        gap: 0.6rem; /* Reduced gap in form rows */
    }

    .form-field label {
        font-size: 0.85rem; /* Slightly reduced font size for labels */
    }

    .form-field input,
    .form-field textarea {
        padding: 0.6rem 0.8rem; /* Reduced padding for input fields */
    }
}

@media (max-width: 520px) {
    .hero-text h1 {
        font-size: 2.1rem;
        margin-top: 20px;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .modal-content {
        padding: 0.8rem 0.6rem; /* Even more reduced padding for very small screens */
    }

    .modal-header h3 {
        font-size: 1.4rem; /* Adjusted font size for very small screens */
    }

    .solution-icon-large {
        font-size: 4rem;
        width: 100px;
        height: 100px;
    }

    .solution-modal-header h3 {
        font-size: 1.6rem;
    }

    .solution-modal-content {
        padding: 1.5rem 1.5rem 2rem;
    }

    .solution-modal-content p {
        font-size: 1rem;
        text-align: left;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-visible {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* ===== CURSOR TRAIL ===== */
#cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permet d'interagir avec les éléments en dessous */
    z-index: 9999; /* S'assure que les pixels sont au-dessus de tout */
}

.pixel {
    position: absolute;
    width: 5px; /* Taille du pixel */
    height: 5px;
    background-color: rgba(0, 217, 255, 0.4); /* Plus translucide */
    border-radius: 50%; /* Pour faire des cercles, utilisez 0 pour des carrés */
    transform: translate(-50%, -50%); /* Centre le pixel sur la position de la souris */
    animation: fadeOut 1s forwards; /* Animation d'évanouissement plus lente */
    opacity: 0; /* Commence invisible pour éviter un flash */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8); /* Commence un peu plus petit */
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2); /* Se dilate avant de disparaître */
    }
}

.pixel.idle-pixel {
    animation: idleFadeOut 0.8s forwards; /* Animation d'évanouissement plus lente pour les pixels inactifs */
    width: 4px;
    height: 4px;
}

@keyframes idleFadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6); /* Commence plus petit */
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1); /* Se dilate avant de disparaître */
    }
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.case-study-card {
    background: linear-gradient(135deg, rgba(15, 23, 41, 0.95), rgba(10, 14, 39, 0.95));
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 0 rgba(0, 217, 255, 0);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.6s ease-out forwards;
}

.case-study-card:nth-child(1) {
    animation-delay: 0.1s;
}

.case-study-card:nth-child(2) {
    animation-delay: 0.2s;
}

.case-study-card:nth-child(3) {
    animation-delay: 0.3s;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 217, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(0, 255, 154, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.case-study-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(12px);
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-card:hover::after {
    opacity: 0.3;
}

.case-study-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 217, 255, 0.3),
        0 0 80px rgba(0, 255, 154, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.case-study-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.case-study-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 217, 255, 0.2);
}

.case-study-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.5));
    transition: all 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.case-study-card:hover .case-study-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 255, 154, 0.8));
}

.case-study-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.case-study-card:hover h3 {
    text-shadow: 0 0 20px rgba(0, 255, 154, 0.5);
}

.case-study-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.case-study-card:hover p {
    color: var(--text-primary);
}

.case-study-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.metric-item {
    background: linear-gradient(135deg, 
        rgba(0, 255, 154, 0.15), 
        rgba(0, 217, 255, 0.15));
    border: 1px solid rgba(0, 255, 154, 0.4);
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 255, 154, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 120px;
}

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

.metric-item:hover::before {
    left: 100%;
}

.metric-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 
        0 6px 20px rgba(0, 255, 154, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 255, 154, 0.25), 
        rgba(0, 217, 255, 0.25));
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 154, 0.5);
    text-align: center;
    width: 100%;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-align: center;
    width: 100%;
}

.metric-item:hover .metric-label {
    color: var(--text-primary);
    opacity: 1;
}

.case-study-card.coming-soon .metric-item {
    background: rgba(128, 128, 128, 0.1);
    border-color: rgba(128, 128, 128, 0.3);
    box-shadow: none;
}

.case-study-card.coming-soon .metric-value {
    color: var(--text-secondary);
    text-shadow: none;
}

.case-study-card.coming-soon .metric-item:hover {
    transform: none;
    box-shadow: none;
}

/* ===== FORM BUTTON ALIGNMENT ===== */
.contact-form .btn-primary {
    justify-self: flex-start;
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 420px;
    height: 600px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 23, 41, 0.98) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    animation: chat-slide-in 0.4s ease-out;
}

@keyframes chat-slide-in {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 110, 0.05));
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(10px);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.chat-icon {
    font-size: 1.5rem;
    animation: chat-bounce 2s ease-in-out infinite;
}

@keyframes chat-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 217, 255, 0.02) 100%);
}

.message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: message-pop 0.3s ease-out;
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message.user-message {
    align-items: flex-end;
}

.message.ai-message {
    align-items: flex-start;
}

.message-content {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    border-radius: 12px 4px 12px 12px;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.ai-message .message-content {
    background: rgba(0, 217, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px 12px 12px 12px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 0.5rem;
}

.message.loading .message-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.loading .message-content::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.chat-input-area {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.02) 0%, transparent 100%);
    border-radius: 0 0 18px 18px;
}

.chat-input {
    flex: 1;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.chat-send:active {
    transform: translateY(0);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== CHAT TOGGLE BUTTON ===== */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    animation: float 4s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6);
}

.chat-toggle.hidden {
    display: none;
}

.chat-bubble {
    display: inline-block;
}

.chat-unread {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Scrollbar personnalisée */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.6);
}

/* Bouton de contact dans le chat */
.contact-button-message {
    margin-top: 0.5rem;
}

.contact-button-content {
    max-width: 85%;
    padding: 0;
    background: transparent;
    border: none;
}

.chat-contact-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    font-family: inherit;
}

.chat-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
}

.chat-contact-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100% - 2rem);
        height: 75vh;
        max-height: 600px;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 23, 41, 0.98) 100%);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        border: 2px solid var(--primary);
    }

    .chat-header {
        padding: 1rem 1.2rem;
        border-radius: 18px 18px 0 0;
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(255, 0, 110, 0.1));
    }

    .chat-title {
        font-size: 0.95rem;
    }

    .chat-icon {
        font-size: 1.3rem;
    }

    .chat-close {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    .chat-messages {
        padding: 1rem;
        background: rgba(10, 14, 39, 0.95);
    }

    .message-content {
        max-width: 90%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .chat-input-area {
        padding: 1rem;
        background: rgba(10, 14, 39, 0.95);
    }

    .chat-input {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .chat-send {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .chat-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .chat-unread {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        top: -3px;
        right: -3px;
    }

    .chat-contact-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    display: flex !important;
    gap: 0.5rem;
    z-index: 1001 !important;
    background: rgba(10, 14, 39, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.language-switcher:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.3);
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.lang-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn .flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    flex-shrink: 0;
}

.lang-btn .flag svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-btn .lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sélecteur de langue dans le menu mobile */
.mobile-lang-switcher {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.mobile-lang-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mobile-lang-container .lang-btn {
    flex: 1;
    max-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.mobile-lang-container .lang-btn .flag {
    width: 24px;
    height: 18px;
}

@media (max-width: 768px) {
    /* Masquer le sélecteur fixe sur mobile */
    .language-switcher {
        display: none !important;
    }
}

/* Le sélecteur mobile est déjà géré dans .mobile-lang-container */

