/* =========================================================================
   Ultra Premium CSS (V3 Mind-Blowing Override)
   ========================================================================= */

/* Abdomaster Font Family - OTF (Valid) */
@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-extralight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abdomaster';
    src: url('../assets/fonts/arfonts-abdomaster_new/abdomaster-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


:root {
    --clr-primary: rgb(117, 33, 31);
    /* Luxury Deep Red */
    --clr-secondary: rgb(32, 72, 71);
    /* Dark Teal Accent */
    --clr-accent: rgb(117, 33, 31);
    /* Accent matching primary */
    --clr-bg: rgb(20, 34, 40);
    /* Deep Slate/Black background */
    --clr-surface: rgb(20, 34, 40);
    /* Match background for seamless look */
    --clr-text-main: #f8f8f8;
    /* Off-white for readability */
    --clr-text-muted: rgba(248, 248, 248, 0.6);

    --glow-color: rgba(117, 33, 31, 0.15);
    /* Spotlight/Glow color */

    --font-arabic: 'Abdomaster', 'Cairo', sans-serif;
    --font-english: 'Abdomaster', 'Outfit', sans-serif;
    --font-primary: var(--font-arabic);

    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Massive Scales */
    --space-sm: 2rem;
    --space-md: 4rem;
    --space-lg: 8rem;
    --space-xl: 12rem;

    /* Typography */
    --fs-h1: clamp(3rem, 7vw, 7rem);
    --fs-h2: clamp(2.5rem, 5vw, 5rem);
    --fs-h3: clamp(1.5rem, 3.5vw, 3rem);
    --fs-body: clamp(1rem, 1.2vw, 1.125rem);
}

[dir="ltr"] {
    --font-primary: var(--font-english);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background-color: var(--clr-bg);
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: var(--fs-body);
}

/* Force Abdomaster font-family explicitly on all standard text elements to prevent any browser default overrides */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, button, input, textarea, select, label, option, .word, .char, .line {
    font-family: var(--font-primary) !important;
}

*, *::before, *::after {
    font-family: inherit;
}

button, input, textarea, select {
    font-family: var(--font-primary) !important;
}


/* Loading State */
body.loading {
    overflow: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Typography */
.gold-text {
    color: var(--clr-secondary);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.accent {
    color: var(--clr-secondary);
}

.huge-title {
    font-family: var(--font-primary) !important;
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 200;
    line-height: 1;
    text-transform: uppercase;
    color: var(--clr-text-main);
    margin-bottom: var(--space-md);
}

/* Container */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
}

.container-sm {
    max-width: 1000px;
}

/* =========================================================================
   Custom Magnetic Cursor
   ========================================================================= */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(196, 162, 58, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor-text {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    opacity: 0;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    white-space: nowrap;
}

/* Cursor Hover states */
.cursor-outline.hovered {
    width: 80px;
    height: 80px;
    background-color: var(--clr-secondary);
    border-color: transparent;
    mix-blend-mode: normal;
}

.cursor-outline.hovered .cursor-text {
    opacity: 1;
}

/* =========================================================================
   Preloader Cinematic
   ========================================================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-bg);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.3em;
    opacity: 0;
    /* GSAP reveals this */
    margin-bottom: 2rem;
    color: var(--clr-text-main);
}

.loader-progress {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--clr-secondary);
    letter-spacing: 4px;
}

/* =========================================================================
   Floating Glass Capsule Header
   ========================================================================= */
.header-capsule {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-capsule.scrolled {
    top: 15px;
    width: 95%;
    max-width: 1000px;
}

.header-capsule-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    /* Dark tinted glass for visibility */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-capsule.scrolled .header-capsule-inner {
    background: rgba(255, 255, 255, 0.9);
    /* Frosty white glass */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

[dir="rtl"] .header-capsule-inner {
    flex-direction: row-reverse;
}

.logo-img {
    height: 45px;
    filter: invert(1) brightness(100);
    /* Make it pure white */
    transition: all 0.4s ease;
}

.header-capsule.scrolled .logo-img {
    /* Magic CSS filter to turn white/black into rgb(117, 33, 31) (Deep Red) */
    filter: brightness(0) saturate(100%) invert(18%) sepia(50%) saturate(2311%) hue-rotate(342deg) brightness(88%) contrast(98%);
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-item {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    /* White text over dark glass */
    padding: 10px 25px;
    border-radius: 100px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.header-capsule.scrolled .nav-item {
    color: rgb(20, 34, 40);
    /* Fixed: Hardcoded dark color on light glass */
}

/* Hover effect */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    z-index: -1;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-capsule.scrolled .nav-item::before {
    background: var(--clr-primary);
}

.nav-item:hover::before {
    transform: scale(1);
    opacity: 1;
}

.header-capsule.scrolled .nav-item:hover {
    color: #ffffff;
    /* White text on red hover */
}

.lang-switch {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-capsule.scrolled .lang-switch {
    background: var(--clr-primary);
    color: #fff;
    border: none;
}

.lang-switch:hover {
    background: #fff;
    color: var(--clr-text-main);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .header-capsule {
        width: 95%;
    }

    .nav-menu {
        display: none;
        /* In reality we need a hamburger menu here */
    }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Active nav link (e.g. on gallery page) */
.nav-item.active {
    background: rgba(117, 33, 31, 0.15);
    color: var(--clr-primary) !important;
}

.header-capsule.scrolled .nav-item.active {
    background: var(--clr-primary);
    color: #fff !important;
}


/* =========================================================================
   Hero Section Matrix
   ========================================================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-lg);
    overflow: hidden;
}

/* Premium Noise/Grain Texture Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero-img-wrap {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* Space for parallax */
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    filter: brightness(0.8) contrast(1.1) saturate(1.1) blur(10px);
    transform: scale(1.4);
    will-change: transform, filter;
}

/* Cinematic Shutter Mask */
.hero-shutter-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-bg);
    clip-path: circle(0% at 50% 50%);
    /* Start closed */
    z-index: 1;
    pointer-events: none;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1.5;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), var(--glow-color), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-section:hover .hero-glow {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0;
    /* Align left/right based on dir */
    padding-left: 5%;
}

[dir="rtl"] .hero-content {
    padding-left: 0;
    padding-right: 5%;
}

/* SplitText handles words, so we wrap them */
.hero-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #ccc 60%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title .word {
    display: inline-block;
    filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
}

[dir="rtl"] .hero-title {
    letter-spacing: 0px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin-bottom: var(--space-md);
    line-height: 1.8;
    text-shadow: none;
    border-right: 3px solid var(--clr-secondary);
    padding-right: 25px;
    opacity: 0;
}

[dir="rtl"] .hero-subtitle {
    border-right: 2px solid var(--clr-secondary);
    border-left: none;
}

[dir="ltr"] .hero-subtitle {
    border-left: 2px solid var(--clr-secondary);
    border-right: none;
    padding-left: 20px;
    padding-right: 0;
}

.btn-luxe {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(196, 162, 58, 0.4);
    border-radius: 50px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(3, 3, 3, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-luxe:hover {
    background: var(--clr-secondary);
    color: var(--clr-bg);
    border-color: var(--clr-secondary);
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-minimal:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: 0 10px 30px rgba(117, 33, 31, 0.5);
    transform: translateY(-3px);
}

.ln-arrow {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.btn-minimal:hover .ln-arrow {
    transform: translateX(8px);
}

.hero-scroll-down {
    position: absolute;
    bottom: 5vh;
    right: 5%;
    width: 2px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .hero-scroll-down {
    right: auto;
    left: 5%;
}

.scroll-tracker {
    width: 100%;
    height: 30%;
    background: var(--clr-secondary);
    box-shadow: 0 0 15px var(--clr-secondary);
    animation: dash 2.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes dash {
    0% {
        transform: translateY(0);
        height: 0;
        opacity: 1;
    }

    50% {
        height: 50%;
        opacity: 1;
    }

    100% {
        transform: translateY(120px);
        height: 0;
        opacity: 0;
    }
}

/* =========================================================================
   About Highlighting & Image Mask
   ========================================================================= */
/* ==========================================
   Modern Hero Section V2 (Light & Split)
   ========================================== */
.hero-v2 {
    position: relative;
    height: 100vh;
    width: 100%;
    background: var(--clr-bg);
    overflow: hidden;
}

.hero-blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

/* =========================================================================
   Hero Section V2 (Full Screen Cinematic)
   ========================================================================= */
.hero-v2 {
    height: 100vh;
    width: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-full {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-img-box img,
.hero-img-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* for Ken Burns effect */
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content-v2.center-align {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-v2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.4;
    /* Increased from 1.1 for Arabic ascenders/descenders */
    font-weight: 800;
    color: #ffffff;
    /* White text on dark image overlay */
    margin-bottom: 25px;
    padding-bottom: 15px;
    /* Prevent bounding box clip */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle-v2 {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
    object-fit: cover;
}

.ken-burns {
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--clr-bg) 0%, transparent 40%);
}

[dir="rtl"] .hero-gradient-overlay {
    background: linear-gradient(to left, var(--clr-bg) 0%, transparent 40%);
}

/* Nav & Pagination */
.hero-nav-wrap {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

[dir="rtl"] .hero-nav-wrap {
    right: auto;
    left: 40px;
}

.hero-pagination-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-pagination-vertical .swiper-pagination-bullet {
    width: 2px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    opacity: 1;
    margin: 0 !important;
    transition: all 0.4s var(--transition);
}

.hero-pagination-vertical .swiper-pagination-bullet-active {
    height: 60px;
    background: var(--clr-accent);
}

.hero-arrows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-arrows div {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--clr-bg);
}

.hero-arrows div:hover {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}

/* Restored About Section Styles */
.about-section {
    padding: var(--space-xl) 0;
    background: var(--clr-bg);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--clr-text-main);
}

.about-stats-v2 {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.stat-pill {
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--clr-bg);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-pill .count {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-accent);
}

.stat-pill .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
}

.about-3d-wrap {
    height: 650px;
    width: 100%;
    position: relative;
    background: var(--clr-bg);
    border-radius: 8px;
    overflow: hidden;
}

.about-3d-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
}

/* Three.js Fallback Styling */
.three-fallback {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

.three-fallback::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, var(--clr-bg) 100%);
}

.fallback-badge {
    position: relative;
    z-index: 10;
    background: var(--clr-surface);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--clr-text-main);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   Sticky Stacking Services V4
   ========================================================================= */
.services-v4 {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.cards-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    padding: var(--space-lg) 0;
}

.stack-card {
    position: sticky;
    top: 15vh;
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    border-radius: 30px;
    overflow: hidden;
    background: var(--clr-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.1);
    transform-origin: center top;
}

/* Shining "Cool" UI Reflection */
.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    50% {
        left: 250%;
    }

    100% {
        left: 250%;
    }
}

.card-inner {
    display: flex;
    height: 100%;
}

.card-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-img {
    flex: 1;
    height: 100%;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srv-num {
    font-size: 6rem;
    font-weight: 100;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 162, 58, 0.5);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.card-content h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--clr-text-main);
}

.card-content p {
    color: #ccc;
    font-size: 1.1rem;
    white-space: pre-line;
    line-height: 1.6;
}

[dir="rtl"] .card-img {
    order: -1;
}

@media (max-width: 900px) {
    .card-inner {
        flex-direction: column;
    }

    .card-content,
    .card-img {
        flex: none;
        height: 50%;
        padding: var(--space-md);
    }

    [dir="rtl"] .card-img {
        order: 0;
    }
}

/* =========================================================================
   Vision & Features (Blueprint background)
   ========================================================================= */
.features-section {
    padding: var(--space-xl) 0;
    position: relative;
    background: var(--clr-bg);
}

.bg-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(196, 162, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 162, 58, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.vision-mission-text {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-xl);
}

.mega-quote {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 100;
    line-height: 1.2;
    margin-top: 2rem;
}

/* =========================================================================
   SEEN Animated Logo Grid Container
   ========================================================================= */
.seen-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.seen-quadrant {
    background: var(--clr-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    /* Smooth, native rounded corners */
    cursor: none;
    will-change: clip-path, background-color, transform;
    filter: drop-shadow(0 0 12px rgba(117, 33, 31, 0.4));
    /* Added Glow to seen letters */
}

/* Premium Light-Sweep Effect */
.seen-quadrant::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
    z-index: 5;
}

.seen-quadrant:hover::after {
    left: 150%;
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pixel-Perfect SVG Masks derived from source vector logo */
.seen-quadrant {
    -webkit-mask-size: 100% 100%;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-position: center;
    mask-repeat: no-repeat;
    clip-path: none !important;
    /* Override legacy clip-paths if any */
}

.seen-quadrant:nth-child(1) {
    /* S - Exact bezier shape */
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-76.8 -66.85 66.86 66.85'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='m -73.93,0 h 47.2 c 9.27,0 16.79,7.48 16.79,16.71 0,9.23 -7.52,16.71 -16.79,16.71 h 13.91 c 1.58,0 2.88,1.3 2.88,2.88 v 27.68 c 0,1.58 -1.28,2.87 -2.87,2.87 h -47.2 c -9.27,0 -16.79,-7.48 -16.79,-16.71 0,-9.23 7.52,-16.71 16.79,-16.71 h -13.91 c -1.58,0 -2.88,-1.3 -2.88,-2.88 V 2.87 c 0,-1.58 1.28,-2.87 2.87,-2.87 z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-76.8 -66.85 66.86 66.85'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='m -73.93,0 h 47.2 c 9.27,0 16.79,7.48 16.79,16.71 0,9.23 -7.52,16.71 -16.79,16.71 h 13.91 c 1.58,0 2.88,1.3 2.88,2.88 v 27.68 c 0,1.58 -1.28,2.87 -2.87,2.87 h -47.2 c -9.27,0 -16.79,-7.48 -16.79,-16.71 0,-9.23 7.52,-16.71 16.79,-16.71 h -13.91 c -1.58,0 -2.88,-1.3 -2.88,-2.88 V 2.87 c 0,-1.58 1.28,-2.87 2.87,-2.87 z'/%3E%3C/g%3E%3C/svg%3E");
}

.seen-quadrant:nth-child(2),
.seen-quadrant:nth-child(3) {
    /* E - Exact bezier shape */
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-63.24 -73.1 66.86 66.86'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='M -59.62,6.25 H 0 c 2,0 3.62,1.61 3.62,3.6 v 15.79 c 0,1.99 -1.62,3.6 -3.62,3.6 h -10.61 v 2.8 H 0 c 2,0 3.62,1.61 3.62,3.6 v 8.08 c 0,1.99 -1.62,3.6 -3.62,3.6 h -10.61 v 2.8 H 0 c 2,0 3.62,1.61 3.62,3.6 V 69.5 C 3.62,71.49 2,73.1 0,73.1 h -59.62 c -2,0 -3.62,-1.61 -3.62,-3.6 V 9.84 c 0,-1.99 1.62,-3.6 3.62,-3.6 z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-63.24 -73.1 66.86 66.86'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='M -59.62,6.25 H 0 c 2,0 3.62,1.61 3.62,3.6 v 15.79 c 0,1.99 -1.62,3.6 -3.62,3.6 h -10.61 v 2.8 H 0 c 2,0 3.62,1.61 3.62,3.6 v 8.08 c 0,1.99 -1.62,3.6 -3.62,3.6 h -10.61 v 2.8 H 0 c 2,0 3.62,1.61 3.62,3.6 V 69.5 C 3.62,71.49 2,73.1 0,73.1 h -59.62 c -2,0 -3.62,-1.61 -3.62,-3.6 V 9.84 c 0,-1.99 1.62,-3.6 3.62,-3.6 z'/%3E%3C/g%3E%3C/svg%3E");
}

.seen-quadrant:nth-child(4) {
    /* N - Exact bezier shape */
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-63.24 0 66.86 66.87'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='m 0,0 h -25.08 c -2,0 -3.62,-1.61 -3.62,-3.59 v -21.98 l -32.1,23.76 c -1.01,0.75 -2.44,0.03 -2.44,-1.23 v -60.78 c 0,-1.56 1.28,-3.05 2.85,-3.05 H 0 c 2,0 3.62,1.83 3.62,3.81 V -3.6 C 3.62,-1.62 2,-0.01 0,-0.01 Z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-63.24 0 66.86 66.87'%3E%3Cg transform='scale(1, -1)'%3E%3Cpath d='m 0,0 h -25.08 c -2,0 -3.62,-1.61 -3.62,-3.59 v -21.98 l -32.1,23.76 c -1.01,0.75 -2.44,0.03 -2.44,-1.23 v -60.78 c 0,-1.56 1.28,-3.05 2.85,-3.05 H 0 c 2,0 3.62,1.83 3.62,3.81 V -3.6 C 3.62,-1.62 2,-0.01 0,-0.01 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hover State - Expansion via mask removal */
.seen-quadrant:hover:nth-child(1),
.seen-quadrant:hover:nth-child(2),
.seen-quadrant:hover:nth-child(3),
.seen-quadrant:hover:nth-child(4) {
    -webkit-mask-image: none;
    mask-image: none;
}

.seen-quadrant:hover {
    background: var(--clr-primary);
    z-index: 10;
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--clr-primary);
    /* Enhanced Status Glow */
    filter: drop-shadow(0 0 20px rgba(117, 33, 31, 0.6));
}

/* Glassmorphism Overlay for text clarity */
.seen-quadrant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.seen-quadrant:hover::before {
    opacity: 1;
}

/* Content visibility */
.quad-letter {
    display: none;
    /* The shape is the letter */
}

.quad-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
    z-index: 2;
}

.seen-quadrant:hover .quad-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quad-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: var(--font-primary) !important;
    text-transform: uppercase;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.seen-quadrant:hover .quad-title {
    transform: translateY(0);
    opacity: 1;
}

.quad-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-primary) !important;
    display: block;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    line-height: 1.4;
}

.seen-quadrant:hover .quad-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Subtle gold accent for and English terms */
.quad-desc em {
    color: var(--clr-secondary);
    font-style: normal;
}

/* =========================================================================
   Cinematic Parallax Projects Grid V4
   ========================================================================= */
.projects-section {
    padding: var(--space-xl) 0;
}

.projects-parallax-wrap {
    width: 100%;
    height: 120vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--clr-bg);
}

