/* ============================================================
           CALIBRATED MEDIA — Custom Styles
        ============================================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #231F20;
}

::-webkit-scrollbar-thumb {
    background: #EBE71F;
    border-radius: 2px;
}

/* --- Base --- */
body {
    font-family: 'Jost', sans-serif;
    background: #231F20;
    color: #A7A9AC;
    overflow-x: hidden;
}

/* ============================================================
           LOADING SCREEN
        ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    background: #231F20;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #EBE71F;
    letter-spacing: 0.35em;
}

.loader-bar-track {
    width: 220px;
    height: 2px;
    background: #383838;
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: #EBE71F;
    border-radius: 2px;
    animation: loaderFill 2.2s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes loaderFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Film strip holes */
.film-hole {
    width: 9px;
    height: 13px;
    background: rgba(235, 231, 31, 0.35);
    border-radius: 2px;
}

/* ============================================================
           NAVBAR
        ============================================================ */
#navbar {
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(35, 31, 32, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(235, 231, 31, 0.12);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #EBE71F;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.35s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #EBE71F;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #EBE71F;
}

/* Mobile Menu */
#mobileMenu {
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* ============================================================
           HERO
        ============================================================ */
.hero-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.8rem, 10vw, 9.5rem);
    line-height: 0.93;
    letter-spacing: 0.02em;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(130deg, #EBE71F 0%, #A7A9AC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grain overlay */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 2;
}

/* Float animations */
@keyframes floatY {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-22px)
    }
}

.float-1 {
    animation: floatY 7s ease-in-out infinite;
}

.float-2 {
    animation: floatY 7s ease-in-out 2s infinite;
}

.float-3 {
    animation: floatY 7s ease-in-out 4s infinite;
}

/* ============================================================
           SCROLL REVEAL
        ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-45px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(45px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.10s;
}

.delay-200 {
    transition-delay: 0.20s;
}

.delay-300 {
    transition-delay: 0.30s;
}

.delay-400 {
    transition-delay: 0.40s;
}

.delay-500 {
    transition-delay: 0.50s;
}

.delay-600 {
    transition-delay: 0.60s;
}

/* ============================================================
           TYPOGRAPHY HELPERS
        ============================================================ */
.section-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #EBE71F;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
    line-height: 1;
}

.accent-line {
    width: 56px;
    height: 2px;
    background: #EBE71F;
    margin-bottom: 1.5rem;
}

/* ============================================================
           BUTTONS
        ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #EBE71F;
    color: #231F20;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    border-radius: 4px;
    border: 2px solid #EBE71F;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: #EBE71F;
    box-shadow: 0 0 35px rgba(235, 231, 31, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    border-radius: 4px;
    border: 2px solid rgba(167, 169, 172, 0.35);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #EBE71F;
    color: #EBE71F;
}

/* ============================================================
           SERVICES CARDS
        ============================================================ */
.service-card {
    position: relative;
    overflow: hidden;
    background: rgba(56, 56, 56, 0.3);
    border: 1px solid rgba(235, 231, 31, 0.08);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    transition: all 0.45s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(235, 231, 31, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.service-card:hover {
    border-color: rgba(235, 231, 31, 0.38);
    transform: translateY(-10px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(235, 231, 31, 0.04);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 58px;
    height: 58px;
    background: rgba(235, 231, 31, 0.07);
    border: 1px solid rgba(235, 231, 31, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #EBE71F;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(235, 231, 31, 0.14);
    box-shadow: 0 0 25px rgba(235, 231, 31, 0.18);
}

/* ============================================================
           PORTFOLIO
        ============================================================ */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-item img {
    transition: transform 0.65s cubic-bezier(.25, .46, .45, .94);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 31, 32, 0.96) 0%, rgba(235, 231, 31, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.filter-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.45rem 1.4rem;
    border-radius: 30px;
    border: 1px solid rgba(167, 169, 172, 0.2);
    color: #A7A9AC;
    background: transparent;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #EBE71F;
    border-color: #EBE71F;
    color: #231F20;
}

/* ============================================================
           TEAM CARDS
        ============================================================ */
.team-card {
    background: rgba(56, 56, 56, 0.28);
    border: 1px solid rgba(167, 169, 172, 0.1);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.45s ease;
}

.team-card:hover {
    border-color: rgba(235, 231, 31, 0.32);
    transform: translateY(-10px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.team-ring {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto;
}

.team-ring img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.team-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(#EBE71F 60%, transparent 60%, transparent 80%, #A7A9AC 80%);
    z-index: 0;
}

.team-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #231F20;
    z-index: 0;
    margin: 3px;
}

/* ============================================================
           STATS
        ============================================================ */
.stat-card {
    background: rgba(56, 56, 56, 0.28);
    border: 1px solid rgba(235, 231, 31, 0.08);
    border-radius: 14px;
    text-align: center;
    padding: 2.8rem 1.5rem;
    transition: all 0.4s ease;
}

.stat-card:hover {
    border-color: rgba(235, 231, 31, 0.35);
    box-shadow: 0 0 50px rgba(235, 231, 31, 0.04);
}

/* ============================================================
           TESTIMONIALS
        ============================================================ */
.testimonial-card {
    background: rgba(56, 56, 56, 0.42);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(167, 169, 172, 0.12);
    border-radius: 18px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(.25, .46, .45, .94);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 169, 172, 0.35);
    cursor: pointer;
    transition: all 0.35s ease;
}

.dot.active {
    background: #EBE71F;
    width: 26px;
    border-radius: 4px;
}

/* ============================================================
           FORM
        ============================================================ */
.form-input {
    background: rgba(56, 56, 56, 0.45);
    border: 1px solid rgba(167, 169, 172, 0.18);
    border-radius: 8px;
    color: #fff;
    padding: 0.875rem 1.25rem;
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #EBE71F;
}

.form-input::placeholder {
    color: rgba(167, 169, 172, 0.45);
}

/* ============================================================
           ABOUT FEATURE ITEMS
        ============================================================ */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    border-left: 2px solid rgba(235, 231, 31, 0.28);
    background: rgba(56, 56, 56, 0.18);
    transition: all 0.35s ease;
}

.feature-item:hover {
    border-left-color: #EBE71F;
    background: rgba(56, 56, 56, 0.4);
}

/* ============================================================
           SOCIAL LINKS
        ============================================================ */
.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(167, 169, 172, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A7A9AC;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #EBE71F;
    color: #EBE71F;
    background: rgba(235, 231, 31, 0.1);
    transform: translateY(-3px);
}

/* ============================================================
           DECORATIVE DIVIDER
        ============================================================ */
.cinema-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(235, 231, 31, 0.28), transparent);
}

/* ============================================================
           BACK TO TOP
        ============================================================ */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #EBE71F;
    color: #231F20;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 1000;
    border: none;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #fff;
    transform: translateY(-5px);
}

/* ============================================================
           LIGHTBOX
        ============================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(35, 31, 32, 0.97);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    transition: opacity 0.25s ease;
}

/* Parallax */
#heroBg {
    will-change: transform;
}