/* Responsive Styles */
@media only screen and (max-width: 992px) and (max-width: 1200px) {

    /* Adjustments for large tablets and small laptops */
    .container {
        padding: 0 30px;
    }

    .hero-title {
        padding: 20px;
    }
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* responsive.css - 769px to 992px */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    .header-content {
        display: flex;
        flex-direction: column;
    }

    .nav-container {
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: flex-end;
        align-content: space-between;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .section-header {
        text-align: center;
        margin-top: 2rem;
    }

    .hero-content,
    .hero-title {
        font-size: 2.5rem;
        padding: 10px;
    }

    .hero-buttons {
        font-size: 1.2rem;
    }

    .section-title {
        padding-top: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .image-container {
        max-width: 600px;
        margin: 0 auto var(--spacing-lg);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 768px) {

    /* Mobile landscape and small tablets */
    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 60%;
        height: calc(100vh - 80px);
        background: #f5f0e0;
        background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='10' height='10' x='0' y='0' fill='%23f5f0e0'/%3E%3Crect width='20' height='20' x='20' y='20' fill='%23f5f0e0'/%3E%3Crect width='10' height='10' x='0' y='10' fill='%23e6ddc4' fill-opacity='0.4'/%3E%3Crect width='10' height='10' x='10' y='0' fill='%23e6ddc4' fill-opacity='0.4'/%3E%3C/svg%3E");
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: 0.3s;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }


    .nav-link {
        color: #ad0e60;
        text-decoration: none;
        position: relative;
        transition: all 0.4s ease;
        font-weight: bold;
        padding: 10px 15px;
        overflow: hidden;
    }

    .nav-link::before,
    .nav-link::after {
        content: '';
        position: absolute;
        background: #000000;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        opacity: 0.8;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.scrolled span {
        background: rgb(53, 53, 53);
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 100%;
    }

    .service-card,
    .portfolio-item {
        width: 100%;
    }

    .portfolio-filters {
        flex-wrap: wrap;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .filter-btn {
        margin: 5px;
    }
}

@media only screen and (max-width: 576px) {

    /* Mobile portrait */
    .logo-text {
        font-size: 2.0rem;
    }

    .nav-menu {
        position: fixed;
        top: 110px;
        left: -100%;
        width: 60%;
        height: calc(100vh - 80px);
        background-color: #f5f0e0;
        background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='10' height='10' x='0' y='0' fill='%23f5f0e0'/%3E%3Crect width='20' height='20' x='20' y='20' fill='%23f5f0e0'/%3E%3Crect width='10' height='10' x='0' y='10' fill='%23e6ddc4' fill-opacity='0.4'/%3E%3Crect width='10' height='10' x='10' y='0' fill='%23e6ddc4' fill-opacity='0.4'/%3E%3C/svg%3E");
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 0;
        transition: 0.3s;
        z-index: 999;
    }

    .nav-link {
        color: #ad0e60;
        text-decoration: none;
        position: relative;
        transition: all 0.4s ease;
        font-weight: bold;
        padding: 10px 15px;
        overflow: hidden;
    }

    .nav-link::before,
    .nav-link::after {
        content: '';
        position: absolute;
        background: #000000;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        opacity: 0.8;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 60%;
        text-align: center;
    }

    .hamburger.scrolled span {
        background: rgb(54, 54, 54);
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid,
    .values-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header .section-badge {
        font-size: 0.8rem;
    }

    .section-badge span {
        color: #2e2e2e;
        /* Muted gray */
        font-size: 2rem;
        font-weight: 800;
    }

    .service-image img {
        max-width: 100%;
        height: auto;
        border-radius: 2
        4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .service-detail-row,
    .service-detail-row.reverse {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 4rem;
    }

    .service-image,
    .service-detail-row:not(.reverse) .service-image,
    .service-detail-row.reverse .service-image {
        width: 100%;
        height: 210px;
        margin: 0;
    }

    .service-text {
        position: relative;
        width: 90%;
        margin: -3rem auto 0;
        text-align: justify;
        z-index: 2;
    }

    .service-text {
        width: 100%;
        padding: 1.5rem;
    }

    .service-text h3 {
        font-size: 1.4rem;
    }

    .service-text ul {
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .service-text ul li {
        padding: 0.5rem 0.2rem;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .values-section h3 {
        font-size: 1.8rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 15px;
    }
}

/* General responsive adjustments */
@media only screen and (max-width: 400px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        font-size: 0.8rem;
        width: 40%;
    }

    .section-title {
        font-size: 0.8rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .portfolio-filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .service-text {
        width: 100%;
        padding: 1.5rem;
    }

    .service-text h3 {
        font-size: 1.4rem;
    }

    .service-text ul li {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Ensure video background scales properly */
@media only screen and (max-aspect-ratio: 16/9) {
    .hero-video-bg video {
        width: auto;
        height: 100%;
    }
}

@media only screen and (min-aspect-ratio: 16/9) {
    .hero-video-bg video {
        width: 100%;
        height: auto;
    }
}

/* Typography adjustments for smaller screens */
@media only screen and (max-width: 768px) {

    h1,
    h2 {
        line-height: 1.3;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-title,
    .portfolio-title {
        font-size: 1.2rem;
    }

    .service-description,
    .portfolio-description {
        font-size: 0.9rem;
    }
}

/* Form adjustments */
@media only screen and (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    .form-group:last-child {
        margin-bottom: 0;
    }
}

/* Navigation scroll behavior */
@media only screen and (max-width: 768px) {
    .navbar.scrolled {
        padding: 10px 0;
    }

    .nav-logo img {
        height: 40px;
    }
}

/* Portfolio item adjustments */
@media only screen and (max-width: 992px) {
    .portfolio-item {
        margin-bottom: 30px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }

    .portfolio-actions {
        transform: translateY(0);
    }
}

/* Animation adjustments for mobile */
@media only screen and (max-width: 768px) {
    .fade-in {
        /* animation: none; */
        opacity: 1;
    }

    .delay-1,
    .delay-2,
    .delay-3,
    .delay-4 {
        animation-delay: 0s;
    }
}