/* ========================================
   NIRBHI TECHNO - IoT TECH THEME
   Navy + Cyan/Teal IoT aesthetic
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ---- PRELOADER ---- */
.preloader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 212, 170, 0.15);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

/* ---- PAGE FADE IN ---- */
body {
    opacity: 0;
    transition: opacity 0.4s ease;
}
body.loaded {
    opacity: 1;
}

/* ---- SCROLL ANIMATIONS ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.12s; }
.animate-on-scroll.delay-2 { transition-delay: 0.24s; }
.animate-on-scroll.delay-3 { transition-delay: 0.36s; }
.animate-on-scroll.delay-4 { transition-delay: 0.48s; }

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-left.animated { opacity: 1; transform: translateX(0); }

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-slide-right.animated { opacity: 1; transform: translateX(0); }

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-scale.animated { opacity: 1; transform: scale(1); }

/* ---- HERO GRADIENT (Navy to Teal) ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0a1628 0%, #122640 35%, #1e3a5f 65%, #0d1c31 100%);
    position: relative;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.page-hero-shell {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}

.page-hero-copy {
    max-width: 44rem;
    margin: 1.25rem auto 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 640px) {
    .page-hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }
    .page-hero-copy {
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        padding-top: 9rem;
        padding-bottom: 5.75rem;
    }

    .page-hero-copy {
        font-size: 1.125rem;
    }
}

/* ---- TECH GRID BACKGROUND ---- */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 212, 170, 0.12) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ---- CIRCUIT LINE PATTERNS ---- */
.circuit-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.circuit-lines::before,
.circuit-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.15), transparent);
    height: 1px;
    width: 200px;
    animation: circuit-flow 8s linear infinite;
}
.circuit-lines::before {
    top: 30%;
    left: -200px;
    animation-delay: 0s;
}
.circuit-lines::after {
    top: 70%;
    left: -200px;
    animation-delay: 4s;
}
@keyframes circuit-flow {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ---- ANIMATED BLOBS (Tech-themed) ---- */
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 40px) scale(1.05); }
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blob-float 15s ease-in-out infinite;
}
.blob-1 {
    width: 500px; height: 500px;
    background: #00d4aa;
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: #00b4d8;
    bottom: -80px; left: -80px;
    animation-delay: -5s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: #00d4aa;
    top: 50%; left: 40%;
    animation-delay: -10s;
}

/* ---- GLASSMORPHISM CARD ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 170, 0.15);
}

/* ---- CARD EFFECTS ---- */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 212, 170, 0.12);
}

.card-glow {
    position: relative;
    overflow: hidden;
}
.card-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.04), transparent);
    transition: left 0.6s ease;
}
.card-glow:hover::before {
    left: 100%;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 50%, #4dd9b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- SECTION DIVIDER ---- */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00d4aa, #00b4d8);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- PULSE CTA ---- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(0, 212, 170, 0); }
}
.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ---- FLOATING ANIMATION ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* ---- TIMELINE ---- */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #00d4aa, #00b4d8, #00d4aa);
    border-radius: 2px;
}
@media (max-width: 768px) {
    .timeline-line { left: 20px; }
}
@media (max-width: 480px) {
    .timeline-line { left: 12px; }
}

/* Timeline scroll-draw animation */
.timeline-line-animated {
    background: linear-gradient(to bottom, #00d4aa, #00b4d8, #00d4aa);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.1s linear;
}

/* ---- NAV EFFECTS ---- */
/* Default: transparent, sits on dark hero */
#main-nav {
    background: transparent;
    backdrop-filter: none;
}

/* Scrolled: solid white with shadow */
#main-nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
    border-color: rgba(0, 212, 170, 0.1);
}

/* Switch link colors when scrolled */
#main-nav.nav-scrolled .nav-link {
    color: #4b5563;
}
#main-nav.nav-scrolled .nav-link:hover {
    color: #00b896;
    background: rgba(0, 212, 170, 0.06);
}
#main-nav.nav-scrolled .nav-link.text-primary-400 {
    color: #00b896;
    background: rgba(0, 212, 170, 0.08);
}
#main-nav.nav-scrolled #mobile-menu-btn {
    color: #4b5563;
}
#main-nav.nav-scrolled #mobile-menu-btn:hover {
    background: #f3f4f6;
}