.projects-parallax-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    width: 120%;
    height: 150vh;
    transform: rotate(-5deg) scale(1.1);
    transform-origin: center;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.prj-item-v4 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 50vh;
    border-radius: 8px;
}

.prj-item-v4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s;
}

.prj-hover-v4 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
}

.prj-hover-v4 span {
    color: var(--clr-secondary);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    display: block;
}

.prj-hover-v4 h3 {
    font-size: 1.35rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
    .projects-parallax-grid {
        grid-template-columns: 1fr;
        transform: none;
        width: 100%;
        height: auto;
        padding: 0 5%;
    }

    .projects-parallax-wrap {
        height: auto;
        overflow: visible;
    }
}

/* =========================================================================
   Infinite Marquee
   ========================================================================= */
/* =========================================================================
   Ultra-Premium Clients Marquee — Light Theme
   ========================================================================= */

/* ── Section wrapper ── */
.clients-section.cs-premium {
    padding: 80px 0;
    background: var(--clr-bg) !important;
    background-color: var(--clr-bg) !important;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Extra specificity override */
section.clients-section.cs-premium,
main section.clients-section.cs-premium {
    background: var(--clr-bg) !important;
    background-color: var(--clr-bg) !important;
}

/* Subtle warm-paper texture overlay */
.clients-section.cs-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

/* ── Header ── */
.cs-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 60px;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.cs-header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.cs-header-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cs-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #c8972a;
}

