:root {
    --gold: #ffba00;
    --gold-hover: #e5a700;
    --gold-subtle: rgba(255, 186, 0, 0.1);
    --gold-glow: rgba(255, 186, 0, 0.5);
    --black: #000;
    --dark: #0a0a0a;
    --dark-card: #111;
}

/* ═══════════════════════════════════════
   GLOBAL STYLES & TYPOGRAPHY
   ═══════════════════════════════════════ */
html {
    max-width: 100vw;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: var(--black);
    color: #fff;
}

/* Force Header to always stay on top of everything */
.header {
    z-index: 9999 !important;
}

/* Base text selection */
::selection {
    background: rgba(255, 186, 0, 0.3);
    color: var(--gold);
}

/* ═══════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderLogoIn 0.8s ease forwards 0.2s;
}

.loader-logo .dot {
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
}

@keyframes loaderLogoIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-progress-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    animation: loaderLogoIn 0.6s ease forwards 0.6s;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #fff4c1, var(--gold));
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px var(--gold-glow);
}

.cinematic-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

/* ═══════════════════════════════════════
   GLASSMORPHISM SYSTEM
   ═══════════════════════════════════════ */
.glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-intense {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-ultra {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════
   PREMIUM BUTTONS
   ═══════════════════════════════════════ */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    transition: left 0.6s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.hover-glow {
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 186, 0, 0.3), 0 0 60px rgba(255, 186, 0, 0.1);
}

/* Magnetic button wrapper */
.magnetic-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* ═══════════════════════════════════════
   TEXT EFFECTS
   ═══════════════════════════════════════ */
.text-glow {
    text-shadow: 0 0 20px var(--gold-glow), 0 0 60px rgba(255, 186, 0, 0.15);
}

/* Hero Background Image with Gradient Mask (Homepage) */
.hero-bg-image {
    background-image: linear-gradient(to left, #000000 0%, #000000 55%, rgba(0, 0, 0, 0.8) 75%, transparent 100%), url('../images/production-banner.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Subtle Pattern Background for Inner Pages */
.inner-hero-bg {
    background-image:
        radial-gradient(circle at center, rgba(255, 186, 0, 0.03) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center, center top, center top;
}

/* Text Reveal Utilities */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.reveal-text .line,
.reveal-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.reveal-text .word-inner {
    display: inline-block;
    transform: translateY(110%);
}

/* ═══════════════════════════════════════
   FILM GRAIN OVERLAY
   ═══════════════════════════════════════ */
.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.04;
    mix-blend-mode: overlay;
}

.film-grain canvas {
    width: 100%;
    height: 100%;
}

/* Legacy noise fallback */
.noise-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════
   CINEMATIC LETTERBOX
   ═══════════════════════════════════════ */
.letterbox-bar {
    position: fixed;
    left: 0;
    right: 0;
    height: 0;
    background: var(--black);
    z-index: 9000;
    pointer-events: none;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.letterbox-bar--top {
    top: 0;
}

.letterbox-bar--bottom {
    bottom: 0;
}

.letterbox-active .letterbox-bar {
    height: 60px;
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #fff4c1, var(--gold));
    z-index: 99999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--gold-glow), 0 0 20px rgba(255, 186, 0, 0.2);
}

/* ═══════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════ */
/* Custom cursor disabled - using default browser cursor */
/*
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select, .cursor-pointer { cursor: none; }
}
*/

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gold);
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease;
    opacity: 0;
}

.custom-cursor.visible {
    opacity: 1;
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 186, 0, 0.15);
    border: 1.5px solid var(--gold);
    mix-blend-mode: normal;
}

/* ═══════════════════════════════════════
   3D TILT CARDS
   ═══════════════════════════════════════ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
    will-change: transform;
}

.tilt-card-inner {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(20px);
}

/* ═══════════════════════════════════════
   IMAGE CURTAIN REVEAL
   ═══════════════════════════════════════ */
.curtain-reveal {
    position: relative;
    overflow: hidden;
}

.curtain-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 2;
}

.curtain-reveal.revealed::after,
.curtain-reveal:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

