:root {
    --bg-dark: #080c10;
    --primary-blue: #4facfe;
    --primary-cyan: #00f2ea;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 15px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-main: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-mode {
    --bg-dark: #f0f4f8;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-blue: #3182ce;
    --primary-cyan: #0bc5ea;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary-cyan);
    transform: rotate(15deg);
}

.theme-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

* {
    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-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
}

/* Ambient Background */
#gl-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    /* Above background but below text if possible, or use pointer-events: none */
    pointer-events: none;
    /* Let clicks pass through */
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float-ambient 20s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-cyan), transparent);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #7e3af2, transparent);
    opacity: 0.2;
    animation-duration: 30s;
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-tag {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.5);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-main);
}

.btn-text {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 1.5rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
}

.btn-text .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-cyan);
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.navbar.scrolled {
    background: rgba(8, 12, 16, 0.8);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.05em;
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a:not(.btn-nav) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-main);
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.btn-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--bg-dark);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* padding: 0 5%; */
    padding: 0 max(5%, 2rem);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* About Section */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

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

.price-card.featured {
    border-color: var(--primary-cyan);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 242, 234, 0.05) 100%);
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-cyan);
    color: var(--bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0.5rem;
    color: var(--text-main);
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-cyan);
    margin-right: 0.75rem;
    font-weight: bold;
}

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

.testimonial-card .stars {
    color: #ffd700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-text);
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--bg-dark);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 234, 0.05);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--primary-cyan);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        /* IMPORTANT for Flex layout */
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(8, 12, 16, 0.95);
        /* Dark background for menu */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    body.light-mode .nav-links {
        background: rgba(240, 244, 248, 0.95);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .hamburger span {
        width: 30px;
        height: 2px;
        background-color: var(--text-main);
    }

    h1 {
        font-size: 3rem;
    }

    .hero-section {
        padding-top: 8rem;
        align-items: flex-start;
    }
}