/* =====================================================
   BRANDKOM - RESPONSIVE DESIGN
   Mobile-First Approach
   ===================================================== */

/* =====================================================
   TABLET & BELOW (max-width: 1024px)
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 6rem;
    }

    .services-masonry,
    .portfolio-masonry {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .card-featured,
    .card-wide,
    .portfolio-wide {
        grid-column: span 1;
    }

    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-visual {
        height: 400px;
    }

    /* Clients - Tablet (6 columns) */
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--spacing-md);
    }

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

/* =====================================================
   MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-2xl: 4rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg);
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition-base);
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-light);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 0;
        font-size: 1.125rem;
    }

    .btn-cta {
        display: none;
    }

    .menu-burger {
        display: flex;
    }

    /* Hero Video Background */
    .bk-hero {
        min-height: 600px;
    }
    
    .bk-hero__video {
        /* Ensure video shows on mobile */
        display: block;
        min-width: 100%;
        min-height: 100%;
    }
    
    .bk-hero__video-overlay {
        /* Darken overlay on mobile for better readability */
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(227, 30, 36, 0.4) 100%);
    }
    
    .bk-hero__content {
        padding: var(--spacing-md);
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    .geo-shape {
        display: none; /* Hide geometric shapes on mobile for cleaner look */
    }

    /* Services */
    .services-masonry {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .service-number {
        font-size: 3rem;
    }

    /* Portfolio */
    .portfolio-filters {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-sm);
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .portfolio-masonry {
        grid-template-columns: 1fr;
    }

    .portfolio-tall {
        grid-row: span 1;
    }

    /* About */
    .about-visual {
        height: 300px;
    }

    .about-img {
        width: 280px;
        height: 280px;
    }

    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 180px;
        height: 180px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    /* Clients - Mobile (3 columns) */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .client-logo {
        padding: 0.5rem;
    }

    .client-logo img {
        width: 100%;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        font-size: 1.75rem;
    }
}

/* =====================================================
   SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .logo {
        height: 85px;
    }

    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .stat-label {
        font-size: 0.8125rem;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .portfolio-overlay {
        padding: var(--spacing-md);
    }

    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Clients - Small Mobile (2 columns) */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .client-logo {
        padding: 0.375rem;
    }
}

/* =====================================================
   LANDSCAPE MOBILE (max-height: 600px)
   ===================================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    }

    .hero-stats {
        flex-direction: row;
    }

    .stat-divider {
        width: 1px;
        height: 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .navbar,
    .hero-cta,
    .portfolio-filters,
    .whatsapp-float,
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .service-card,
    .portfolio-item,
    .feature-box {
        page-break-inside: avoid;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gradient-orb {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #CC0000;
        --color-black: #000000;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    .service-card,
    .portfolio-item,
    .contact-form {
        border: 2px solid var(--color-dark);
    }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be added if dark mode is desired */
}
