/* ============================================
   DIZAYN AJANS OFSET - RESPONSIVE STYLES
   Mobile-first responsive breakpoints
   ============================================ */

/* ============================================
   LARGE TABLETS & SMALL DESKTOPS (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-container {
        gap: 40px;
    }

    .about-container {
        gap: 40px;
    }
}

/* ============================================
   TABLETS (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Navbar - Mobile */
    .nav-brand {
        display: none;
    }

    .navbar .container {
        justify-content: flex-end;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero-logo {
        width: 250px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    /* Quote Form */
    .quote-form {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 16px;
        padding: 32px 20px;
    }

    .contact-social {
        justify-content: center;
        margin-top: 20px;
    }

    .contact-map {
        min-height: 300px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-brand img {
        margin: 0 auto 20px auto;
        display: block;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Service Detail (Inner Page) */
    .service-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail:nth-child(even) .service-detail-container {
        direction: ltr;
    }
    
    .service-detail-image {
        aspect-ratio: 16/9;
        margin-bottom: 10px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 30px;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    /* WhatsApp & Scroll Top */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 16px;
        right: 76px;
        width: 40px;
        height: 40px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }

    /* Page Hero (Inner Pages) */
    .page-hero {
        padding: 100px 0 30px;
    }

    /* Portfolio Filters */
    .portfolio-filters {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ============================================
   MOBILE PHONES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 16px;
    }

    /* Navbar */
    .nav-brand img {
        height: 34px;
    }

    .navbar.scrolled .nav-brand img {
        height: 30px;
    }

    .lang-switch {
        display: none;
    }

    .nav-actions .lang-switch-mobile {
        display: flex;
    }

    /* Hero */
    .hero-logo {
        width: 200px;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .hero-tagline .dot {
        width: 4px;
        height: 4px;
        margin: 0 8px;
    }

    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Services */
    .service-card {
        padding: 24px 20px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Detail Image (Mobile) */
    .service-detail-image {
        aspect-ratio: auto;
        border-radius: 8px;
        background: transparent;
    }
    
    .service-detail-image img {
        object-fit: contain;
    }
    
    .service-detail-content h2 {
        font-size: 1.4rem;
    }

    /* Quote Form */
    .quote-form {
        padding: 24px 16px;
    }

    /* Contact */
    .contact-item {
        padding: 16px;
    }

    .contact-social {
        flex-wrap: wrap;
    }

    /* Section Title */
    .section-title {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* References */
    .refs-track {
        gap: 40px;
    }

    .ref-item img {
        max-height: 35px;
        max-width: 100px;
    }

    /* Toast */
    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: auto;
    }
}

/* ============================================
   VERY SMALL SCREENS (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .hero-logo {
        width: 180px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .contact-icon {
        display: none;
    }
}

/* ============================================
   LANDSCAPE PHONES
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-logo {
        width: 150px;
        margin-bottom: 16px;
    }

    .hero-title {
        margin-bottom: 20px;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-brand img,
    .hero-logo,
    .footer-brand img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .hero-cta,
    #particles-canvas,
    .hero-decoration,
    .page-loader {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    a {
        color: #000;
    }

    .section-title::after {
        display: none;
    }
}
