/* --- TALUKDERNET 2.0: NEO-GLASS REDESIGN --- */

/* 1. Design Tokens & Reset */
:root {
    /* Palette: Cyber-Indigo & Electric Lime */
    --bg-deep: #050511;
    --bg-surface: #0f1020;
    --primary: #5eff00;
    /* Electric Lime */
    --primary-dim: #4ccf00;
    --secondary: #6c42f5;
    /* Cyber Indigo */
    --accent: #00f0ff;
    /* Cyan */

    --text-main: #ffffff;
    --text-muted: #8f90a6;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shimmer: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    /* Bangla Font Integration */
    --font-heading: 'Hind Siliguri', 'Outfit', sans-serif;
    --font-body: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;

    --navbar-height: 90px;
    --container-width: 1300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Subtle noise texture overlay */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Fix for horizontal scroll caused by absolute elements */
.router-stage,
.hero-visual,
.hero-bg,
.hero-bg-2 {
    max-width: 100vw;
    overflow: hidden;
}

/* 2. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* 3. Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Buttons (Redesigned) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    /* Contrast black on lime */
    border: none;
    box-shadow: 0 10px 40px -10px rgba(94, 255, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(94, 255, 0, 0.6);
    background: #75ff29;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(94, 255, 0, 0.1);
    color: var(--primary);
}

/* 5. Navbar (Floating Glass Pill) */
.navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: 80px;
    background: rgba(15, 16, 32, 0.6);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
}

.logo i {
    color: var(--primary);
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* 6. Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 180px;
    display: flex;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 66, 245, 0.2) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    animation: blob-pulse 10s infinite alternate;
}

.hero-bg-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 255, 0, 0.1) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat h3 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Speed Meter Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-card {
    background: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 30px;
    width: 380px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.speed-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    border-color: var(--primary);
}

.speed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-green 1.5s infinite;
}

.gauge-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.gauge-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.gauge-fill {
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 10px var(--primary));
}

.speed-display {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.speed-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.speed-unit {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.speed-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ping-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.ping-val {
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ping-val i {
    color: #ffd700;
}

/* Floating Badges */
.float-badge {
    position: absolute;
    background: rgba(30, 30, 40, 0.9);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: float-badge 6s ease-in-out infinite;
}

.float-badge.download {
    top: 50px;
    right: -20px;
    color: var(--accent);
}

.float-badge i {
    font-size: 1.1rem;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Ensure Canvas is behind */
#network-bg {
    z-index: 0 !important;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
}

/* Services: Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px 30px;
    /* Increased top padding */
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from flex-end */
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(94, 255, 0, 0.3);
}

/* Grid Spans */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2rem;
    /* Slightly smaller for better fit */
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(94, 255, 0, 0.1);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.bento-item h3 {
    margin-bottom: 10px;
}

/* Pricing: Holographic Cards */
.pricing-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    /* Center vertically to allow pop out */
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020205;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Pricing: Holographic Cards Fixes */
.pricing-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 0;
    /* Changed: Added vertical padding for scaled cards */
}

/* Card Updates */
.price-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 350px;
    min-width: 300px;
    /* Added: Prevent squashing */
    position: relative;
    transition: 0.5s;
    flex-shrink: 0;
    /* Added: Don't shrink */
    margin: 20px 0;
    /* Added: Safe margin */
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(108, 66, 245, 0.15), rgba(15, 16, 32, 0));
    border: 1px solid var(--secondary);
    transform: scale(1.1);
    z-index: 2;
    box-shadow: 0 0 50px rgba(108, 66, 245, 0.2);
    /* Ensure it doesn't get clipped */
}

.price-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--primary);
    z-index: 5;
    /* Bring to front on hover */
}

.price-card.featured:hover {
    transform: translateY(-15px) scale(1.15);
    /* Keep scale ratio */
}

.price-amount {
    font-size: 3.5rem;
    /* Adjusted: slightly smaller to fit better */
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin: 20px 0;
}

/* Responsive & Live Animation Updates */

