/* ============================================
   FUSION AUTOMATIONS - Premium Stylesheet
   ============================================ */

:root {
    --navy: #0a0e1a;
    --navy-light: #0f1628;
    --navy-card: #111827;
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.3);
    --purple: #7c3aed;
    --purple-glow: rgba(124, 58, 237, 0.3);
    --silver: #a8a8b3;
    --border: rgba(255,255,255,0.07);
    --border-cyan: rgba(0,212,255,0.2);
    --glass-bg: rgba(255,255,255,0.03);
    --glass-hover: rgba(255,255,255,0.06);
}

/* ---- GLOBAL RESET & OVERFLOW LOCK ---- */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    /* NOTE: overflow-x:hidden NOT set on html — it would break position:sticky */
    width: 100%;
}

body {
    background-color: var(--navy);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

/* ---- LOADING SCREEN ---- */
#loadingScreen {
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* CSS fallback: auto-hide after 4s even if JS fails to load */
    animation: loaderAutoHide 0.6s ease-out 4s forwards;
}
#loadingScreen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    animation: none !important;
    display: none !important;
}
@keyframes loaderAutoHide {
    0%   { opacity: 1; visibility: visible; pointer-events: auto; }
    100% { opacity: 0; visibility: hidden;  pointer-events: none; }
}
.loading-progress { animation: loadProgress 2s ease-out forwards; }
@keyframes loadProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ---- CONTAINER ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---- NAVIGATION (sticky) ---- */
#navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    max-width: 100%;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    will-change: transform; /* GPU-accelerated sticky */
}
#navbar.scrolled {
    background: rgba(6, 13, 24, 0.98);
    border-bottom-color: rgba(0,212,255,0.12);
    box-shadow: 0 4px 32px rgba(0,0,0,0.6), 0 1px 0 rgba(0,212,255,0.08);
}
/* Shrink navbar slightly on scroll */
#navbar.scrolled .container { padding-top: 6px !important; padding-bottom: 6px !important; }

/* Mobile Menu */
#mobileMenu {
    overflow: hidden;
    width: 100%;
}

/* ---- GLASSMORPHISM CARDS ---- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: var(--glass-hover);
    border-color: var(--border-cyan);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,212,255,0.05);
}

/* ---- GLOW EFFECTS ---- */
.glow-cyan { box-shadow: 0 0 30px var(--cyan-glow); }
.glow-purple { box-shadow: 0 0 30px var(--purple-glow); }
.text-glow { text-shadow: 0 0 20px var(--cyan-glow); }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-warm {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- HERO BACKGROUND SLIDER ---- */
.hero-slides-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    will-change: opacity;
    transform: scale(1.03);
    transition: opacity 1.4s ease-in-out, transform 6s ease-out;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
/* Dark overlay ON TOP of slides */
.hero-slides-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(10,14,26,0.72) 0%,
        rgba(10,14,26,0.55) 40%,
        rgba(10,14,26,0.70) 100%
    );
    pointer-events: none;
}
/* Slider dots navigation */
.hero-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}
.hero-dot.active {
    background: #00d4ff;
    border-color: #00d4ff;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,212,255,0.6);
}

/* ---- HERO SECTION ---- */
#hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* above slide overlay (z:1) but below content (z:10) */
}
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(0,212,255,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e1a 0%, #0f1628 50%, #0a0e1a 100%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Hero title */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* ---- CTA BUTTONS ---- */
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: white;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c3aed, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,212,255,0.3);
}
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
    border: 1px solid rgba(0,212,255,0.4);
    color: #00d4ff;
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background: rgba(0,212,255,0.05);
    white-space: nowrap;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.6);
    transform: translateY(-2px);
}

/* ---- SECTION STYLES ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: #00d4ff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    color: white;
    line-height: 1.2;
    word-break: break-word;
}

/* ---- SERVICE CARDS ---- */
.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(124,58,237,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}
.service-card:hover {
    border-color: rgba(0,212,255,0.3);
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.06);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(0,212,255,0.3), rgba(124,58,237,0.3));
    box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

/* ---- STAT CARDS ---- */
.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: rgba(0,212,255,0.3);
    box-shadow: 0 10px 30px rgba(0,212,255,0.08);
}
.stat-number {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---- BRAND SLIDER ---- */
.brand-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 80px;
}
.brand-slide:hover {
    background: rgba(0,212,255,0.05);
    border-color: rgba(0,212,255,0.2);
}
.brand-slide .brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: #a8a8b3;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    text-align: center;
}
.brand-slide:hover .brand-name { color: #00d4ff; }

/* ---- TESTIMONIAL CARDS ---- */
.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: rgba(0,212,255,0.2);
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 12px;
}

