/* Responsive Styles */

/* Mobile devices (portrait and landscape) */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
        order: 1; /* Ensure it's visible */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default */
        text-align: center;
        padding: 10px 0;
        background-color: var(--card-bg-light);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .nav-links {
        background-color: var(--card-bg-dark);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dark-mode-toggle {
        order: 2; /* Position next to menu toggle */
        margin-left: auto; /* Push to the right */
    }

    .hero {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 15px 0;
        text-align: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 10px;
    }
}

/* Tablet devices (portrait and landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links li {
        margin-left: 20px;
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}