/* ==========================================================================
   Mobile Hamburger Trigger UI Component
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #111111;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Responsive Tablet Form Factors (Down to 992px)
   ========================================================================== */
@media (max-width: 992px) {
    nav {
        padding: 1.5rem 5%;
    }
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .photo-square-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .about-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 5%;
    }
    .about-image {
        max-height: 400px;
    }
}

/* ==========================================================================
   Responsive Smartphone Viewports (Down to 768px)
   ========================================================================== */
@media (max-width: 768px) {
    nav { 
        padding: 1.2rem 5% !important; 
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }
    
    .hamburger {
        display: flex !important;
    }

    /* Centers the main brand typography perfectly inside the header navbar */
    .logo-area {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
    }

    /* Clean mobile dropdown navigation panel configuration */
    nav ul {
        display: none;
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.03);
        padding: 1.5rem 0 !important;
        gap: 1.5rem !important;
        z-index: 1000;
        border-top: 1px solid #f5f5f5;
        box-sizing: border-box;
    }

    /* Activated state injected by single-page application framework script */
    nav ul.active {
        display: flex !important;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 0.8rem !important;
    }

    .hero {
        padding: 4rem 5% 3rem 5%;
    }

    .hero h1 { 
        font-size: 1.9rem !important; 
    }
    
    .carousel-container {
        height: 280px !important;
    }
    
    .portfolio-section, .clients-section, .contact-section {
        padding: 4rem 5%;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   Compact Mobile Viewports (Down to 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero h1 { 
        font-size: 1.6rem !important; 
    }
    .video-grid, .photo-square-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}