.cs-count {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #6b6b6b;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Marquee wrapper ── */
.cs-marquee-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* edge fades */
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg,
            transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* ── Scrolling track ── */
.cs-marquee {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
}

.cs-marquee-fwd {
    animation: csFwd 35s linear infinite;
}

.cs-marquee-rev {
    animation: csRev 38s linear infinite;
}

@keyframes csFwd {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes csRev {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

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

/* ── Client name ── */
.cs-name {
    display: inline-block;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1;
    padding: 18px 40px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
}

/* Filled style — dark charcoal text */
.cs-name-fill {
    color: #ffffff;
}

/* Outlined style — ghost/outline text */
.cs-name-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
}

/* Hover effects */
.cs-name-fill:hover {
    color: #c8972a;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    transform: scale(1.05);
}

.cs-name-outline:hover {
    -webkit-text-stroke-color: #c8972a;
    color: transparent;
    transform: scale(1.05);
}

/* ── Gold star separator ── */
.cs-sep {
    font-size: 1rem;
    color: #d4af37;
    opacity: 0.6;
    padding: 0 8px;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

/* ── Gold center divider between rows ── */
.cs-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 60px;
    position: relative;
    z-index: 2;
}

.cs-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.cs-divider-star {
    color: #d4af37;
    font-size: 0.7rem;
    opacity: 0.8;
    animation: csStarSpin 8s linear infinite;
}

@keyframes csStarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* Dual Track Wrap */
.marquee-track-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.marquee-track-wrap::before,
.marquee-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-track-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--clr-background), transparent);
}

