/* Dark Theme with Neon Glow and Retro Video Game Aesthetics */
:root {
    /* Primary Colors - Neon Purple */
    --primary-color: #9d00ff;
    --primary-dark: #7a00cc;
    --primary-light: #c44dff;
    --primary-rgb: 157, 0, 255;
    
    /* Secondary Colors - Neon Cyan */
    --secondary-color: #00f0ff;
    --secondary-dark: #00c8d4;
    --secondary-light: #7df9ff;
    --secondary-rgb: 0, 240, 255;
    
    /* Neutral Colors - Dark Theme */
    --dark: #0a0a0a;
    --medium-dark: #121212;
    --medium: #2a2a2a;
    --medium-light: #3a3a3a;
    --light: #505050;
    --white: #e0e0e0;
    --darker: #080808;
    --light-gray: #999;
    
    /* Accent Colors - Neon */
    --accent: #ff00aa;
    --success: #00ff66;
    --warning: #ffaa00;
    --error: #ff3333;
    --cyan: #00bcd4;
    
    /* Typography */
    --heading-font: 'Press Start 2P', 'Montserrat', sans-serif;
    --body-font: 'Chakra Petch', 'Poppins', sans-serif;
    
    /* Shadows - Neon Glow */
    --shadow-sm: 0 0 4px rgba(157, 0, 255, 0.5);
    --shadow-md: 0 0 8px rgba(157, 0, 255, 0.5), 0 0 12px rgba(0, 240, 255, 0.3);
    --shadow-lg: 0 0 16px rgba(157, 0, 255, 0.5), 0 0 24px rgba(0, 240, 255, 0.3);
    --neon-text-shadow: 0 0 5px rgba(157, 0, 255, 0.8), 0 0 10px rgba(157, 0, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.5);
    --neon-box-shadow: 0 0 5px rgba(157, 0, 255, 0.8), 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Animations */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.5), 0 0 10px rgba(0, 188, 212, 0.3);
    }
    50% {
        text-shadow: 0 0 8px rgba(0, 188, 212, 0.7), 0 0 15px rgba(0, 188, 212, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.5), 0 0 10px rgba(0, 188, 212, 0.3);
    }
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 5px rgba(157, 0, 255, 0.7), 0 0 10px rgba(157, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 10px rgba(157, 0, 255, 0.9), 0 0 20px rgba(157, 0, 255, 0.7);
    }
    100% {
        box-shadow: 0 0 5px rgba(157, 0, 255, 0.7), 0 0 10px rgba(157, 0, 255, 0.5);
    }
}

/* Global Styles */
body {
    background-color: var(--dark);
    color: var(--white);
    font-family: var(--body-font);
    background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(18, 18, 18, 0.98)), url('../images/grid-bg.png');
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1, h2 {
    text-shadow: var(--neon-text-shadow);
}

a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-light);
    text-shadow: 0 0 8px var(--secondary-color);
}

/* Utility Classes */
.text-glow {
    /* color: var(--cyan); */ /* Color will be inherited or set by another class like .text-white */
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
    /*font-family: 'Chakra Petch', sans-serif;
    font-weight: 300;*/
    animation: textGlow 3s infinite ease-in-out;
}

.text-glow-delay-1 {
    animation-delay: 0.5s;
}

.text-glow-delay-2 {
    animation-delay: 1s;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 0 10px rgba(94, 53, 177, 0.5);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(94, 53, 177, 0.8);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.8);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    background-color: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(157, 0, 255, 0.3);
}

.logo img {
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.main-nav a {
    color: var(--white);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.nav-buttons .btn-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nav-buttons .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark);
    box-shadow: var(--neon-box-shadow);
}

.nav-buttons .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-buttons .btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: var(--neon-box-shadow);
}

/* Hero Section */
.hero {
    background-color: #121212 !important;
    background: #121212 !important;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(94, 53, 177, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/logo.webp') no-repeat center center;
    background-size: 80%;
    filter: blur(15px) opacity(20%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(94, 53, 177, 0.8), 0 0 15px rgba(0, 188, 212, 0.5);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textGlow 4s infinite ease-in-out;
}

.hero-content p {
    color: var(--white) !important;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-video {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-video i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
}

.btn-video:hover {
    color: var(--secondary-color);
}

.btn-video:hover i {
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
}

/* Features Section */
.features {
    background-color: var(--medium-dark);
}

.features-highlight {
    display: flex;
    justify-content: center;
}

.feature-card {
    background-color: var(--medium);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-box-shadow);
}

.feature-card h3 {
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 300;
    animation: textGlow 3s infinite ease-in-out;
}

/* Feature card margin override */
.features-highlight .feature-card {
    margin-right: 2rem;
}

/* Features page section padding */
.features-html .features-overview,
.features-html .additional-features,
.features-html .cta-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.features-html .page-hero {
    margin-top: 5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    color: var(--white);
}

/* Features hero text */
.features-hero-text {
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 1s;
}

/* Additional Features section */
.additional-features .feature-card {
    transition: all 0.3s ease;
}

.additional-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-box-shadow);
}

