/* ==========================================
   CSS RESET & VARIABLES
   ========================================== */
:root {
    --bg-main: #0a0a0c;
    --bg-card: #121216;
    --bg-card-hover: #18181e;
    --text-primary: #ffffff;
    --text-muted: #8e8e9c;
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-head: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Enforce zero horizontal overflow across the entire document */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

body { background-color: var(--bg-main); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; }

.bg-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: -1; pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.accent-text { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.sub-label { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.section { padding: 6rem 5%; max-width: 1300px; margin: 0 auto; }
.pt-0 { padding-top: 0 !important; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.w-100 { width: 100%; }

/* ==========================================
   PAGE HEADERS (Multi-Page Templates)
   ========================================== */
.page-header { padding: 6rem 5% 4rem; max-width: 1000px; margin: 0 auto; text-align: left; }
.page-header h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin-bottom: 1rem; word-wrap: break-word; overflow-wrap: break-word; }
.header-subtitle { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 700px; }

/* ==========================================
   RESPONSIVE LOGO
   ========================================== */
.logo-link { text-decoration: none; display: flex; align-items: center; }
.brand-logo {
    max-height: clamp(48px, 6vw, 70px);
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.logo-link:hover .brand-logo { transform: scale(1.03); }
.logo-text { font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 800; letter-spacing: 1px; color: var(--text-primary); }
.logo-text span { color: var(--accent); }

/* ==========================================
   BUTTONS & ICONS
   ========================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.85rem 1.8rem; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; border-radius: 4px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.btn-icon { transition: transform 0.3s ease; }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #000; border: none; box-shadow: 0 0 25px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(0, 240, 255, 0.4); background: #fff; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

/* ==========================================
   DESKTOP NAVIGATION
   ========================================== */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; border-bottom: 1px solid var(--border-color); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; background: rgba(10, 10, 12, 0.85); }
.nav-links { display: flex; gap: 2rem; }
.nav-item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s, transform 0.2s; }
.nav-icon { display: flex; align-items: center; color: inherit; transition: color 0.2s; }
.nav-item:hover, .nav-item.active { color: var(--text-primary); transform: translateY(-1px); }
.nav-item.active .nav-icon { color: var(--accent); }

/* ==========================================
   HERO & MARQUEE (Upgraded Mobile Sizing)
   ========================================== */
.hero { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 5%; max-width: 1300px; margin: 0 auto; }
.hero-badge { border: 1px solid var(--border-color); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 1.5rem; background: rgba(255,255,255,0.02); }

/* Lowered minimum from 2.8rem to 1.75rem and added word-wrap to prevent clipping */
.hero-title { 
    font-size: clamp(1.75rem, 8vw, 5.5rem); 
    line-height: 1.1;
    margin-bottom: 1.5rem; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    max-width: 100%;
}

.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-muted); max-width: 650px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

.marquee-wrap { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 1rem 0; overflow: hidden; background: var(--bg-card); white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 25s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; letter-spacing: 3px; color: var(--text-muted); padding-right: 10px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================
   SERVICES & PROJECTS GRIDS
   ========================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 8px; position: relative; overflow: hidden; transition: all 0.4s ease; }
.service-card:hover { background: var(--bg-card-hover); border-color: rgba(0, 240, 255, 0.3); transform: translateY(-5px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.service-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: rgba(255,255,255,0.2); }
.service-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; padding: 0.3rem 0.8rem; border-radius: 20px; background: rgba(255,255,255,0.05); color: var(--accent); }
.service-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }
.card-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,240,255,0.05) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.service-card:hover .card-glow { opacity: 1; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.4s ease, border-color 0.4s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.project-img { width: 100%; height: 240px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%) contrast(110%); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease; }
.project-card:hover .project-img img { transform: scale(1.05); filter: grayscale(0%) contrast(100%); }
.project-info { padding: 2rem; }
.project-cat { color: var(--accent); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.project-info h3 { font-size: 1.4rem; margin: 0.5rem 0 1rem; }
.project-metric { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.9rem; background: rgba(255,255,255,0.03); padding: 0.8rem; border-radius: 4px; border-left: 2px solid var(--accent); }
.metric-icon { color: var(--accent); flex-shrink: 0; }

/* ==========================================
   ABOUT & CONTACT PAGE LAYOUTS
   ========================================== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-box { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.8rem; border-radius: 8px; border-left: 3px solid var(--accent); }
.feature-box h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-box p { color: var(--text-muted); font-size: 0.95rem; }

.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.booking-card, .form-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 3rem 2.5rem; border-radius: 12px; }
.booking-card h3, .form-card h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.booking-card p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-direct-info { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea { background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); padding: 1rem; border-radius: 6px; color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem; width: 100%; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

/* ==========================================
   STATS, FAQ & CTA SECTIONS
   ========================================== */
.stats-section { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, transparent 100%); }
.mission-box { max-width: 900px; margin: 0 auto 5rem; text-align: center; }
.mission-box h3 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

.accordion { max-width: 800px; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 0; background: none; border: none; color: var(--text-primary); font-family: var(--font-head); font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 700; text-align: left; cursor: pointer; transition: color 0.2s; }
.accordion-header:hover { color: var(--accent); }
.accordion-header .icon { font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; }
.accordion-item.active .accordion-header .icon { transform: rotate(45deg); color: var(--accent); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-body p { color: var(--text-muted); padding-bottom: 1.8rem; font-size: 1rem; line-height: 1.7; }

.cta-section { text-align: center; padding: 6rem 5%; }
.cta-box { background: radial-gradient(circle at center, rgba(0,240,255,0.08) 0%, rgba(18,18,22,0.8) 70%); border: 1px solid rgba(0, 240, 255, 0.2); padding: clamp(3rem, 6vw, 5rem) 2rem; border-radius: 12px; }
.cta-box h2 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1rem; }
.cta-box p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   AGENCY FOOTER
   ========================================== */
