/* ═══════════════════════════════════════════════════════════
   SHT Logistics — Premium Portfolio Website CSS
   Multi-language: RTL (AR/KU) + LTR (EN)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Inter:wght@300;400;600;700;800&display=swap');

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

:root {
    --navy:      #0a1628;
    --navy2:     #0f1f3d;
    --navy3:     #162544;
    --gold:      #c8a94b;
    --gold2:     #e8c96b;
    --gold-glow: rgba(200,169,75,0.25);
    --green:     #25d366;
    --white:     #ffffff;
    --gray:      rgba(255,255,255,0.65);
    --border:    rgba(255,255,255,0.08);
    --radius:    20px;
    --shadow:    0 20px 60px rgba(0,0,0,0.5);
    --font-ar:   'Cairo', sans-serif;
    --font-en:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
}

body.lang-en { font-family: var(--font-en); }
body.rtl { direction: rtl; }
body.ltr { direction: ltr; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }

/* ══ Noise texture overlay ══ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ══ NAV ══ */
.sht-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 60px;
    background: rgba(10,22,40,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}

.sht-nav.scrolled { padding: 12px 60px; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 44px;
    height: 44px;
    /* background: linear-gradient(135deg, var(--gold), var(--gold2)); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-logo-icon img {
    width: 100%;
    filter: drop-shadow(0 2px 6px var(--gold-glow));
}

.nav-logo-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.nav-logo-sub {
    font-size: 10px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

body.ltr .nav-links { margin-right: 0; margin-left: auto; }

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-en);
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(200,169,75,0.15);
    border-color: rgba(200,169,75,0.4);
    color: var(--gold);
}

/* Track CTA button in nav */
.nav-track-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--navy);
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s;
    box-shadow: 0 4px 16px var(--gold-glow);
    white-space: nowrap;
}

.nav-track-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--gold-glow);
}

/* ══ HERO ══ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,169,75,0.12) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    animation: orbFloat 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,211,102,0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 10%;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-55%) scale(1.1); }
}

/* Road animation */
.road-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
    opacity: 0.3;
}

.road-line {
    position: absolute;
    bottom: 40px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.truck {
    position: absolute;
    bottom: 44px;
    font-size: 36px;
    animation: truckDrive 12s linear infinite;
    transform: rotateY(180deg);
}

@keyframes truckDrive {
    from { left: -60px; }
    to   { left: calc(100% + 60px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,75,0.1);
    border: 1px solid rgba(200,169,75,0.3);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:none; } }

.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

.hero-sub {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--navy);
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.25s;
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px var(--gold-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.25s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* ══ Stats counter row ══ */
.stats-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(200,169,75,0.06), rgba(37,211,102,0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label { color: var(--gray); font-size: 14px; margin-top: 6px; }

/* ══ Section base ══ */
section { padding: 100px 40px; position: relative; z-index: 1; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,169,75,0.08);
    border: 1px solid rgba(200,169,75,0.2);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-sub {
    color: var(--gray);
    font-size: 16px;
    max-width: 560px;
}

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

/* ══ About ══ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-visual {
    background: linear-gradient(135deg, var(--navy2), var(--navy3));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}

.about-icon { font-size: 80px; display: block; margin-bottom: 16px; }
.about-tagline { font-size: 20px; font-weight: 700; color: var(--gold); }

.about-text-col p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ══ Services ══ */
#services { background: linear-gradient(180deg, var(--navy) 0%, var(--navy2) 100%); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200,169,75,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    font-size: 44px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 12px var(--gold-glow));
}

.service-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

/* ══ Track section ══ */
#track { background: var(--navy2); }

.track-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(200,169,75,0.2);
    border-radius: 24px;
    padding: 50px 60px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.track-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
}

.track-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.track-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-input-group label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.track-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-ar);
    transition: border-color 0.2s;
    appearance: none;
}

.track-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(200,169,75,0.04);
}

.track-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-ar);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 24px var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.track-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px var(--gold-glow); }
.track-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── Track result ── */
.track-result {
    margin-top: 32px;
    display: none;
}

.track-result.active { display: block; animation: fadeInUp 0.4s ease; }

.result-header {
    background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(37,211,102,0.05));
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.result-id {
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 8px;
}

.result-route {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-route-arrow { color: var(--gold); }

.result-parties {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.result-party { font-size: 13px; color: var(--gray); }
.result-party strong { color: var(--white); }

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), var(--border));
}

body.ltr .timeline::before { right: auto; left: 20px; }

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.tl-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--navy2);
}

.tl-dot.done {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    box-shadow: 0 0 0 4px var(--navy2), 0 4px 16px var(--gold-glow);
}

.tl-dot.pending {
    background: rgba(255,255,255,0.08);
    border: 2px solid var(--border);
    color: rgba(255,255,255,0.3);
}

.tl-content { flex: 1; }

.tl-event {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.tl-pending .tl-event { color: var(--gray); }

.tl-date {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.tl-detail {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.track-error {
    background: rgba(255,85,85,0.1);
    border: 1px solid rgba(255,85,85,0.25);
    color: #ff8888;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.track-error.active { display: block; animation: fadeInUp 0.3s ease; }

/* ══ Contact ══ */
.contact-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    gap: 20px;
    margin-top: 50px;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: rgba(200,169,75,0.3);
    background: rgba(200,169,75,0.05);
    transform: translateY(-4px);
}

.contact-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.contact-label { font-size: 12px; color: var(--gray); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-value { font-size: 16px; font-weight: 700; color: var(--white); }
.contact-value a { color: var(--gold); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ══ Footer ══ */
footer {
    background: var(--navy2);
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
}

.footer-logo { font-size: 20px; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.footer-sub { color: var(--gray); font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* ══ Floating track button ══ */
.float-track {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--navy);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 4px rgba(200,169,75,0.15);
    transition: all 0.25s;
    animation: pulse 3s ease infinite;
}

body.rtl .float-track { left: auto; right: 30px; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 4px rgba(200,169,75,0.15); }
    50% { box-shadow: 0 8px 32px var(--gold-glow), 0 0 0 10px rgba(200,169,75,0.05); }
}

.float-track:hover { transform: scale(1.05); }

/* ══ Responsive ══ */
@media (max-width: 900px) {
    .sht-nav { padding: 14px 24px; }
    .sht-nav.scrolled { padding: 10px 24px; }
    section { padding: 70px 24px; }
    .track-box { padding: 36px 24px; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .stats-row { gap: 30px; }
    .stat-num { font-size: 36px; }
}

/* ══ Spinner ══ */
.sp {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(10,22,40,0.3);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