.marquee-track-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--clr-background), transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: fit-content;
}

.right-flow {
    animation: flowRight 30s linear infinite;
}

.left-flow {
    animation: flowLeft 30s linear infinite;
}

[dir="rtl"] .right-flow {
    animation: flowLeft 30s linear infinite;
}

[dir="rtl"] .left-flow {
    animation: flowRight 30s linear infinite;
}

@keyframes flowRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes flowLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Fancy Dark Glass Client Card */
.fancy-glass-client {
    position: relative;
    width: 280px;
    height: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.glass-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.fancy-glass-client::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: 2;
}

.glass-content {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-content i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-content span {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.5s ease;
}

/* Hover States */
.fancy-glass-client:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.fancy-glass-client:hover::before {
    left: 200%;
}

.fancy-glass-client:hover .glass-glow {
    width: 250px;
    height: 250px;
    opacity: 1;
}

.fancy-glass-client:hover .glass-content {
    transform: scale(1.05);
}

.fancy-glass-client:hover .glass-content i {
    color: var(--clr-secondary);
    transform: rotate(5deg) scale(1.1);
}

.fancy-glass-client:hover .glass-content span {
    color: #fff;
}

.marquee h2 {
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    padding-right: 50px;
}

[dir="rtl"] .marquee h2 {
    padding-right: 0;
    padding-left: 50px;
}

.marquee h2 .accent {
    color: var(--clr-secondary);
    -webkit-text-stroke: 0;
}


/* =========================================================================
   MIND-BLOWING PREMIUM CONTACT SECTION (Dark Glassmorphism)
   ========================================================================= */
#contact-section,
.contact-section {
    position: relative;
    padding: 140px 0 100px;
    background: var(--clr-bg) !important;
    overflow: hidden;
    isolation: isolate;
}

/* Cosmic Depth Grid */
.contact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Animated background orbs — Massive Glowing Nebula Effect */
.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(120px);
    animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(117, 33, 31, 0.25), transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(32, 72, 71, 0.3), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(117, 33, 31, 0.15), transparent 70%);
    top: 35%;
    left: 30%;
    animation-delay: -9s;
}

