/* ==========================================================================
   1. Base Resets & Custom Properties
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0e17;
    --card-bg: #121824;
    --accent-blue: #2979ff;
    --accent-gradient: linear-gradient(135deg, #2979ff, #00e5ff);
    --text-white: #ffffff;
    --text-muted: #8a99ad;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Header Navigation & Branding
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 70px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-left: 30px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

nav a:hover, 
nav a.active {
    color: var(--text-white);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ==========================================================================
   3. Hero Showcase Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    background: url('image/hero-bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.15) 0%, rgba(10, 14, 23, 0.95) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.tagline {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    display: inline-block;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 22px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 40px;
}

/* ==========================================================================
   4. Interactive Elements (Buttons & Inputs)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000000;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: #000000;
    transform: translateY(-3px);
}

/* ==========================================================================
   5. Dynamic Metrics Display Ribbon
   ========================================================================== */
.stats-bar {
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 45px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ==========================================================================
   6. Core Agency Offerings
   ========================================================================== */
.services {
    padding: 120px 0;
    text-align: center;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    color: var(--accent-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 50px auto 0;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.15rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(41, 121, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.service-card i {
    color: var(--accent-blue);
    font-size: 1.6rem;
    background: rgba(41, 121, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

/* ==========================================================================
   7. Specialized Production Showcase Grid
   ========================================================================== */
.showcase {
    padding: 80px 0 120px;
    text-align: center;
}

.sub-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 45px;
    font-weight: 500;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--card-bg);
    border: 1px solid rgba(41, 121, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer; /* Makes it obvious it can be clicked */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: #00e5ff;
    box-shadow: 0 18px 40px rgba(0, 229, 255, 0.18);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 14, 23, 0.9) 0%, rgba(10, 14, 23, 0.2) 60%, rgba(10, 14, 23, 0) 100%);
    display: flex;
    align-items: flex-end;
    text-align: left;
    padding: 24px;
    z-index: 2;
}

.overlay-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.overlay-text p {
    font-size: 0.75rem;
    color: #00e5ff;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   8. Form Module Elements & Input Architecture
   ========================================================================== */
.contact-section {
    padding: 80px 0 120px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* FIXED FATAL ERROR HERE */
.contact-info {
    text-align: left;
}

.contact-info h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.response-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.01);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00e5ff;
}

.contact-form-box input, 
.contact-form-box textarea {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    color: var(--text-white);
    margin-bottom: 16px;
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.contact-form-box input:focus, 
.contact-form-box textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(41, 121, 255, 0.15);
}

.form-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   9. Notification Modal Interface Windows
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px;
    border-radius: 16px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlide 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlide {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.success-icon {
    font-size: 4.5rem;
    color: #00e5ff;
    margin-bottom: 22px;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-btn {
    padding: 12px 45px;
}

/* ==========================================================================
   10. Specialized Subpage Architecture & Document Elements
   ========================================================================== */
.subpage-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contact-page-wrapper {
    margin-top: 100px;
    flex: 1;
    display: flex;
    align-items: center;
    padding-bottom: 80px;
}

.legal-page-wrapper {
    margin-top: 120px;
    flex: 1;
    padding-bottom: 100px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}

.legal-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 25px 0 40px;
}

.legal-content section {
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #00e5ff;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 1rem;
}

.active-legal {
    color: #00e5ff !important;
    font-weight: 600;
}

/* ==========================================================================
   11. Footer Elements
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0;
    background-color: rgba(5, 7, 12, 0.4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand {
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.05rem;
}

.footer-legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #00e5ff;
}

.footer-legal-links span {
    font-size: 0.7rem;
    opacity: 0.2;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-right a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #00e5ff;
}

/* ==========================================================================
   11.5 Custom Lightbox Media Viewer Interface
   ========================================================================== */
.media-viewer {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    background-color: rgba(5, 7, 12, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.media-viewer.show {
    display: flex !important;
    opacity: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.viewer-content {
    max-width: 85%;
    max-height: 80vh;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-viewer.show .viewer-content {
    transform: scale(1);
}

.viewer-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.viewer-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 3010;
    line-height: 1;
}

.viewer-close:hover {
    color: #00e5ff;
    transform: scale(1.1) rotate(90deg);
}

@media screen and (max-width: 768px) {
    .viewer-close {
        top: 20px;
        right: 25px;
        font-size: 2.5rem;
    }
    .viewer-content {
        max-width: 92%;
    }
}

/* ==========================================================================
   12. Responsive Device Overrides & Adaptations
   ========================================================================== */
@media screen and (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1005; 
        padding: 0;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--text-white);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: #121824; 
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
    }

    nav.active {
        right: 0 !important;
    }

    nav a {
        display: block;
        margin-left: 0;
        color: #8a99ad !important; 
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        padding: 10px 0;
        transition: color 0.3s ease;
    }

    nav a:hover,
    nav a.active {
        color: #ffffff !important; 
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(445deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-445deg);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 0;
    }

    .services-grid, 
    .portfolio-grid, 
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
    }
}

.menu-toggle {
    display: none;
}

/* ==========================================================================
   13. Scroll Animation Effects Configuration
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   14. Extra Small Mobile Screen Tuning (Phones under 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .logo img {
        height: 40px !important;
    }

    .navbar {
        padding: 10px 0;
    }

    .menu-toggle {
        width: 26px;
        height: 18px;
    }
    
    .menu-toggle .bar {
        height: 2.5px;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.hidden-link {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Forces it to match your footer text color */
    cursor: default;       /* Changes the cursor to arrow instead of a hand */
}

/* Optional: If you want it to be discoverable by YOU only when you hover over it */
.hidden-link:hover {
    cursor: pointer;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111111; /* Matches dark themes */
    color: #ffffff;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    border-top: 1px solid #333;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Helps with mobile responsiveness */
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}