/* ============================================================
   NAGHSHARA CONSULTING ENGINEERS  – v4 STYLESHEET
   Colors: primary #02024e · accent #ffa801 · bg #f8fafc
   ============================================================ */

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

:root {
    --primary:    #02024e;
    --primary-dk: #010138;
    --primary-lt: rgba(2, 2, 78, 0.07);
    --accent:     #ffa801;
    --accent-dk:  #e69200;
    --accent-lt:  rgba(255, 168, 1, 0.14);
    --bg:         #f8fafc;
    --bg2:        #eef1f8;
    --card:       #ffffff;
    --text:       #0c0c3a;
    --muted:      #64748b;
    --border:     rgba(2, 2, 78, 0.10);
    --border2:    rgba(2, 2, 78, 0.20);
    --font:       'Vazirmatn', sans-serif;
    --radius:     14px;
    --radius-lg:  22px;
    --shadow:     0 4px 24px rgba(2, 2, 78, 0.08);
    --shadow-lg:  0 12px 48px rgba(2, 2, 78, 0.14);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
    align-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    padding: 0;
}
#navbar.scrolled {
    background: var(--primary);
    box-shadow: 0 2px 20px rgba(2, 2, 78, 0.25);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img { width: 44px; height: 44px; object-fit: contain; }
.logo-words { display: flex; flex-direction: column; line-height: 1.25; }
.logo-primary {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}
.logo-secondary {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}
.lang-btn {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.05em;
}
.lang-btn.active {
    background: var(--accent);
    color: var(--primary);
}
.lang-btn:not(.active):hover { color: rgba(255,255,255,0.9); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}
.nav-links li a:hover { background: rgba(255,168,1,0.15); color: var(--accent); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
}
.nav-cta:hover { background: var(--accent-dk) !important; color: var(--primary) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    min-width: 30px;
}
.hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    inset-inline: 0;
    background: var(--primary);
    z-index: 999;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,168,1,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition);
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    background: var(--primary-dk);
    overflow: hidden;
    display: flex;
    align-items: center;
}

#globe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gradient overlay: right side is opaque (text), left is transparent (globe shows) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to left,
        rgba(1, 1, 56, 0.97) 0%,
        rgba(1, 1, 56, 0.90) 30%,
        rgba(1, 1, 56, 0.60) 55%,
        rgba(1, 1, 56, 0.15) 75%,
        transparent 90%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 70px;
    display: flex;
    justify-content: flex-start; /* RTL: pushes to visual right */
}

.hero-content {
    max-width: 560px;
    padding: 20px 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 168, 1, 0.4);
    border-radius: 50px;
    background: rgba(255, 168, 1, 0.08);
}

.hero-heading {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.18;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}
.hero-brand {
    color: var(--accent);
    display: block;
    font-size: 1.08em;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-accent {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 168, 1, 0.35);
}
.btn-accent:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 168, 1, 0.45);
}

.btn-outline {
    display: inline-block;
    padding: 13px 30px;
    background: transparent;
    color: rgba(255,255,255,0.88);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.35);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 168, 1, 0.08);
}