@keyframes orbFloat {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    to {
        transform: translate(60px, -60px) scale(1.1) rotate(15deg);
    }
}

/* ── Section Header ── */
.contact-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
    z-index: 2;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--clr-bg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 40px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-heading em {
    font-style: normal;
    background: linear-gradient(135deg, #ffffff 0%, var(--clr-primary) 50%, var(--clr-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: csShine 6s ease-in-out infinite alternate;
}

@keyframes csShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.contact-subtext {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Two-column Grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ── Info Pills (Dark Glass) ── */
.contact-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.info-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.info-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(117, 33, 31, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(117, 33, 31, 0.15);
}

.info-pill-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-bg);
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.info-pill:hover .info-pill-icon {
    background: var(--clr-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--clr-primary);
}

.info-pill-wa .info-pill-icon {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
}

.info-pill-wa:hover .info-pill-icon {
    background: #25d366;
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}

.info-pill-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.info-pill-text span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-transform: uppercase;
}

.info-pill-text strong {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mind-Blowing Glass Form ── */
.contact-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Premium gradient top line */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), var(--clr-secondary), transparent);
    border-radius: 28px 28px 0 0;
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Floating label fields (Dark Theme) ── */
.form-field {
    position: relative;
    margin-bottom: 22px;
}

.form-field:last-of-type {
    margin-bottom: 0;
}