.curtain-reveal img {
    transform: scale(1.2);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.curtain-reveal.revealed img,
.curtain-reveal:hover img {
    transform: scale(1);
}

/* ═══════════════════════════════════════
   SECTION TRANSITIONS
   ═══════════════════════════════════════ */
.section-reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.section-reveal--fade {
    transform: translateY(60px);
}

.section-reveal--slide-right {
    transform: translateX(-80px);
}

.section-reveal--slide-left {
    transform: translateX(80px);
}

.section-reveal--zoom {
    transform: scale(0.9);
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ═══════════════════════════════════════
   ANIMATED SVG LOGO
   ═══════════════════════════════════════ */
.logo-svg-animated path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLogo 2s ease forwards 0.5s;
    fill: transparent;
    stroke: var(--gold);
    stroke-width: 2;
}

@keyframes drawLogo {
    to {
        stroke-dashoffset: 0;
        fill: var(--gold);
    }
}

/* ═══════════════════════════════════════
   WHATSAPP FLOATING WIDGET
   ═══════════════════════════════════════ */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9970;
    opacity: 0;
    transform: scale(0) translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-widget.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.whatsapp-widget a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.whatsapp-widget a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget a svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* Pulse ring */
.whatsapp-widget a::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════
   TESTIMONIALS SLIDER
   ═══════════════════════════════════════ */
.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        min-width: calc(33.333% - 1.34rem);
    }
}

.testimonial-card .quote-icon {
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonials-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonials-dots button.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.2);
}

/* ═══════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════ */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(50%);
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    right: 50%;
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, var(--gold), rgba(255, 186, 0, 0.2));
    transform: translateX(50%);
    transition: height 0.3s ease;
    box-shadow: 0 0 15px var(--gold-glow);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: left;
}

.timeline-item:nth-child(even) {
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    flex-shrink: 0;
    margin: 0 2rem;
    transition: all 0.5s ease;
}

.timeline-item.visible .timeline-dot {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    background: var(--gold);
}

@media (max-width: 768px) {

    .timeline-line,
    .timeline-line-fill {
        right: 1.5rem;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: right;
    }

    .timeline-dot {
        margin: 0 1rem 0 0;
    }
}

/* ═══════════════════════════════════════
   STATS PARTICLE BURST
   ═══════════════════════════════════════ */
.stat-counter-wrapper {
    position: relative;
    display: inline-block;
}

.stat-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* ═══════════════════════════════════════
   PORTFOLIO FILTERS
   ═══════════════════════════════════════ */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: rgba(255, 186, 0, 0.1) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

.portfolio-item {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.hidden-filter {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

/* ═══════════════════════════════════════
   SMOOTH SCROLLING (Lenis)
   ═══════════════════════════════════════ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ═══════════════════════════════════════
   INFINITE MARQUEE TAPE
   ═══════════════════════════════════════ */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    background: var(--gold);
    color: #000;
    padding: 1.5rem 0;
    transform: rotate(-2deg) scale(1.05);
    z-index: 20;
    box-shadow: 0 0 30px rgba(255, 186, 0, 0.2);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 2rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* Double Marquee Elements */
.marquee-row-left {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee-left 120s linear infinite;
}

.marquee-row-right {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee-right 120s linear infinite;
    margin-left: -5%;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════ */
.faq-answer {
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.faq-answer.open {
    opacity: 1;
}

.faq-chevron {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════
   VIDEO HERO
   ═══════════════════════════════════════ */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: -20;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.6) contrast(1.1);
}

/* ═══════════════════════════════════════
   SERVICES CAROUSEL
   ═══════════════════════════════════════ */
.services-carousel {
    position: relative;
}

.services-carousel__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    direction: ltr;
    /* Force LTR for translateX calculations */
}

.services-carousel__card {
    flex: 0 0 calc(100% - 2rem);
    max-width: 800px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 27, 0.9);
    transform: scale(0.88);
    opacity: 0.4;
    filter: blur(2px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.services-carousel__card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    border-color: rgba(255, 186, 0, 0.2);
    box-shadow: 0 0 40px rgba(255, 186, 0, 0.08), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.services-carousel__card .card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.services-carousel__card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.services-carousel__card.is-active:hover .card-image img {
    transform: scale(1.08);
}

.services-carousel__card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 24, 27, 1) 0%, transparent 60%);
}

.services-carousel__card .card-body {
    padding: 2rem 2.5rem 2.5rem;
    position: relative;
    direction: rtl;
    /* Restore RTL for Arabic text */
    text-align: right;
}

#services-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

#services-dots button.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.3);
    width: 28px;
    border-radius: 999px;
}

@media (min-width: 768px) {
    .services-carousel__card {
        flex: 0 0 60%;
        max-width: 800px;
    }
}

