@media(max-width: 500px) {

    .hero-content .btn {
        margin-bottom: 1rem;
        margin-right: 6rem;
        margin-left: 6rem;
        display: block;
    }
}

@media(max-width: 1250px) {
    .mini-map {
        display: none;
    }
}

@media(max-width: 1150px) {
    .team-member {
        margin: 1rem;
    }
}

@media (max-width: 1920px) {
    #content-container {
        top: 110%;
    }

    .projects {
        padding-bottom: 15rem;
    }
}

@media(max-width: 980px) {
    .hamburger {
        display: flex;
        margin-right: 5rem;
        /* Show hamburger icon on smaller screens */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2000;
    }

    #nav-menu {
        display: none;
        /* Hide nav menu by default on smaller screens */
        flex-direction: column;
        position: absolute;
        top: 5rem;
        /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(15, 15, 26, 0.9);
        /* Semi-transparent background */
        padding: 1rem;
        text-align: center;
        z-index: 2000;
        /* Ensure it's above other elements */
    }

    #nav-menu.active {
        display: flex;
        /* Show nav menu when active */
    }

    #nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        /* Space between links */
        padding: 0;
        margin: 0;
    }

    #nav-menu ul li a {
        color: var(--text-color);
        /* Ensure links are visible */
        font-size: 1.25rem;
        /* Adjust font size for mobile */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* Smaller base font size for mobile */
    }

    .hero-content {
        margin-bottom: 5rem;
    }

    header {
        height: 3.5rem;
        /* Smaller header height */
    }

    .mini-map {
        display: none;
    }

    .logo img {
        height: 4rem;
        /* Smaller logo */
    }

    .logo-large {
        display: none;
        /* Hide on small screens */
    }

    .logo-small {
        display: block;
        /* Show on small screens */
    }




    .hero {
        padding-left: 2%;
        /* Smaller padding */
    }

    .hero-content {
        width: 80%;
        /* Wider content area */
    }




    .about-container {

        flex-direction: column;
        padding: 5% 2%;
        /* Smaller padding */
    }

    .about-content {
        max-width: 100%;
        /* Full width */
    }

    .services-container {
        flex-direction: column;
    }

    .services-text {
        max-width: 100%;
        /* Full width */
    }

    .service-cards {
        width: 100%;
        /* Full width */
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* Smaller grid items */
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .team-container {
        flex-direction: column;
        align-items: center;

    }

    .team-content {
        margin-bottom: 10rem;
    }

    .team-member {
        width: 80%;


        /* Relative margin */
    }
}