/* Global Styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0f172a;
    --accent: #0ea5e9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    --gradient-card: linear-gradient(to bottom right, #ffffff, #f1f5f9);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f172a;
        --bg-white: #1e293b;
        --text-main: #f1f5f9;
        --text-muted: #cbd5e1;
        --secondary: #e2e8f0;
        --gradient-card: linear-gradient(to bottom right, #1e293b, #0f172a);
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
        --accent: #38bdf8;
    }

    .card,
    .module-card {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: #1e293b;
    }

    .card:hover,
    .module-card:hover {
        background: #243347;
        transform: translateY(-3px);
    }

    .module-icon {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Preserve colored icons in dark mode */
    .module-icon.icon-red { background: rgba(220, 38, 38, 0.15); color: #f87171; }
    .module-icon.icon-orange { background: rgba(234, 88, 12, 0.15); color: #fb923c; }
    .module-icon.icon-amber { background: rgba(217, 119, 6, 0.15); color: #fbbf24; }
    .module-icon.icon-yellow { background: rgba(202, 138, 4, 0.15); color: #facc15; }
    .module-icon.icon-lime { background: rgba(101, 163, 13, 0.15); color: #a3e635; }
    .module-icon.icon-green { background: rgba(22, 163, 74, 0.15); color: #4ade80; }
    .module-icon.icon-teal { background: rgba(13, 148, 136, 0.15); color: #2dd4bf; }
    .module-icon.icon-cyan { background: rgba(8, 145, 178, 0.15); color: #22d3ee; }
    .module-icon.icon-blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
    .module-icon.icon-indigo { background: rgba(79, 70, 229, 0.15); color: #818cf8; }
    .module-icon.icon-violet { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
    .module-icon.icon-purple { background: rgba(147, 51, 234, 0.15); color: #c084fc; }
    .module-icon.icon-pink { background: rgba(219, 39, 119, 0.15); color: #f472b6; }
    .module-icon.icon-rose { background: rgba(225, 29, 72, 0.15); color: #fb7185; }
    .module-icon.icon-emerald { background: rgba(5, 150, 105, 0.15); color: #34d399; }
    .module-icon.icon-slate { background: rgba(71, 85, 105, 0.15); color: #94a3b8; }
    .module-icon.icon-stone { background: rgba(120, 113, 108, 0.15); color: #a8a29e; }
    .module-icon.icon-fuchsia { background: rgba(192, 38, 211, 0.15); color: #e879f9; }
    .module-icon.icon-sky { background: rgba(2, 132, 199, 0.15); color: #38bdf8; }

    .module-card h3,
    .section-header h2,
    .feature-card h3 {
        color: var(--text-main);
    }

    .feature-list li {
        color: var(--text-muted);
    }

    .feature-list li::before {
        color: var(--accent);
    }

    /* Invert footer brand color since footer background stays dark but text needs to be light */
    .footer-brand h2 {
        color: white;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Buttons & Badges */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    background: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    font-size: 0.55rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 2rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links .btn {
    color: white !important;
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

/* Decorative background glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-content p {
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image .image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    color: var(--secondary);
}

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

/* Cards */
.card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

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

.icon-box {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

/* Modules Grid */
.modules {
    background-color: var(--bg-light);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.module-icon {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Module-specific icon colors */
.module-icon.icon-red { background: #fee2e2; color: #dc2626; }
.module-icon.icon-orange { background: #ffedd5; color: #ea580c; }
.module-icon.icon-amber { background: #fef3c7; color: #d97706; }
.module-icon.icon-yellow { background: #fef9c3; color: #ca8a04; }
.module-icon.icon-lime { background: #ecfccb; color: #65a30d; }
.module-icon.icon-green { background: #dcfce7; color: #16a34a; }
.module-icon.icon-teal { background: #ccfbf1; color: #0d9488; }
.module-icon.icon-cyan { background: #cffafe; color: #0891b2; }
.module-icon.icon-blue { background: #dbeafe; color: #2563eb; }
.module-icon.icon-indigo { background: #e0e7ff; color: #4f46e5; }
.module-icon.icon-violet { background: #ede9fe; color: #7c3aed; }
.module-icon.icon-purple { background: #f3e8ff; color: #9333ea; }
.module-icon.icon-pink { background: #fce7f3; color: #db2777; }
.module-icon.icon-rose { background: #ffe4e6; color: #e11d48; }
.module-icon.icon-emerald { background: #d1fae5; color: #059669; }
.module-icon.icon-slate { background: #e2e8f0; color: #475569; }
.module-icon.icon-stone { background: #f5f5f4; color: #78716c; }
.module-icon.icon-fuchsia { background: #fae8ff; color: #c026d3; }
.module-icon.icon-sky { background: #e0f2fe; color: #0284c7; }

.module-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
    width: 100%;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section */
.cta {
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: #020617;
    /* Always dark */
    color: white;
}

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

.footer-brand p {
    color: #94a3b8;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

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

.footer-links a {
    color: #cbd5e1;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Navigation */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e1b4b;
        /* Match hero gradient start */
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.25rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}
/* Language Banner */
.language-alert {
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    display: none; /* Hidden by default */
}

.language-alert a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    margin-left: 0.5rem;
}

.language-alert .close-banner {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 1.5rem;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-btn .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-dropdown-btn .arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-dropdown-btn .arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: background 0.15s;
    margin-left: 0 !important;
}

.lang-dropdown-menu a:hover {
    background: #e0e7ff;
    color: var(--text-main) !important;
}

.lang-dropdown-menu a.active {
    background: #e0e7ff;
    color: var(--primary);
    font-weight: 600;
}

.lang-dropdown-menu .flag {
    font-size: 1.2rem;
}

/* Mobile responsive */
@media (max-width: 968px) {
    .lang-dropdown {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-dropdown-btn {
        justify-content: center;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .lang-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .lang-dropdown.open .lang-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Dark mode for dropdown */
@media (prefers-color-scheme: dark) {
    .lang-dropdown-menu {
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-dropdown-menu a {
        color: #f1f5f9;
    }

    .lang-dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .lang-dropdown-menu a.active {
        background: rgba(79, 70, 229, 0.2);
        color: #818cf8;
    }
}
