:root {
    /* Dark Theme (Default) - Brand Colors */
    --primary-color: #0077FF;
    /* Vibrant Blue */
    --primary-hover-color: #005ECC;
    --accent-color: #FF8C00;
    /* Vibrant Orange */
    --background-color: #1A1A2E;
    /* Deep Indigo */
    --surface-color: #16213E;
    /* Dark Blue-Gray */
    --surface-color-glass: rgba(22, 33, 62, 0.75);
    --text-color: #E3F2FD;
    /* Light Blue-Tinted White */
    --text-secondary-color: #a9b2c8;
    --border-color: #0F3460;
    --hover-bg-color: rgba(0, 119, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-height: 70px;


    /* Font Families */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;
}

body.light-mode {
    /* Light Theme - Brand Colors */
    --primary-color: #0077FF;
    --primary-hover-color: #005ECC;
    --accent-color: #FFA500;
    /* Brighter Orange */
    --background-color: #F8F9FA;
    /* Light Gray */
    --surface-color: #FFFFFF;
    /* White */
    --surface-color-glass: rgba(255, 255, 255, 0.75);
    --text-color: #1C1E21;
    /* Almost Black */
    --text-secondary-color: #5f6368;
    --border-color: #DDE2E7;
    --hover-bg-color: rgba(0, 119, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

header h1,
.hero-content h1,
.feature-content h2,
.content-section h2,
.platform-details h3,
#cta h2,
.legal-content h1,
.legal-content h2 {
    font-family: var(--font-primary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--surface-color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.3s, border-color 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo {
    height: 40px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: rotate(-15deg);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

nav a {
    color: var(--text-secondary-color);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
}

.theme-toggle-btn:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

.theme-toggle-btn .mdi-weather-night {
    display: none;
}

.theme-toggle-btn .mdi-weather-sunny {
    display: block;
}

body.light-mode .theme-toggle-btn .mdi-weather-night {
    display: block;
}

body.light-mode .theme-toggle-btn .mdi-weather-sunny {
    display: none;
}

/* Add this with the other header styles */
.mobile-nav-toggle-btn {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle-btn .mdi-close {
    display: none;
}

/* Main Content */
main {
    padding-top: var(--header-height);
}

/* Hero Section */
#hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
    overflow: hidden;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, var(--primary-color) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, var(--accent-color) 0%, transparent 25%);
    opacity: 0.15;
    animation: background-pan 20s linear infinite;
    z-index: 0;
}

@keyframes background-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1,
.hero-content .subtitle,
.hero-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    animation-delay: 0.2s;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-secondary-color);
    animation-delay: 0.4s;
}

.hero-content .cta-button {
    animation-delay: 0.6s;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Section */
.feature-section {
    padding: 100px 0;
}

.feature-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-container.reverse {
    flex-direction: row-reverse;
}

.feature-graphic {
    flex: 1;
    text-align: center;
}

.feature-icon {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.feature-content {
    flex: 2;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 550px;
}

/* Platforms Section */
.content-section {
    padding: 100px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.platform-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    text-align: left;
    margin: 0 auto;
    max-width: 900px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.platform-logo-container {
    flex-shrink: 0;
}

.platform-logo {
    width: 120px;
    height: 120px;
}

.platform-details h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.platform-tagline {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.platform-details p {
    margin-bottom: 20px;
    color: var (--text-secondary-color);
}

.platform-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
    font-style: italic;
}

/* CTA Section */
#cta {
    background-color: var(--surface-color);
}

#cta .container {
    text-align: center;
}

#cta h2 {
    color: var(--text-color);
}

#cta p {
    color: var(--text-secondary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
}

/* Legal Content Section */
.legal-content {
    padding: 80px 0;
}

.legal-content .container {
    max-width: 800px;
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 8px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    transition: border-color 0.3s;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .feature-container {
        flex-direction: column;
        text-align: center;
    }

    .feature-container.reverse {
        flex-direction: column;
    }

    .feature-content {
        text-align: center;
    }

    .feature-content p {
        margin: 0 auto;
    }

    .platform-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .nav-wrapper {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: max-content;
        background-color: var(--surface-color-glass);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 4rem;
    }

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

    nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
        text-decoration: underline;
        text-underline-offset: 1rem;
    }

    .mobile-nav-toggle-btn {
        display: block;
    }

    .mobile-nav-toggle-btn.active .mdi-menu {
        display: none;
    }

    .mobile-nav-toggle-btn.active .mdi-close {
        display: block;
    }
}