:root {
    /* Locked High-Contrast Elegant Dark System */
    --bg-color: #0B0F19;
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --primary-color: #0F172A;
    --accent-color: #FBBF24;
    --accent-hover: #FDE68A;
    --card-bg: #1E293B;
    --border-color: #334155;
    --nav-bg: rgba(11, 15, 25, 0.85);
    --radius: 12px; 
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: var(--text-color); transition: var(--transition); }
h1, h2, h3 { color: var(--text-color); margin-bottom: 1rem; font-weight: 700; line-height: 1.2; }
p { margin-bottom: 1rem; color: var(--text-muted); }

/* --- HEADER & NAVIGATION --- */
header { 
    background-color: var(--nav-bg); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--border-color); 
    padding: 1rem 5%; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-wrapper { 
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.nav-logo { 
    height: 85px; /* Slightly more compact on mobile to save vertical space */
    width: auto; 
    object-fit: contain; 
}

/* Adjust logo on desktop */
@media (min-width: 900px) {
    .nav-logo { height: 85px; }
}

.logo-text-group { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    line-height: 1.1;
}

.logo-text { 
    font-size: 1.1rem; /* Scaled down for mobile */
    font-weight: 700; 
    letter-spacing: -0.5px; 
    color: #FFFFFF; 
}

.gold-text { 
    color: var(--accent-color); 
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3); 
}

.logo-subtext { 
    font-size: 0.65rem; /* Scaled down for mobile */
    font-weight: 400; 
    color: var(--text-muted); 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-top: 0.1rem; 
}

/* Fixes the text links navigation layout */
.nav-links { 
    display: flex; 
    gap: 0.8rem; 
    align-items: center; 
    overflow-x: auto; /* Allows links to scroll horizontally on small screens instead of breaking into rows */
    white-space: nowrap;
    max-width: 100%;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars for a cleaner nav appearance on mobile */
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.nav-links a, .dropbtn { 
    font-size: 0.85rem; /* Better scaling for handheld viewports */
}

/* Desktop layout overrides */
@media (min-width: 900px) {
    .logo-text { font-size: 1.4rem; }
    .logo-subtext { font-size: 0.75rem; }
    .nav-links { 
        gap: 2rem; 
        margin-left: auto; 
        overflow-x: visible; /* Return to standard dropdown rules on desktop */
        white-space: normal;
    }
    .nav-links a, .dropbtn { font-size: 1rem; }
}

/* --- DROPDOWNS ON MOBILE --- */
/* Adjust absolute drop downs so they don't clip outside narrow screen wrappers */
@media (max-width: 899px) {
    .dropdown-content {
        position: fixed;
        top: 70px;
        left: 5%;
        right: 5%;
        min-width: calc(90vw);
    }
    .submenu-content {
        left: 0;
        top: 100%;
        position: relative;
        box-shadow: none;
        border-left: 2px solid var(--accent-color);
        border-radius: 0;
        padding-left: 1rem;
    }
}

/* --- DROPDOWNS --- */
.dropdown { position: relative; display: inline-block; }
.dropbtn { cursor: pointer; }
.dropdown-content { display: none; position: absolute; background-color: var(--card-bg); min-width: 260px; box-shadow: 0px 8px 24px rgba(0,0,0,0.6); z-index: 1001; border: 1px solid var(--border-color); border-radius: var(--radius); top: 100%; left: 0; padding: 0.5rem 0; }
.dropdown-content a { color: var(--text-color); padding: 10px 20px; display: block; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--primary-color); color: var(--accent-color); padding-left: 25px; }
.dropdown:hover .dropdown-content { display: block; }

.dropdown-submenu { position: relative; }
.dropdown-submenu .arrow { float: right; font-size: 1.1rem; }
.submenu-content { display: none; position: absolute; background-color: var(--card-bg); min-width: 250px; box-shadow: 0px 8px 24px rgba(0,0,0,0.6); z-index: 1002; border: 1px solid var(--border-color); border-radius: var(--radius); top: -1px; left: 98%; padding: 0.5rem 0; }
.dropdown-submenu:hover .submenu-content { display: block; }

