/* Variable Definitions - Cyber Glass Theme */
:root {
    --bg-dark: #050507; /* Deepest Black/Blue */
    --primary: #00f2ff; /* Neon Cyan */
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff; /* Electric Purple */
    --secondary-glow: rgba(112, 0, 255, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --mouse-x: 50%;
    --mouse-y: 50%;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --radius-lg: 24px;
    --radius-sm: 12px;
}

/* Light Mode Overrides */
/* Light Mode Overrides */
:root.light-mode {
    --bg-dark: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.65); /* More opaque for contrast */
    --glass-border: rgba(0, 0, 0, 0.08); /* More visible border */
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --glass-blur: 30px; /* Frosted glass look */
    --text-main: #0f172a; /* Slate 900 for sharp text */
    --text-muted: #475569; /* Slate 600 */
    --primary: #00bcd4; /* Darker Cyan for white bg */
    --primary-glow: rgba(0, 188, 212, 0.25);
    --secondary: #6200ea;
    --secondary-glow: rgba(98, 0, 234, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Ambient Background Lights */
.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: moveLight 20s infinite alternate ease-in-out;
}

.ambient-light:nth-child(1) {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.ambient-light:nth-child(2) {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes moveLight {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Mouse Follow Glow */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255, 255, 255, 0.06), 
        transparent 40%
    );
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
    background: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-glow);;
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.btn.sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.full-width {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root.light-mode .gradient-text {
    background: linear-gradient(135deg, #005f73 0%, #00bcd4 50%, #6200ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: relative;
    width: 64px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle-btn i {
    width: 14px;
    height: 14px;
    z-index: 2;
    transition: all 0.3s ease;
}

.moon-icon { color: var(--primary); }
.sun-icon { color: #f6e05e; opacity: 1; }

.toggle-ball {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #b3b2b2;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1;
    
}


:root.light-mode .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.1);
}

:root.light-mode .toggle-ball {
    left: 34px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

:root.light-mode .moon-icon { opacity: 0.5; color: #64748b; }
:root.light-mode .sun-icon { opacity: 1; color: #f59e0b; }

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Animation */
@keyframes revealText {
    0% { transform: translateY(100%) skewY(10deg); opacity: 0; filter: blur(10px); }
    100% { transform: translateY(0) skewY(0); opacity: 1; filter: blur(0); }
}

.hero h1 span {
    display: inline-block;
    animation: revealText 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    opacity: 0; /* Star hidden */
}

.hero h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero h1 span:nth-child(2) { animation-delay: 0.2s; }
/* Add more if we split the text more */

/* Parallax Effect Classes (managed by JS but here for reference/init) */
.parallax-bg {
    will-change: transform;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0 30px;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 5, 7, 0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo img {
    height: 35px;
    border-radius: 8px;
}

.nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:not(.btn):hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Reduced opacity to blend with theme */
    filter: brightness(0.6) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(5, 5, 7, 0.8) 0%, 
        rgba(5, 5, 7, 0.4) 50%, 
        var(--bg-dark) 100%
    );
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 6rem;
    line-height: 0.95;
    margin-bottom: 25px;
    text-shadow: 0 0 80px rgba(0,0,0,0.5);
    letter-spacing: -0.04em;
    perspective: 1000px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Bento Grid Benefits */
.benefits {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

/* Bento Item Specifics */
.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.bento-item p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.bento-icon-bg {
    position: absolute;
    top: -13px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    transform: rotate(-15deg);
    transition: 0.5s ease;
}

.bento-item:hover .bento-icon-bg {
    transform: rotate(0) scale(1.2);
    color: rgba(255, 255, 255, 0.08);
}

/* Specific Sizes for Bento */
.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.bento-tall {
    grid-row: span 2;
    background: linear-gradient(to bottom, rgba(0, 242, 255, 0.05), rgba(0,0,0,0));
    border-color: rgba(0, 242, 255, 0.2);
}

/* Bento Widgets */
.bento-widget {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
}

/* Speedometer */
/* Speedometer */
.bento-widget.speedometer {
    width: 300px;
    height: 300px;
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.speedometer .dial {
    width: 100%;
    height: 150px; /* Half circle */
    background: linear-gradient(to right, #444, var(--primary));
    border-radius: 150px 150px 0 0;
    position: relative;
    overflow: hidden;
    mask: radial-gradient(circle at 50% 100%, transparent 40%, black 41%);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 40%, black 41%);
}

.speedometer .needle {
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 4px;
    height: 120px;
    background: #fff;
    transform-origin: bottom center;
    animation: speedDial 3s infinite ease-in-out alternate;
}

.speedometer .center-dot {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
}

.speedometer .speed-text {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 15px;
    font-weight: bold;
}

@keyframes speedDial {
    0% { transform: rotate(-80deg); }
    30% { transform: rotate(40deg); }
    60% { transform: rotate(10deg); }
    100% { transform: rotate(80deg); }
}

/* Ping Radar */
.ping-radar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle {
    position: absolute;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: radarPulse 2s infinite linear;
}

.c1 { width: 20px; height: 20px; animation-delay: 0s; }
.c2 { width: 40px; height: 40px; animation-delay: 0.5s; }
.c3 { width: 60px; height: 60px; animation-delay: 1s; }

.radar-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 0.8; border-width: 2px; }
    100% { transform: scale(1.5); opacity: 0; border-width: 0px; }
}

/* WiFi Signal */
.wifi-signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.signal-arc {
    border: 3px solid transparent;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: signalFade 1.5s infinite;
}

.s1 { width: 40px; height: 20px; animation-delay: 0.6s; }
.s2 { width: 25px; height: 12.5px; animation-delay: 0.3s; }
.s3 { width: 10px; height: 5px; background: var(--secondary); border: none; animation-delay: 0s; border-radius: 50%; }

@keyframes signalFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; filter: drop-shadow(0 0 5px var(--secondary)); }
}

/* Visual Features (ZigZag) */
.visual-features {
    padding: 80px 0;
}

.feature-row {
    margin-bottom: 120px;
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-row.reverse .feature-container {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 3.5rem;
    margin: 20px 0;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.feature-list li {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.5s;
}

.feature-image:hover img {
    transform: scale(1.02) rotate(-1deg);
    border-color: var(--primary);
}

/* Plans Section */
.plans {
    padding: 120px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card.popular {
    background: linear-gradient(145deg, rgba(0, 242, 255, 0.1), rgba(0,0,0,0));
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15);
    overflow: visible;
}

.plan-card.popular:hover {
    transform: scale(1.07);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: #000;
    padding: 6px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px var(--primary-glow);
}

.price .amount {
    font-size: 4rem;
    color: #fff;
}

.price .currency {
    color: var(--primary);
    font-size: 2rem;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.small-container {
    max-width: 800px;
}

.accordion-item {
    margin-bottom: 20px;
    padding: 0; /* Reset glass card padding */
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 30px;
    opacity: 0;
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-body {
    max-height: 200px; /* Adjust if content is longer */
    padding-bottom: 30px;
    opacity: 1;
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Updated Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 100px 0 30px;
    background: linear-gradient(to top, #000, transparent);
    position: relative;
    overflow: hidden;
}

.footer-bg-logo {
    position: absolute;
    bottom: -50px;
    right: -20px;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    user-select: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-5px);
}

.footer-links h5, .footer-contact h5 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links li { margin-bottom: 15px; }

.footer-links a { 
    color: var(--text-muted);
    display: inline-block;
}

.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.hiring-link span {
    background: var(--secondary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--primary);
    width: 18px;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .bento-large { grid-column: span 1; }
    .bento-tall { grid-row: span 1; grid-column: span 2; }
    
    .hero h1 { font-size: 4rem; }
}

/* Gamer Zone */
.gamer-zone {
    padding: 250px 0;
    position: relative;
    background: #000;
    overflow: hidden;
    text-align: center;
}

.gamer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2670&auto=format&fit=crop') no-repeat center center/cover;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.gamer-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.glitch-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.2em;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(80px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 60px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(60px, 9999px, 70px, 0); }
    5% { clip: rect(10px, 9999px, 20px, 0); }
    10% { clip: rect(90px, 9999px, 10px, 0); }
    100% { clip: rect(20px, 9999px, 30px, 0); }
}

.gamer-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ping-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.1);
}

/* Testimonials Marquee */
.testimonials {
    padding: 80px 0;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 30px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: italic;
    color: #ddd;
    font-size: 1.1rem;
}

.testimonial-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
    align-self: flex-end;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Updated Responsive */
@media (max-width: 768px) {
    .header {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .gamer-zone {
    padding: 150px 0;
    }
    
    .hero {
        padding-top: 150px;
        text-align: center;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .bento-grid { display: flex; flex-direction: column; }
    .bento-tall { grid-column: span 1; }

    /* Speedometer Mobile Adjustment */
    .bento-widget.speedometer {
        width: 200px;
        height: 200px;
    }
    
    .speedometer .dial {
        height: 100px;
        border-radius: 100px 100px 0 0;
    }
    
    .speedometer .needle {
        height: 80px;
    }
    
    .feature-container, 
    .feature-row.reverse .feature-container {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-text h2 { font-size: 2.5rem; }
    
    .nav {
        background: rgba(10, 10, 15, 0.95);
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 30px;
        transform: translateY(-150%);
        transition: 0.4s ease;
    }
    
    .nav.active { transform: translateY(0); }
    .nav ul { flex-direction: column; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    
    .menu-toggle { display: block; background: none; border: none; color: #fff; cursor: pointer; }
}

/* =========================================
   LIGHT MODE DETAILED OVERRIDES
   ========================================= */

:root.light-mode .header {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

:root.light-mode .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

:root.light-mode .logo {
    color: var(--text-main);
}

:root.light-mode .nav a:not(.btn) {
    color: var(--text-muted);
}

:root.light-mode .nav a:not(.btn):hover {
    color: var(--primary);
    text-shadow: none;
}

:root.light-mode .menu-toggle {
    color: var(--text-main);
}

/* Hero Section */
:root.light-mode .hero-overlay {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        var(--bg-dark) 100%
    );
}

:root.light-mode .hero h1 {
    text-shadow: none;
    color: var(--text-main);
}

:root.light-mode .hero p {
    color: var(--text-muted);
}

:root.light-mode .gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #00bcd4 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Ensure fallback color if gradient fails */
    color: #0f172a; 
}

/* Fix Invisible Buttons */
:root.light-mode .btn-secondary {
    border-color: rgba(0,0,0,0.1);
    color: var(--text-main);
    background: white;
}

:root.light-mode .btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Fix Hero Outline Button */
:root.light-mode .btn.outline,
:root.light-mode .btn-outline {
    color: var(--text-main);
    border-color: rgba(0,0,0,0.3);
}

:root.light-mode .btn.outline:hover,
:root.light-mode .btn-outline:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

:root.light-mode .badge {
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.3);
    color: #008ba3;
    backdrop-filter: none;
}

/* Bento Grid & Cards */
:root.light-mode .glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08); /* Stronger border */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08); /* Softer but visible shadow */
}

:root.light-mode .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* Fix Section Headers Contrast */
:root.light-mode h2, 
:root.light-mode .section-header h2 {
    color: var(--text-main);
}

:root.light-mode .bento-tall,
:root.light-mode .bento-large {
    background: #ffffff; 
}

:root.light-mode .bento-icon-bg {
    color: rgba(0, 0, 0, 0.03);
}

:root.light-mode .bento-item:hover .bento-icon-bg {
    color: rgba(0, 188, 212, 0.1);
}

/* Feature Section */
:root.light-mode .feature-list li {
    background: #f8fafc; /* Slight off-white */
    border-color: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

:root.light-mode .feature-list li strong {
    color: var(--text-main);
}

:root.light-mode .feature-image img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.05);
}

/* Testimonials */
:root.light-mode .testimonial-card p {
    color: var(--text-muted);
}

:root.light-mode .testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

:root.light-mode .testimonial-card span {
    color: var(--primary); /* Make name pop */
    font-weight: 600;
}

/* Footer */
:root.light-mode .footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.05);
}

:root.light-mode .footer-bg-logo {
    color: rgba(0,0,0,0.02);
}

:root.light-mode .footer-links h5, 
:root.light-mode .footer-contact h5 {
    color: var(--text-main);
}

:root.light-mode .footer-bottom {
    color: var(--text-muted);
    border-top-color: rgba(0,0,0,0.05);
}

:root.light-mode .social-links a {
    border-color: rgba(0,0,0,0.1);
    color: var(--text-muted);
}

:root.light-mode .social-links a:hover {
    color: #fff;
    border-color: var(--primary);
}
