/* ========================================
   NIRBHI TECHNO - BRAND CYAN THEME
   Inspired by logo #3CB4C8
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ---- PRELOADER ---- */
.preloader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(60, 180, 200, 0.15);
    border-top-color: #3CB4C8;
    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 (Deep Blue) ---- */
.hero-gradient {
    background: linear-gradient(135deg, #0B2035 0%, #14405e 35%, #1f5f8a 65%, #0f3048 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;
    }
}

/* ---- PCB CIRCUIT BOARD BACKGROUND ---- */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none'%3E%3Cpath d='M0 48h72v48h96v-48h72' stroke='rgba(60,180,200,0.1)' stroke-width='1.5'/%3E%3Cpath d='M0 192h48v-48h96v48h96' stroke='rgba(60,180,200,0.07)' stroke-width='1'/%3E%3Cpath d='M48 0v72h48v96h-48v72' stroke='rgba(43,130,184,0.08)' stroke-width='1.5'/%3E%3Cpath d='M192 0v48h-48v96h48v96' stroke='rgba(43,130,184,0.06)' stroke-width='1'/%3E%3Ccircle cx='72' cy='48' r='5' stroke='rgba(60,180,200,0.2)' stroke-width='1.5'/%3E%3Ccircle cx='72' cy='48' r='2' fill='rgba(60,180,200,0.15)'/%3E%3Ccircle cx='168' cy='48' r='5' stroke='rgba(60,180,200,0.15)' stroke-width='1'/%3E%3Ccircle cx='168' cy='48' r='2' fill='rgba(60,180,200,0.12)'/%3E%3Ccircle cx='72' cy='96' r='5' stroke='rgba(43,130,184,0.15)' stroke-width='1.5'/%3E%3Ccircle cx='72' cy='96' r='2' fill='rgba(43,130,184,0.12)'/%3E%3Ccircle cx='96' cy='168' r='4' stroke='rgba(60,180,200,0.12)' stroke-width='1'/%3E%3Ccircle cx='96' cy='168' r='1.5' fill='rgba(60,180,200,0.1)'/%3E%3Ccircle cx='48' cy='192' r='5' stroke='rgba(60,180,200,0.15)' stroke-width='1.5'/%3E%3Ccircle cx='48' cy='192' r='2' fill='rgba(60,180,200,0.12)'/%3E%3Ccircle cx='48' cy='72' r='4' stroke='rgba(43,130,184,0.12)' stroke-width='1'/%3E%3Ccircle cx='48' cy='72' r='1.5' fill='rgba(43,130,184,0.1)'/%3E%3Ccircle cx='144' cy='192' r='4' stroke='rgba(43,130,184,0.12)' stroke-width='1'/%3E%3Ccircle cx='144' cy='192' r='1.5' fill='rgba(43,130,184,0.1)'/%3E%3Ccircle cx='192' cy='48' r='3' stroke='rgba(43,130,184,0.1)' stroke-width='1'/%3E%3Ccircle cx='192' cy='48' r='1' fill='rgba(43,130,184,0.08)'/%3E%3Ccircle cx='192' cy='144' r='4' stroke='rgba(60,180,200,0.12)' stroke-width='1'/%3E%3Ccircle cx='192' cy='144' r='1.5' fill='rgba(60,180,200,0.1)'/%3E%3Crect x='105' y='110' width='50' height='70' rx='3' stroke='rgba(60,180,200,0.12)' stroke-width='1.5' fill='rgba(60,180,200,0.02)'/%3E%3Ccircle cx='114' cy='120' r='3' fill='rgba(60,180,200,0.06)'/%3E%3Cline x1='98' y1='125' x2='105' y2='125' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='98' y1='137' x2='105' y2='137' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='98' y1='149' x2='105' y2='149' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='98' y1='161' x2='105' y2='161' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='98' y1='173' x2='105' y2='173' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='155' y1='125' x2='162' y2='125' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='155' y1='137' x2='162' y2='137' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='155' y1='149' x2='162' y2='149' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='155' y1='161' x2='162' y2='161' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Cline x1='155' y1='173' x2='162' y2='173' stroke='rgba(60,180,200,0.1)' stroke-width='2'/%3E%3Crect x='8' y='110' width='24' height='10' rx='2' stroke='rgba(43,130,184,0.1)' stroke-width='1' fill='rgba(43,130,184,0.03)'/%3E%3Crect x='200' y='65' width='10' height='20' rx='2' stroke='rgba(60,180,200,0.1)' stroke-width='1' fill='rgba(60,180,200,0.03)'/%3E%3Cpath d='M162 137h30v-41' stroke='rgba(60,180,200,0.07)' stroke-width='1'/%3E%3Cpath d='M98 149h-30v43' stroke='rgba(43,130,184,0.07)' stroke-width='1'/%3E%3C/svg%3E"),
        radial-gradient(circle at 1px 1px, rgba(60, 180, 200, 0.06) 1px, transparent 0);
    background-size: 240px 240px, 30px 30px;
    pointer-events: none;
}