/* Segments Section */
.segments {
    background-color: var(--dark);
}

.segment-card {
    background-color: var(--medium);
    border: 1px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-box-shadow);
}

.segment-card h3 {
    color: var(--primary-color);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.segment-card p {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 300;
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 0.5s;
}

.segment-card img {
    filter: drop-shadow(0 0 5px var(--secondary-color));
}

/* Demo Video Section */
.demo-video {
    background-color: var(--medium-dark);
}

.video-placeholder {
    border: 2px solid var(--primary-color);
    box-shadow: var(--neon-box-shadow);
}

.play-button {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.8);
}

.play-button:hover {
    background-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(157, 0, 255, 1);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--medium-dark);
}

.testimonial-card {
    background-color: var(--medium);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    color: var(--cyan);
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 300;
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 1s;
}

.testimonial-author h4 {
    color: var(--secondary-color);
}

.testimonial-author p {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 1s;
}

.testimonial-controls button {
    color: var(--secondary-color);
}

.testimonial-controls button:hover {
    color: var(--secondary-light);
    text-shadow: 0 0 8px var(--secondary-color);
}

.dot {
    background-color: var(--medium-light);
}

.dot.active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Pricing Section */
.pricing {
    background-color: var(--darker);
    padding: 80px 0;
    position: relative;
}

.pricing-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark)) !important;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 53, 177, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    z-index: 0;
}

.pricing .container {
    position: relative;
    z-index: 1;
}

.pricing-card {
    background-color: var(--darker);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(94, 53, 177, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(94, 53, 177, 0.8);
}

.pricing-card .pricing-badge {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    padding: 8px 15px;
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 8px;
}

.pricing-card .pricing-header h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pricing-card .price-description {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pricing-description p{
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
}

.pricing-card .feature-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.pricing-card .feature-list li {
    padding: 8px 0;
    color: var(--cyan);
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.3);
    display: flex;
    align-items: center;
}

.pricing-card .feature-list li::before {
    content: '✓';
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.cta-section h2 {
    color: var(--white);
    text-shadow: var(--neon-text-shadow);
}

/* Footer */
.footer {
    background-color: var(--medium-dark);
    border-top: 1px solid var(--primary-color);
}

.footer-brand p {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 1s;
}

.social-links a {
    color: var(--white);
    background-color: var(--medium);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.8);
}

.footer-links h4 {
    color: var(--secondary-color);
}

.footer-links ul li a {
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5), 0 0 15px rgba(0, 188, 212, 0.3);
    animation: textGlow 3s infinite ease-in-out;
    animation-delay: 1s;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid var(--medium);
}

/* Retro Scanline Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(0, 0, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.2;
}

/* Pixel Border Effect */
.pixel-border {
    position: relative;
}

.pixel-border::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    clip-path: polygon(
        0% 0%, 4px 0%, 4px 4px, calc(100% - 4px) 4px, 
        calc(100% - 4px) 0%, 100% 0%, 100% 100%, 
        calc(100% - 4px) 100%, calc(100% - 4px) calc(100% - 4px), 
        4px calc(100% - 4px), 4px 100%, 0% 100%
    );
}

/* Buy Now Button Animation */
.btn-primary.btn-large {
    animation: neonPulse 2s infinite;
}

/* Section-specific overrides */
.features-highlight .section-header p {
    color: #000000 !important;
}

.pricing-preview .section-header p {
    color: #000000 !important;
}

/* FAQ Section - Ensure contrast for question headings and toggle */
.faq-item {
    background-color: var(--medium) !important; /* var(--medium) is #2a2a2a in dark theme */
    border: 1px solid var(--primary-light); /* Optional: var(--primary-light) is #c44dff */
}
.faq-question h3.text-dark,
.faq-item h3.text-dark {
    color: var(--white) !important; /* --white is #e0e0e0 in dark theme, overrides style.css .text-dark */
}

.faq-question .faq-toggle {
    color: var(--secondary-color) !important; /* Ensure toggle icon is also visible and overrides base style if any */
}