/* ---- PAGE HERO ---- */
.page-hero {
    padding: 110px 0 70px;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0,212,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(124,58,237,0.06) 0%, transparent 60%),
        linear-gradient(180deg, #0a0e1a 0%, #0f1628 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
}
/* Grid lines above slider overlay */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Content always above slides */
.page-hero > .container,
.page-hero > [class*="container"] {
    position: relative;
    z-index: 10;
    width: 100%;
}
.page-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: white;
    word-break: break-word;
}
.breadcrumb-item { color: #a8a8b3; font-size: 0.875rem; }
.breadcrumb-item.active { color: #00d4ff; }
.breadcrumb-sep { color: #4a5568; margin: 0 8px; }

/* ---- CONTACT FORM ---- */
.form-field {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 16px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.form-field::placeholder { color: #4a5568; }
.form-field:focus {
    border-color: rgba(0,212,255,0.4);
    background: rgba(0,212,255,0.04);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-label {
    display: block;
    color: #a8a8b3;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 7px;
}
select.form-field option { background: #0f1628; color: white; }

/* ---- GALLERY ---- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- LIGHTBOX ---- */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 20px;
}
#lightbox.active { display: flex; }
#lightboxImg { max-width: min(90vw, 900px); max-height: 85vh; object-fit: contain; border-radius: 12px; }

/* ---- BLOG CARDS ---- */
.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.blog-card .blog-img { height: 190px; object-fit: cover; width: 100%; }
.blog-tag {
    display: inline-block;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.2);
    color: #00d4ff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- FILTER TABS ---- */
.filter-tab {
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    color: #a8a8b3;
    white-space: nowrap;
}
.filter-tab.active, .filter-tab:hover {
    background: rgba(0,212,255,0.1);
    border-color: rgba(0,212,255,0.3);
    color: #00d4ff;
}

/* ---- SWIPER CUSTOM ---- */
.swiper { overflow: hidden !important; width: 100%; }
.swiper-pagination-bullet { background: rgba(0,212,255,0.3) !important; }
.swiper-pagination-bullet-active { background: #00d4ff !important; }
.swiper-button-next, .swiper-button-prev {
    color: #00d4ff !important;
    background: rgba(0,212,255,0.1);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,0.2);
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; }

/* ---- FLOATING ELEMENTS (hidden on mobile) ---- */
.float-animation { animation: float 6s ease-in-out infinite; }
.float-animation-delayed { animation: float 6s ease-in-out 2s infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ---- GRADIENT BORDER ---- */
.gradient-border { position: relative; }
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ---- COUNTER ---- */
.counter-num { font-family: 'Poppins', sans-serif; font-weight: 800; }

/* ---- CLIENT GRID ---- */
.client-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s ease;
}
.client-card:hover {
    background: rgba(0,212,255,0.05);
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-3px);
}

/* ---- CATEGORY PILLS ---- */
.category-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.category-gov { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.category-edu { background: rgba(0,212,255,0.1); color: #00d4ff; border: 1px solid rgba(0,212,255,0.2); }
.category-corp { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }

/* ---- ACCORDION ---- */
.accordion-btn { transition: color 0.2s ease; width: 100%; text-align: left; }
.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-content.open { max-height: 500px; }

/* ---- PRODUCT CARDS ---- */
.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(0,212,255,0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.product-img-wrap {
    height: 190px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.product-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(0,212,255,0.3);
}

/* ---- JOB CARD ---- */
.job-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}
.job-card:hover {
    border-color: rgba(0,212,255,0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

/* ---- TRUST BADGE ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: #a8a8b3;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.trust-badge:hover {
    background: rgba(0,212,255,0.08);
    border-color: rgba(0,212,255,0.2);
    color: white;
}

/* ---- DIVIDERS ---- */
.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    border-radius: 2px;
    margin: 14px auto 0;
}
.section-divider-left {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    border-radius: 2px;
    margin: 14px 0 0;
}

/* ---- ALERTS ---- */
.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Whatsapp float pulse */
#whatsappFloat { animation: whatsappPulse 3s ease-in-out infinite; }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(37,211,102,0.3); }
    50% { box-shadow: 0 0 40px rgba(37,211,102,0.5); }
}

/* ============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }

    /* Hide decorative floating circles */
    .float-animation,
    .float-animation-delayed { display: none !important; }

    /* Hero stats grid */
    .hero-stats .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }

    /* Page hero */
    .page-hero { padding: 80px 0 40px; }
    .page-hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }

    /* Section title */
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Service cards */
    .service-card { padding: 22px 18px; }
    .service-icon { width: 46px; height: 46px; font-size: 1.1rem; }

    /* Stat cards */
    .stat-card { padding: 18px 12px; }
    .stat-number { font-size: 2rem; }

    /* Testimonials */
    .testimonial-card { padding: 22px 18px; }

    /* Blog cards */
    .blog-card .blog-img { height: 160px; }

    /* Product image */
    .product-img-wrap { height: 160px; }

    /* Job card */
    .job-card { padding: 18px; }

    /* CTA buttons — full width on mobile */
    .hero-ctas { flex-direction: column; gap: 12px !important; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline { width: 100%; justify-content: center; }

    /* Trust badges — wrap properly */
    .trust-badge { font-size: 0.72rem; padding: 5px 10px; }

    /* Footer CTA buttons */
    section .flex.flex-wrap.gap-4 { gap: 10px; }

    /* Breadcrumb */
    .breadcrumb-item { font-size: 0.78rem; }

    /* Section tags */
    .section-tag { font-size: 0.68rem; padding: 4px 12px; }

    /* WhatsApp float — slightly smaller */
    #whatsappFloat { width: 52px; height: 52px; }
    #whatsappFloat i { font-size: 1.4rem; }
    #whatsappFloat span { display: none; }

    /* Back to top */
    #backToTop { bottom: 20px; left: 16px; }

    /* Swiper nav buttons — hide on very small */
    .swiper-button-next, .swiper-button-prev { display: none !important; }

    /* Hero section */
    #hero { min-height: 100vh; min-height: 100svh; padding-top: 80px; }

    /* Filter tabs — scrollable row */
    .flex.flex-wrap.gap-3.justify-center {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 8px !important;
    }
    .flex.flex-wrap.gap-3.justify-center::-webkit-scrollbar { height: 2px; }

    /* Gallery grid */
    .gallery-item { border-radius: 8px; }

    /* Glass card hover — disable transform on mobile touch */
    .glass-card:hover { transform: none; }
    .service-card:hover { transform: none; }
    .product-card:hover { transform: none; }
    .blog-card:hover { transform: none; }
    .job-card:hover { transform: none; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }

    /* Hero text */
    .hero-title { font-size: clamp(2rem, 10vw, 3rem) !important; }
    .hero-title .block:first-child { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; }
    .hero-title .block:last-child { font-size: clamp(1.8rem, 9vw, 2.6rem) !important; }

    /* Page hero */
    .page-hero { padding: 70px 0 36px; }

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

    /* Stat cards — 2 columns tighter */
    .stat-card { padding: 14px 10px; }
    .stat-number { font-size: 1.8rem; }

    /* Brand slide height */
    .brand-slide { height: 68px; padding: 12px 8px; }

    /* Form fields */
    .form-field { padding: 12px 14px; font-size: 0.875rem; }

    /* Buttons */
    .btn-primary { padding: 12px 22px; font-size: 0.85rem; }
    .btn-outline { padding: 12px 22px; font-size: 0.85rem; }

    /* Footer CTA section */
    section .flex.flex-wrap.gap-4 {
        flex-direction: column;
        gap: 10px !important;
    }
    section .flex.flex-wrap.gap-4 a {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    /* Job card */
    .job-card { padding: 16px; }

    /* Accordion */
    .accordion-btn { font-size: 0.875rem; }

    /* Service icon */
    .service-icon { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 14px; }

    /* Section tag */
    .section-tag { font-size: 0.65rem; }

    /* Grid 2-col on tiny screens */
    .grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PREVENT OVERFLOW ON ALL SECTIONS
   ============================================ */
section {
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

header, nav, footer {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

/* Prevent any absolute-positioned elements from causing horizontal overflow */
.page-hero,
#hero,
.relative {
    contain: layout;
}
#hero { contain: none; } /* Hero needs contain:none for sticky children */
.relative { contain: none; } /* Relative wrappers shouldn't be contained */

/* Top bar overflow on mobile */
.top-bar {
    overflow: hidden;
    width: 100%;
}
.top-bar > div {
    overflow: hidden;
}
