/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .mobile-hero-carousel {
        display: block;
    }
    
    .hero {
        display: none;
    }
    
    .carousel-content {
        padding: 4rem 2rem 3rem;
        z-index: 9999;
    }
    
    .carousel-content .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .carousel-content .hero-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }
    
    .carousel-nav {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .carousel-nav.prev {
        left: 2rem;
    }
    
    .carousel-nav.next {
        right: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Reduce scroll padding for mobile navbar */
    html {
        scroll-padding-top: 80px;
    }
    
    /* Navigation adjustments */
    .navbar {
        padding: 0; /* Nav Horizontal padding must be same as the body padding */
    }

    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-black);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop hero and show mobile carousel */
    .hero {
        display: none;
    }

    .mobile-hero-carousel {
        display: block;
    }

    /* Services grid fix */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    /* Values grid fix */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        gap: 1.5rem;
    }

    /* Footer logo fix */
    .footer-logo img {
        height: 70vw;
        max-width: 100%;
    }

    /* Button adjustments */
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    /* Logo adjustments */
    .logo img {
        height: 60px;
        margin-left: -19px;
    }

    /* Section padding adjustments */
    .about, .services, .contact {
        padding: 4rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle,
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .footer-logo img {
        height: 70vw;;
    }
}