/* Hero stats bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    background: rgba(1, 1, 56, 0.80);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 168, 1, 0.20);
}
.hstat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    text-align: center;
}
.hstat-num {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.hstat-plus {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.hstat-lbl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
    font-weight: 400;
}
.hstat-sep {
    width: 1px;
    background: rgba(255, 168, 1, 0.25);
    align-self: stretch;
    margin: 16px 0;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollBob 2s ease-in-out infinite;
    background: none;
    border: none;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.scroll-cue:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
}
@keyframes scrollBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    pointer-events: none;
}
.scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    75% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 0; transform: translateY(0); }
}

/* Hero → About wave separator (outside hero) */
.hero-wave-sep {
    background: var(--primary-dk);
    line-height: 0;
    margin-top: -1px;
}
.hero-wave-sep svg { display: block; width: 100%; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section { padding: 96px 0; }

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.label-line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-heading {
    text-align: center;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.section-sub {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stat-big {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-desc {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

.about-text {}
.about-heading {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}
.accent-text { color: var(--accent); }
.about-text p {
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* Timeline */
.timeline { margin-top: 36px; }
.timeline-step {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
}
.timeline-step::before {
    content: '';
    position: absolute;
    top: 28px;
    right: 10px;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--border2);
}
.timeline-step:last-child::before { display: none; }

.timeline-dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
    margin-top: 3px;
}
.timeline-body strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.timeline-body p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* Wave between about and services */
.wave-divider {
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ============================================================
   SERVICES
   ============================================================ */
#services {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
#services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 168, 1, 0.06) 0%, transparent 60%),
                      radial-gradient(circle at 80% 20%, rgba(255, 168, 1, 0.04) 0%, transparent 50%);
}
#services .section-heading { color: #fff; }
#services .section-sub { color: rgba(255,255,255,0.6); }
#services .section-label { color: var(--accent); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
}

.svc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 168, 1, 0.16);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
    cursor: default;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to left, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.svc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 168, 1, 0.40);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.svc-card:hover::before { opacity: 1; }

.svc-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-lt);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: background var(--transition);
}
.svc-card:hover .svc-icon-wrap { background: rgba(255, 168, 1, 0.22); }
.svc-icon { width: 32px; height: 32px; }

/* Adjust SVG colors for dark bg */
.svc-icon [stroke="#02024e"] { stroke: rgba(255,255,255,0.85); }
.svc-icon [fill="#02024e"] { fill: rgba(255,255,255,0.85); }

.svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.4;
}

.svc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.svc-list li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    padding-right: 16px;
    position: relative;
}
.svc-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

/* ============================================================
   EQUIPMENT
   ============================================================ */
#equipment {
    position: relative;
    overflow: hidden;
}

/* eBee display — absolute overlay on equipment cards */
.ebee-display {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}
.ebee-display svg { display: block; }

@media (min-width: 1025px) {
    .ebee-display {
        top: -90%;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

/* Flight stage fills the card stack area */
.ebee-flight-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    direction: ltr;
    --ebee-flight-dur: 22s;
}

.ebee-motion-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    visibility: hidden;
}

.ebee-ground-shadow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    offset-path: url(#ebee-motion-path);
    offset-anchor: center;
    offset-distance: 0%;
    offset-rotate: 0deg;
    pointer-events: none;
    z-index: 1;
    animation: ebee-path-move var(--ebee-flight-dur) linear infinite;
    will-change: offset-distance;
}

.ebee-shadow-shape {
    width: 26%;
    aspect-ratio: 5 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(2, 2, 78, 0.26) 0%, rgba(2, 2, 78, 0.07) 50%, transparent 72%);
    animation: ebee-shadow-depth var(--ebee-flight-dur) linear infinite;
    will-change: transform, opacity;
}