.field-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    transition: color 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

[dir="ltr"] .field-icon {
    right: auto;
    left: 18px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 24px 45px 10px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    transition: all 0.4s ease;
    resize: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

[dir="ltr"] .form-field input,
[dir="ltr"] .form-field textarea {
    padding: 24px 18px 10px 45px;
}

.form-field input:focus,
.form-field textarea:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(117, 33, 31, 0.5);
    box-shadow: 0 0 20px rgba(117, 33, 31, 0.15);
}

/* Floating Label */
.form-field label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), font-size 0.3s ease, color 0.3s ease;
    padding-inline-end: 40px;
    white-space: nowrap;
    z-index: 2;
}

.form-field textarea~label {
    top: 22px;
    transform: none;
}

.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field textarea:focus~label,
.form-field textarea:not(:placeholder-shown)~label {
    top: 8px;
    font-size: 0.65rem;
    color: var(--clr-primary);
    transform: none;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.form-field input:focus~.field-icon,
.form-field textarea:focus~.field-icon {
    color: var(--clr-primary);
}

/* bottom progress bar */
.field-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-field input:focus~.field-bar,
.form-field textarea:focus~.field-bar {
    width: 100%;
}

/* ── Submit Button (Ultra Premium) ── */
.contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    margin-top: 26px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #a02523 50%, var(--clr-secondary) 100%);
    background-size: 200%;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(117, 33, 31, 0.3);
}

