@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-color: #050a15;
    --bg-lighter: #0a1226;
    --card-bg: rgba(10, 18, 38, 0.6);
    --card-hover: rgba(15, 28, 60, 0.7);
    --accent-primary: #00d2ff;
    --accent-secondary: #3a7bd5;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 70px;
    --sidebar-width: 240px;
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Décalage vertical du fond au scroll (mis à jour par script.js) */
    --bg-parallax-y: 0px;
}

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

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 3px solid #020617;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Cursor only on desktop */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(5, 10, 21, 0.3), rgba(5, 10, 21, 0.5)), url('bg.png');
    background-size: cover;
    background-position: center calc(50% + var(--bg-parallax-y));
    background-attachment: fixed;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0,102,255,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(59,130,246,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(0,50,150,0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
    body {
        background-position: center;
    }
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; color: #fff; }
a { text-decoration: none; color: inherit; }

@keyframes floatingIcon {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.2; }
    100% { transform: translate(20px, 20px) rotate(10deg); opacity: 0.5; }
}

/* --- Card Glow & Interactions --- */
.service-card, .pricing-card, .portfolio-card {
    position: relative;
    overflow: hidden;
}

.service-card::before, .pricing-card::before, .portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

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

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section-padding { padding: 80px 0; position: relative; z-index: 1; }

/* --- Data Streams Background --- */
.data-streams {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stream {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    width: 300px;
    opacity: 0;
    animation: moveStream linear infinite;
}

@keyframes moveStream {
    0% { transform: translateX(110vw); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateX(-400px); opacity: 0; }
}

.text-blue {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* --- Reading Progress --- */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 2000;
    transition: width 0.1s ease;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0,102,255,0.1);
    color: var(--accent-secondary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0,102,255,0.2);
}

/* --- Custom Cursor (Tech Style) --- */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.custom-cursor::before, .custom-cursor::after {
    content: '';
    position: absolute;
    background: var(--accent-secondary);
    transition: all 0.3s ease;
}

/* Vertical lines */
.custom-cursor::before {
    top: -6px; bottom: -6px;
    left: 50%; width: 1px;
    transform: translateX(-50%);
}

/* Horizontal lines */
.custom-cursor::after {
    left: -6px; right: -6px;
    top: 50%; height: 1px;
    transform: translateY(-50%);
}

.custom-cursor.hovering {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--accent-secondary);
    transform: translate(-50%, -50%) rotate(0deg);
}

.custom-cursor.hovering::before { height: 100%; top: 0; bottom: 0; opacity: 0.5; }
.custom-cursor.hovering::after { width: 100%; left: 0; right: 0; opacity: 0.5; }

/* --- Topbar --- */
header.topbar {
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 35px; left: 0;
    background: rgba(10, 18, 38, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.login-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
    text-decoration: none;
}

.login-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.login-btn i { width: 16px; height: 16px; }

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}
.logo-container:hover { transform: translateX(-50%) scale(1.05); }
.logo-container:hover .logo-text { animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; }