.ebee-drone-fly {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    offset-path: url(#ebee-motion-path);
    offset-anchor: center;
    offset-distance: 0%;
    offset-rotate: auto 90deg;
    z-index: 2;
    animation: ebee-path-move var(--ebee-flight-dur) linear infinite;
    will-change: offset-distance;
}

.ebee-drone-body {
    width: 38%;
    aspect-ratio: 680 / 560;
    flex-shrink: 0;
    transform-origin: center center;
    filter: drop-shadow(0 8px 18px rgba(2, 2, 78, 0.16));
    animation: ebee-depth var(--ebee-flight-dur) linear infinite;
    will-change: transform;
}

@keyframes ebee-path-move {
    to { offset-distance: 100%; }
}

/* Depth synced to oval — near at bottom, far at top */
@keyframes ebee-depth {
    0%, 100% { transform: scale(0.94); }
    8%  { transform: scale(0.90); }
    16% { transform: scale(0.84); }
    25% { transform: scale(0.78); }
    33% { transform: scale(0.73); }
    41% { transform: scale(0.70); }
    50% { transform: scale(0.68); }
    58% { transform: scale(0.70); }
    66% { transform: scale(0.73); }
    75% { transform: scale(0.78); }
    83% { transform: scale(0.84); }
    91% { transform: scale(0.90); }
}

@keyframes ebee-shadow-depth {
    0%, 100% { transform: scale(1);    opacity: 0.58; }
    8%       { transform: scale(0.94); opacity: 0.52; }
    16%      { transform: scale(0.86); opacity: 0.46; }
    25%      { transform: scale(0.78); opacity: 0.40; }
    33%      { transform: scale(0.72); opacity: 0.35; }
    41%      { transform: scale(0.66); opacity: 0.31; }
    50%      { transform: scale(0.62); opacity: 0.28; }
    58%      { transform: scale(0.66); opacity: 0.31; }
    66%      { transform: scale(0.72); opacity: 0.35; }
    75%      { transform: scale(0.78); opacity: 0.40; }
    83%      { transform: scale(0.86); opacity: 0.46; }
    91%      { transform: scale(0.94); opacity: 0.52; }
}

/* Propeller spin */
@keyframes prop-spin {
    to { transform: rotate(153deg) scale(0.2); }
}
#propeller {
    transform-box: fill-box;
    transform-origin: center;
    animation: prop-spin 0.18s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ebee-drone-fly,
    .ebee-drone-body,
    .ebee-ground-shadow,
    .ebee-shadow-shape,
    #propeller {
        animation: none;
    }
    .ebee-drone-fly {
        offset-distance: 0%;
    }
}

.eq-intro {
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.8;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.equipment-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.equipment-stage {
    position: relative;
    isolation: isolate;
}

.equipment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1025px) {
    .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

.equip-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), z-index 0s;
}
.equip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    z-index: 4;
}
.equip-icon-area {
    margin-bottom: 20px;
}
.equip-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.equip-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.equip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.equip-list li {
    font-size: 0.83rem;
    color: var(--muted);
    padding-right: 14px;
    position: relative;
    line-height: 1.5;
}
.equip-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================================
   STATS (in activities section)
   ============================================================ */
.stat-number {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 24px;
    text-align: center;
}
.stat-unit, .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

/* ============================================================
   ACTIVITIES / STATS  (dark section)
   ============================================================ */
#activities {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
#activities::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 30% 50%, rgba(255,168,1,0.05) 0%, transparent 65%);
}
#activities .section-heading { color: #fff; }
#activities .section-sub { color: rgba(255,255,255,0.6); }
#activities .section-label { color: var(--accent); }

.act-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 72px;
}

.act-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 24px;
    text-align: center;
    transition: background var(--transition);
    position: relative;
}
.act-card:hover { background: rgba(255,168,1,0.06); }
.act-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20%;
    left: 20%;
    height: 2px;
    background: rgba(255,168,1,0.2);
    border-radius: 2px;
}
.act-num {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.act-unit {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,168,1,0.7);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.act-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* Projects grid */
.projects-hd {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 28px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.prj-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,168,1,0.15);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    cursor: default;
}
.prj-card:hover {
    background: rgba(255,168,1,0.06);
    border-color: rgba(255,168,1,0.35);
    transform: translateY(-3px);
}

.prj-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255,168,1,0.12);
    border-radius: 50px;
    padding: 3px 10px;
    margin-bottom: 12px;
}
.prj-card h4 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}
.prj-card p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
    background: var(--bg);
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.contact-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.ci { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ci-icon svg { color: var(--primary); }
.ci-text { display: flex; flex-direction: column; gap: 3px; }
.ci-lbl { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.ci-val { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.ci-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.ci-link:hover { color: var(--accent); }

/* Contact form */
.contact-form-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to left, var(--accent), var(--accent-dk));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}
.fg input,
.fg textarea {
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    direction: rtl;
}
.fg input:focus,
.fg textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 168, 1, 0.12);
}
.fg textarea { resize: vertical; min-height: 120px; }

.fg input.is-invalid,
.fg textarea.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
    font-size: 0.78rem;
    color: #dc2626;
    line-height: 1.4;
}