/* --- HERO --- */
.hero { padding: 4rem 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3rem; min-height: 80vh; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
.hero span.highlight { color: var(--accent-color); }
.tagline { font-style: italic; font-size: 1.15rem; border-left: 4px solid var(--accent-color); padding-left: 1rem; margin: 1.5rem 0; }
.about-story h3 { font-size: 1.3rem; margin-top: 1.5rem; color: var(--accent-color); }
.about-story p { text-align: justify; }
.cta-button { background-color: var(--accent-color); color: var(--primary-color); padding: 1rem 2.5rem; border-radius: var(--radius); font-weight: 600; display: inline-block; box-shadow: 0 4px 14px rgba(251, 191, 36, 0.2); }
.cta-button:hover { transform: translateY(-3px); background-color: var(--accent-hover); box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3); }

.hero-image-wrapper { width: 100%; max-width: 480px; height: 550px; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); }
.slideshow-img { width: 100%; height: 100%; object-fit: cover; position: absolute; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slideshow-img.active { opacity: 0.85; z-index: 2; }

/* --- SERVICES --- */
.services { padding: 5rem 5%; background-color: var(--card-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.services h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
.grid-container { display: grid; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.card { background-color: var(--bg-color); border: 1px solid var(--border-color); padding: 2.2rem; border-radius: var(--radius); transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); border-color: var(--accent-color); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3); }
.card h3 { color: var(--accent-color); font-size: 1.35rem; }
.card ul { list-style: none; flex-grow: 1; }
.card ul li { position: relative; padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 0.8rem;}
.card ul li::before { content: "✦"; color: var(--accent-color); position: absolute; left: 0; }
.card .promo { font-weight: 600; color: var(--text-color); padding-top: 1rem; border-top: 1px solid var(--border-color); margin-top: auto; }

/* --- CONCEPT BANNER --- */
.concept-banner { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); padding: 4.5rem 10%; text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.banner-container { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.banner-sparkle { color: var(--accent-color); font-size: 1.2rem; }
.banner-quote { font-size: 1.35rem; color: var(--text-color); font-weight: 500; }
.banner-quote strong { color: var(--accent-color); }

/* --- HORIZONTAL CAROUSELS --- */
.testimonials { padding: 5rem 5%; background-color: var(--bg-color); }
.testimonials h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }

/* Container locked to a readable max-width so videos don't blow up 
.carousel-container { display: flex; align-items: center; gap: 1rem; max-width: 800px; margin: 0 auto; position: relative; }*/
/* Keeps navigation arrows perfectly aligned vertically next to the splits */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.carousel-view { overflow: hidden; width: 100%; border-radius: var(--radius); }

/* Track holds all slides side-by-side */
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }

/* Strict flex settings force every slide to take exactly 100% of the view width, preventing squishing */
.carousel-slide { flex: 0 0 100%; max-width: 100%; box-sizing: border-box; padding: 0.5rem; display: flex; justify-content: center; }

.carousel-btn { background: var(--card-bg); color: var(--accent-color); border: 1px solid var(--border-color); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); z-index: 10; flex-shrink: 0; }
.carousel-btn:hover { background: var(--accent-color); color: var(--primary-color); transform: scale(1.1); }

/* Cards inside Carousel - Restricting internal width for better aesthetics */
.video-card, .testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 2.5rem; display: flex; flex-direction: column; height: 100%; width: 100%; max-width: 600px; }
.video-card { padding: 1rem; }

