/* ============================================
   SMS - Speed Mail Services
   Design System & Custom Styles
   TailwindCSS v4 + Custom CSS
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-primary: #1B3A8C;
    --color-primary-light: #2A52BE;
    --color-primary-dark: #0F2460;
    --color-secondary: #E31E24;
    --color-secondary-light: #FF3B41;
    --color-secondary-dark: #B8171C;
    --color-accent-gold: #D4A843;
    --color-accent-gold-light: #F0C85A;
    --color-dark: #0A0F1E;
    --color-dark-surface: #141B2F;
    --color-gray-100: #F7F8FC;
    --color-gray-200: #EAEDF5;
    --color-gray-300: #D1D6E4;
    --color-gray-400: #9BA3B8;
    --color-gray-500: #6B7490;
    --color-gray-600: #4A5268;
    --color-white: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 3px rgba(27, 58, 140, 0.08);
    --shadow-md: 0 4px 16px rgba(27, 58, 140, 0.10);
    --shadow-lg: 0 8px 32px rgba(27, 58, 140, 0.14);
    --shadow-xl: 0 16px 48px rgba(27, 58, 140, 0.18);
    --shadow-glow: 0 0 30px rgba(27, 58, 140, 0.25);
    --shadow-red-glow: 0 0 30px rgba(227, 30, 36, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base Resets ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-600);
    background: var(--color-white);
    overflow-x: hidden;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
    /* Empêche tout débordement horizontal */
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
}

/* Logo sizing */
.navbar img {
    height: 5rem;
    transition: height var(--transition-base);
}

.navbar.scrolled img {
    height: 3.5rem;
}

@media (max-width: 1023px) {
    .navbar img {
        height: 2.5rem;
    }

    /* Hide tracking button on mobile navbar */
    .navbar .btn-primary-sms.ml-4 {
        display: none !important;
    }

    /* Hamburger ajusté pour mobile */
    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-right: 0;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-dark) !important;
}

.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--color-secondary);
    color: white !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
    transition: all var(--transition-base);
}

.mobile-nav-toggle:hover {
    transform: scale(1.05);
    background: var(--color-secondary-dark);
}

.navbar.scrolled .mobile-nav-toggle {
    background: var(--color-primary);
    box-shadow: 0 4px 15px rgba(27, 58, 140, 0.2);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-white);
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--color-white) !important;
    opacity: 0.8;
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-secondary) !important;
    opacity: 1;
}

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

/* Background image */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.02);
    transition: transform 12s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1.06);
}

/* Overlay — dégradé élégant */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(10, 22, 40, 0.94) 0%,
            rgba(10, 22, 40, 0.85) 35%,
            rgba(27, 58, 140, 0.6) 65%,
            rgba(27, 58, 140, 0.35) 100%);
    z-index: 1;
}

/* Conteneur centré */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2.5rem 5rem;
}

.hero-content {
    max-width: 620px;
}

/* Label badge */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 25, 32, 0.15);
    border: 1px solid rgba(196, 25, 32, 0.3);
    color: #ff8a8e;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-label i {
    font-size: 0.7rem;
}

/* Titre */
.hero-content h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-content h1 .hero-highlight {
    color: #E63946;
    position: relative;
}

.hero-content h1 .hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #E63946;
    border-radius: 2px;
    opacity: 0.4;
}

/* Description */
.hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Boutons */
.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #C41920;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 25, 32, 0.25);
}

.hero-btn-primary:hover {
    background: #a01519;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 25, 32, 0.4);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.8rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Stats chiffrées */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.hero-stat-sep {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 3;
    animation: heroScrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll i {
    font-size: 0.8rem;
}

@keyframes heroScrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ====== Navbar fond visible dans le hero ====== */
.navbar {
    background: rgba(10, 22, 40, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none;
    border-bottom: none;
}

/* ---- Hero Tablet & Mobile ---- */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-container {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.82rem;
        padding: 0.7rem 1.4rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    .hero-stat-text {
        font-size: 0.6rem;
    }

    .hero-stat-sep {
        height: 25px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 6.5rem 1.25rem 3.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-label {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-desc {
        font-size: 0.82rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }
}


/* ---------- Tracking Box (Hero) ---------- */
.tracking-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.tracking-box:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-glow);
}

.tracking-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-white);
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    width: 100%;
    transition: all var(--transition-fast);
}

.tracking-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tracking-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.2);
}

/* ---------- Buttons ---------- */
.btn-primary-sms {
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.25);
}

.btn-primary-sms::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary-sms:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.4);
}

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

.btn-secondary-sms {
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary-sms:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn-blue-sms {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(27, 58, 140, 0.3);
}

.btn-blue-sms:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 58, 140, 0.4);
}

/* ---------- Section Title ---------- */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin-top: 0.75rem;
    border-radius: var(--radius-full);
}

.section-title.centered::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--color-gray-500);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ---------- Cards ---------- */
.card-sms {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-sms::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card-sms:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-sms:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    margin-bottom: 1.25rem;
    transition: all var(--transition-base);
}

