/* CSS Variables for Light and Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #1976d2;
    --button-bg: #1976d2;
    --button-bg-og: #ed7b08;
    --button-text: #ffffff;
    --nav-bg: #f1f1f1;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #eeeeee;
    --accent-color: #90caf9;
    --button-bg: #90caf9;
    --button-text: #000000;
    --nav-bg: #1e1e1e;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.navbar-right .nav-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.landing-container {
    padding: 2rem;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-headline {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
}


.hero-text {
    max-width: 600px;
}

.hero-image {
    flex: 1 1 40vw;
    aspect-ratio: 4 / 3;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.slogan {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.subtext {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.image-placeholder {
    flex: 1 1 400px;
    min-height: 300px;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.features {
    padding: 3rem 0;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--nav-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--nav-bg);
    color: var(--text-color);
}

.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}


.form-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--nav-bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-form label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.signup-form input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.signup-form button {
    margin-top: 1rem;
}

.errors {
    color: #ff4d4d;
    /* Red color for visibility */
    background-color: var(--bg-color);
    padding: 10px;
    border: 1px solid #ff4d4d;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

span.user-info {
    color: var(--accent-color);
}

.nav-btn.og {
    background-color: var(--button-bg-og);
    color: #f1f1f1;
}

.cta-btn.og {
    background-color: var(--button-bg-og);
    color: #f1f1f1;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
}


/* Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .navbar-right {
        display: none;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;
        color: #ff4d4d;
        padding: 0 1rem;
    }

    .navbar-right.show {
        display: flex;
    }

    .hamburger {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        text-align: left;
    }

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

    .hero-text {
        max-width: 100%;
    }

    .slogan {
        font-size: 1.8rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .cta-btn {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        /* stack features vertically */
    }

    .image-placeholder {
        min-height: 200px;
    }

    .theme-toggle-btn {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Default/light theme - hide infographic-dark */
#infographic-dark {
    display: none;
}

/* Dark theme - hide infographic-light and show infographic-dark */
[data-theme="dark"] #infographic-light {
    display: none;
}

[data-theme="dark"] #infographic-dark {
    display: block; /* or whatever display value you want */
}