/* ==========================================================
   إياد الشكيري — النسخة الاحترافية v3
   Cinematic Photographer Portfolio · IBM Plex Sans Arabic
   ========================================================== */

:root {
    /* Palette */
    --c-bg: #08080b;
    --c-bg-soft: #0f0f14;
    --c-surface: #14141c;
    --c-surface-2: #1b1b26;
    --c-border: rgba(255, 255, 255, 0.07);
    --c-border-strong: rgba(255, 255, 255, 0.14);
    --c-text: #f4f4f8;
    --c-text-mid: #b8b8c4;
    --c-text-dim: #7a7a8a;
    --c-accent: #d4a23a;
    --c-accent-light: #e8c368;
    --c-accent-dim: rgba(212, 162, 58, 0.14);
    --c-accent-glow: rgba(212, 162, 58, 0.35);

    /* Typography */
    --font: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    --font-en: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;

    /* Layout */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --header-h: 76px;
    --container: 1240px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.55s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--c-accent); color: var(--c-bg); }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.75;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"],
.allow-select {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

html.lang-en body { font-family: var(--font-en); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
}

/* ========== Page Loader ========== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-bg);
    display: grid;
    place-items: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
    width: 88px;
    height: 88px;
    position: relative;
}
.loader-mark::before,
.loader-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--c-accent);
    animation: loaderSpin 1.1s linear infinite;
}
.loader-mark::after {
    inset: 14px;
    border-top-color: transparent;
    border-bottom-color: var(--c-accent-light);
    animation-duration: 1.6s;
    animation-direction: reverse;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* ========== Grain / Noise Overlay ========== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ========== Custom Cursor ========== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    mix-blend-mode: difference;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s, border-color 0.25s;
}
.cursor-ring.active { width: 56px; height: 56px; border-color: var(--c-accent); }
.cursor-ring.hide { opacity: 0; }
@media (hover: none), (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ========== Scroll progress bar ========== */
.scroll-progress {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 2px;
    background: transparent;
    z-index: 1002;
}
.scroll-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
    transition: width 0.1s linear;
}

/* ========== Header / Nav ========== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(8, 8, 11, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.scrolled {
    background: rgba(8, 8, 11, 0.9);
    border-bottom-color: var(--c-border);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.nav-logo-img { height: 38px; width: auto; }
.nav-logo-text { display: none; color: var(--c-text); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav-link {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text-mid);
    padding: 0.35rem 0;
    transition: color 0.3s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; right: 0;
    width: 0; height: 2px;
    background: var(--c-accent);
    transition: width 0.4s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--c-text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 50px;
}
.lang-btn {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-text-dim);
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
}
.lang-btn.active {
    color: var(--c-bg);
    background: var(--c-accent);
}
.lang-divider { color: var(--c-text-dim); opacity: 0.4; font-size: 0.8rem; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}
.nav-toggle span {
    width: 20px; height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.25s;
}

/* ========== Buttons ========== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1.5px solid transparent;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
    overflow: hidden;
    isolation: isolate;
    line-height: 1;
    letter-spacing: 0.01em;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
    z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn-primary {
    background: var(--c-accent);
    color: #121212;
    border-color: var(--c-accent);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px -10px var(--c-accent-glow);
    color: #121212;
}
.btn-outline {
    color: var(--c-text);
    border-color: var(--c-border-strong);
    background: transparent;
}
.btn-outline::before { background: var(--c-accent); }
.btn-outline:hover {
    color: #121212;
    border-color: var(--c-accent);
}
.btn-icon { width: 1em; height: 1em; }

/* ========== Sections ========== */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--c-accent-dim);
    border-radius: 50px;
    background: rgba(212, 162, 58, 0.05);
}
.section-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 12px var(--c-accent);
}
.section-title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}
.section-title .accent {
    background: linear-gradient(135deg, var(--c-accent-light) 10%, var(--c-accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 500;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--c-text-mid);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-h) + 3rem) 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.6s var(--ease);
}
.hero-slide.active {
    opacity: 1;
    animation: kenBurns 12s linear forwards;
}
@keyframes kenBurns {
    from { transform: scale(1.05) translate(0, 0); }
    to   { transform: scale(1.18) translate(-1.5%, -1%); }
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(8,8,11,0.3) 0%, rgba(8,8,11,0.85) 80%),
        linear-gradient(180deg, rgba(8,8,11,0.6) 0%, rgba(8,8,11,0.4) 40%, var(--c-bg) 100%);
    z-index: 1;
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 80%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
    width: 100%;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--c-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s var(--ease) 0.2s forwards;
}
.hero-kicker::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--c-accent);
}