/* Live Pulse Animation for Pricing */
@keyframes card-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 255, 0, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(94, 255, 0, 0.1);
        border-color: rgba(94, 255, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(94, 255, 0, 0);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@keyframes shimmer-move {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 350px;
    min-width: 300px;
    position: relative;
    transition: 0.5s;
    flex-shrink: 0;
    margin: 20px 0;
    overflow: visible;
    /* ALLOW BADGE TO POP OUT */
}

/* Optimized Shimmer Effect (Contained) */
.price-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Matches card size perfectly */
    border-radius: inherit;
    /* Clips itself to rounded corners */
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 100%;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.price-card:hover::before {
    animation: shimmer-move 1.5s infinite linear;
}

.price-card:hover::before {
    animation: shimmer-move 1s infinite;
}

.price-card.featured {
    animation: card-pulse 3s infinite;
    /* Always pulsing */
}

/* Enhanced Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
    }

    /* Keep visual on tablet but scale it down */
    .hero-visual {
        height: 350px;
        transform: scale(0.8);
        margin-top: -50px;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet */
        grid-template-rows: auto;
    }

    .span-2,
    .span-row-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Pricing tablet layout */
    .pricing-flex {
        gap: 20px;
    }

    .price-card {
        width: 45%;
        min-width: 280px;
    }

    .price-card.featured {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        background: rgba(5, 5, 17, 0.95);
        /* Darker on mobile */
        height: 70px;
    }

    .nav-container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-visual {
        display: flex;
        /* Show on mobile! */
        transform: scale(0.65);
        height: 300px;
        margin-top: -50px;
        margin-bottom: -50px;
    }

    /* Make visual non-interactive on mobile touches to prevent scroll lock */
    .speed-card {
        pointer-events: none;
        transform: none !important;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .pricing-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .price-card {
        width: 100%;
        transform: none !important;
        /* Disable hover scale on mobile */
    }

    .price-card.featured {
        transform: scale(1.02) !important;
        border-color: var(--primary);
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-row ul {
        align-items: center;
    }

    .footer-row div:last-child div {
        justify-content: center;
    }

    /* Social icons */

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* Keyframe Animations */
@keyframes blob-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Helpers for JS Reveal */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

/* --- HIGH VOLTAGE PRELOADER (Electric Shock Effect) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020205;
    /* Pitch black for contrast */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.3s ease-out, visibility 0.3s;
    overflow: hidden;
}

/* Central Electric Orb */
.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    box-shadow: 0 0 30px rgba(94, 255, 0, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2);
    animation: electric-spin 0.2s linear infinite, shock-pulse 2s infinite;
}

/* Inner Lightning Bolt */
.loader-logo {
    font-size: 3rem;
    color: #fff;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: bolt-flicker 0.1s infinite alternate;
}

/* Shatter/Shockwave Rings */
.loader-content::before,
.loader-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: blast-wave 1s infinite linear;
}

.loader-content::after {
    animation-delay: 0.5s;
    border-color: var(--primary);
}

.preloader-text {
    margin-top: 40px;
    font-family: 'Courier New', monospace;
    /* Hacking/Terminal vibe */
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
}

.preloader-text::before {
    content: 'LOADING';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--accent);
    opacity: 0.8;
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite both;
    z-index: -1;
}

/* --- Keyframe Chaos --- */

@keyframes electric-spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes shock-pulse {
    0% {
        filter: hue-rotate(0deg);
    }

    20% {
        filter: hue-rotate(90deg) brightness(1.5);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}



/* --- ULTRA ROUTER VISUAL (High Voltage) --- */
.router-stage {
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.cyber-router {
    position: relative;
    width: 600px;
    height: 140px;
    background: #0b0c15;
    border-radius: 10px;
    transform: rotateX(15deg) translateY(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(255, 255, 255, 0.05);
    z-index: 2;
    transform-style: preserve-3d;
}

/* Antennas */
.antenna {
    position: absolute;
    bottom: 100%;
    width: 12px;
    height: 120px;
    background: linear-gradient(to top, #1a1b2e, #2d2f45);
    border-radius: 10px 10px 0 0;
    transform-origin: bottom center;
    animation: none;
    /* Reset */
}

/* Shock/Heartbeat Effect on Antennas */
.cyber-router:hover .antenna,
.antenna {
    animation: shock-heartbeat 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite both;
}

.a-2 {
    animation-delay: 0.1s;
}

.a-3 {
    animation-delay: 0.2s;
}

.a-4 {
    animation-delay: 0.3s;
}

.antenna::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(94, 255, 0, 0.5);
    filter: blur(4px);
    opacity: 0;
    animation: antenna-pulse 0.2s infinite alternate;
    /* Faster pulse */
}

/* ... existing positions a-1 to a-4 ... */
.a-1 {
    left: 10%;
    transform: rotate(-15deg);
}

.a-2 {
    left: 35%;
    transform: rotate(-5deg);
}

.a-3 {
    right: 35%;
    transform: rotate(5deg);
}

.a-4 {
    right: 10%;
    transform: rotate(15deg);
}


.signal-ring {
    /* ... existing signal ring ... */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: ring-emit 1s infinite linear;
}

/* ... */

.readout-glitch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Force Center */
    color: #fff;
    font-family: monospace;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary);
    z-index: 2;
    white-space: nowrap;
    text-align: center;
}

@keyframes shock-heartbeat {
    0% {
        transform: scale(1) rotate(var(--rot));
        filter: brightness(1);
    }

    10% {
        transform: scale(1.1) rotate(var(--rot));
        filter: brightness(1.5) drop-shadow(0 0 5px var(--primary));
    }

    20% {
        transform: scale(1) rotate(var(--rot));
        filter: brightness(1);
    }

    30% {
        transform: scale(1.1) rotate(var(--rot));
        filter: brightness(1.5) drop-shadow(0 0 5px var(--accent));
    }

    100% {
        transform: scale(1) rotate(var(--rot));
        filter: brightness(1);
    }
}

/* Redefine positions with Custom Property for rotation to support animation */
.a-1 {
    --rot: -15deg;
    left: 10%;
    transform: rotate(var(--rot));
}

.a-2 {
    --rot: -5deg;
    left: 35%;
    transform: rotate(var(--rot));
}

.a-3 {
    --rot: 5deg;
    right: 35%;
    transform: rotate(var(--rot));
}

.a-4 {
    --rot: 15deg;
    right: 10%;
    transform: rotate(var(--rot));
}

.a-2 .signal-ring {
    animation-delay: 0.2s;
}

.a-3 .signal-ring {
    animation-delay: 0.4s;
}

/* Display with Storm Graph */
.router-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
}

