/* ==========================================================================
   AL-BAYER GROUP | Cinematic Portfolio Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg: #0b0b0b;
    /* Clean Solid Black */
    --color-bg-darker: #070707;
    /* Pure contrast section */
    --color-surface: #141414;
    /* Elevated surfaces */
    --color-surface-hover: #1e1e1e;
    --color-text: #f4f4f5;
    /* Off-white readable text */
    --color-text-muted: #a1a1aa;
    /* Muted grey */
    --color-accent: #d97706;
    /* Cinematic warm amber */
    --color-accent-glow: rgba(217, 119, 6, 0.4);

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 2rem;
    /* 32px */
    --space-lg: 4rem;
    /* 64px */
    --space-xl: 8rem;
    /* 128px */

    --container-width: 1280px;
    --container-sm: 800px;

    /* Animation & Timing */
    --transition-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Cinematic ease */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Film Grain Overlay Removed */
.film-grain {
    display: none;
}

/* Typography Classes */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-name {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

h1,
.h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
}

h2,
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

.body-lg {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.5;
}

.text-muted {
    color: var(--color-text-muted);
}

.accent {
    color: var(--color-accent);
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Layout & Utility
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm {
    max-width: var(--container-sm);
}

.fullscreen {
    min-height: 100vh;
    width: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
    }
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.padding-y-lg {
    padding: var(--space-xl) 0;
}

.padding-y-md {
    padding: var(--space-md) 0;
}

.margin-top-lg {
    margin-top: var(--space-lg);
}

.margin-y-md {
    margin: var(--space-md) 0;
}

.margin-bottom-sm {
    margin-bottom: var(--space-sm);
}

.margin-bottom-xs {
    margin-bottom: var(--space-xs);
}

.margin-bottom-md {
    margin-bottom: var(--space-md);
}

.section-darker {
    background-color: var(--color-bg-darker);
}

/* Buttons & Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-primary .hover-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: -1;
}

.btn-primary:hover .hover-sweep {
    transform: scaleX(1);
}

.btn-primary:hover {
    color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.glow-effect:hover {
    box-shadow: 0 0 20px var(--color-accent-glow);
    border-color: var(--color-accent);
}

.magnetic-btn {
    display: inline-block;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.link-arrow::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

.link-arrow::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.link-arrow:hover::before {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background var(--transition-base), padding var(--transition-base);
}

.site-header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    z-index: 101;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.brand-group {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-light~.site-header:not(.scrolled) .header-social-links {
    border-left-color: rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: #000;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-links a:hover .social-icon,
.header-social-links a:hover .social-icon {
    transform: translateY(-2px);
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .header-social-links {
        display: none;
    }
}

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    transition: transform var(--transition-base), top var(--transition-base);
}

.menu-toggle .hamburger {
    top: 9px;
}

.menu-toggle .hamburger::before {
    top: -9px;
}

.menu-toggle .hamburger::after {
    top: 9px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform var(--transition-slow);
        z-index: 100;
    }

    .nav-active .main-nav {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        font-size: 2rem;
    }

    .nav-links a:not(.btn) {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Hero Section & Cinematic Logo Animation
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--color-bg);
}

.hero-bg .glow-orb {
    display: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5%, 10%);
    }
}

.z-index-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 0 1 45%;
    min-width: 0;
}

.hero-visual {
    flex: 0 1 55%;
    min-width: 0;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-end;
    aspect-ratio: 16/9;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        gap: 3rem;
        margin-top: 10vh;
    }

    .hero-content,
    .hero-visual {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }
}

.z-index-content * {
    pointer-events: auto;
}

/* Base Hero Background Structure */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--color-bg);
}

/* Hero Light Mode Enhancements */
.hero-light {
    color: #050506;
}

.hero-light .hero-bg {
    background: radial-gradient(circle at center, #ffffff 0%, #f0f0f2 100%);
}

.hero-light .orb-1,
.hero-light .orb-2 {
    display: none;
}

.hero-light .hero-subtitle,
.hero-light .scroll-indicator .text {
    color: #555;
}

.hero-light .btn-primary {
    background-color: #050506;
    color: #fff;
}

.hero-light .btn-primary:hover {
    color: #fff;
    transform: scaleX(1);
}

.hero-light .btn-primary .hover-sweep {
    background-color: var(--color-accent);
}

.hero-light .btn-text.with-icon {
    color: #050506;
}

.hero-light .mouse {
    border-color: rgba(0, 0, 0, 0.3);
}

.hero-light .wheel {
    background: #050506;
}

/* Handle Navigation Visibility Over Light Background */
body:not(.nav-active) .site-header:not(.scrolled) .brand-name,
body:not(.nav-active) .site-header:not(.scrolled) .nav-links a:not(.btn) {
    color: #050506;
}

body:not(.nav-active) .site-header:not(.scrolled) .brand-group {
    color: #666;
}

body:not(.nav-active) .site-header:not(.scrolled) .btn-outline {
    color: #050506;
    border-color: rgba(0, 0, 0, 0.2);
}

body:not(.nav-active) .site-header:not(.scrolled) .btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #050506;
    color: #050506;
}