.hero-title {
    font-size: clamp(2.6rem, 7.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: riseLine 1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.65s; }
.hero-title .line.accent > span {
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 500;
}

@keyframes riseLine {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
}
@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
    max-width: 560px;
    font-size: 1.08rem;
    color: var(--c-text-mid);
    margin-bottom: 2.25rem;
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s var(--ease) 0.9s forwards;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s var(--ease) 1.05s forwards;
}

.hero-meta {
    position: absolute;
    bottom: 2.5rem;
    right: 0; left: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    opacity: 0;
    animation: rise 1s var(--ease) 1.3s forwards;
}
.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--c-text-mid);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-scroll-line {
    position: relative;
    width: 46px; height: 1px;
    background: var(--c-border-strong);
    overflow: hidden;
}
.hero-scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-accent);
    transform-origin: right;
    animation: scrollLine 2.4s var(--ease) infinite;
}
html[dir="ltr"] .hero-scroll-line::after { transform-origin: left; }
@keyframes scrollLine {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); transform-origin: left; }
}

.hero-socials {
    display: flex;
    gap: 0.5rem;
}
.hero-socials a {
    width: 40px; height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    color: var(--c-text-mid);
    transition: all 0.3s var(--ease);
}
.hero-socials a:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
    transform: translateY(-3px);
}
.hero-socials svg { width: 16px; height: 16px; }

/* ========== Stats Band ========== */
.stats {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    position: relative;
}
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    top: 50%; right: -1rem;
    transform: translateY(-50%);
    width: 1px; height: 60%;
    background: var(--c-border);
}
html[dir="ltr"] .stat-item + .stat-item::before { right: auto; left: -1rem; }
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--c-accent-light), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--c-text-mid);
    font-size: 0.95rem;
}

/* ========== Gallery ========== */
#gallery {
    scroll-margin-top: calc(var(--header-h, 80px) + 1rem);
}

.gallery { background: var(--c-bg); }

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
    padding: 0.4rem;
    max-width: fit-content;
    margin-inline: auto;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 50px;
}
.filter-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--c-text-mid);
    border-radius: 50px;
    transition: all 0.4s var(--ease);
}
.filter-btn:hover { color: var(--c-text); }
.filter-btn.active {
    color: #121212;
    background: var(--c-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}
.gallery-grid-home { grid-auto-rows: 180px; }

.gallery-item {
    position: relative;
    grid-column: span 4;
    grid-row: span 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface);
    cursor: pointer;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
/* Masonry-like irregular pattern */
.gallery-item:nth-child(6n + 1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(6n + 2) { grid-column: span 4; grid-row: span 3; }
.gallery-item:nth-child(6n + 3) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(6n + 4) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(6n + 5) { grid-column: span 3; grid-row: span 3; }
.gallery-item:nth-child(6n + 6) { grid-column: span 5; grid-row: span 2; }

.gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.photo-item { position: absolute; inset: 0; overflow: hidden; }
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
    filter: saturate(0.92);
}
.photo-logo {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.4s;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(8,8,11,0.9) 0%, rgba(8,8,11,0.4) 50%, transparent 75%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.gallery-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    transform: translateY(12px);
    transition: transform 0.5s var(--ease) 0.05s;
}
.gallery-overlay p {
    color: var(--c-text-mid);
    font-size: 0.88rem;
    transform: translateY(12px);
    transition: transform 0.5s var(--ease) 0.12s;
}
.gallery-overlay::after {
    content: '+';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-accent);
    color: #121212;
    font-size: 1.5rem;
    font-weight: 300;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.5s var(--ease);
}
html[dir="ltr"] .gallery-overlay::after { left: auto; right: 1rem; }

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p { transform: translateY(0); }
.gallery-item:hover .gallery-overlay::after { transform: scale(1); opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.08); filter: saturate(1.1); }
.gallery-item:hover .photo-logo { opacity: 0; }

.gallery-item.hidden { display: none; }

.gallery-item.gallery-item--overflow {
    display: none !important;
}