/* Mobile menu switches to white when nav is scrolled */
#main-nav.nav-scrolled #mobile-menu {
    background: rgba(255, 255, 255, 0.97);
    border-color: #f3f4f6;
}
#main-nav.nav-scrolled #mobile-menu a {
    color: #4b5563;
}
#main-nav.nav-scrolled #mobile-menu a:hover {
    background: rgba(0, 212, 170, 0.06);
    color: #00b896;
}

/* ---- MOBILE MENU ANIMATION ---- */
.mobile-menu-closed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.mobile-menu-open {
    max-height: calc(100vh - 4rem);
    opacity: 1;
    overflow-y: auto;
}

/* ---- ICON BOX GRADIENT BORDER ---- */
.icon-box {
    position: relative;
    background: linear-gradient(135deg, #e6faf4, #fff);
}
.icon-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ---- BUTTON STYLES ---- */
.btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00b896);
    color: #0a1628;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.3);
}

.btn-outline {
    border: 2px solid rgba(0, 212, 170, 0.5);
    color: white;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: #00d4aa;
    transform: translateY(-2px);
}

/* ---- TEAM IMAGE HOVER ---- */
.team-card .team-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover .team-img {
    transform: scale(1.05);
}

/* ---- IMAGE OVERLAY ---- */
.img-overlay {
    position: relative;
    overflow: hidden;
}
.img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.img-overlay:hover::after {
    opacity: 1;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00d4aa, #00b4d8);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00b896;
}

/* ---- SELECTION COLOR ---- */
::selection {
    background: #00d4aa;
    color: #0a1628;
}

/* ---- FEATURE CARD ---- */
.feature-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, #00d4aa);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 212, 170, 0.12);
}

/* ---- PARTICLE DOTS (decorative) ---- */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.particle-dot {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(0, 212, 170, 0.5);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

/* ---- NODE PULSE (IoT connection nodes) ---- */
@keyframes node-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}
.node-dot {
    width: 8px; height: 8px;
    background: #00d4aa;
    border-radius: 50%;
    animation: node-pulse 2.5s ease-in-out infinite;
}

/* ---- GLOW LINE (for connecting elements) ---- */
.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4aa, transparent);
    opacity: 0.3;
}

/* ---- SCROLL TO TOP ---- */
.scroll-top-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    color: #0a1628;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 40;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

@media (min-width: 640px) {
    .scroll-top-btn {
        bottom: 2rem;
        right: 2rem;
        width: 44px;
        height: 44px;
    }
}

/* ---- WHATSAPP WIDGET ---- */
.whatsapp-widget {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 46px;
    height: 46px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@keyframes wa-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.whatsapp-widget {
    animation: wa-bounce 3s ease-in-out infinite;
}
.whatsapp-widget:hover {
    animation: none;
    transform: scale(1.1);
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(8px);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox-overlay.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ---- FLOATING LABEL INPUTS ---- */
.floating-label-group {
    position: relative;
}
.floating-label-group input:focus,
.floating-label-group textarea:focus {
    border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* ---- HOW IT WORKS CONNECTOR ---- */
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #00d4aa, rgba(0, 180, 216, 0.3));
}
@media (max-width: 768px) {
    .step-connector::after {
        display: none;
    }
}

/* ---- PRODUCT PAGE UI ---- */
.product-stat-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(2, 8, 23, 0.18);
}

.product-hero-panel {
    position: relative;
    border-radius: 1.75rem;
    padding: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(0, 180, 216, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 30px 70px rgba(2, 8, 23, 0.25);
    overflow: hidden;
}
.product-hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 212, 170, 0.18), transparent 45%);
    pointer-events: none;
}

.product-stack-item {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.product-stack-item:last-child {
    border-bottom: 0;
}

.product-stack-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    margin-top: 0.4rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    box-shadow: 0 0 0 6px rgba(0, 212, 170, 0.12);
}