.contact-submit:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(117, 33, 31, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-submit:active {
    transform: translateY(0);
}

.submit-loading {
    display: none;
}

.contact-submit.loading .submit-label,
.contact-submit.loading .submit-icon {
    display: none;
}

.contact-submit.loading .submit-loading {
    display: block;
}

/* ── Form Feedback ── */
.form-feedback {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.form-feedback.visible {
    display: flex;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── Social Icons (Dark Mode) ── */
.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    justify-content: center;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--clr-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(117, 33, 31, 0.4);
}

/* ── Map Wrapper (Dark Glass) ── */
.map-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.map-top-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.map-dot:nth-child(1) {
    background: #ff5f57;
}

.map-dot:nth-child(2) {
    background: #febc2e;
}

.map-dot:nth-child(3) {
    background: #28c840;
}

.map-address-inline {
    margin-inline-start: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.map-frame-wrap {
    position: relative;
    height: 400px;
}

/* Magic Filter to make Google Maps Dark/Premium */
.map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(0.8) contrast(1.2);
    transition: filter 0.5s ease;
}

.map-frame-wrap:hover iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.3);
}

/* Animated bouncing pin (Primary Color) */
.map-pin-animate {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.map-pin {
    width: 48px;
    height: 48px;
    background: var(--clr-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(117, 33, 31, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.3);
    animation: csPinBounce 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.map-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 1.2rem;
}

.map-pin-ring {
    position: absolute;
    width: 70px;
    height: 20px;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(117, 33, 31, 0.4), transparent);
    border-radius: 50%;
    animation: csPingShadow 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes csPinBounce {

    0%,
    100% {
        transform: rotate(-45deg) translateY(0);
    }

    50% {
        transform: rotate(-45deg) translateY(-15px);
    }
}

@keyframes csPingShadow {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) scale(0.6);
        opacity: 0.2;
    }
}

/* ── Address Card (Floating Dark Glass) ── */
.address-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(20, 34, 40, 0.85);
    /* Deep Slate */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.address-card:hover {
    border-color: rgba(117, 33, 31, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(117, 33, 31, 0.2);
    transform: translateY(-5px);
}

.address-card-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-bg);
    font-size: 1.3rem;
}

.address-card-text h5 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.address-card-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.address-card-cta {
    margin-inline-start: auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.address-card-cta:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    box-shadow: 0 5px 15px rgba(117, 33, 31, 0.3);
}