body:not(.nav-active) .site-header:not(.scrolled) .hamburger,
body:not(.nav-active) .site-header:not(.scrolled) .hamburger::before,
body:not(.nav-active) .site-header:not(.scrolled) .hamburger::after {
    background: #050506;
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

/* Word reveal animation handled by JS adding active class or pre-defined transition */
.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.loaded .hero-title .word {
    animation: slideUp var(--transition-slow) forwards;
}

.loaded .hero-title .line:nth-child(2) .word {
    animation-delay: 0.1s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
}

.loaded .hero-subtitle {
    animation: fadeUp var(--transition-base) forwards 0.4s;
}

.hero-ctas {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
}

.loaded .hero-ctas {
    animation: fadeIn var(--transition-base) forwards 0.6s;
}

.btn-text.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    z-index: 10;
}

.loaded .scroll-indicator {
    animation: fadeIn var(--transition-base) forwards 1s;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: var(--color-text);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.scroll-indicator .text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding-bottom: 0.25rem;
    position: relative;
    transition: color var(--transition-fast);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-text);
}

.filter-btn.active::after {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: block;
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-surface);
}

.project-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.project-card:hover .project-media {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.skeleton-card {
    aspect-ratio: 3/4;
    background: linear-gradient(90deg, var(--color-surface) 25%, #222 50%, var(--color-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Specific aspect ratio for vertical Reels */
.video-embed-container.is-reel {
    aspect-ratio: 9/16;
    max-width: 400px;
    /* Slimmer for vertical reels */
}

/* Project Gallery Styles */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Logo Marquee Section */
#clients {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

#clients .eyebrow {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    letter-spacing: 0.5em;
    font-weight: 700;
    opacity: 1;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-lg) 0;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}



.marquee-content {
    display: flex;
    align-items: center;
    gap: 10rem;
    padding-right: 10rem;
}

.marquee-content img {
    height: clamp(80px, 10vw, 120px);
    width: auto;
    filter: none;
    opacity: 1;
    transition: transform var(--transition-base), opacity var(--transition-base);
    flex-shrink: 0;
}

.marquee-content img:hover {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Mobile Fallback: Grid */
.mobile-logos-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    margin-top: var(--space-lg);
    padding: 0 var(--container-padding);
}

.mobile-logos-grid img {
    height: 80px;
    width: auto;
    justify-self: center;
    filter: none;
    opacity: 1;
}

@media (max-width: 991px) {
    #clients {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .marquee-container {
        display: none;
    }

    .mobile-logos-grid {
        display: grid;
    }
}

@media (max-width: 480px) {
    .mobile-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   About Section - Premium Card Redesign
   ========================================================================== */
#about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--color-accent-glow);
}

.about-card:hover::before {
    left: 100%;
    transition: left 0.8s ease-in-out;
}

.about-card-featured {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-card-featured .eyebrow {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

.about-card-featured h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.about-card-featured .main-statement {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
}

.about-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .about-sub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-card-small {
    padding: 3rem;
}

.about-card-small .eyebrow {
    margin-bottom: 1.5rem;
}

.about-card-small p {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: var(--space-lg);
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
    flex: 1 1 240px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-card.featured {
    flex: 1 1 320px;
    max-width: 360px;
    padding: 2.5rem;
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-accent-glow);
    z-index: 2;
}

.team-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    background: var(--color-surface);
    /* Subtle fill */
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Specific Face Centering to prevent cropping */
.pos-gaith {
    object-position: center 15%;
}

.pos-razi {
    object-fit: cover;
    object-position: center 14%;
    transform: scale(1.06);
    transform-origin: center top;
}

.pos-azem {
    object-position: center 20%;
}

.pos-tala {
    object-position: center 15%;
}


.pos-abd {
    object-position: center 15%;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--color-accent-glow);
}

.team-card:hover img {
    transform: scale(1.08);
}

.team-info .name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.team-card.featured .name {
    font-size: 1.75rem;
}

.team-info .role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-info .role.founder {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent) !important;
    margin-top: 0.35rem;
    letter-spacing: 0.15em;
}

@media (min-width: 1200px) {
    .team-grid {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }

    .team-card {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 1.25rem;
    }

    .team-card.featured {
        flex: 1.3 1 0;
        padding: 1.75rem;
    }
}

@media (max-width: 991px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .team-card.featured {
        max-width: 100%;
        order: -1;
        /* Gaith first on mobile */
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Boo Animation - Team Section Only
   ========================================================================== */

#team {
    position: relative;
    overflow: hidden;
    /* Ensure it doesn't bleed out */
}

.boo-container {
    position: absolute;
    right: -250px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: right 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.boo-container.peek {
    right: 30px;
    animation: floatingBoo 3s ease-in-out infinite alternate;
}

.boo-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: none;
    filter: none;
}

.boo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.boo-caption {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 165, 0, 0.35), 0 0 24px rgba(255, 165, 0, 0.2);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.5s;
    white-space: nowrap;
}