@keyframes glitch {
    0% { transform: translate(0); text-shadow: none; }
    20% { transform: translate(-2px, 2px); text-shadow: 2px 0 var(--accent-primary), -2px 0 #ff00c1; }
    40% { transform: translate(-2px, -2px); text-shadow: 2px 0 #ff00c1, -2px 0 var(--accent-primary); }
    60% { transform: translate(2px, 2px); text-shadow: -2px 0 var(--accent-primary), 2px 0 #ff00c1; }
    80% { transform: translate(2px, -2px); text-shadow: -2px 0 #ff00c1, 2px 0 var(--accent-primary); }
    100% { transform: translate(0); text-shadow: none; }
}

.logo-text { font-size: 1.3rem; font-weight: 700; color: white; position: relative; }

/* --- Noise Overlay --- */
.noise {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Cursor Particles --- */
.cursor-particle {
    position: fixed;
    width: 4px; height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFade 0.6s ease-out forwards;
}

@keyframes particleFade {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
.logo-text span { color: var(--accent-secondary); font-weight: 400; }

/* --- Mobile Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
    margin-left: 1rem;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Sidebar --- */
aside.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--nav-height) - 35px);
    position: fixed;
    top: calc(var(--nav-height) + 35px);
    left: 0;
    background: rgba(10, 18, 38, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 999;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 0.75rem; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(0,102,255,0.08);
    color: white;
    font-weight: 600;
}
.sidebar-nav a.active::before, .sidebar-nav a:hover::before { transform: scaleY(1); }
.sidebar-nav a i {
    width: 20px;
    height: 20px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.sidebar-nav a:hover i, .sidebar-nav a.active i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transform: scale(1.2) rotate(5deg);
}

/* --- Sidebar Bottom Info --- */
.sidebar-bottom {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.sidebar-bottom .cta-mini {
    display: block;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent-primary), #0052cc);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(0,102,255,0.2);
}
.sidebar-bottom .cta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,255,0.35);
}

/* --- Main Layout --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: calc(var(--nav-height) + 35px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--accent-primary), #0052cc);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,102,255,0.25);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,102,255,0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255,255,255,0.03);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0,102,255,0.1) 0%, transparent 70%);
    top: -80px; right: -80px;
    border-radius: 50%;
    filter: blur(50px);
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 25px) scale(1.05); }
    66% { transform: translate(25px, -35px) scale(0.97); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-content h1 .text-blue {
    position: relative;
    display: inline-block;
}
.hero-content h1 .text-blue::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    animation: underlineGrow 1.5s ease forwards;
    transform-origin: left;
}
@keyframes underlineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { width: 100%; position: relative; }
.hero-image::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, rgba(0,102,255,0.1), transparent, rgba(59,130,246,0.08));
    border-radius: 24px;
    z-index: -1;
    filter: blur(25px);
}
.hero-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
}
.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0,102,255,0.25);
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 400; margin-top: 0.25rem; }

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 2rem 1.8rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, rgba(0,102,255,0.3), transparent 50%, rgba(59,130,246,0.2));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,102,255,0.12);
}

.service-icon {
    width: 50px; height: 50px;
    background: rgba(0,102,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent-secondary);
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
    background: rgba(0,102,255,0.18);
    box-shadow: 0 0 15px rgba(0,102,255,0.2);
    transform: scale(1.08);
}
.service-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); font-size: 0.88rem; font-weight: 400; line-height: 1.7; }

/* --- Page Header --- */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 80px; height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.8rem; }
.page-header p { font-size: 1rem; color: var(--text-secondary); font-weight: 400; max-width: 550px; }

/* --- Contact Banner --- */
.contact-banner {
    background: linear-gradient(135deg, rgba(15,34,64,0.8), rgba(10,25,48,0.9));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.contact-banner::before {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,102,255,0.12), transparent);
    top: -80px; right: -40px;
    border-radius: 50%;
    filter: blur(35px);
}
.contact-text { position: relative; z-index: 1; }
.contact-text h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-text p { color: var(--text-secondary); font-size: 0.95rem; font-weight: 400; }
.contact-action { position: relative; z-index: 1; }

/* --- Particles --- */
.particle {
    position: fixed;
    width: 2px; height: 2px;
    background: rgba(59,130,246,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-children > * {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

.glow-text {
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0,102,255,0.15);
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 220px; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    aside.sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    aside.sidebar.open { transform: translateX(0); }

    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

    .main-content { margin-left: 0 !important; }

    .hero { min-height: auto; padding: 2rem 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-btns { justify-content: center; }
    .hero-image { max-width: 400px; margin: 0 auto; }

    .page-header h1 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { padding: 1rem; }
    .stat-number { font-size: 1.5rem; }

    .contact-banner { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2rem; }
    .contact-text h2 { font-size: 1.5rem; }

    .promo-banner {
        padding: 0.4rem;
    }
    .promo-text {
        font-size: 0.75rem;
    }

    /* --- Fixed Header Overlaps --- */
    header.topbar {
        justify-content: space-between;
        padding: 0 1rem;
        top: 45px; /* Adjust top spacing for mobile banner */
    }

    .hamburger {
        order: -1; /* Move hamburger to the very left */
        margin-left: 0;
        margin-right: auto;
    }

    .logo-container {
        position: absolute; /* Keep it absolute so it's strictly centered */
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .login-btn {
        padding: 0.35rem;
        margin-left: 0;
    }

    .login-btn i {
        width: 14px;
        height: 14px;
    }

    .login-btn span {
        display: none; /* Hide text on mobile */
    }

    /* Hide custom cursor on touch */
    .custom-cursor, .cursor-trail { display: none !important; }
}

/* --- Language Switcher (In Header) --- */
.lang-switcher {
    display: flex;
    gap: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    margin-right: 1.5rem;
}

.lang-btn {
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.lang-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- Hero Image Slideshow --- */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 1rem 1.5rem;
    background: rgba(10, 25, 48, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateX(0); }
.toast i { width: 20px; height: 20px; }
.toast-success { border-left: 4px solid #10b981; }
.toast-success i { color: #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-error i { color: #ef4444; }
.toast-info { border-left: 4px solid var(--accent-primary); }
.toast-info i { color: var(--accent-primary); }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-warning i { color: #f59e0b; }

/* --- Promo Banner --- */
.promo-banner {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.1));
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    padding: 0.6rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2000;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}
.promo-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    animation: promoPulse 2s ease-in-out infinite;
}
.promo-code {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    background: rgba(0, 210, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid rgba(0, 210, 255, 0.3);
}
.promo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: dotFlash 1s ease-in-out infinite;
}
@keyframes promoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); text-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }
}
@keyframes dotFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}
/* --- Language Switcher --- */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    background: rgba(10, 25, 48, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    display: flex;
    gap: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.lang-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 768px) {
    .lang-switcher {
        top: auto;
        bottom: 20px;
        left: 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-grid ul {
        align-items: center;
    }
    .footer-grid p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-grid .logo-text {
        justify-content: center;
        display: flex;
    }
}