.speed-storm-graph {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
    width: 100%;
    padding: 5px;
    opacity: 0.3;
}

.bar {
    flex: 1;
    background: var(--primary);
    animation: storm-bar 0.2s infinite alternate;
}

.bar:nth-child(even) {
    animation-duration: 0.15s;
    background: var(--accent);
}

.bar:nth-child(3n) {
    animation-duration: 0.1s;
    background: var(--secondary);
}

.readout-glitch {
    position: absolute;
    color: #fff;
    font-family: monospace;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 10px var(--primary);
    z-index: 2;
}

.status-lights {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

.blink-furious {
    animation: blink-furious 0.05s infinite;
}

/* High Voltage Sparks */
.sparks span {
    position: absolute;
    background: #fff;
    width: 2px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    opacity: 0;
}

.sparks span:nth-child(1) {
    animation: spark-flash 2s infinite;
    transform: rotate(45deg) translateY(-150px);
}

.sparks span:nth-child(2) {
    animation: spark-flash 2.5s infinite;
    transform: rotate(-45deg) translateY(-130px);
    animation-delay: 0.5s;
}

.sparks span:nth-child(3) {
    animation: spark-flash 1.8s infinite;
    transform: rotate(10deg) translateY(-170px);
    animation-delay: 1s;
}

/* Animations */
@keyframes antenna-pulse {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        height: 200%;
    }
}

@keyframes ring-emit {
    0% {
        top: 0;
        opacity: 1;
        width: 10px;
    }

    100% {
        top: -50px;
        opacity: 0;
        width: 60px;
    }
}

@keyframes storm-bar {
    0% {
        height: 20%;
    }

    100% {
        height: 100%;
    }
}

@keyframes blink-furious {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes spark-flash {
    0% {
        opacity: 0;
        height: 10px;
    }

    10% {
        opacity: 1;
        height: 60px;
        filter: drop-shadow(0 0 10px var(--primary));
    }

    20% {
        opacity: 0;
        height: 10px;
    }
}

/* Tablet/Mobile Adjustments */
@media (max-width: 768px) {
    .cyber-router {
        width: 90%;
        height: 100px;
    }

    .router-stage {
        height: 250px;
    }

    .antenna {
        height: 80px;
    }

    .readout-glitch {
        font-size: 1.5rem;
    }

    .sparks {
        display: none;
    }

    /* Too messy on small screens */
}

@keyframes glitch-text {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05) translateX(2px);
    }
}

@keyframes blast-wave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 5px;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 0px;
    }
}

@keyframes glitch-skew {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- Enhanced Mobile Sidebar --- */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 16, 30, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    z-index: 2001;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-backdrop.active .mobile-sidebar {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.sidebar-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.3s;
}

/* Stagger animation for links */
.mobile-menu-backdrop.active .mobile-nav-links a {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.mobile-menu-backdrop.active .mobile-nav-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-backdrop.active .mobile-nav-links a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-backdrop.active .mobile-nav-links a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-backdrop.active .mobile-nav-links a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-backdrop.active .mobile-nav-links a:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-links a:hover {
    color: var(--primary);
    transform: translateX(5px) !important;
}

.mobile-nav-links i {
    width: 25px;
    color: var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Button Hiding */
/* --- Mobile Bottom Navigation (Curved) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(15, 16, 32, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    /* Hidden by default, shown on mobile */
    justify-content: space-around;
    align-items: center;
    z-index: 1500;
    padding: 0 10px;
}

.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: 0.3s;
    flex: 1;
}

.nav-item-mobile i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item-mobile.active {
    color: var(--primary);
}

/* The Curved Center Button */
.mobile-call-center {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--bg-deep);
    margin-top: -50px;
    /* Pull it up */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.mobile-call-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 0 20px var(--primary);
    animation: pulse-ring 2s infinite;
}

.call-btn-inner {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    transition: 0.3s;
}

.mobile-call-center:hover .call-btn-inner {
    transform: scale(1.1);
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* SVG Masking/Curve for the Bottom Nav */
.nav-curve-bg {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: rgba(15, 16, 32, 0.9);
    backdrop-filter: blur(20px);
    clip-path: polygon(0% 100%, 15% 50%, 30% 15%, 50% 0%, 70% 15%, 85% 50%, 100% 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide Pay Bill button in navbar on mobile */
    .navbar .btn-primary {
        display: none !important;
    }

    /* Extra padding for footer so it doesn't get hidden */
    footer {
        padding-bottom: 120px !important;
    }
}