.gallery-show-more-wrap {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
}

.gallery-show-more-wrap[hidden] {
    display: none !important;
}

.gallery-float {
    position: fixed;
    inset-inline-end: max(0.65rem, env(safe-area-inset-inline-end));
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.gallery-float__fab-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.gallery-float__hint {
    display: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-accent, #c9a227);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
    max-width: 5rem;
    text-align: center;
    line-height: 1.15;
    pointer-events: none;
}

.gallery-float__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-accent, #c9a227);
    font-size: 1.1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.gallery-float__panel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
    max-height: min(72vh, 480px);
    overflow-y: auto;
    border-radius: 14px;
    background: rgba(16, 16, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.gallery-float__btn.filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

@keyframes gallery-float-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 10px 36px rgba(201, 162, 39, 0.28);
    }
}

@keyframes gallery-float-hint-pop {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.92);
    }
    18% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-3px);
    }
    65%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .gallery-float__toggle {
        display: flex;
        animation: gallery-float-pulse 2.2s ease-in-out 2;
    }

    .gallery-float__hint {
        display: block;
    }

    .gallery-float:not(.hint-settled) .gallery-float__hint {
        animation: gallery-float-hint-pop 2.6s ease-out 1 forwards;
    }

    .gallery-float.hint-settled .gallery-float__hint {
        opacity: 0.82;
        animation: none;
    }

    .gallery-float:not(.is-open) .gallery-float__panel {
        display: none;
    }
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========== Services / Offering ========== */
.services {
    background: var(--c-bg-soft);
    position: relative;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    position: relative;
    padding: 2.25rem 1.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-accent-dim);
    background: var(--c-surface-2);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--c-accent-dim);
    color: var(--c-accent);
    margin-bottom: 1.25rem;
    transition: transform 0.5s var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--c-text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== About ========== */
.about {
    background: var(--c-bg);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: '';
    position: absolute;
    top: 20%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--c-accent-dim) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
html[dir="ltr"] .about::before { right: auto; left: -10%; }

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8,8,11,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}
.about-grid:hover .about-portrait { transform: scale(1.04); }

.about-visual-frame {
    position: absolute;
    inset: -14px;
    border: 1px solid var(--c-accent);
    border-radius: calc(var(--radius-xl) + 14px);
    z-index: -1;
    opacity: 0.55;
}
.about-visual-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    padding: 0.7rem 1.1rem;
    background: rgba(8,8,11,0.72);
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-border-strong);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.about-visual-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

.about-content .section-tag { margin-bottom: 1rem; }
.about-content .section-title { text-align: right; margin-bottom: 1.25rem; }
html[dir="ltr"] .about-content .section-title { text-align: left; }
.about-text {
    color: var(--c-text-mid);
    font-size: 1.02rem;
    margin-bottom: 1.75rem;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--c-text-mid);
}
.about-highlights li::before {
    content: '';
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--c-accent-dim);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a23a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}
.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== Partners Section ========== */
.partners {
    background: var(--c-bg-soft);
    padding: 5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

/* ========== Infinite partners marquee (two identical halves, -50% loop) ========== */
.marquee {
    --marquee-gap: 2.5rem;
    --marquee-fade: 160px;
    --marquee-fade-color: var(--c-bg-soft);
    --marquee-duration: 45s;

    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
    isolation: isolate;
}

.marquee-viewport {
    width: 100%;
    overflow: hidden;
    min-width: 0;
}
/* Edge gradient fades for a premium feel */
.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--marquee-fade);
    z-index: 2;
    pointer-events: none;
}
.marquee::before {
    inset-inline-start: 0;
    background: linear-gradient(to right, var(--marquee-fade-color), transparent);
}
html[dir="rtl"] .marquee::before {
    background: linear-gradient(to left, var(--marquee-fade-color), transparent);
}
.marquee::after {
    inset-inline-end: 0;
    background: linear-gradient(to left, var(--marquee-fade-color), transparent);
}
html[dir="rtl"] .marquee::after {
    background: linear-gradient(to right, var(--marquee-fade-color), transparent);
}

.marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: marquee-seamless var(--marquee-duration) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