/* ── Floating WhatsApp ── */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

.wa-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: csWaPulse 2s ease-out infinite;
}

@keyframes csWaPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-strip {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-right {
        order: -1;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* =========================================================================
   Massive Dark Premium Footer
   ========================================================================= */
.footer {
    padding: var(--space-xl) 0 var(--space-md);
    background: var(--clr-bg);
    position: relative;
    border-top: 1px solid rgba(117, 33, 31, 0.3);
    /* Primary Deep Red */
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle luxury architectural grid using Primary Color */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(117, 33, 31, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 33, 31, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

/* Dark Glow using Secondary Color */
.footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(32, 72, 71, 0.2), transparent 60%);
    /* Secondary Dark Teal */
    z-index: -2;
    pointer-events: none;
}

.footer-parallax {
    background: transparent;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding-top: var(--space-xl);
}

.f-col h4 {
    margin-bottom: 24px;
    color: var(--clr-primary);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.f-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.f-socials {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.f-socials a {
    color: var(--clr-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.f-socials a:hover {
    color: #fff;
    background: var(--clr-secondary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(32, 72, 71, 0.4);
    border-color: transparent;
}

.massive-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 0;
    pointer-events: none;
}

.massive-logo-text {
    font-size: 20vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    font-family: var(--font-primary) !important;
    text-shadow: 0 0 40px rgba(117, 33, 31, 0.15);
    /* Visible Glow */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: var(--space-xl);
    position: relative;
    z-index: 2;
}

.back-to-top {
    background: var(--clr-secondary);
    color: var(--clr-bg);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    font-family: var(--font-primary) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.back-to-top:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(117, 33, 31, 0.3);
}

/* =========================================================================
   Team Section Styles
   ========================================================================= */
.team-section {
    padding: var(--space-xl) 0;
    background: var(--clr-bg);
    position: relative;
    z-index: 5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: var(--space-lg);
}

.team-card {
    position: relative;
    background: var(--clr-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--clr-accent);
}

.team-img-wrap {
    height: 400px;
    overflow: hidden;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.team-card:hover .team-img-wrap img {
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Swiper Sliders Adjustments */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-pagination-bullet-active {
    background: var(--clr-secondary) !important;
}

/* ==========================================
   Partners / Companies Section (Modern Card Design)
   ========================================== */
.partners-section {
    padding: 120px 0;
    background: var(--clr-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.partners-slider {
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    width: calc(320px * 12);
    /* 6 logos * 2 for duplicate */
    animation: scrollPartners 25s linear infinite;
    gap: 30px;
}

.partner-logo {
    width: 320px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px 20px;
    background: var(--clr-surface);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.partner-logo img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1) contrast(0.8) brightness(0.8);
    opacity: 0.6;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.partner-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main);
    text-align: center;
    margin: 0;
    line-height: 1.3;
    opacity: 0.8;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--clr-primary);
    background: var(--clr-primary);
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo:hover img {
    filter: grayscale(0) brightness(1.2) contrast(1.1);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo:hover .partner-name {
    color: #fff;
    opacity: 1;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 6 - 180px));
    }

    /* accounting for gap */
}

[dir="rtl"] .partners-track {
    animation: scrollPartnersRTL 25s linear infinite;
}

@keyframes scrollPartnersRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(320px * 6 + 180px));
    }
}

/* Pause on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

0% {
    transform: translateX(0);
}

100% {
    transform: translateX(calc(-320px * 6 - 180px));
}

/* accounting for gap */
}

[dir="rtl"] .partners-track {
    animation: scrollPartnersRTL 25s linear infinite;
}

@keyframes scrollPartnersRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(320px * 6 + 180px));
    }
}

/* Pause on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

keyframes scrollPartnersRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(320px * 6 + 180px));
    }
}

/* Pause on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

0% {
    transform: translateX(0);
}

100% {
    transform: translateX(calc(-320px * 6 - 180px));
}

/* accounting for gap */
}

[dir="rtl"] .partners-track {
    animation: scrollPartnersRTL 25s linear infinite;
}

@keyframes scrollPartnersRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(320px * 6 + 180px));
    }
}

/* Pause on hover */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}