@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    --forest: #0f2318;
    --deep: #2e3a34;
    --primary: #179d38;
    --lime: #4ecb68;
    --mint: #94d9a2;
    --pale: #d2edd7;
    --paper: #eaece6;
    --snow: #f7faf5;
    --white: #ffffff;
    --ink: #131a15;
    --stone: #4a5e51;
    --sage: #8fa899;
    --gold: #fecb66;
    --amber: #c4901a;
    --border: rgba(19, 26, 21, 0.14);
    --container: min(92vw, 1380px);
    --radius: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: 'Cairo', Tahoma, sans-serif; font-size: 16px; line-height: 1.8; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: .75rem; inset-inline-start: .75rem; transform: translateY(-160%); padding: .7rem 1rem; background: var(--gold); color: var(--ink); border-radius: .5rem; font-weight: 800; }
.skip-link:focus { transform: none; }
.topbar { background: #09150e; color: rgba(255,255,255,.72); font-size: .76rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .55rem; }
.topbar-links { display: flex; gap: 1.4rem; direction: ltr; }
.topbar a:hover { color: var(--gold); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(78,203,104,.12); }
.site-header { position: absolute; z-index: 100; top: 38px; inset-inline: 0; color: #fff; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.site-header.scrolled { position: fixed; top: 0; background: rgba(15,35,24,.94); backdrop-filter: blur(16px); box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.nav-wrap { min-height: 92px; display: grid; grid-template-columns: 210px 1fr auto; gap: 1.8rem; align-items: center; }
.brand img { width: 174px; height: auto; filter: brightness(0) invert(1); }
.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(.7rem, 1.8vw, 1.8rem); }
.main-nav a { position: relative; padding: .5rem .1rem; color: rgba(255,255,255,.78); font-size: .89rem; font-weight: 650; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .2s ease; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .78rem 1.15rem; background: var(--gold); color: var(--ink); font-size: .84rem; font-weight: 850; border-radius: 99px; transition: transform .2s ease, background .2s ease; }
.nav-cta:hover { transform: translateY(-2px); background: #ffda8a; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; }
.hero { position: relative; min-height: min(900px, 100svh); display: flex; align-items: end; isolation: isolate; overflow: hidden; background: var(--forest); color: #fff; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.02); animation: heroZoom 14s ease-out both; }
.hero-overlay { z-index: -2; background: linear-gradient(90deg, rgba(6,18,11,.2), rgba(6,18,11,.62) 55%, rgba(6,18,11,.94)), linear-gradient(0deg, rgba(6,18,11,.88), transparent 55%); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 12.5vw 100%, 100% 100%; opacity: .28; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%); }
.hero-content { position: relative; padding-block: 210px 96px; }
.hero-kicker { display: flex; gap: 1.5rem; align-items: center; color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
.hero-kicker::before { content: ''; width: 38px; height: 1px; background: currentColor; }
.hero-kicker span { color: rgba(255,255,255,.64); font-weight: 500; }
.hero h1 { max-width: 920px; margin: 1.3rem 0 2.2rem; font-size: clamp(4rem, 8.7vw, 8.5rem); line-height: .98; letter-spacing: -.06em; font-weight: 850; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); font-style: normal; font-weight: 650; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; max-width: 980px; }
.hero-bottom p { max-width: 570px; margin: 0; color: rgba(255,255,255,.76); font-size: 1.06rem; }
.hero-actions { display: flex; gap: .7rem; flex-shrink: 0; }
.btn { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: .8rem; padding: .65rem 1.35rem; border: 1px solid transparent; border-radius: 99px; font-weight: 800; font-size: .9rem; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--lime); color: var(--forest); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffdc97; }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--border); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.hero-index { position: absolute; inset-inline-end: 3.8vw; bottom: 102px; display: flex; align-items: center; gap: .65rem; writing-mode: vertical-rl; color: rgba(255,255,255,.5); font-size: .7rem; }
.hero-index i { width: 1px; height: 78px; background: rgba(255,255,255,.35); }
.stats-band { background: var(--forest); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 155px; padding: 2.5rem 2rem; border-inline-start: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 1rem; }
.stat:first-child { border-inline-start: 0; }
.stat strong { color: var(--gold); font-size: clamp(2.4rem,4vw,4rem); line-height: 1; letter-spacing: -.04em; }
.stat span { max-width: 110px; color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.55; }
.section { padding-block: clamp(5rem, 9vw, 9rem); }
.intro-section { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem; color: var(--primary); font-size: .78rem; font-weight: 850; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--gold); }
.section-heading h2, .section-top h2, .services-intro h2, .closing-cta h2 { margin: 0; font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 1.15; letter-spacing: -.05em; }
.intro-copy { padding-top: 2.6rem; }
.intro-copy p { color: var(--stone); }
.intro-copy .lead { margin-top: 0; color: var(--ink); font-size: clamp(1.25rem,2vw,1.7rem); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; color: var(--primary); font-weight: 850; border-bottom: 1px solid currentColor; }
.projects-preview { background: var(--snow); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.2rem; }
.section-top h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); }
.project-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.2rem; }
.project-card a { display: block; }
.project-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--deep); border-radius: var(--radius); }
.project-card-large .project-image { aspect-ratio: 1 / .87; }
.project-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,17,10,.55), transparent 50%); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.project-card:hover img { transform: scale(1.045); }
.project-status, .project-code { position: absolute; z-index: 2; top: 1rem; border-radius: 99px; }
.project-status { inset-inline-start: 1rem; padding: .3rem .75rem; background: rgba(15,35,24,.8); backdrop-filter: blur(8px); color: #fff; font-size: .7rem; }
.project-code { inset-inline-end: 1rem; color: #fff; font-size: .75rem; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem .25rem 0; }
.project-meta h3 { margin: 0; font-size: 1.35rem; }
.project-meta p { margin: .05rem 0 0; color: var(--stone); font-size: .76rem; }
.round-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; transition: background .2s ease, color .2s ease; }
.project-card:hover .round-arrow { background: var(--forest); color: #fff; }
.services-preview { background: var(--deep); color: #fff; }
.services-layout { display: grid; grid-template-columns: .85fr 1.3fr; gap: 8vw; align-items: start; }
.services-intro { position: sticky; top: 135px; }
.services-intro h2 { font-size: clamp(2.6rem,4.8vw,4.8rem); }
.services-intro p { color: rgba(255,255,255,.62); max-width: 560px; margin: 1.6rem 0 2rem; }
.service-list { border-top: 1px solid rgba(255,255,255,.15); }
.service-row { display: grid; grid-template-columns: 42px 62px 1fr auto; align-items: center; gap: 1rem; min-height: 112px; border-bottom: 1px solid rgba(255,255,255,.15); transition: padding .25s ease, background .25s ease; }
.service-row > span { color: var(--gold); font-size: .72rem; }
.service-row img { width: 46px; height: 46px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }
.service-row h3 { margin: 0; font-size: 1.35rem; }
.service-row i { font-style: normal; color: var(--gold); }
.service-row:hover { padding-inline: 1rem; background: rgba(255,255,255,.04); }
.promise-section { background: var(--gold); }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid rgba(19,26,21,.25); }
.promise-grid article { padding: 2.2rem 1.5rem 0; border-inline-start: 1px solid rgba(19,26,21,.25); }
.promise-grid article:first-child { border-inline-start: 0; }
.promise-grid span { font-size: .74rem; color: rgba(19,26,21,.55); }
.promise-grid h3 { margin: 1.5rem 0 .65rem; font-size: 1.25rem; }
.promise-grid p { margin: 0; color: rgba(19,26,21,.7); font-size: .88rem; }
.closing-cta { background: var(--forest); color: #fff; padding-block: clamp(4rem,7vw,7rem); }
.closing-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: end; }
.closing-copy p { color: rgba(255,255,255,.65); margin: 0 0 1.5rem; }
.site-footer { background: #09150e; color: rgba(255,255,255,.65); padding-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr 1fr 1.15fr; gap: 4vw; }
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 1.4rem; }
.footer-brand p { max-width: 400px; }
.site-footer h3 { margin: 0 0 1.2rem; color: #fff; font-size: .95rem; }
.site-footer p { font-size: .82rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .5rem 0; font-size: .82rem; }
.site-footer a:hover { color: var(--gold); }
.footer-contact { direction: rtl; }
.footer-bottom { margin-top: 4rem; padding-block: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 1.4rem; font-size: .75rem; }
.whatsapp-float { position: fixed; z-index: 90; inset-inline-end: 1.4rem; bottom: 1.4rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 12px 30px rgba(15,35,24,.28); transition: transform .2s ease; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 29px; fill: #fff; }
.reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity 0.75s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.75s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

/* Staggered card reveals */
.home-project-grid .reveal:nth-child(2),
.event-grid .reveal:nth-child(2),
.home-certificate-grid .reveal:nth-child(2),
.partner-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.home-project-grid .reveal:nth-child(3),
.event-grid .reveal:nth-child(3),
.home-certificate-grid .reveal:nth-child(3),
.partner-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.home-project-grid .reveal:nth-child(4),
.home-certificate-grid .reveal:nth-child(4),
.partner-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Smart Sticky Header with Blur & Direction Hide */
.site-header {
    transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    position: fixed;
    top: 0;
    background: rgba(8, 36, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(246, 199, 93, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
}
.site-header.header-hidden {
    transform: translateY(-110%);
}

/* Glowing Luxury Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #f6c75d, #39ca62, #18a846);
    box-shadow: 0 0 12px rgba(246, 199, 93, 0.8), 0 0 4px rgba(57, 202, 98, 0.6);
    z-index: 99999;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.05s linear;
    pointer-events: none;
}

/* Floating Animation for Key Visuals */
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.hero-project-note {
    animation: floatBadge 3.8s ease-in-out infinite;
}

/* Back to Top Smooth Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    inset-inline-start: 24px;
    inset-inline-end: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 35, 24, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f6c75d;
    border: 1.5px solid rgba(246, 199, 93, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #0b2719;
    color: #fff;
    border-color: #f6c75d;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(246, 199, 93, 0.35);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 18px;
        right: 18px;
        inset-inline-start: 18px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.visible, .scroll-progress-bar, .back-to-top, .hero-project-note {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.02); } }

@media (max-width: 1100px) {
    .nav-wrap { grid-template-columns: 1fr auto auto; min-height: 78px; }
    .main-nav { position: fixed; inset: 0; z-index: -1; padding: 125px 6vw 3rem; background: rgba(9,21,14,.98); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; transform: translateY(-105%); transition: transform .35s ease; }
    .main-nav.open { transform: none; }
    .main-nav a { width: 100%; font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
    .menu-toggle { display: block; order: -1; }
    .project-grid { grid-template-columns: 1.25fr 1fr; }
    .project-card:nth-child(3) { display: none; }
    .services-layout { gap: 5vw; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
    :root { --container: min(90vw, 620px); --radius: 1rem; }
    .topbar-links a:last-child, .nav-cta { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar-links { display: none; }
    .site-header { top: 38px; }
    .site-header.scrolled { top: 0; }
    .brand img { width: 145px; }
    .hero { min-height: 820px; }
    .hero-content { padding-block: 185px 70px; }
    .hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); margin-block: 1.5rem 2rem; }
    .hero-kicker { align-items: flex-start; gap: .7rem; flex-direction: column; }
    .hero-kicker::before { display: none; }
    .hero-bottom { display: block; }
    .hero-actions { margin-top: 1.6rem; flex-wrap: wrap; }
    .hero-index { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat { min-height: 132px; padding: 1.8rem .9rem; border-bottom: 1px solid rgba(255,255,255,.12); }
    .stat:nth-child(odd) { border-inline-start: 0; }
    .stat strong { font-size: 2.55rem; }
    .intro-grid, .services-layout, .closing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .intro-copy { padding-top: 0; }
    .section-top { align-items: flex-start; flex-direction: column; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card:nth-child(3) { display: block; }
    .project-image, .project-card-large .project-image { aspect-ratio: 1 / .9; }
    .services-intro { position: static; }
    .service-row { grid-template-columns: 30px 50px 1fr auto; min-height: 96px; }
    .service-row h3 { font-size: 1.05rem; }
    .promise-grid { grid-template-columns: 1fr 1fr; }
    .promise-grid article { padding: 1.8rem .8rem; border-bottom: 1px solid rgba(19,26,21,.25); }
    .promise-grid article:nth-child(odd) { border-inline-start: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