.product-mini-card {
    position: relative;
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.1rem;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-section-shell {
    position: relative;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
    box-shadow: 0 30px 80px -50px rgba(10, 22, 40, 0.28);
    overflow: hidden;
}
.product-section-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 212, 170, 0.08), transparent 35%);
    pointer-events: none;
}

.product-showcase {
    position: relative;
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(230, 250, 244, 0.95), rgba(230, 247, 252, 0.85));
    border: 1px solid rgba(0, 212, 170, 0.12);
    box-shadow: 0 32px 70px -38px rgba(10, 22, 40, 0.3);
}
.product-showcase img {
    display: block;
    position: relative;
    z-index: 1;
}

.product-badge {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    z-index: 2;
    padding: 0.6rem 0.9rem;
    border-radius: 9999px;
    background: rgba(10, 22, 40, 0.82);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 16px 30px rgba(10, 22, 40, 0.18);
}

.product-floating-card {
    position: absolute;
    right: -0.75rem;
    bottom: 1.5rem;
    z-index: 2;
    width: min(100%, 240px);
    border-radius: 1.25rem;
    padding: 1rem 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 212, 170, 0.15);
    box-shadow: 0 30px 50px -30px rgba(10, 22, 40, 0.35);
}

.product-feature-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.product-feature-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 170, 0.35);
    box-shadow: 0 18px 28px -24px rgba(0, 212, 170, 0.35);
}

.product-feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    box-shadow: 0 10px 20px rgba(0, 212, 170, 0.2);
}

.product-meta-card {
    min-height: 100%;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fcfb);
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 30px -28px rgba(10, 22, 40, 0.3);
}

.product-compare-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff, #f8fcfb);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -35px rgba(10, 22, 40, 0.3);
}

.product-table-wrap {
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fcfb);
    box-shadow: 0 26px 55px -42px rgba(10, 22, 40, 0.35);
}

/* ---- SPEC TABLE ---- */
.spec-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.spec-table th {
    background: linear-gradient(135deg, #0a1628, #1e3a5f);
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
}
.spec-table th:first-child {
    border-radius: 12px 0 0 0;
}
.spec-table th:last-child {
    border-radius: 0 12px 0 0;
}
.spec-table td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.spec-table tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}
.spec-table tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}
.spec-table tbody tr:hover {
    background: #e6faf4;
}

/* ---- FILTER TABS ---- */
.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
}
.filter-tab:hover {
    border-color: #00d4aa;
    color: #00b896;
}
.filter-tab.active {
    background: linear-gradient(135deg, #00d4aa, #00b896);
    color: #0a1628;
    border-color: transparent;
    font-weight: 600;
}

/* ---- IoT FLOW DIAGRAM ---- */
.iot-flow-node {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.iot-flow-node:hover {
    border-color: #00d4aa;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.12);
}
.iot-flow-arrow {
    color: #00d4aa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- SCAN LINE EFFECT (hero overlay) ---- */
@keyframes scan-line {
    0% { top: -10%; }
    100% { top: 110%; }
}
.scan-line-effect::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.2), transparent);
    animation: scan-line 6s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .product-section-shell {
        padding: 1.5rem;
    }

    .product-floating-card {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .product-hero-panel,
    .product-section-shell,
    .product-compare-card {
        padding: 1.25rem;
    }

    .product-badge {
        top: 1rem;
        left: 1rem;
        font-size: 0.7rem;
    }
}

/* ---- MOBILE RESPONSIVE ENHANCEMENTS ---- */
@media (max-width: 640px) {
    /* Reduce section padding on mobile */
    section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    /* Whatsapp widget */
    .whatsapp-widget {
        width: 44px;
        height: 44px;
    }
    .whatsapp-widget svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Spec table mobile */
    .spec-table th,
    .spec-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .whatsapp-widget {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 640px) {
    .whatsapp-widget {
        bottom: 2rem;
        left: 2rem;
        width: 52px;
        height: 52px;
    }
}

/* ---- 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;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .float-animation,
    .preloader-ring,
    .whatsapp-widget,
    .blob,
    .particle-dot,
    .node-dot {
        animation: none;
    }

    .card-hover:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* ---- SCREEN READER ONLY ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- FOCUS VISIBLE (Keyboard Navigation) ---- */
:focus-visible {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
