/* 
 * Agency Website Custom Styles
 * Primary Color: #FFC904
 * Secondary Color: #FFFFFF
 */

:root {
    --primary-color: #FFC904;
    --primary-hover: #e6b500;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-dark: #000000;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Site Wrapper to prevent horizontal scrolling */
.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Consistent Section Spacing */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Responsive Chart Containers */
.chart-container {
    height: 350px;
    width: 100%;
}
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Premium Grid Background Effect */
.bg-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

.font-bebas {
    font-family: 'Bebas Neue', sans-serif;
}

/* Custom Button Styles */
.btn-primary.custom-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary.custom-btn:hover, .btn-primary.custom-btn:focus, .btn-primary.custom-btn:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 201, 4, 0.4);
}

/* Utility for text color using primary color */
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Navbar Styles */
.custom-navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.3s ease;
}
.custom-navbar .nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.custom-navbar .nav-link:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    width: 100%;
    overflow: hidden;
    padding-top: 80px; /* Offset for navbar */
}

/* Background Video */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

/* Video Dark Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6); /* Dark tint to make text readable */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Title using Bebas Neue */
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 8rem); /* Responsive huge text */
    line-height: 0.95;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

/* Hero Description */
.hero-description {
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
}
.hero-description p {
    color: #e0e0e0 !important;
}

/* --- Marquee Section --- */
.marquee-section {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100vw;
}

/* Gradient masks for fading edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.marquee-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    padding: 0 3rem;
    transition: all 0.4s ease;
    cursor: default;
}

/* Hover effect on logos */
.marquee-item:hover {
    color: var(--primary-color);
    -webkit-text-stroke: 1px var(--primary-color);
    transform: scale(1.1);
}

/* Animations */
.marquee-rtl .marquee-content {
    animation: scroll-rtl 35s linear infinite;
}

.marquee-ltr .marquee-content {
    animation: scroll-ltr 35s linear infinite;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- Showreel Section --- */
.text-gradient {
    background: linear-gradient(to right, #FFC904, #c2c1be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-wrapper {
    max-width: 900px;
    background-color: #000;
}

/* Corner Markers */
.corner-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    z-index: 5;
}
.corner-marker.top-left { top: -3px; left: -3px; }
.corner-marker.top-right { top: -3px; right: -3px; }
.corner-marker.bottom-left { bottom: -3px; left: -3px; }
.corner-marker.bottom-right { bottom: -3px; right: -3px; }

/* Thin Crosshair Lines */
.crosshair-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.crosshair-line.horizontal-top {
    top: 0;
    left: -50vw;
    right: -50vw;
    height: 1px;
}
.crosshair-line.horizontal-bottom {
    bottom: 0;
    left: -50vw;
    right: -50vw;
    height: 1px;
}
.crosshair-line.vertical-left {
    top: -50vh;
    bottom: -50vh;
    left: 0;
    width: 1px;
}
.crosshair-line.vertical-right {
    top: -50vh;
    bottom: -50vh;
    right: 0;
    width: 1px;
}

/* --- Ecosystem Section --- */
.service-card {
    background-color: #000000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 201, 4, 0.4); /* Glow effect with primary color */
}

.card-img-placeholder {
    height: 180px;
    border-radius: 12px 12px 12px 80px; /* Signature cut-out curve on bottom right */
    width: 100%;
    transition: filter 0.3s ease;
}

.service-card:hover .card-img-placeholder {
    filter: brightness(1.15); /* Brighten image on hover */
}

.card-btn {
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* --- Scale & Dedication Section --- */
.highlight-mark {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 2px 6px;
    font-weight: 600;
    border-radius: 2px;
}

/* --- Testimonials Section --- */
.testimonial-wrapper {
    background-color: #1a1a1a;
    padding: 4rem;
}
@media (max-width: 768px) {
    .testimonial-wrapper {
        padding: 2rem 1.5rem;
    }
}

.corner-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    z-index: 5;
}
.corner-marker.top-left { top: -3px; left: -3px; }
.corner-marker.top-right { top: -3px; right: -3px; }
.corner-marker.bottom-left { bottom: -3px; left: -3px; }
.corner-marker.bottom-right { bottom: -3px; right: -3px; }

.testimonial-slide {
    display: none;
    animation: fade-in-up 0.5s ease forwards;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.9) translateX(20px) rotate(5deg);
    z-index: 1;
}

.stack-img.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotate(0deg);
    z-index: 3;
}

.stack-img.prev {
    opacity: 0.5;
    transform: scale(0.95) translateX(-10px) rotate(-3deg);
    z-index: 2;
}

.nav-btn {
    transition: all 0.3s ease;
}
.nav-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* --- Contact Section --- */
.custom-input {
    background-color: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--white) !important;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Footer Section --- */
.transition-all {
    transition: all 0.3s ease;
}

.footer-links a:hover,
a[href^="mailto:"]:hover {
    color: var(--primary-color) !important;
}

.giant-bg-text {
    font-size: 28vw;
    line-height: 0.75;
    margin: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}