.form-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
}
.form-status.is-error {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.form-status.is-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition), transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255, 168, 1, 0.3);
}
.form-btn:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 168, 1, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary-dk);
    color: rgba(255,255,255,0.75);
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-desc {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

.footer-col h4, .footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { font-size: 0.87rem; color: rgba(255,255,255,0.6); }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    /* Hero — full viewport flex: text · globe · stats */
    #hero {
        height: 100svh;
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        box-sizing: border-box;
        padding-top: 70px;
    }

    .hero-overlay {
        background: radial-gradient(
            ellipse 90% 70% at 50% 38%,
            rgba(1, 1, 56, 0.25) 0%,
            rgba(1, 1, 56, 0.82) 52%,
            rgba(1, 1, 56, 0.96) 100%
        );
    }

    .hero-inner {
        order: 1;
        flex: 0 0 auto;
        justify-content: center;
        padding: 6px 18px 0;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0;
    }
    .hero-eyebrow {
        font-size: 0.7rem;
        margin-bottom: 10px;
        padding: 4px 10px;
    }
    .hero-heading { font-size: 1.85rem; margin-bottom: 10px; line-height: 1.22; }
    .hero-sub {
        font-size: 0.86rem;
        margin-bottom: 14px;
        line-height: 1.65;
        max-width: none;
    }
    .hero-sub br { display: none; }
    .hero-actions { justify-content: center; gap: 8px; }
    .btn-accent { padding: 10px 18px; font-size: 0.84rem; }
    .btn-outline { padding: 9px 16px; font-size: 0.84rem; }

    #globe-canvas {
        position: relative;
        order: 2;
        flex: 1 1 auto;
        inset: unset;
        width: 100%;
        min-height: 140px;
        max-height: none;
        height: auto;
        pointer-events: auto;
        touch-action: none;
        z-index: 0;
    }

    .hero-stats-bar {
        position: relative;
        order: 3;
        flex: 0 0 auto;
        overflow-x: auto;
        pointer-events: auto;
        z-index: 10;
        -webkit-overflow-scrolling: touch;
    }
    .hstat { min-width: 88px; padding: 10px 6px; }
    .hstat-num { font-size: 1.45rem; }
    .hstat-plus { font-size: 0.85rem; }
    .hstat-lbl { font-size: 0.65rem; margin-top: 2px; }
    .hstat-sep { margin: 8px 0; }

    .scroll-cue { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .act-stats { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bar { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; }
    .act-stats { grid-template-columns: 1fr 1fr; }
    .hero-heading { font-size: 1.65rem; }
    .hero-sub { font-size: 0.8rem; margin-bottom: 10px; }
    .btn-accent, .btn-outline { padding: 8px 14px; font-size: 0.8rem; }
    .hstat { min-width: 76px; padding: 8px 4px; }
    .hstat-num { font-size: 1.25rem; }
    .contact-form-wrap { padding: 28px 20px; }
}

/* ============================================================
   BILINGUAL  (FA default · EN override)
   ============================================================ */
.en { display: none; }

html.lang-en .fa { display: none; }
html.lang-en .en { display: inline; }
html.lang-en .en-block { display: block; }

html.lang-en body {
    direction: ltr;
}
html.lang-en .hero-inner { justify-content: flex-end; }
html.lang-en .hero-overlay {
    background: linear-gradient(
        to right,
        rgba(1,1,56,0.97) 0%,
        rgba(1,1,56,0.90) 30%,
        rgba(1,1,56,0.60) 55%,
        rgba(1,1,56,0.15) 75%,
        transparent 90%
    );
}
html.lang-en .timeline-step::before { right: auto; left: 10px; }
html.lang-en .svc-list li,
html.lang-en .equip-list li { padding-right: 0; padding-left: 16px; }
html.lang-en .svc-list li::before,
html.lang-en .equip-list li::before { right: auto; left: 0; }
html.lang-en .fg input,
html.lang-en .fg textarea { direction: ltr; }
html.lang-en .logo-words { direction: ltr; }

/* ============================================================
   GLOBE INTERACTIVITY  (let mouse events reach the canvas)
   ============================================================ */
.hero-overlay,
.hero-inner,
.hero-stats-bar { pointer-events: none; }
.scroll-cue { pointer-events: auto; }
.hero-inner a,
.hero-inner button,
.hero-stats-bar a { pointer-events: auto; }

@media (max-width: 1024px) {
    .ebee-display {
        inset: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
    .ebee-flight-stage {
        transform: scale(1.5);
        transform-origin: center center;
    }
    .ebee-drone-body { width: 42%; }
    .equip-card {
        padding: 28px 22px;
    }
}

/* ============================================================
   CERTIFICATIONS  — licences & rankings
   ============================================================ */
#certifications {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
#certifications::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 70% 30%, rgba(255,168,1,0.05) 0%, transparent 60%);
}
#certifications .section-heading { color: #fff; }
#certifications .section-sub { color: rgba(255,255,255,0.6); }
#certifications .section-label { color: var(--accent); }

.cert-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
}