.boo-container.peek .boo-caption {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatingBoo {
    0% {
        transform: translateY(-50%) translateX(0px);
    }

    33% {
        transform: translateY(-55%) translateX(-25px);
    }

    66% {
        transform: translateY(-40%) translateX(-15px);
    }

    100% {
        transform: translateY(-45%) translateX(-30px);
    }
}

@media (max-width: 991px) {
    .boo-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .boo-container {
        right: -180px;
    }

    .boo-container.peek {
        right: 20px;
    }

    .boo-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .boo-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .boo-container {
        right: -120px;
    }

    .boo-container.peek {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boo-container {
        display: none !important;
        /* Hide completely for accessibility */
    }
}


/* Stagger Reveal Animation Extensions */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all var(--transition-slow);
}

.reveal-stagger.is-revealed>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.is-revealed>*:nth-child(2) {
    transition-delay: 0.25s;
}

.reveal-stagger.is-revealed>*:nth-child(3) {
    transition-delay: 0.4s;
}

.reveal-stagger.is-revealed>*:nth-child(4) {
    transition-delay: 0.55s;
}

.reveal-stagger.is-revealed>*:nth-child(5) {
    transition-delay: 0.7s;
}

.reveal-stagger.is-revealed>* {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Accessibility: No animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .marquee-container {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .reveal-stagger>*,
    .about-card,
    .team-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .btn-whatsapp-cta {
        animation: none !important;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background: var(--color-bg-darker);
    position: relative;
    overflow: hidden;
}

/* Vignette Overlay Removed */
.stats-section::before {
    display: none;
}

.stats-section .film-grain {
    display: none;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 3;
}

@media (min-width: 992px) {
    .stats-container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.stats-left-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    transform: scale(0.98);
}

.stat-card.full-width {
    grid-column: 1 / -1;
}

.stat-card.animate-pop {
    transform: scale(1);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-hero-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.stat-card .stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.stat-hero-card .stat-number {
    font-size: clamp(4rem, 10vw, 8rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-supporting {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 280px;
}

.stat-hero-card .stat-supporting {
    max-width: 400px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Pulsing Glow Animation */
@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 0px var(--color-accent-glow));
    }

    50% {
        filter: drop-shadow(0 0 15px var(--color-accent-glow));
    }

    100% {
        filter: drop-shadow(0 0 0px var(--color-accent-glow));
    }
}

.finished-counting {
    animation: glowPulse 1.5s ease-out;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-heading {
    text-align: center;
    max-width: var(--container-sm);
    margin: 0 auto var(--space-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-accent-glow);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-accent);
    opacity: 0.8;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    z-index: 0;
}

.service-card:hover .card-glow {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.1;
}

.service-card * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Contact Section — WhatsApp CTA
   ========================================================================== */
.contact-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
}

.btn-whatsapp-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4.5rem;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    animation: ctaBreathe 3s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease,
        background 0.4s ease;
}

/* Shimmer pseudo-element */
.btn-cta-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.12),
            transparent);
    pointer-events: none;
    transition: none;
}

.btn-cta-text {
    position: relative;
    z-index: 1;
}

/* Hover State — lift + glow + shimmer sweep */
.btn-whatsapp-cta:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(217, 119, 6, 0.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 40px var(--color-accent-glow),
        0 20px 40px rgba(0, 0, 0, 0.4);
    animation: none;
    /* pause breathing on hover */
}

.btn-whatsapp-cta:hover .btn-cta-shimmer {
    left: 130%;
    transition: left 0.7s ease-in-out;
}

/* Idle Breathing / Pulse */
@keyframes ctaBreathe {

    0%,
    100% {
        box-shadow: 0 0 0px transparent;
        border-color: var(--color-accent);
    }

    50% {
        box-shadow: 0 0 28px var(--color-accent-glow);
        border-color: #f59e0b;
    }
}

/* Legacy form CSS kept but unused (form removed from HTML) */
.contact-form-wrapper {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.form-group input:focus~.focus-border,
.form-group textarea:focus~.focus-border,
.form-group select:focus~.focus-border {
    width: 100%;
}

select {
    appearance: none;
    cursor: pointer;
}

select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.social-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: var(--font-heading);
}

.social-links a:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--transition-slow);
}

.is-revealed {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Single Project Page Styles
   ========================================================================== */
.project-hero {
    padding-top: 120px;
    padding-bottom: var(--space-lg);
}

.meta-info {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.meta-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

@media (min-width: 768px) {
    .project-gallery.has-multiple {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   Video Modal (Cinematic Showreel)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(217, 119, 6, 0.15);
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        border-radius: 8px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ==========================================================================
   Custom Cursor Follower
   ========================================================================== */
.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: #F59E0B;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.cursor-dot.active {
    opacity: 1;
}

/* Hide on touch devices */
@media (pointer: coarse) {
    .cursor-dot {
        display: none !important;
    }
}