.site-footer { border-top: 1px solid var(--border-color); background: var(--bg-card); padding: 5rem 5% 3rem; }
.footer-top { display: grid; grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr)); gap: 4rem; max-width: 1300px; margin: 0 auto 4rem; }
.footer-logo { margin-bottom: 1.2rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; max-width: 350px; margin-bottom: 1.5rem; line-height: 1.6; }
.footer-contact-info { display: flex; flex-direction: column; gap: 0.8rem; color: var(--text-primary); font-size: 0.9rem; font-weight: 500; }
.contact-row { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); }
.contact-row svg { color: var(--accent); flex-shrink: 0; }
.footer-links-col h4 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--text-primary); letter-spacing: 0.5px; }
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer-links-col ul li a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom { max-width: 1300px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.copyright { color: var(--text-muted); font-size: 0.85rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.footer-social a:hover { color: var(--accent); }

/* ==========================================================
   CINEBY-STYLE FLOATING MODAL CARD & BOTTOM DOCK
   ========================================================== */
.mobile-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10000; opacity: 0; transition: opacity 0.3s ease; }

/* Safe mobile boundaries and scrollability for the modal */
.cineby-modal { 
    display: none; 
    position: fixed; 
    bottom: -100%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: calc(100% - 24px); 
    max-width: 400px; 
    max-height: 75vh; 
    overflow-y: auto; 
    background: #141418; 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    border-radius: 28px; 
    padding: 1.25rem; 
    z-index: 10001; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 240, 255, 0.08); 
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.cineby-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border-color); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }
.cineby-close-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--text-primary); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.cineby-close-btn:hover { background: var(--accent); color: #000; }
.cineby-cat-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 0.8rem; text-transform: uppercase; }
.cineby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.cineby-grid-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; gap: 0.5rem; transition: all 0.2s; }
.cineby-icon-box { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.cineby-grid-item:hover .cineby-icon-box, .cineby-grid-item.active .cineby-icon-box { background: rgba(0, 240, 255, 0.1); border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2); }
.cineby-grid-item:hover span, .cineby-grid-item.active span { color: var(--text-primary); }
.cineby-action-row { margin-bottom: 1.5rem; }
.cineby-action-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem; border-radius: 14px; border: 1px solid rgba(0, 240, 255, 0.3); background: rgba(0, 240, 255, 0.08); color: var(--accent); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.cineby-action-btn:hover { background: var(--accent); color: #000; }
.cineby-status-row { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-muted); }
.status-left { display: flex; align-items: center; gap: 0.5rem; }
.status-left svg { color: var(--accent); }
.status-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: #00ff66; background: rgba(0, 255, 102, 0.1); padding: 0.25rem 0.6rem; border-radius: 20px; font-size: 0.75rem; border: 1px solid rgba(0, 255, 102, 0.3); }
.pulse-dot { width: 6px; height: 6px; background: #00ff66; border-radius: 50%; box-shadow: 0 0 8px #00ff66; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Active states for Cineby Drawer */
.mobile-nav-backdrop.active { display: block; opacity: 1; }
.cineby-modal.active { display: block; bottom: 75px; }

.mobile-bottom-dock { display: none; }

/* ==========================================
   RESPONSIVE & MOBILE OVERRIDES
   ========================================== */
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

@media (max-width: 768px) {
    .nav-links, .desktop-only { display: none; }
    .hero { min-height: 75vh; padding-top: 4rem; }
    .hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
    .btn { justify-content: center; }
    .projects-grid, .contact-container, .services-grid, .about-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column-reverse; text-align: center; justify-content: center; }
    body { padding-bottom: 95px; }

    /* Safe Bottom Dock with Flex-1 Distribution */
    .mobile-bottom-dock { 
        display: block; 
        position: fixed; 
        bottom: 12px; 
        left: 50%; 
        transform: translateX(-50%); 
        z-index: 10002; 
        width: calc(100% - 24px); 
        max-width: 400px; 
    }
    
    .dock-container { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%; 
        box-sizing: border-box; 
        background: rgba(18, 18, 22, 0.92); 
        border: 1px solid rgba(255, 255, 255, 0.12); 
        backdrop-filter: blur(20px); 
        -webkit-backdrop-filter: blur(20px); 
        padding: 8px 10px; 
        border-radius: 30px; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.08); 
    }
    
    .dock-item { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        color: var(--text-muted); 
        text-decoration: none; 
        background: none; 
        border: none; 
        padding: 6px 4px; 
        flex: 1; 
        max-width: 65px; 
        border-radius: 16px; 
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); 
        position: relative; 
        cursor: pointer; 
    }
    
    .dock-icon { display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, color 0.25s ease; }
    .dock-dot { width: 4px; height: 4px; background: transparent; border-radius: 50%; position: absolute; bottom: 2px; transition: all 0.3s ease; }
    .dock-item.active { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
    .dock-item.active .dock-icon { transform: translateY(-2px); color: var(--accent); }
    .dock-item.active .dock-dot { background: #ff2a5f; box-shadow: 0 0 8px #ff2a5f; }
}