@media (max-width: 767px) {
    .services-carousel__card {
        flex: 0 0 85%;
    }

    .services-carousel__card .card-image {
        height: 200px;
    }

    .services-carousel__card .card-body {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════
   HOME WORKS CAROUSEL
   ═══════════════════════════════════════ */
.works-carousel {
    overflow: hidden;
    position: relative;
}

.works-carousel__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    padding: 1rem 0;
}

.works-carousel__card {
    flex: 0 0 70%;
    max-width: 900px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    height: 480px;
    transform: scale(0.88);
    opacity: 0.35;
    filter: blur(2px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: #111;
}

.works-carousel__card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    box-shadow: 0 0 50px rgba(255, 186, 0, 0.1), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.works-carousel__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.works-carousel__card.is-active:hover img {
    transform: scale(1.06);
}

.works-carousel__card .wc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.4s ease;
}

.works-carousel__card.is-active:hover .wc-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            transparent 100%);
}

.works-carousel__card .wc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
    direction: rtl;
    text-align: right;
}

.works-carousel__card.is-active .wc-content {
    transform: translateY(0);
    opacity: 1;
}

.works-carousel__card .wc-category {
    display: inline-block;
    background: rgba(255, 186, 0, 0.12);
    border: 1px solid rgba(255, 186, 0, 0.35);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(8px);
}

.works-carousel__card .wc-title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

.works-carousel__card .wc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

.works-carousel__card.is-active:hover .wc-link {
    opacity: 1;
    transform: translateY(0);
}

#works-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}

#works-dots button.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
    transform: scale(1.3);
    width: 28px;
    border-radius: 999px;
}

@media (min-width: 768px) {
    .works-carousel__card {
        flex: 0 0 62%;
    }
}

@media (max-width: 767px) {
    .works-carousel__card {
        flex: 0 0 85%;
        height: 320px;
    }

    .works-carousel__card .wc-content {
        padding: 1.5rem;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE FIXES
   ═══════════════════════════════════════ */

/* Ensure no overflow on all sections */
section,
.container {
    max-width: 100vw;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Hero */
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }

    .hero-section p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .hero-section .hero-text {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-section .hero-text a {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Vision / About Section */
    section h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    section>.container>.max-w-5xl>h2,
    section h2.text-6xl,
    section h2.text-5xl {
        font-size: 1.75rem !important;
        line-height: 1.35 !important;
    }

    section>.container>.max-w-5xl>p,
    section p.text-xl {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Stats Cards */
    .glass-intense {
        padding: 1.25rem !important;
        border-radius: 1.25rem !important;
    }

    .glass-intense .w-16 {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .glass-intense .w-16 i {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .stat-card h3,
    .counter {
        font-size: 1.75rem !important;
    }

    .glass-intense .text-6xl {
        font-size: 1.75rem !important;
    }

    .glass-intense .text-4xl {
        font-size: 1.25rem !important;
    }

    .glass-intense .text-gray-400 {
        font-size: 0.7rem !important;
    }

    /* Marquee */
    .marquee-container {
        padding: 0.75rem 0;
    }

    .marquee-content span {
        font-size: 1rem;
        margin: 0 1rem;
        gap: 1rem;
    }

    /* Services Section */
    .services-carousel {
        overflow: hidden;
    }

    section h2.text-glow {
        font-size: 1.75rem !important;
    }

    /* Letterbox */
    .letterbox-active .letterbox-bar {
        height: 30px;
    }

    /* WhatsApp Widget */
    .whatsapp-widget {
        bottom: 1rem;
        left: 1rem;
    }

    .whatsapp-widget a {
        width: 48px;
        height: 48px;
    }

    .whatsapp-widget a svg {
        width: 22px;
        height: 22px;
    }

    /* Timeline - full width on mobile */
    .timeline-item .timeline-content:last-child {
        display: none;
    }

    .timeline-item .timeline-content:first-child {
        flex: 1;
    }

    /* Service cards spacing */
    .service-card {
        border-radius: 1.25rem !important;
    }

    /* Portfolio items */
    .portfolio-item {
        height: 280px !important;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }

    /* Footer */
    #global-footer h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    #global-footer p {
        font-size: 0.95rem !important;
    }

    #global-footer .flex.gap-4 a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Footer Bottom Bar */
    .footer-links {
        gap: 0.75rem !important;
    }

    .footer-links a {
        font-size: 0.75rem !important;
    }

    /* Partners marquee rows */
    .marquee-row-left,
    .marquee-row-right {
        gap: 2rem;
    }

    /* Blog cards */
    .grid.grid-cols-1.md\:grid-cols-3 {
        gap: 1.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem !important;
    }

    .hero-section .hero-text a {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        font-size: 0.9rem;
    }

    /* Stats - even smaller */
    .glass-intense {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .glass-intense .text-6xl {
        font-size: 1.5rem !important;
    }

    .glass-intense .text-4xl {
        font-size: 1rem !important;
    }

    .glass-intense .text-gray-400 {
        font-size: 0.65rem !important;
    }

    /* Section headings */
    section h2 {
        font-size: 1.5rem !important;
    }

    section h2.text-glow {
        font-size: 1.5rem !important;
    }

    #global-footer h2 {
        font-size: 1.5rem !important;
    }

    .portfolio-item h3 {
        font-size: 1.125rem !important;
    }

    .testimonial-card p {
        font-size: 0.85rem !important;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    /* Marquee smaller */
    .marquee-content span {
        font-size: 0.85rem;
        margin: 0 0.75rem;
    }

    /* Footer CTA buttons stack */
    #global-footer .flex.gap-4 {
        flex-direction: column !important;
        width: 100%;
    }

    #global-footer .flex.gap-4 a {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* ═══════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.video-modal__content {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 960px;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.is-open .video-modal__content {
    transform: scale(1) translateY(0);
}

.video-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(255, 186, 0, 0.3);
    box-shadow: 0 0 60px rgba(255, 186, 0, 0.15), 0 25px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-modal__player video,
.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.video-modal__close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-modal__close:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .video-modal__content {
        width: 95vw;
    }

    .video-modal__player {
        border-radius: 1rem;
    }

    .video-modal__close {
        top: -45px;
        left: 5px;
        width: 36px;
        height: 36px;
    }
}

/* ═══════════════════════════════════════
   UTILITY ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   PORTFOLIO SHOWCASE CAROUSEL
   ═══════════════════════════════════════ */

/* Filter Buttons */
.pf-filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pf-filter-btn:hover {
    border-color: rgba(255, 186, 0, 0.4);
    color: #fff;
}

.pf-filter-btn.active {
    background: rgba(255, 186, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 186, 0, 0.15);
}

/* Showcase wrapper */
.pf-showcase {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.pf-showcase__inner {
    display: flex;
    align-items: stretch;
    min-height: 80vh;
    max-height: 85vh;
    position: relative;
}

/* ── Main slide panel ── */
.pf-showcase__main {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 2rem 0 0 2rem;
    margin-right: 1.5rem;
}

/* Individual slide */
.pf-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s;
}

.pf-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pf-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.pf-slide.is-active .pf-slide__img {
    transform: scale(1);
}

.pf-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.1) 100%);
}

.pf-slide__content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity 0.7s ease 0.1s;
}

