/* ===== Base ===== */
html {
    zoom: 1;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 72px;
}
#services {
    scroll-margin-top: 100px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #7daaef; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4d8fe8; }

/* ===== TinyFix Logo ===== */
.nav-logo-white {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}
.nav-logo-color {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}
.nav-scrolled .nav-logo-white {
    opacity: 0;
}
.nav-scrolled .nav-logo-color {
    opacity: 1;
}

/* ===== Glass navbar ===== */
.glass {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    background: #0a1628;
}
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    will-change: opacity, transform;
    transition: none;
}
/* Incoming slide: fades in crisp, slow zoom throughout its display */
.hero-slide.active {
    opacity: 1;
    -webkit-animation: heroEnter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
                       heroKenBurns 5s ease-out forwards;
    animation: heroEnter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               heroKenBurns 5s ease-out forwards;
}
/* Outgoing slide: zooms in + blurs away like a film dissolve */
.hero-slide.exiting {
    -webkit-animation: heroExit 1.5s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
    animation: heroExit 1.5s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}
@-webkit-keyframes heroEnter {
    0%   { opacity: 0; -webkit-transform: scale(1.05); transform: scale(1.05); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes heroEnter {
    0%   { opacity: 0; -webkit-transform: scale(1.05); transform: scale(1.05); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@-webkit-keyframes heroKenBurns {
    0%   { -webkit-transform: scale(1); transform: scale(1); }
    100% { -webkit-transform: scale(1.04); transform: scale(1.04); }
}
@keyframes heroKenBurns {
    0%   { -webkit-transform: scale(1); transform: scale(1); }
    100% { -webkit-transform: scale(1.04); transform: scale(1.04); }
}
@-webkit-keyframes heroExit {
    0%   { opacity: 1; -webkit-transform: scale(1.04); transform: scale(1.04); }
    100% { opacity: 0; -webkit-transform: scale(1.12); transform: scale(1.12); }
}
@keyframes heroExit {
    0%   { opacity: 1; -webkit-transform: scale(1.04); transform: scale(1.04); }
    100% { opacity: 0; -webkit-transform: scale(1.12); transform: scale(1.12); }
}
/* Progress bar under hero */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    z-index: 10;
    width: 0%;
    border-radius: 0 2px 2px 0;
    transition: none;
}
.hero-progress.running {
    transition: width linear;
    width: 100%;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(8,12,28,0.82) 0%, rgba(8,12,28,0.55) 45%, rgba(8,12,28,0.15) 75%, transparent 100%),
        linear-gradient(to top, rgba(8,12,28,0.4) 0%, transparent 40%);
    z-index: 1;
}
@media (max-width: 767px) {
    .hero-slide {
        object-position: 70% center;
        will-change: opacity;
    }
    .hero-slide.active {
        -webkit-animation: heroEnterMobile 1s ease forwards;
        animation: heroEnterMobile 1s ease forwards;
    }
    .hero-slide.exiting {
        -webkit-animation: heroExitMobile 1s ease forwards;
        animation: heroExitMobile 1s ease forwards;
    }
    @-webkit-keyframes heroEnterMobile {
        0%   { opacity: 0; }
        100% { opacity: 1; }
    }
    @keyframes heroEnterMobile {
        0%   { opacity: 0; }
        100% { opacity: 1; }
    }
    @-webkit-keyframes heroExitMobile {
        0%   { opacity: 1; }
        100% { opacity: 0; }
    }
    @keyframes heroExitMobile {
        0%   { opacity: 1; }
        100% { opacity: 0; }
    }
    .hero-section::before {
        background:
            linear-gradient(to right, rgba(8,12,28,0.92) 0%, rgba(8,12,28,0.7) 60%, rgba(8,12,28,0.4) 100%),
            linear-gradient(to top, rgba(8,12,28,0.5) 0%, transparent 50%);
    }
}

/* ===== Stats ===== */
.stats-bg {
    background: linear-gradient(135deg, #1e4a8f 0%, #4d8fe8 50%, #3a78d4 100%);
}

/* ===== Card hover ===== */
.card-glow {
    transition: all 0.3s ease;
}
.card-glow:hover {
    box-shadow: 0 20px 50px -12px rgba(37, 99, 235, 0.2);
    transform: translateY(-6px);
}

/* ===== Service item hover ===== */
.service-item {
    transition: all 0.3s ease;
}
.service-item:hover {
    transform: translateY(-4px);
}

/* ===== Form focus with glow pulse ===== */
.form-input:focus {
    outline: none;
    border-color: #4d8fe8;
    animation: focusPulse 2s ease-in-out infinite;
}
@keyframes focusPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(77, 143, 232, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(77, 143, 232, 0.18); }
}

/* ===== Toast ===== */
.toast-notification {
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast-notification.show { transform: translateX(0); }

/* ===== Pulse ring ===== */
.pulse-ring {
    animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    80%, 100% { transform: scale(2); opacity: 0; }
}

/* ===== Mobile nav ===== */
.mobile-nav {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.active { transform: translateX(0); }

.mobile-backdrop {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Nav active (on hero - white underline) ===== */
.nav-active { color: #ffffff !important; }
.nav-active::after {
    width: 100% !important;
    background: #ffffff !important;
}

/* Mobile nav active link - blue on white background */
#mobileNav .nav-active {
    color: #3a78d4 !important;
    background: #eef4fd;
}

/* ===== Nav scrolled state ===== */
.nav-scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-scrolled .nav-brand { color: #111827 !important; }
.nav-scrolled .nav-tagline { color: #9ca3af !important; }
.nav-scrolled .nav-icon { color: #4d8fe8 !important; }
.nav-scrolled .nav-link { color: #374151 !important; transition: color 0.3s ease; }
.nav-scrolled .nav-link:hover { color: #4d8fe8 !important; }
.nav-scrolled .nav-link::after { background: #4d8fe8 !important; }
.nav-scrolled .nav-active { color: #4d8fe8 !important; }
.nav-scrolled .nav-active::after { background: #4d8fe8 !important; }
.nav-scrolled .nav-phone { color: #374151 !important; transition: color 0.3s ease; }
.nav-scrolled .nav-phone:hover { color: #4d8fe8 !important; }
.nav-scrolled .nav-divider { background: #e5e7eb !important; }
.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 { background-color: #374151 !important; transition: background-color 0.3s ease; }

/* Get Quote button */
.nav-btn-quote,
.nav-scrolled .nav-btn-quote,
.nav-btn-quote.nav-active,
.nav-scrolled .nav-btn-quote.nav-active { color: #ffffff !important; }
.nav-btn-quote::after,
.nav-btn-quote.nav-active::after { display: none !important; }

/* ===== FAQ accordion ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}
.faq-answer.open { max-height: 300px; opacity: 1; }
.faq-chevron { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-chevron.open { transform: rotate(180deg); }

/* FAQ Modal animations */
.faq-modal-backdrop {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.faq-modal-backdrop.active { opacity: 1; }
.faq-modal-dialog {
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-modal-dialog.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}
.faq-item-anim {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.faq-item-anim.visible {
    opacity: 1;
    transform: translateY(0);
}
.faq-card.active-card {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    box-shadow: 0 4px 20px -4px rgba(37, 99, 235, 0.15);
}
.faq-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.faq-no-results {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}
.faq-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
}
.faq-card:hover {
    box-shadow: 0 8px 30px -8px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    border-color: #dbeafe;
}

/* ===== Dashed connector ===== */
.dashed-connector {
    height: 2px;
    background-image: repeating-linear-gradient(90deg, #7daaef 0, #7daaef 10px, transparent 10px, transparent 20px);
    background-size: 200% 100%;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.dashed-connector.connector-visible {
    transform: scaleX(1);
    animation: dashMove 2s linear infinite;
}
@keyframes dashMove {
    0% { background-position: 0 0; }
    100% { background-position: -40px 0; }
}

/* ===== Back to top ===== */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #4d8fe8, #7daaef, #4d8fe8);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Hero gradient text shimmer ===== */
.gradient-text {
    background: linear-gradient(90deg, #5d9beb, #adc9f5, #5d9beb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ===== Hero button pulse ring ===== */
.btn-pulse {
    position: relative;
}
.btn-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0; }
}

/* ===== Floating WhatsApp animation ===== */
.float-anim {
    animation: floatUpDown 3s ease-in-out infinite;
}
.float-anim:hover {
    animation: none;
    transform: scale(1.1);
}
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1); }
}

/* ===== Service icon hover (base) ===== */
.service-item:hover .service-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.1);
}
/* Themed icon animations per service type */
.service-item:nth-child(1):hover .service-icon svg { animation: iconShake 0.5s ease; }
.service-item:nth-child(2):hover .service-icon svg { animation: iconDrip 0.6s ease; }
.service-item:nth-child(3):hover .service-icon svg { animation: iconSwing 0.5s ease; }
.service-item:nth-child(4):hover .service-icon svg { animation: iconPulseGrow 0.5s ease; }
@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(8deg); }
}
@keyframes iconDrip {
    0%   { transform: translateY(0) scaleY(1); }
    30%  { transform: translateY(3px) scaleY(0.92); }
    60%  { transform: translateY(-2px) scaleY(1.06); }
    100% { transform: translateY(0) scaleY(1); }
}
@keyframes iconSwing {
    0%, 100% { transform: rotate(0deg); transform-origin: top center; }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
}
@keyframes iconPulseGrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* ===== Hero text reveal ===== */
.hero-reveal {
    animation: heroSlideUp 0.8s ease-out both;
}
.hero-reveal-delay { animation-delay: 0.2s; }
.hero-reveal-delay-2 { animation-delay: 0.4s; }
.hero-reveal-delay-3 { animation-delay: 0.6s; }
@keyframes heroSlideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Floating particles ===== */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
    z-index: 3;
}
.hero-particle:nth-child(1) { width: 6px; height: 6px; top: 15%; left: 70%; animation: particleFloat1 8s ease-in-out infinite; }
.hero-particle:nth-child(2) { width: 4px; height: 4px; top: 30%; left: 85%; animation: particleFloat2 10s ease-in-out infinite 1s; }
.hero-particle:nth-child(3) { width: 8px; height: 8px; top: 60%; left: 75%; animation: particleFloat3 12s ease-in-out infinite 2s; }
.hero-particle:nth-child(4) { width: 5px; height: 5px; top: 45%; left: 90%; animation: particleFloat1 9s ease-in-out infinite 3s; }
.hero-particle:nth-child(5) { width: 3px; height: 3px; top: 20%; left: 60%; animation: particleFloat2 11s ease-in-out infinite 0.5s; }
.hero-particle:nth-child(6) { width: 7px; height: 7px; top: 75%; left: 65%; animation: particleFloat3 10s ease-in-out infinite 1.5s; }
.hero-particle:nth-child(7) { width: 4px; height: 4px; top: 10%; left: 80%; animation: particleFloat1 13s ease-in-out infinite 4s; }
.hero-particle:nth-child(8) { width: 6px; height: 6px; top: 50%; left: 55%; animation: particleFloat2 9s ease-in-out infinite 2.5s; }

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(30px, -40px) scale(1.3); opacity: 0.3; }
    50% { transform: translate(-20px, -80px) scale(0.8); opacity: 0.1; }
    75% { transform: translate(15px, -30px) scale(1.1); opacity: 0.25; }
}
@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    33% { transform: translate(-40px, -50px) scale(1.4); opacity: 0.25; }
    66% { transform: translate(25px, -90px) scale(0.7); opacity: 0.15; }
}
@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.12; }
    20% { transform: translate(20px, -60px) scale(1.2); opacity: 0.2; }
    40% { transform: translate(-30px, -30px) scale(0.9); opacity: 0.3; }
    60% { transform: translate(10px, -70px) scale(1.1); opacity: 0.08; }
    80% { transform: translate(-15px, -20px) scale(1.3); opacity: 0.22; }
}

/* ===== Word rotate container ===== */
.word-rotate {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    overflow: hidden;
    padding-bottom: 0.08em;
    white-space: nowrap;
}
.word-rotate .word-span {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-rotate .word-current {
    transform: translateY(0);
    opacity: 1;
}
.word-rotate .word-current.exit {
    transform: translateY(-110%);
    opacity: 0;
}
.word-rotate .word-next {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(110%);
    opacity: 0;
}
.word-rotate .word-next.enter {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Team image hover zoom ===== */
.team-img-wrap img {
    transition: transform 0.6s ease;
}
.team-img-wrap:hover img {
    transform: scale(1.03);
}

/* ===== Why Choose Us card ===== */
.why-card {
    transition: all 0.3s ease;
}
.why-card:hover {
    transform: translateY(-8px);
}

/* ===== Testimonial quote ===== */
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.05);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}
.testimonial-card:hover::before {
    color: rgba(37, 99, 235, 0.1);
}

/* ===== Stats glow ===== */
.stat-number {
    text-shadow: 0 0 30px rgba(255,255,255,0.15);
}

/* ===== Contact form floating label ===== */
.form-input:not(:placeholder-shown) {
    border-color: #4d8fe8;
}

/* ===== Submit button hover shine ===== */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-shine:hover::after {
    left: 120%;
}

/* ===== Social icon hover ===== */
.social-icon {
    transition: all 0.3s ease;
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

/* ===== 1. Aurora Gradient Mesh on Hero ===== */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.25;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(93,155,235,0.5) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 80% 30%, rgba(59,130,246,0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 80%, rgba(37,99,235,0.3) 0%, transparent 70%);
    animation: auroraDrift 12s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.97); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ===== 2. Wave Divider (Hero -> Services) ===== */
.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 11;
    line-height: 0;
    overflow: hidden;
}
.section-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}
@media (min-width: 768px) {
    .section-wave svg { height: 80px; }
}

/* ===== 3. Glassmorphism Stats ===== */
.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px -8px rgba(77,143,232,0.3);
}

/* ===== 6. Noise Texture Overlay ===== */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}
.stats-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* ===== 7. Card Hover Shine Sweep ===== */
.card-shine {
    position: relative;
    overflow: hidden;
}
.card-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
    transition: left 0.6s ease;
    pointer-events: none;
}
.card-shine:hover::after {
    left: 125%;
}

/* ===== 8. 3D Card Tilt ===== */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}
.card-tilt .card-tilt-inner {
    transform: translateZ(20px);
}

/* ===== 9. Button Ripple ===== */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleExpand {
    to { transform: scale(4); opacity: 0; }
}

/* ===== 10. Magnetic Cursor Button ===== */
.btn-magnetic {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* ===== 11. Stagger-In How It Works ===== */
.stagger-item {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    filter: blur(6px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.stagger-item.stagger-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
}
/* Connector line draws itself (applied via JS) */

/* ===== 12. Page Load Entrance Sequence ===== */
body.loading #navbar {
    transform: translateY(-100%);
    opacity: 0;
}
#navbar {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, background 0.3s ease, box-shadow 0.3s ease;
}
body.loading .hero-reveal {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
}
body.loading .hero-aurora {
    opacity: 0;
}

/* ===== Hover-only effects (desktop) ===== */
@media (hover: hover) and (pointer: fine) {
    .card-tilt:hover {
        /* JS sets transform via CSS vars */
    }
    .card-shine::after,
    .btn-magnetic,
    .card-tilt {
        /* enabled on hover devices */
    }
}
@media (hover: none) {
    .card-shine::after { display: none; }
    .card-tilt { transform: none !important; }
    .btn-magnetic { transform: none !important; }
}

/* ===== WhatsApp Chat Mockup ===== */

/* Step labels */
.wa-step-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto 16px;
}
.wa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.wa-step-title {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}
/* Mobile step label (inside each phone-wrap) */
.wa-mobile-step {
    display: none;
    text-align: center;
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .wa-step-labels {
        display: none;
    }
    .wa-mobile-step {
        display: block;
    }
}

/* 3-phone container */
.wa-phones-scroll {
    overflow: visible;
}

.wa-phones-track {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
}

.wa-phone-wrap {
    flex-shrink: 0;
    display: flex;
}

.wa-phone-wrap .wa-phone {
    flex: 1;
}

/* Phone frame */
.wa-phone {
    width: 320px;
    border-radius: 2.2rem;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
    border: 6px solid #1a1a1a;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* Scale phones to fit viewport on small screens */
@media (max-width: 1023px) {
    .wa-phones-track {
        gap: 6px;
    }
    .wa-phone-wrap {
        transform: scale(0.78);
        transform-origin: top center;
    }
    .wa-phone {
        width: 300px;
        border-width: 5px;
        border-radius: 1.8rem;
    }
}
@media (max-width: 767px) {
    .wa-phones-track {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .wa-phone-wrap {
        transform: none;
        margin: 0;
        flex-direction: column;
        align-items: center;
    }
    .wa-phone {
        width: min(320px, 90vw);
        border-width: 5px;
        border-radius: 2rem;
    }
}

/* Status bar */
.wa-statusbar {
    background: #075e54;
    padding: 6px 16px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}
.wa-statusbar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* WhatsApp header */
.wa-header {
    background: #075e54;
    padding: 6px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Verified tick */
.wa-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #53bdeb;
    color: #ffffff;
    font-size: 9px;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1;
}

.wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.wa-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chat area */
.wa-chat {
    background: #ece5dd;
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d6cfc5' fill-opacity='0.25'%3E%3Cpath d='M20 20 Q25 15 30 20 Q25 25 20 20Z'/%3E%3Ccircle cx='80' cy='45' r='2'/%3E%3Cpath d='M150 30 Q155 25 160 30 Q155 35 150 30Z'/%3E%3Ccircle cx='240' cy='20' r='1.5'/%3E%3Cpath d='M40 100 Q45 95 50 100 Q45 105 40 100Z'/%3E%3Ccircle cx='120' cy='90' r='2'/%3E%3Cpath d='M200 80 Q205 75 210 80 Q205 85 200 80Z'/%3E%3Ccircle cx='270' cy='100' r='1.5'/%3E%3Cpath d='M60 170 Q65 165 70 170 Q65 175 60 170Z'/%3E%3Ccircle cx='160' cy='160' r='2'/%3E%3Cpath d='M230 150 Q235 145 240 150 Q235 155 230 150Z'/%3E%3Ccircle cx='30' cy='230' r='1.5'/%3E%3Cpath d='M100 240 Q105 235 110 240 Q105 245 100 240Z'/%3E%3Ccircle cx='190' cy='220' r='2'/%3E%3Cpath d='M260 250 Q265 245 270 250 Q265 255 260 250Z'/%3E%3Ccircle cx='50' cy='280' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* Date chip */
.wa-date-chip {
    align-self: center;
    background: #e1f2fb;
    color: #5a7d8a;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 8px;
    margin: 4px 0 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

/* Bubbles */
.wa-bubble-bot,
.wa-bubble-user {
    max-width: 85%;
    padding: 6px 8px 3px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.wa-bubble-bot {
    background: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    color: #111b21;
}

.wa-bubble-user {
    background: #d9fdd3;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    color: #111b21;
}

/* Notification-style bubble (technician assigned) */
.wa-notify-bubble {
    border-left: 3px solid #25d366;
}

/* Timestamp */
.wa-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    font-size: 10px;
    color: #667781;
    margin-top: 2px;
    line-height: 1;
    padding-bottom: 1px;
}
.wa-time-light { color: rgba(255,255,255,0.7); }

/* Blue double-ticks */
.wa-ticks {
    color: #53bdeb;
    font-size: 12px;
    letter-spacing: -3px;
    margin-left: 1px;
}

/* Confirmation detail lines */
.wa-confirm-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wa-confirm-details p {
    font-size: 12px;
    line-height: 1.5;
}

/* Message group: bubble + attached reply buttons */
.wa-msg-group {
    align-self: flex-start;
    max-width: 85%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.wa-msg-group .wa-bubble-bot {
    max-width: 100%;
    border-radius: 8px;
    border-top-left-radius: 2px;
}

/* WhatsApp reply buttons */
.wa-reply-btns {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.wa-reply-btn {
    background: #ffffff;
    border: none;
    border-top: 1px solid #e9edef;
    color: #00a884;
    font-size: 12.5px;
    font-weight: 500;
    padding: 8px 12px;
    cursor: default;
    text-align: center;
    transition: none;
}
.wa-reply-btn:first-child {
    border-top: none;
}
.wa-reply-btn-active {
    background: #d4f8d0;
}

/* Photo thumbnail */
.wa-photo-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2px;
}
.wa-photo-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 5/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* Location thumbnail */
.wa-location-thumb {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2px;
}
.wa-location-map {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.wa-location-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(200,230,201,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,230,201,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}
.wa-location-info {
    background: #ffffff;
    padding: 6px 8px;
}

/* Input bar */
.wa-inputbar {
    background: #f0f2f5;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wa-input-field {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.wa-mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #00a884;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Chat message reveal animation */
.chat-msg {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-msg.chat-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Reduced Motion Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-aurora,
    .hero-particle,
    .dashed-connector,
    .stagger-item { animation: none; transition: none; }
    .stagger-item { opacity: 1; transform: none; filter: none; }
    .chat-msg { opacity: 1; transform: none; }
}
