/*
Theme Name: DNA Infotel
Author: Prem Jagtap
Description: Neural Glass Aesthetic - Production Styles (V9 - Fixed Card Contrast)
Version: 1.9.0
*/

/* -----------------------------------------------------------
   1. CORE VARIABLES & THEME SYSTEM
----------------------------------------------------------- */
:root {
    /* --- DARK MODE (DEFAULT) --- */
    --dna-deep-space: #050810;
    --dna-surface: #0f1420;
    --dna-accent-cyan: #00F2FF;
    --dna-accent-hover: #00C8D4;
    --dna-gold: #FFD700;
    --dna-danger: #FF3B30;
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --card-bg: rgba(255, 255, 255, 0.03);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    --header-height: 80px;
    --container-width: 1280px;
    --border-radius: 12px;
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] {
    --dna-deep-space: #F0F4F8;
    --dna-surface: #FFFFFF;
    
    --text-primary: #1e293b;        /* Dark Slate for Headings/Prices */
    --text-secondary: #64748b;      /* Muted Slate for labels */
    
    /* Card Specifics for Light Mode */
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.8); 
    --glass-border: rgba(0, 0, 0, 0.1);   
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    --dna-accent-cyan: #0077B6;     /* Darker Blue for visibility on white */
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
    background-color: var(--dna-deep-space);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 242, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.03) 0%, transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
    line-height: 1.3; 
    color: var(--text-primary); 
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* -----------------------------------------------------------
   2. UTILITIES & GLASSMORPHISM
----------------------------------------------------------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.neural-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.section-title { 
    text-align: center; 
    font-size: clamp(2rem, 4vw, 3rem); 
    margin-bottom: 60px; 
    color: var(--dna-accent-cyan); 
}

