/* 
  BadaiWIFI - Modern Dark Theme 
  Design System and Base Utilities
*/

:root {
    /* Color Palette */
    --clr-bg: #050b14;
    /* Deep space blue/black */
    --clr-bg-alt: #0a1120;
    --clr-primary: #00e1ff;
    /* Neon cyan */
    --clr-primary-glow: rgba(0, 225, 255, 0.4);
    --clr-secondary: #7b2cbf;
    /* Deep purple */
    --clr-text: #e2e8f0;
    --clr-text-muted: #94a3b8;

    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilities */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
}

.highlight {
    color: var(--clr-primary);
    text-shadow: 0 0 15px var(--clr-primary-glow);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.center {
    margin: 0 auto 60px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 800;
}

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

/* Glassmorphism Class */
.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-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    font-family: var(--font-heading);
}

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

.btn-primary:hover {
    background: #00c3de;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--clr-primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background: rgba(0, 225, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-secondary);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--clr-primary);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #0044ff;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 50px) scale(1.2);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.8);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text);
    position: relative;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 225, 255, 0.1);
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-stats {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

/* Adding a custom decorative element */
.hero-stats::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--clr-primary);
    border-right: 2px solid var(--clr-primary);
    border-radius: 0 20px 0 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
}

.stat-label {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 225, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 225, 255, 0.1);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    box-shadow: inset 0 0 20px rgba(0, 225, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--clr-text-muted);
}

/* --- Packages Grid Layout --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Voucher Cards */
.package-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.package-card.popular {
    border-color: var(--clr-primary);
    transform: scale(1.05);
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: #000;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.package-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-name {
    display: block;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.package-price {
    font-size: 3rem;
    font-weight: 800;
}

.package-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.package-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.package-features li i {
    color: var(--clr-primary);
}

/* Monthly Pricing Cards */
.pricing-card {
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium {
    border-color: var(--clr-primary);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.15);
}

.pricing-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    text-align: center;
}

.pricing-card.premium .pricing-top {
    background: linear-gradient(135deg, rgba(0, 225, 255, 0.1), rgba(123, 44, 191, 0.1));
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: block;
    margin-bottom: 15px;
}

.pricing-speed {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-speed span {
    font-size: 1.5rem;
    font-weight: 400;
    margin-left: 5px;
    color: var(--clr-text-muted);
}

.pricing-details {
    padding: 40px 30px;
}

.pricing-desc {
    color: var(--clr-text-muted);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
}

.stars {
    color: #ffc107;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    font-size: 3rem;
    color: var(--clr-text-muted);
}

.author-info h4 {
    font-size: 1.1rem;
}

.author-info span {
    color: var(--clr-primary);
    font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    cursor: pointer;
    overflow: hidden;
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--clr-primary);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    opacity: 0;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 30px 24px;
    max-height: 500px;
    opacity: 1;
}

.faq-answer p {
    color: var(--clr-text-muted);
}

/* --- Footer --- */
.footer {
    background: #02050a;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin: 20px 0;
    max-width: 300px;
}

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

.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;
    color: #fff;
    transition: var(--transition);
}

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

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #fff;
}

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

.footer-links ul li a {
    color: var(--clr-text-muted);
}

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

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

.footer-contact ul li i {
    color: var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-wa:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        text-align: center;
    }

    .hero-stats::before {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 140px;
        /* Increased to account for taller logo */
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .nav-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        /* Ensure button stays above the menu overlay */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }
}