@keyframes marquee-seamless {
    from { transform: translate3d(0, 0, 0); }
    /* Exactly one half of the track width → second half replaces first with no jump */
    to   { transform: translate3d(-50%, 0, 0); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}
.marquee[data-pause="false"]:hover .marquee-track {
    animation-play-state: running;
}
.marquee[data-reverse="true"] .marquee-track {
    animation-direction: reverse;
}

.marquee-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--marquee-gap);
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marquee-item {
    flex: 0 0 auto;
    width: 200px;
    min-height: 88px;
    height: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text-mid);
    text-align: start;
    filter: grayscale(1) brightness(0.92);
    opacity: 0.78;
    position: relative;
    overflow: hidden;
    transition: color 0.45s var(--ease),
                border-color 0.45s var(--ease),
                background 0.45s var(--ease),
                filter 0.45s var(--ease),
                opacity 0.45s var(--ease),
                transform 0.45s var(--ease),
                box-shadow 0.45s var(--ease);
}

/* Placeholder “logo” tile — same height for every partner row */
.marquee-item-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(212, 162, 58, 0.45);
    background: linear-gradient(145deg, rgba(212, 162, 58, 0.12), rgba(212, 162, 58, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Success partners strip — logos from img/Partners */
.marquee-item-partner {
    width: 200px;
    min-height: 0;
    height: 88px;
    padding: 0.5rem 0.85rem;
    gap: 0;
}
.marquee-item-partner .marquee-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: inherit;
}
/* شريط الشركاء: شعارات بألوانها الكاملة */
.marquee-partners .marquee-item {
    filter: none;
    opacity: 1;
}
.marquee-partners .marquee-item:hover {
    filter: brightness(1.06);
    opacity: 1;
}

.marquee-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
}
.marquee-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 120% at 50% 0%, var(--c-accent-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
}
.marquee-item-text span {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.marquee-item-text small {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    opacity: 0.55;
    text-transform: uppercase;
}
.marquee-item:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background: var(--c-surface-2);
    filter: grayscale(0) brightness(1.05);
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px var(--c-accent-glow);
}
.marquee-item:hover::after { opacity: 1; }

@media (max-width: 640px) {
    .marquee { --marquee-gap: 1.35rem; --marquee-fade: 80px; }
    .marquee-item {
        width: 168px;
        min-height: 76px;
        height: 76px;
        gap: 0.65rem;
        padding: 0.5rem 0.75rem;
    }
    .marquee-item-logo {
        width: 38px;
        height: 38px;
    }
    .marquee-item-partner {
        width: 168px;
        height: 76px;
        padding: 0.4rem 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ========== Testimonials ========== */
.testimonials { background: var(--c-bg); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial {
    position: relative;
    padding: 2rem 1.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.testimonial::before {
    content: '“';
    position: absolute;
    top: 0.25rem;
    right: 1.25rem;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-accent);
    opacity: 0.25;
}
html[dir="ltr"] .testimonial::before { right: auto; left: 1.25rem; }
.testimonial:hover {
    border-color: var(--c-accent-dim);
    transform: translateY(-4px);
}
.testimonial-text {
    color: var(--c-text-mid);
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--c-accent-dim);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--c-accent);
    flex-shrink: 0;
}
.testimonial-author h4 { font-size: 0.95rem; font-weight: 600; }
.testimonial-author p { font-size: 0.82rem; color: var(--c-text-dim); }

/* ========== Contact ========== */
.contact { background: var(--c-bg-soft); position: relative; }
.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    max-width: 1050px;
    margin: 0 auto;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 30px 80px -40px rgba(0,0,0,0.5);
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form-feedback {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.45;
    border: 1px solid transparent;
}
.contact-form-feedback--ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}
.contact-form-feedback--err {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}
.form-group { position: relative; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text-mid);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    font-family: inherit;
    font-size: 0.98rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-dim); }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-card:hover {
    border-color: var(--c-accent-dim);
    transform: translateY(-2px);
}
.contact-card-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--c-accent-dim);
    color: var(--c-accent);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card h4 {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--c-text-dim);
    margin-bottom: 0.25rem;
}
.contact-card a, .contact-card p {
    font-size: 0.95rem;
    color: var(--c-text);
    font-weight: 500;
}
.contact-card a:hover { color: var(--c-accent); }