/* Video aspects and overlays */
.video-aspect-wrapper { position: relative; width: 100%; padding-top: 56.25%; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.video-aspect-wrapper.short-ratio { padding-top: 135%; max-width: 320px; margin: 0 auto; /* Keeps YouTube Shorts/Reels narrow */ }
.video-preview-bg { background: linear-gradient(135deg, #111827 0%, #030712 100%); }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.play-icon { color: var(--accent-color); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3)); transition: var(--transition); }
.video-card:hover .play-icon { transform: scale(1.1); }
.watch-btn { background: rgba(251, 191, 36, 0.08); border: 1px solid var(--accent-color); color: var(--accent-color); padding: 0.6rem 1.5rem; border-radius: var(--radius); font-weight: 600; transition: var(--transition); }
.watch-btn:hover { background: var(--accent-color); color: var(--primary-color); }
.video-meta { padding: 1rem 0.5rem 0.5rem; display: flex; flex-direction: column; text-align: center; }
.video-meta strong { color: var(--text-color); font-size: 1.05rem; }

/* Testimonial text formatting */
.quote-icon { font-size: 4rem; font-family: serif; color: var(--accent-color); position: absolute; top: -10px; left: 20px; opacity: 0.15; line-height: 1; }
.testimonial-text { font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.client-info { border-top: 1px solid var(--border-color); padding-top: 1rem; display: flex; flex-direction: column; margin-top: auto; }
.client-info strong { color: var(--text-color); }

/* --- CROSSFADE CAROUSEL (For Text Testimonials) --- */
.fade-track { 
    display: grid !important; /* Forces slides to stack in the same cell */
    width: 100%; 
    transform: none !important; /* Overrides any sliding */
}
.fade-slide { 
    grid-area: 1 / 1; 
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; /* 1.5 second gentle fade */
    pointer-events: none; 
    width: 100%; 
}
.fade-slide.active { 
    opacity: 1; 
    pointer-events: auto; 
    z-index: 2; 
}

/* --- MULTI-FRAME SPLIT GRID SYSTEM --- */
.multi-frame-layout {
    max-width: 1200px !important;
}

.multi-frame-layout .carousel-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    overflow: visible;
}

.fade-track-split {
    display: grid !important;
    width: 100%;
    position: relative;
}

.fade-track-split .testimonial-card {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
    width: 100%;
    max-width: 100%;
}

.fade-track-split .testimonial-card.active,
.fade-track-split .video-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* 1. Force the main video cards to keep a uniform, sleek height */
.fade-track-split .video-card {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
    width: 100%;
    max-width: 100%;
    height: 100%; /* Force cards to match the container layout height */
}

/* 2. Unify the aspect ratio wrapper for ALL videos to 16:9 widescreen */
.video-aspect-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Fixed 16:9 widescreen ratio */
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
}

/* 3. REMOVE the vertical ratio rule so Shorts/Reels don't blow up the layout height */
.video-aspect-wrapper.short-ratio {
    padding-top: 56.25%; /* Changes vertical cards to match widescreen layout */
    max-width: 100%; /* Allows it to take full grid split width symmetrically */
}

/* 4. Add this to ensure background preview layers scale beautifully */
.video-preview-bg {
    background: linear-gradient(135deg, #111827 0%, #030712 100%);
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .multi-frame-layout .carousel-view {
        grid-template-columns: 1fr 1fr; 
    }
}
/* --- CONTACT & FOOTER --- */
.contact { padding: 5rem 5%; max-width: 1000px; margin: 0 auto; display: grid; gap: 4rem; }
.contact-info h2 { font-size: 2.5rem; }
.contact-detail { background: var(--card-bg); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border-color); color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; background: var(--card-bg); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border-color); }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { padding: 1rem; border: 1px solid var(--border-color); background-color: var(--bg-color); color: var(--text-color); border-radius: var(--radius); font-size: 1rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }
.submit-btn { background-color: var(--accent-color); color: var(--primary-color); border: none; padding: 1rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; border-radius: var(--radius); transition: var(--transition); }
.submit-btn:hover { background-color: var(--accent-hover); }
#form-message { margin-top: 1rem; text-align: center; font-weight: 600; }

footer { background-color: #05080F; padding: 2rem 5%; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.footer-socials { display: flex; align-items: center; gap: 1rem; }
.social-icon-link { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 50%; color: var(--text-color); transition: var(--transition); }
.social-icon-link:hover { color: var(--primary-color); background-color: var(--accent-color); border-color: var(--accent-color); transform: translateY(-3px); }

/* --- MEDIA QUERIES --- */
@media (min-width: 900px) {
    .nav-links { gap: 2rem; margin-left: auto; display: flex; font-weight: 600;}
    .hero { flex-direction: row; align-items: start; justify-content: space-between; padding: 6rem 5%; }
    .hero-content { max-width: 55%; }
    .hero-image-wrapper { max-width: 40%; position: sticky; top: 120px; }
    .grid-container { grid-template-columns: repeat(3, 1fr); }
    .contact { grid-template-columns: 1fr 1fr; align-items: start; }
    .footer-content { flex-direction: row; justify-content: space-between; }
}