﻿/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mobile-menu {
        display: block;
        color: var(--light-text);
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-color);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            display: flex;
            animation: slideDown 0.3s ease forwards;
        }

        .nav-links li {
            margin: 10px 0;
        }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-grid,
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-showcase .project-item.large {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .map-container {
        height: 300px;
    }

    .footer {
        padding: 50px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        padding: 0;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .location-info,
    .contact-info .info-item,
    .quick-links,
    .social-links {
        justify-content: center;
    }

    .gallery-grid {
        max-width: 300px;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 80px 15px 30px;
    }

    .hero-text {
        padding: 15px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-description h2 {
        font-size: 1.2rem;
    }

    .hero-description p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .logo h1 {
        display: none; /* Hide text on very small screens */
    }

    .logo-img {
        height: 32px; /* Make logo slightly larger when text is hidden */
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .separator {
        width: 50px;
        height: 3px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* About Section Responsive Styles */
@media screen and (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-description h2 {
        font-size: 1.6rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-item {
        border-bottom: none;
        border-right: 1px solid rgba(0,0,0,0.1);
        margin-bottom: 0;
    }

    .stat-item:last-child {
        border-right: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .map-container {
        height: 400px;
    }

    .navbar {
        padding: 10px 0;
    }

    .hero-description {
        padding: 0 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 1200px) {
    .about-container {
        gap: 30px;
    }

    .highlight-box h3 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 40px auto 0;
    }

    .about-stats {
        padding: 20px;
    }

    .stats-grid {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat-item {
        border-bottom: none;
        border-right: 1px solid rgba(0,0,0,0.1);
        padding: 15px 30px;
        flex: 1;
        min-width: 200px;
    }

    .stat-item:last-child {
        border-right: none;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .separator {
        width: 60px;
    }
}

@media screen and (max-width: 768px) {
    .about {
        padding: 60px 0;
    }

    .stats-grid {
        flex-direction: column;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 15px;
    }

    .counter {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 20px;
    }

    .highlight-box h3 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media screen and (max-width: 480px) {
    .about {
        padding: 40px 0;
    }

    .about-container {
        margin-top: 30px;
    }

    .highlight-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .highlight-box h3 {
        font-size: 1.2rem;
    }

    .counter {
        font-size: 1.8rem;
    }

    .about-text {
        padding: 0;
    }
}

/* Update Footer Content Responsive Styles */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

/* Partners Section Responsive Styles */
@media screen and (max-width: 1200px) {
    .partners-grid {
        gap: 25px;
    }
}

@media screen and (max-width: 991px) {
    .partner-card {
        height: 160px;
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .partners {
        padding: 60px 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .partner-card {
        height: 140px;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 30px auto 0;
    }

    .partner-card {
        height: 120px;
        padding: 15px;
    }
}

/* Team Section Responsive Styles */
@media screen and (max-width: 991px) {
    .row-triple {
        flex-wrap: wrap;
        justify-content: center;
    }

    .row-triple .team-member {
        width: calc(50% - 15px);
    }

    .row-triple .team-member:last-child {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .team-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .row-single .team-member,
    .row-double .team-member,
    .row-triple .team-member {
        width: 100%;
        max-width: 350px;
    }

    .team-member.featured {
        transform: none;
    }

    .member-img {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .member-img {
        height: 200px;
    }
}

/* Large Desktop Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop Screens (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Small Desktop/Large Tablet (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    section {
        padding: 60px 0;
    }

    /* Navigation adjustments */
    .navbar {
        padding: 10px 0;
    }

    /* Hero section */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-description h2 {
        font-size: 1.6rem;
    }

    .hero-description {
        padding: 0 20px;
    }

    /* Services section */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* About section */
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Projects section */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Contact section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 400px;
    }
}

/* Mobile (576px to 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    /* Mobile Navigation */
    .mobile-menu {
        display: block;
        color: var(--light-text);
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-color);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Hero section */
    .hero {
        padding: 100px 15px 40px;
        min-height: auto; /* Remove fixed height constraint */
    }

    .hero-text {
        padding: 20px 0;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        margin: 1.5rem 0;
    }

    .hero-description h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .hero-description p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Team section */
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Projects section */
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .project-showcase .project-item.large {
        grid-template-columns: 1fr;
    }

    /* Contact section */
    .contact-form-wrapper {
        padding: 20px;
    }

    .map-container {
        height: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .quick-links,
    .social-links,
    .location-info,
    .contact-info {
        justify-content: center;
    }

    .gallery-grid {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Small Mobile (575px and below) */
@media screen and (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Header/Logo */
    .logo h1 {
        display: none;
    }

    .logo-img {
        height: 32px;
    }

    /* Hero section */
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-description h2 {
        font-size: 1.4rem;
    }

    .hero-description p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-description h2 {
        font-size: 1.2rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 250px;
    }

    /* Swiper navigation */
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Handle notched phones */
@media screen and (max-width: 575px) and (orientation: landscape) {
    .navbar {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