.card-sms:hover .card-icon {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    transform: scale(1.1) rotate(-5deg);
}

/* ---------- Process Steps ---------- */
.process-line {
    position: absolute;
    top: 48px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--color-gray-200);
    z-index: 0;
}

.process-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(27, 58, 140, 0.3);
    transition: all var(--transition-base);
}

.process-step:hover .step-number {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.3);
}

/* ---------- Stats Counter ---------- */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-white), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: visible;
    min-width: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--color-accent-gold);
    margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-gray-200);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.15;
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    line-height: 1;
}

.testimonial-stars {
    color: var(--color-accent-gold);
}

/* ---------- Carousel / Slider ---------- */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    color: var(--color-dark);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* ---------- CTA / Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(227, 30, 36, 0.15);
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(180deg, var(--color-primary-dark) 0%, #0A1640 100%);
    color: rgba(255, 255, 255, 0.75);
}

.footer-title {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 0.5rem;
    border-radius: var(--radius-full);
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: var(--color-white);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
}

.glass-dark {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

/* ---------- Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Pulse glow */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(227, 30, 36, 0);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Gradient shift */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* Slide in from right for hero elements */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-animate-1 {
    animation: slideInUp 0.8s 0.2s both;
}

.hero-animate-2 {
    animation: slideInUp 0.8s 0.5s both;
}

.hero-animate-3 {
    animation: slideInUp 0.8s 0.8s both;
}

.hero-animate-4 {
    animation: slideInRight 0.8s 1.1s both;
}

/* Number count up - handled by JS */
.counter {
    display: inline-block;
}

/* ---------- Particles / Decorative ---------- */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}

/* ---------- Service Page Specifics ---------- */
.service-detail-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--color-gray-100);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-primary);
}

/* ---------- Partners Auto-scroll ---------- */
.partners-track {
    display: flex;
    gap: 3rem;
    animation: scroll-left 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-dark);
    z-index: 2000;
    transition: right var(--transition-base);
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* ---------- Loading / Skeleton ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 990;
    box-shadow: var(--shadow-md);
    border: none;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
    .back-to-top {
        right: 0.75rem;
        bottom: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

/* ---------- Form Inputs ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(27, 58, 140, 0.15);
}

/* ---------- Contact Card ---------- */
.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ---------- Timeline (About Page) ---------- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 0 4px rgba(27, 58, 140, 0.15);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5rem;
    width: 2px;
    height: calc(100% - 0.5rem);
    background: var(--color-gray-200);
}

.timeline-item:last-child::after {
    display: none;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.badge-primary {
    background: rgba(27, 58, 140, 0.1);
    color: var(--color-primary);
}

.badge-secondary {
    background: rgba(227, 30, 36, 0.1);
    color: var(--color-secondary);
}

.badge-gold {
    background: rgba(212, 168, 67, 0.15);
    color: var(--color-accent-gold);
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---------- Focus / Accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip navigation */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 10000;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

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

/* ---------- Additional Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease both;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease both;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease both;
}

/* ---------- Highlight text global ---------- */
.highlight {
    background: var(--color-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Footer improvements ---------- */
.footer a {
    transition: all var(--transition-fast);
}

.footer a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(27, 58, 140, 0.2);
    color: var(--color-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .process-line {
        display: none;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

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

    .tracking-box {
        padding: 1rem;
    }

    .cta-banner {
        padding: 3rem 1rem;
    }

    /* Fix footer link hover on mobile */
    .footer a:hover {
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .btn-primary-sms,
    .btn-blue-sms,
    .btn-secondary-sms {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .card-sms {
        padding: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.25rem;
        right: 0.75rem;
    }
}

/* ---------- Form Validation States ---------- */
.form-group {
    position: relative;
}

.form-group .field-error {
    display: none;
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.35rem;
    padding-left: 0.25rem;
    align-items: center;
    gap: 0.3rem;
    animation: fieldErrorIn 0.3s ease;
}

.form-group .field-error.visible {
    display: flex;
}

.form-group .field-error i {
    font-size: 0.65rem;
    flex-shrink: 0;
}

@keyframes fieldErrorIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.input-error {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12) !important;
}

.input-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

/* Form status banner */
.form-status {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    align-items: center;
    gap: 0.75rem;
    animation: fieldErrorIn 0.4s ease;
}

.form-status.visible {
    display: flex;
}

.form-status.form-status-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065F46;
}

.form-status.form-status-error {
    background: rgba(227, 30, 36, 0.06);
    border: 1px solid rgba(227, 30, 36, 0.2);
    color: var(--color-secondary-dark);
}

.form-status i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- Print ---------- */
@media print {

    .navbar,
    .mobile-menu,
    .mobile-menu-overlay,
    .back-to-top,
    .cta-banner,
    .preloader,
    .fab-whatsapp {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .card-sms,
    .testimonial-card,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}