/* ---- CIRCUIT LINE PATTERNS (Horizontal) ---- */
.circuit-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.circuit-lines::before,
.circuit-lines::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 120px;
    border-radius: 1px;
    animation: circuit-flow-h 7s linear infinite;
}
.circuit-lines::before {
    top: 25%;
    left: -120px;
    background: linear-gradient(90deg, transparent, rgba(60, 180, 200, 0.5), rgba(60, 180, 200, 0.8), rgba(60, 180, 200, 0.5), transparent);
    animation-delay: 0s;
    box-shadow: 0 0 8px rgba(60, 180, 200, 0.3);
}
.circuit-lines::after {
    top: 72%;
    left: -120px;
    background: linear-gradient(90deg, transparent, rgba(43, 130, 184, 0.5), rgba(43, 130, 184, 0.8), rgba(43, 130, 184, 0.5), transparent);
    animation-delay: 3.5s;
    box-shadow: 0 0 8px rgba(43, 130, 184, 0.3);
}
@keyframes circuit-flow-h {
    0% { left: -120px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ---- CIRCUIT LINES (Vertical) ---- */
.circuit-lines-v {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.circuit-lines-v::before,
.circuit-lines-v::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    border-radius: 1px;
    animation: circuit-flow-v 9s linear infinite;
}
.circuit-lines-v::before {
    left: 20%;
    top: -100px;
    background: linear-gradient(180deg, transparent, rgba(43, 130, 184, 0.5), rgba(43, 130, 184, 0.7), rgba(43, 130, 184, 0.5), transparent);
    animation-delay: 1s;
    box-shadow: 0 0 8px rgba(43, 130, 184, 0.25);
}
.circuit-lines-v::after {
    left: 78%;
    top: -100px;
    background: linear-gradient(180deg, transparent, rgba(60, 180, 200, 0.5), rgba(60, 180, 200, 0.7), rgba(60, 180, 200, 0.5), transparent);
    animation-delay: 5s;
    box-shadow: 0 0 8px rgba(60, 180, 200, 0.25);
}
@keyframes circuit-flow-v {
    0% { top: -100px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ---- PCB VIA NODES (glowing solder points) ---- */
@keyframes via-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(60, 180, 200, 0.4), 0 0 12px rgba(60, 180, 200, 0.1); }
    50% { box-shadow: 0 0 8px rgba(60, 180, 200, 0.7), 0 0 24px rgba(60, 180, 200, 0.2); }
}
@keyframes via-pulse-blue {
    0%, 100% { box-shadow: 0 0 4px rgba(43, 130, 184, 0.4), 0 0 12px rgba(43, 130, 184, 0.1); }
    50% { box-shadow: 0 0 8px rgba(43, 130, 184, 0.7), 0 0 24px rgba(43, 130, 184, 0.2); }
}
.pcb-via {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(60, 180, 200, 0.3);
    background: rgba(60, 180, 200, 0.15);
    animation: via-pulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.pcb-via.blue {
    border-color: rgba(43, 130, 184, 0.3);
    background: rgba(43, 130, 184, 0.15);
    animation-name: via-pulse-blue;
}

/* ---- PCB IC CHIP (decorative) ---- */
.pcb-chip {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.12;
}
.pcb-chip-body {
    width: 80px;
    height: 60px;
    border: 2px solid rgba(60, 180, 200, 0.6);
    border-radius: 4px;
    background: rgba(60, 180, 200, 0.05);
    position: relative;
}
.pcb-chip-body::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(60, 180, 200, 0.3);
}
.pcb-chip-pins {
    display: flex;
    justify-content: space-around;
    padding: 0 8px;
}
.pcb-chip-pins.top { margin-bottom: -1px; }
.pcb-chip-pins.bottom { margin-top: -1px; }
.pcb-chip-pin {
    width: 6px;
    height: 8px;
    background: rgba(60, 180, 200, 0.4);
    border-radius: 1px;
}

/* ---- PCB DATA PULSE (dot traveling on traces) ---- */
@keyframes data-pulse-right {
    0% { left: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@keyframes data-pulse-down {
    0% { top: 0; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
.pcb-data-pulse {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}
.pcb-data-pulse.cyan {
    background: #3CB4C8;
    box-shadow: 0 0 6px #3CB4C8, 0 0 14px rgba(60, 180, 200, 0.4);
}
.pcb-data-pulse.blue {
    background: #2B82B8;
    box-shadow: 0 0 6px #2B82B8, 0 0 14px rgba(43, 130, 184, 0.4);
}
.pcb-data-pulse.h {
    animation: data-pulse-right 6s linear infinite;
}
.pcb-data-pulse.v {
    animation: data-pulse-down 8s linear infinite;
}

/* ---- PCB TRACE LINES (static decorative traces) ---- */
.pcb-trace {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.pcb-trace-h {
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(60, 180, 200, 0.12) 15%, rgba(60, 180, 200, 0.12) 85%, transparent 100%);
}
.pcb-trace-v {
    width: 1.5px;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 130, 184, 0.1) 15%, rgba(43, 130, 184, 0.1) 85%, transparent 100%);
}

/* ---- 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: #3CB4C8;
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: #2B82B8;
    bottom: -80px; left: -80px;
    animation-delay: -5s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: #3CB4C8;
    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(60, 180, 200, 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(60, 180, 200, 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(60, 180, 200, 0.04), transparent);
    transition: left 0.6s ease;
}
.card-glow:hover::before {
    left: 100%;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
    background: linear-gradient(135deg, #3CB4C8 0%, #2B82B8 50%, #6fc7d7 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, #3CB4C8, #2B82B8);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- PULSE CTA ---- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(60, 180, 200, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(60, 180, 200, 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, #3CB4C8, #2B82B8, #3CB4C8);
    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, #3CB4C8, #2B82B8, #3CB4C8);
    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(60, 180, 200, 0.1);
}

/* Switch link colors when scrolled */
#main-nav.nav-scrolled .nav-link {
    color: #4b5563;
}
#main-nav.nav-scrolled .nav-link:hover {
    color: #309daf;
    background: rgba(60, 180, 200, 0.06);
}
#main-nav.nav-scrolled .nav-link.text-primary-400 {
    color: #309daf;
    background: rgba(60, 180, 200, 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(60, 180, 200, 0.06);
    color: #309daf;
}

/* ---- 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, #eaf6f9, #fff);
}
.icon-box::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #3CB4C8, #2B82B8);
    -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, #3CB4C8, #309daf);
    color: #0B2035;
    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(60, 180, 200, 0.3);
}

.btn-outline {
    border: 2px solid rgba(60, 180, 200, 0.5);
    color: white;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(60, 180, 200, 0.1);
    border-color: #3CB4C8;
    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, #3CB4C8, #2B82B8);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #309daf;
}

/* ---- SELECTION COLOR ---- */
::selection {
    background: #3CB4C8;
    color: #0B2035;
}

/* ---- 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%, #3CB4C8);
    -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(60, 180, 200, 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(60, 180, 200, 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(60, 180, 200, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(60, 180, 200, 0); }
}
.node-dot {
    width: 8px; height: 8px;
    background: #3CB4C8;
    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, #3CB4C8, 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, #3CB4C8, #2B82B8);
    color: #0B2035;
    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(60, 180, 200, 0.3);
}
.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(60, 180, 200, 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: #3CB4C8;
    box-shadow: 0 0 0 3px rgba(60, 180, 200, 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, #3CB4C8, rgba(43, 130, 184, 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(60, 180, 200, 0.08), rgba(43, 130, 184, 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(60, 180, 200, 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, #3CB4C8, #2B82B8);
    box-shadow: 0 0 0 6px rgba(60, 180, 200, 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, #f0f8fa);
    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(60, 180, 200, 0.08), transparent 35%);
    pointer-events: none;
}

.product-showcase {
    position: relative;
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(234, 246, 249, 0.95), rgba(231, 238, 244, 0.85));
    border: 1px solid rgba(60, 180, 200, 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(60, 180, 200, 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(60, 180, 200, 0.35);
    box-shadow: 0 18px 28px -24px rgba(60, 180, 200, 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, #3CB4C8, #2B82B8);
    box-shadow: 0 10px 20px rgba(60, 180, 200, 0.2);
}

.product-meta-card {
    min-height: 100%;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #f5fafc);
    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, #f5fafc);
    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, #f5fafc);
    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, #0B2035, #1f5f8a);
    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: #eaf6f9;
}

/* ---- 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: #3CB4C8;
    color: #309daf;
}
.filter-tab.active {
    background: linear-gradient(135deg, #3CB4C8, #309daf);
    color: #0B2035;
    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: #3CB4C8;
    box-shadow: 0 8px 25px rgba(60, 180, 200, 0.12);
}
.iot-flow-arrow {
    color: #3CB4C8;
    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(60, 180, 200, 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 #3CB4C8;
    outline-offset: 2px;
    border-radius: 4px;
}

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