.cert-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cert-col-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,168,1,0.25);
}

/* License cards */
.license-cards { display: flex; flex-direction: column; gap: 14px; }
.license-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,168,1,0.18);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    transition: background var(--transition), border-color var(--transition);
}
.license-card:hover {
    background: rgba(255,168,1,0.06);
    border-color: rgba(255,168,1,0.35);
}
.license-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.license-badge svg { width: 24px; height: 24px; }
.license-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.license-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.license-meta span { display: flex; align-items: center; gap: 4px; }

/* Ranking badges */
.rankings-grid { display: flex; flex-direction: column; gap: 12px; }
.rank-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background var(--transition), transform var(--transition);
}
.rank-card:hover { background: rgba(255,255,255,0.07); transform: translateX(-4px); }
html.lang-en .rank-card:hover { transform: translateX(4px); }

.rank-tier {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    flex-shrink: 0;
    letter-spacing: 0;
}
.rank-tier.gold   { background: linear-gradient(135deg, #f5c518, #e6a800); color: #5a3d00; box-shadow: 0 2px 12px rgba(245,197,24,0.4); }
.rank-tier.silver { background: linear-gradient(135deg, #d0d0d0, #a0a0a0); color: #303030; box-shadow: 0 2px 12px rgba(160,160,160,0.3); }
.rank-tier.bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; box-shadow: 0 2px 12px rgba(205,127,50,0.3); }

.rank-info { flex: 1; }
.rank-grade-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
}
.rank-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .cert-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   PARTNERS  — infinite carousel
   ============================================================ */
#partners {
    background: var(--bg2);
    padding: 72px 0;
    overflow: hidden;
}
#partners .section-heading { color: var(--primary); }
#partners .section-label { color: var(--accent); }

.partners-intro {
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.partners-carousel-wrap {
    position: relative;
}
.partners-carousel-wrap::before,
.partners-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.partners-carousel-wrap::before {
    right: 0;
    background: linear-gradient(to left, var(--bg2) 0%, transparent 100%);
}
.partners-carousel-wrap::after {
    left: 0;
    background: linear-gradient(to right, var(--bg2) 0%, transparent 100%);
}
html.lang-en .partners-carousel-wrap::before {
    right: auto; left: 0;
    background: linear-gradient(to right, var(--bg2), transparent);
}
html.lang-en .partners-carousel-wrap::after {
    left: auto; right: 0;
    background: linear-gradient(to left, var(--bg2), transparent);
}

.partners-track-outer {
    overflow: hidden;
    padding: 12px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    direction: ltr;
}
.partners-track-outer.is-dragging {
    cursor: grabbing;
    touch-action: none;
}

.partners-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    direction: ltr;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 140px;
    flex-shrink: 0;
    cursor: inherit;
    padding: 18px 12px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.partners-track-outer.is-dragging .partner-item {
    transition: none;
}
.partners-track-outer.is-dragging .partner-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}
.partner-item:hover {
    border-color: var(--border);
    background: var(--card);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.partner-logo-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.partner-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    pointer-events: none;
}
.partner-item:hover .partner-logo-ring { transform: scale(1.08); }

.partner-name-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.4;
    max-width: 120px;
}
