/* ===== RESPONSIVE DESIGN ===== */

/* Mobile view (≤860px) - Hamburger menu */
@media (max-width: 860px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #0a0a0a !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 100px 40px 40px 40px !important;
        margin: 0 !important;
        gap: 30px !important;
        transition: right 0.3s ease-in-out !important;
        z-index: 1000 !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3) !important;
        border-left: 1px solid rgba(255, 193, 7, 0.3) !important;
        list-style: none !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        width: 100% !important;
        margin: 0 !important;
    }

    .nav-links a {
        display: block !important;
        font-size: 1.2rem !important;
        padding: 8px 0 !important;
        color: #fff !important;
        font-weight: 500 !important;
        text-decoration: none !important;
    }

    .nav-links a:hover {
        color: var(--yellow) !important;
    }

    .hamburger.active span {
        background-color: #FFFFFF !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-grid {
        flex-direction: column;
    }

    .hero-image-inline {
        align-self: center;
        max-width: 280px;
        margin-top: 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-highlight {
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Desktop view (≥861px) */
@media (min-width: 861px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: none !important;
        gap: 32px !important;
    }

    .nav-links li {
        width: auto !important;
    }

    .hamburger {
        display: none !important;
    }
}

/* Medium screens (≤992px) */
@media (max-width: 992px) {
    .hero-image-inline {
        margin-top: 60px;
    }
}

/* Tablets (≤768px) */
@media (max-width: 768px) {
    .about-preview {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .about-text p {
        margin: 0 auto;
    }

    .about-stats {
        justify-items: center;
        gap: 24px;
        width: 100%;
    }

    .stat {
        text-align: center;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .work-grid {
        gap: 20px;
    }

    .work-img {
        height: 180px;
        font-size: 2.5rem;
    }

    .testimonials-grid {
        gap: 20px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .cta-section {
        padding: 40px 24px;
    }

    .contact-section {
        padding: 40px 0 60px;
    }

    .contact-wrapper {
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .btn {
        padding: 10px 24px;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo-main {
        font-size: 1.5rem;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 30px 0 50px;
    }

    h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    .hero-highlight {
        font-size: 1rem;
        padding-left: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-image-inline {
        max-width: 240px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat h4 {
        font-size: 1.5rem;
    }

    .service-icon {
        font-size: 2.2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Small phones (≤380px) */
@media (max-width: 380px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }
}

/* Fix work images on mobile */
@media (max-width: 768px) {
    .work-img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .work-img {
        height: 200px;
    }
}