/* Buttons */
.btn-renew, .btn-primary {
    display: inline-block;
    background: var(--dna-accent-cyan);
    color: var(--dna-deep-space); /* Adaptive text color */
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
}
/* Force white text on buttons in light mode if needed */
[data-theme="light"] .btn-renew { color: #fff; }

.btn-renew:hover, .btn-primary:hover { background: var(--dna-accent-hover); box-shadow: 0 0 25px rgba(0, 242, 255, 0.5); transform: translateY(-2px); }

/* -----------------------------------------------------------
   3. PACKAGE CARDS (Redesigned for Light Mode)
----------------------------------------------------------- */
.package-card { 
    transition: transform 0.3s ease, border-color 0.3s ease; 
    width: 100%; 
    background: var(--card-bg); /* Use variable for bg */
    border: 1px solid var(--glass-border);
}
.package-card:hover { transform: translateY(-5px); border-color: var(--dna-accent-cyan); }
.recommended-card { border: 1px solid var(--dna-gold) !important; box-shadow: 0 0 25px rgba(255, 215, 0, 0.15) !important; }

/* Card Typography */
.pkg-speed { color: var(--dna-accent-cyan); font-size: 2.8rem; line-height: 1; margin: 0; font-weight: 800; }
.pkg-speed-label { color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.pkg-details { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; margin-bottom: 15px; }

/* Validity Tabs */
.validity-tabs { display: flex; gap: 5px; background: var(--glass-border); padding: 4px; border-radius: 6px; margin-bottom: 20px; }
.val-btn { flex: 1; border: none; background: transparent; color: var(--text-secondary); padding: 6px 0; font-size: 0.75rem; font-weight: 700; cursor: pointer; border-radius: 4px; transition: 0.2s; }
.val-btn:hover { color: var(--text-primary); }
.val-btn.active { background: var(--dna-accent-cyan); color: #fff; }

/* Pricing Area */
.pkg-price-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.pkg-currency { color: var(--dna-accent-cyan); font-size: 1.2rem; }
.main-price-display { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }
.gst-note { font-size: 0.65rem; color: var(--text-secondary); margin-top: 4px; font-style: italic; }

/* -----------------------------------------------------------
   4. STICKY HEADER
----------------------------------------------------------- */
#site-header { position: sticky; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 1000; display: flex; align-items: center; transition: background 0.3s ease; border-bottom: 1px solid var(--glass-border); }
#site-header.header-scrolled { background: var(--dna-deep-space); opacity: 0.95; backdrop-filter: blur(20px); }

.header-inner { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-menu-list { display: flex; gap: 30px; }
.nav-menu-list li a { font-size: 15px; font-weight: 500; color: var(--text-primary); position: relative; letter-spacing: 0.5px; }
.nav-menu-list li.current-menu-item a, .nav-menu-list li a:hover { color: var(--dna-accent-cyan); }

/* -----------------------------------------------------------
   5. CAROUSEL & MOBILE
----------------------------------------------------------- */
.dna-carousel-wrapper { position: relative; overflow: hidden; padding: 20px 0; max-width: var(--container-width); margin: 0 auto; }
.dna-carousel-track { display: flex; gap: 30px; transition: transform 0.5s ease-in-out; width: 100%; }
.dna-slide-item { flex: 0 0 calc((100% - 60px) / 3); max-width: calc((100% - 60px) / 3); }

.dna-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0, 242, 255, 0.1); color: var(--dna-accent-cyan); 
    border: 1px solid var(--dna-accent-cyan); width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 20; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.dna-nav-btn:hover { background: var(--dna-accent-cyan); color: #000; }
.prev-btn { left: 0; } .next-btn { right: 0; }

@media (max-width: 768px) {
    .dna-slide-item { flex: 0 0 100%; max-width: 100%; }
    .dna-nav-btn { display: none; }
    .package-grid-archive { grid-template-columns: 1fr; }
    
    #mobile-menu-dropdown.active { transform: translateX(0) !important; }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    /* Stats Grid */
    .stats-strip .container { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
    .stat-box:last-child { grid-column: 1 / -1; }
}

/* -----------------------------------------------------------
   6. MISC, FAQ & FORMS
----------------------------------------------------------- */
.pkg-hidden { display: none !important; }

.faq-item details { 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: 12px; margin-bottom: 15px; overflow: hidden; 
}
.faq-item summary { 
    padding: 20px; cursor: pointer; list-style: none; font-weight: 600; 
    color: var(--text-primary); position: relative; 
}
.faq-item summary::after { content: '+'; position: absolute; right: 20px; color: var(--dna-accent-cyan); }
.faq-item details[open] summary::after { content: '-'; }
.faq-answer { padding: 0 20px 20px; color: var(--text-secondary); border-top: 1px solid var(--glass-border); }

input, textarea, select {
    width: 100%; background: var(--glass-bg);
    border: 1px solid var(--glass-border); padding: 15px; color: var(--text-primary);
    border-radius: 8px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--dna-accent-cyan); }
[data-theme="light"] ::placeholder { color: #64748b; opacity: 1; }

#footer-desktop { background: #020305; padding: 80px 0 20px; margin-top: 80px; border-top: 1px solid var(--glass-border); }
[data-theme="light"] #footer-desktop { background: #1e293b; color: white; }
[data-theme="light"] #footer-desktop .footer-links ul li a { color: #cbd5e1; }
[data-theme="light"] #footer-desktop h4 { color: white; }

/* -----------------------------------------------------------
   7. PARALLAX LAYERS
----------------------------------------------------------- */
.parallax-hero { position: relative; }
.parallax-bg-layer {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at 20% 30%, rgba(0,242,255,0.08), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255,165,0,0.06), transparent 45%);
}
.parallax-layer { will-change: transform; }

/* -----------------------------------------------------------
   8. FOOTER RUNNING TICKER
----------------------------------------------------------- */
.dna-footer-ticker {
    overflow: hidden; background: rgba(0,242,255,0.06);
    border-top: 1px solid rgba(0,242,255,0.2); padding: 10px 0;
}
.dna-footer-ticker-track {
    display: flex; gap: 60px; white-space: nowrap;
    animation: dnaFooterTicker 30s linear infinite;
}
.dna-footer-ticker-track span {
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
}
@keyframes dnaFooterTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* -----------------------------------------------------------
   9. VOICE BANNER PULSE
----------------------------------------------------------- */
.dna-voice-banner { animation: voiceGlow 3s ease-in-out infinite alternate; }
@keyframes voiceGlow {
    from { box-shadow: inset 0 0 0 rgba(0,242,255,0); }
    to { box-shadow: inset 0 0 30px rgba(0,242,255,0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .parallax-layer, .dna-footer-ticker-track, .dna-voice-banner { animation: none !important; }
}

/* -----------------------------------------------------------
   10. ISP FIBER PULSE BACKGROUND (CSS-only, GPU-friendly)
----------------------------------------------------------- */
body {
    position: relative;
    isolation: isolate;
}

.dna-isp-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: var(--dna-deep-space);
}

.dna-isp-ambient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 242, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 45% at 85% 75%, rgba(255, 140, 0, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 242, 255, 0.06), transparent 60%);
}

.dna-isp-grid {
    position: absolute;
    inset: -50%;
    opacity: 0.7;
    background-image:
        radial-gradient(circle, rgba(0, 242, 255, 0.45) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    transform: rotate(-8deg);
    animation: dnaGridDrift 45s linear infinite;
}

.dna-isp-beam {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.7), transparent);
    opacity: 0.5;
    filter: blur(1px);
    animation: dnaBeamSweep 8s ease-in-out infinite;
}

.dna-isp-beam-1 { width: 55%; top: 35%; left: -10%; transform: rotate(-12deg); }
.dna-isp-beam-2 { width: 45%; top: 62%; right: -5%; transform: rotate(8deg); animation-delay: 4s; }

.dna-isp-pulse {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.25), inset 0 0 20px rgba(0, 242, 255, 0.1);
    opacity: 0;
    animation: dnaFiberPulse 5s ease-out infinite;
}

