:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #0071e3;
    --card-bg: #f5f5f7;
    --hero-bg: linear-gradient(135deg, #f5f5f7 0%, #fff 100%);
    --hero-text: #111111;
}

body.dark-mode {
    --bg: #000000;
    --text: #f5f5f7;
    --accent: #0a84ff;
    --card-bg: #1c1c1e;
    --hero-bg: linear-gradient(135deg, #111 0%, #000 100%);
    --hero-text: #f5f5f7;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    overflow-x: visible;
}

.navbar {
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: background 0.3s, border-color 0.3s;
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }

.logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: var(--accent);
        }

.theme-btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: var(--hero-bg);
    color: var(--hero-text);
    transition: background 0.3s, color 0.3s;
}

    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        color: var(--text);
        opacity: 0.8;
    }

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-primary:hover {
        background: #005bb5;
    }

.hero-accent {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

    .hero-accent .accent-dot {
        font-size: 2rem;
    }

.section {
    padding: 5rem 2rem;
    text-align: center;
}

    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

    .card h3 {
        font-weight: 600;
        margin: 1rem 0 0.5rem;
    }

    .card p {
        font-size: 0.95rem;
        color: #555;
    }

.emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background: var(--bg);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0.5rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        text-align: right;
        z-index: 1000; /* make sure it’s above hero */
    }

        .nav-links.active {
            display: flex;
        }

    .navbar .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .logo {
        order: 1; /* Logo stays left */
    }

    .theme-btn {
        order: 2; /* Theme toggle before hamburger */
        margin-left: auto; /* Pushes theme toggle to right */
    }

    .hamburger {
        display: block;
        order: 3;
        margin-left: 0.5rem; /* keeps it next to theme button */
    }

    .section {
        padding: 1rem 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .card {
        padding: 2rem 1rem;
    }
}
.robot-container {
    position: fixed; /* keeps it on screen */
    bottom: 20px; /* 20px from bottom */
    left: -80px; /* start off-screen */
    z-index: 10000; /* make sure it's above everything */
    pointer-events: none; /* so it doesn’t block clicks */
}

#robot {
    width: 64px;
    height: 64px;
    animation: walk 15s linear infinite, bob 0.5s ease-in-out infinite alternate;
}

@keyframes walk {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(110vw);
    }
    /* move completely across viewport */
}

@keyframes bob {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-5px);
    }
}