/* ========== Footer ========== */
.footer {
    background: var(--c-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--c-border);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 1.5rem;
}
.footer-brand-img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
    font-size: 0.95rem;
    color: var(--c-text-mid);
    max-width: 340px;
    line-height: 1.75;
}
.footer-col h4 {
    font-size: 0.82rem;
    color: var(--c-text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
    color: var(--c-text-mid);
    font-size: 0.92rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--c-text-dim);
}
.footer-social {
    display: flex;
    gap: 0.5rem;
}
.footer-social a {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all 0.3s var(--ease);
}
.footer-social a:hover {
    background: var(--c-accent);
    color: #121212;
    border-color: var(--c-accent);
    transform: translateY(-3px);
}
.footer-social svg { width: 16px; height: 16px; }

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(3, 3, 5, 0.96);
    backdrop-filter: blur(18px);
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute;
    top: max(1rem, env(safe-area-inset-top));
    inset-inline-start: max(1rem, env(safe-area-inset-inline-start));
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: var(--c-text);
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}
.lightbox-close:hover { background: var(--c-accent); color: #121212; }
.lightbox-photo-wrap {
    position: relative;
    display: inline-block;
    transform: scale(0.92);
    transition: transform 0.5s var(--ease);
}
.lightbox.active .lightbox-photo-wrap { transform: scale(1); }
.lightbox-content img#lightboxImg {
    max-width: min(92vw, 100%);
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.lightbox-logo {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    opacity: 0.8;
    pointer-events: none;
}

/* ========== Scroll Reveal ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* ========== About Page ========== */
.about-page-main { padding-top: var(--header-h); }
.about-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--c-accent-dim), transparent 70%);
}
.about-hero-kicker {
    display: inline-flex;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--c-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 500;
}
.about-hero-name {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.about-hero-tagline {
    color: var(--c-text-mid);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.philosophy { background: var(--c-bg-soft); }
.philosophy-body { font-size: 1.05rem; color: var(--c-text-mid); }
.philosophy-body p { margin-bottom: 1.25rem; }
.about-quote {
    margin: 2.5rem 0 0;
    padding: 1.75rem 2rem;
    border-inline-start: 3px solid var(--c-accent);
    background: var(--c-accent-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--c-text);
    font-size: 1.05rem;
    line-height: 1.85;
}
html[dir="ltr"] .about-quote {
    border-radius: var(--radius) 0 0 var(--radius);
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.achievement-item {
    padding: 1.5rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.achievement-item::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 3px; height: 100%;
    background: var(--c-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s var(--ease);
}
html[dir="ltr"] .achievement-item::before { right: auto; left: 0; }
.achievement-item:hover {
    border-color: var(--c-accent-dim);
    transform: translateY(-4px);
}
.achievement-item:hover::before { transform: scaleY(1); }
.achievement-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 0.5rem;
}
.achievement-item p {
    color: var(--c-text-mid);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Gallery Page */
.gallery-page-main { padding-top: calc(var(--header-h) + 3rem); }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item + .stat-item:nth-child(3)::before { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-content .section-title { text-align: center; }
    .contact-wrap { grid-template-columns: 1fr; }
    .gallery-grid { grid-auto-rows: 140px; }
    .gallery-item,
    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+2),
    .gallery-item:nth-child(6n+3),
    .gallery-item:nth-child(6n+4),
    .gallery-item:nth-child(6n+5),
    .gallery-item:nth-child(6n+6) {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        left: auto;
        width: 86%;
        max-width: 340px;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 0.25rem;
        background: var(--c-bg-soft);
        border-inline-start: 1px solid var(--c-border);
        transition: right 0.5s var(--ease);
    }
    html[dir="ltr"] .nav-menu {
        right: auto; left: -100%;
        transition: left 0.5s var(--ease);
    }
    .nav-menu.active { right: 0; }
    html[dir="ltr"] .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; border-bottom: 1px solid var(--c-border); }
    .nav-link { display: block; padding: 1rem 0; font-size: 1rem; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-item + .stat-item::before { display: none; }
    .services-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .achievements-list { grid-template-columns: 1fr; }
    .hero-meta { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gallery-item,
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 2;
    }
    .partner-logo { width: 140px; height: 70px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .about-highlights { grid-template-columns: 1fr; }
    .about-actions { flex-direction: column; }
    .about-actions .btn { width: 100%; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-filters { flex-direction: row; padding: 0.3rem; }
    .filter-btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
    .photo-logo { width: 70px; bottom: 8px; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
