/* 
  Ahhuh Productions - Premium Design System
  Theme: Dark Elegance (Black & Red)
*/

:root {
    --bg-color: #0c0c0c;
    --surface-color: #1a1a1a;
    --primary-color: #ff0000; /* Vibrant Red from logo */
    --primary-hover: #cc0000;
    --secondary-accent: #a6a6a6; /* Silver/Grey from logo */
    --text-main: #ffffff;
    --text-secondary: #a6a6a6; /* Brighter for better contrast (was #888888) */
    --accent-glow: rgba(255, 0, 0, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Outfit:wght@700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navbar --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem; /* Smaller padding on mobile */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 75px; 
    width: auto;
    /* mix-blend-mode: screen makes black background transparent in JPG */
    mix-blend-mode: screen; 
    /* brightness/contrast to pop the 'PRODUCTIONS' text */
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 5px rgba(255,0,0,0.3));
    transition: var(--transition);
    animation: beatPulse 0.9s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0.75rem 2rem;
    }
    .logo-container img {
        height: 80px;
    }
}

@keyframes beatPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,0,0,0.2)); }
    10% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(255,0,0,0.6)); }
    20% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,0,0,0.2)); }
}

.logo-container:hover img {
    animation-play-state: paused;
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255,0,0,0.8));
}

.vertical-social-bar {
    display: none !important;
}

@media (min-width: 1024px) {
    .vertical-social-bar {
        display: flex !important;
    }
}

/* --- Navigation & Mobile Menu --- */

.nav-links {
    display: none; /* Hidden on mobile by default */
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Button */
.menu-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all .5s ease-in-out;
    z-index: 1100;
}

.menu-btn__burger {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all .5s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all .5s ease-in-out;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Menu Button Animation */
.menu-btn.open .menu-btn__burger {
    transform: translateX(-50px);
    background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(35px, -35px);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
    }
    .menu-btn {
        display: none; /* Hide hamburger on desktop */
    }
}

/* Mobile Overlay Menu */
@media (max-width: 1023px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen right */
        width: 100%;
        height: 100vh;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* --- Mobile Action Tray (Sticky Footer) --- */
.mobile-action-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 0 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.tray-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    gap: 5px;
    transition: var(--transition);
}

.tray-item i {
    font-size: 1.25rem;
}

.tray-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: -30px; /* Floating primary button effect */
    box-shadow: 0 10px 20px var(--accent-glow);
    font-size: 0.75rem;
}

.tray-primary:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
}

@media (min-width: 769px) {
    .mobile-action-tray {
        display: none; /* Hide tray on tablet/desktop */
    }
}

/* --- Motion Graphics & Animations --- */

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    /* Darker, multi-layered gradient for superior text contrast */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%),
                radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

/* Scanline Effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255,0,0,0.05) 50.5%);
    background-size: 100% 4px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.3;
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Production Statistics / Count */
.counter-box {
    text-align: center;
}

.counter-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: block;
}

/* --- Production Aesthetics --- */

.viewfinder-corner {
    position: absolute;
    width: 25px; /* Scaled down even more for safety */
    height: 25px;
    border: 1px solid var(--primary-color);
    z-index: 5;
    pointer-events: none;
}

.top-left { top: 40px; left: 40px; border-right: none; border-bottom: none; }
.top-right { top: 40px; right: 40px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 40px; left: 40px; border-right: none; border-top: none; }
.bottom-right { bottom: 40px; right: 40px; border-left: none; border-top: none; }

.floating-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    opacity: 0.15;
    z-index: 3;
    animation: float 6s infinite ease-in-out;
    pointer-events: none;
    max-width: 100%; /* Safety */
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

.brackets {
    position: relative;
    padding: 0 20px; /* Reduced padding for mobile */
}

.brackets::before, .brackets::after {
    content: '[';
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: 0;
    font-size: 4rem; /* Smaller brackets for mobile */
    font-weight: 200;
    color: var(--primary-color);
    line-height: 1;
}

@media (min-width: 768px) {
    .brackets {
        padding: 0 40px;
    }
    .brackets::before, .brackets::after {
        font-size: 8rem;
    }
}

.brackets::after {
    content: ']';
    left: auto;
    right: 0;
}

/* --- Layout Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(transparent, var(--bg-color));
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: clamp(1.1rem, 7vw, 2.5rem); /* More aggressive scaling to prevent any overflow */
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
    /* Strategic drop shadow for visibility on video */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }
}

.hero-content span {
    color: var(--primary-color);
}

.hero-tagline {
    font-size: 1.25rem;
    color: #eee; /* Lightened from var(--text-secondary) for readability */
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    font-weight: 500;
}

/* --- Buttons --- */

.btn {
    width: 100%; /* Mobile first: full width buttons */
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* --- Services Grid --- */

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-top: 5px solid transparent;
    transition: var(--transition);
    border-radius: 8px;
    text-align: center;
}

.service-card:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* --- Booking Section --- */

.booking-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 1rem;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #333;
}

.form-full {
    grid-column: 1 / -1;
}

/* --- Gallery --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(230, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
}