.dna-isp-pulse-a { width: 340px; height: 340px; top: 12%; left: 8%; }
.dna-isp-pulse-b { width: 420px; height: 420px; bottom: 15%; right: 5%; animation-delay: 1.6s; }
.dna-isp-pulse-c { width: 300px; height: 300px; top: 48%; left: 42%; animation-delay: 3.2s; }

.dna-isp-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dna-accent-cyan);
    box-shadow: 0 0 18px rgba(0, 242, 255, 1), 0 0 36px rgba(0, 242, 255, 0.5);
    animation: dnaNodeBlink 2s ease-in-out infinite;
}

.dna-isp-node-1 { top: 22%; left: 28%; }
.dna-isp-node-2 { top: 55%; right: 32%; animation-delay: 0.6s; }
.dna-isp-node-3 { bottom: 18%; left: 48%; animation-delay: 1.2s; }
.dna-isp-node-4 { top: 38%; right: 18%; animation-delay: 1.8s; }
.dna-isp-node-5 { bottom: 32%; left: 15%; animation-delay: 2.4s; }

@keyframes dnaGridDrift {
    0% { transform: rotate(-8deg) translateY(0); }
    100% { transform: rotate(-8deg) translateY(40px); }
}

@keyframes dnaBeamSweep {
    0%, 100% { opacity: 0.15; transform: rotate(-12deg) translateX(-5%); }
    50% { opacity: 0.65; transform: rotate(-12deg) translateX(8%); }
}

@keyframes dnaFiberPulse {
    0% { transform: scale(0.5); opacity: 0.85; }
    60% { opacity: 0.2; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes dnaNodeBlink {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.6); }
}

/* CSS preloader — no GIF request */
.dna-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dna-deep-space);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dna-preloader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 242, 255, 0.2);
    border-top-color: var(--dna-accent-cyan);
    border-radius: 50%;
    animation: dnaSpin 0.8s linear infinite;
}

@keyframes dnaSpin {
    to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------
   11. LEGAL PAGES
----------------------------------------------------------- */
.legal-page-content h2.legal-page-title {
    color: var(--dna-accent-cyan);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dna-accent-cyan);
}

.legal-page-content h3 {
    color: var(--text-primary);
    margin: 24px 0 12px;
    font-size: 1.1rem;
}

.legal-page-content p,
.legal-page-content li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-page-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .dna-isp-grid,
    .dna-isp-beam,
    .dna-isp-pulse,
    .dna-isp-node,
    .dna-preloader-ring { animation: none !important; }
}

@media (max-width: 768px) {
    .dna-isp-beam { display: none; }
    .dna-isp-pulse-c { display: none; }
    .dna-isp-node-4,
    .dna-isp-node-5 { display: none; }
    .dna-isp-grid {
        opacity: 0.45;
        background-size: 52px 52px;
        animation: dnaGridDrift 70s linear infinite;
    }
    .dna-isp-pulse-a { width: 220px; height: 220px; }
    .dna-isp-pulse-b { width: 260px; height: 260px; }
    .dna-isp-ambient {
        background:
            radial-gradient(ellipse 90% 60% at 30% 15%, rgba(0, 242, 255, 0.12), transparent 55%),
            radial-gradient(ellipse 80% 50% at 70% 80%, rgba(0, 242, 255, 0.08), transparent 50%);
    }
}