:root {
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.5);
    --color-secondary: #8b5cf6;
    --color-accent: #10b981;

    --color-bg-dark: #0b0f19;
    --color-bg-card: rgba(30, 41, 59, 0.4);

    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-dark);
    font-family: var(--font-body);
    color: var(--color-text);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    color: #cbd5e1;
    /* Brillanter Slate 300 for better contrast on dark */
    margin-bottom: 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* More horizontal padding */
}

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Consistent gap */
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--color-white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.btn-store {
    background: var(--color-bg-card);
    color: var(--color-white);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.2rem;
    border-radius: var(--radius-lg);
}

.btn-store:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

/* --- Hero Section (CSS Only) --- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Hero Stats/Pills */
.hero-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.green {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.dot.orange {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.dot.purple {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Hero Visual (Gradient Orb) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.gradient-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
    filter: blur(80px);
    /* The glowing effect */
    opacity: 0.6;
    animation: spin 10s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.glass-card-hero {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    gap: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
}

.glass-stat {
    display: flex;
    flex-direction: column;
}

.glass-stat span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-stat strong {
    font-size: 2rem;
    color: #fff;
}

/* Background Shapes */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow), transparent);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent);
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .gradient-orb {
        width: 250px;
        height: 250px;
    }

    .glass-card-hero {
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

/* Dashboard Card */
.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.dash-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.dash-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.inputs-container {
    margin-top: 2rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

/* Fix for dropdown options visibility in dark mode */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select.form-control option {
    background-color: #0b0f19 !important;
    /* Force dark background */
    color: #ffffff !important;
    padding: 10px;
}

.form-control:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Referral Form Styling matching Modal */
.referral-form-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.referral-form-box h3 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.referral-form-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Make sure inputs inside referral box use the unified form-control style */
.referral-form-box input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
    margin-bottom: 1.5rem;
    /* Better Spacing */
}

.referral-form-box input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.stat-value.positive {
    color: var(--color-green);
}

.disclaimer-text {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Education Grid */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.edu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.edu-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Features/Tools */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 15px;
}

.feature-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-stat {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-white);
}

.feature-stat .green {
    color: var(--color-green);
    margin-left: 0.5rem;
}

/* --- Clean up old row logic if exists or keep for compatibility --- */
.feature-row {
    display: none;
    /* Hide old rows if any lefotver */
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-item {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.download-item h3 {
    margin-bottom: 1.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

/* Reviews */
.reviews-container {
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 700;
    color: var(--color-white);
}

.review-text {
    font-style: italic;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #020617;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social-simple a {
    color: var(--color-text-light);
    margin: 0 0.5rem;
}

.footer-social-simple a:hover {
    color: var(--color-primary);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact/Forms */
.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* High z-index to sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    /* Flex to center content */
    opacity: 1;
}

.modal-content {
    background-color: var(--color-bg-light);
    margin: auto;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--color-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    /* Remove margin-right to avoid spacing issues in flex */
    margin: 0 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-light);
    padding: 0.4rem 0.8rem;
    /* Smaller padding */
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent wrapping */
}

.lang-btn:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    /* Push it down a bit more */
    right: 0;
    background: var(--color-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 140px;
    /* Ensure enough width */
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.language-switcher:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    padding: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-align: left;
    border-radius: 4px;
    display: block;
    /* Ensure full width clickable */
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .edu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row {
        flex-direction: column;
        text-align: center;
    }

    .feature-row:nth-child(even) {
        flex-direction: column;
    }
}

@media (max-width: 1150px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: var(--shadow-lg);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Mobile Language Switcher */
    .language-switcher {
        margin: 1rem 0;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .lang-btn {
        width: auto;
        justify-content: center;
        border: 1px solid var(--glass-border);
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
        margin-top: 1rem;
    }

    .lang-dropdown a {
        text-align: center;
        padding: 0.5rem;
    }

    /* Show dropdown when active class added by JS (optional) or just use hover logic if applicable, but better to keep it simple */
    .language-switcher:hover .lang-dropdown {
        display: flex;
    }
}