.pf-slide.is-active .pf-slide__content {
    transform: translateY(0);
    opacity: 1;
}

.pf-slide__category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 186, 0, 0.1);
    border: 1px solid rgba(255, 186, 0, 0.3);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.pf-slide__title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.pf-slide__title strong {
    color: var(--gold);
}

.pf-slide__desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.pf-slide__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pf-slide__link:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 186, 0, 0.4);
}

/* ── Sidebar ── */
.pf-showcase__sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: center;
}

/* Counter */
.pf-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.pf-counter__current {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    font-feature-settings: "tnum";
}

.pf-counter__total {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    font-feature-settings: "tnum";
}

.pf-counter__bar {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.pf-counter__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--gold), rgba(255, 186, 0, 0.3));
    border-radius: 999px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Thumbnails */
.pf-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem;
}

.pf-thumbs::-webkit-scrollbar {
    display: none;
}

.pf-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.5) grayscale(0.3);
}

.pf-thumb:hover img,
.pf-thumb.is-active img {
    transform: scale(1.05);
    filter: brightness(0.9) grayscale(0);
}

.pf-thumb.is-active {
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(255, 186, 0, 0.3);
}

.pf-thumb.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 186, 0, 0.08);
}

.pf-thumb.is-hidden {
    display: none;
}

/* Nav buttons */
.pf-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.pf-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pf-nav__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 186, 0, 0.4);
}

/* ── Mobile (stack vertically) ── */
@media (max-width: 768px) {
    .pf-showcase__inner {
        flex-direction: column;
        max-height: none;
        min-height: auto;
        gap: 1rem;
    }

    .pf-showcase__main {
        border-radius: 1.5rem;
        margin-right: 0;
        min-height: 65vw;
    }

    .pf-showcase__sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        scrollbar-width: none;
    }

    .pf-showcase__sidebar::-webkit-scrollbar {
        display: none;
    }

    .pf-counter {
        display: none;
    }

    .pf-nav {
        flex-direction: row;
    }

    .pf-thumbs {
        flex-direction: row;
        flex: none;
        width: auto;
        overflow-y: visible;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .pf-thumb {
        width: 100px;
        aspect-ratio: 4/3;
        flex-shrink: 0;
    }

    .pf-slide__content {
        padding: 1.5rem;
    }

    .pf-slide__desc {
        display: none;
    }
}

/* Touch drag indicator */
.pf-showcase__main::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .pf-showcase__main::after {
        opacity: 1;
    }
}