/* ===============================
   Base & Variables
   =============================== */

:root {
    --color-primary: #2d6fbf;
    --color-primary-dark: #0e3a5b;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-border: #dde3f0;
    --color-accent: #f7a823;
    --color-text: #e5edf7;
    --color-text-muted: #9ca3af;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.4);
    --radius-lg: 18px;
    --radius-full: 999px;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: #000;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

main.content {
    background: radial-gradient(circle at top left, #315f97 0, #0e3a5b 45%, #020617 100%);
    padding-top: 72px;
    min-height: 100vh;
}

.container {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

.section {
    padding: 72px 0;
    color: var(--color-text);
}

.section-alt {
    padding: 72px 0;
    background: rgba(3, 16, 36, 0.9);
    color: var(--color-text);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .section-header p {
        color: var(--color-text-muted);
    }

/* ===============================
   Language handling
   =============================== */

.lang {
    display: inline;
}

[data-lang="en"] .lang-ar {
    display: none;
}

[data-lang="ar"] .lang-en {
    display: none;
}

.lang-ar {
    direction: rtl;
    text-align: right;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Language switch buttons */

.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-btn {
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    color: #e5edf7;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}

[data-lang="en"] .lang-btn-en,
[data-lang="ar"] .lang-btn-ar {
    background: var(--color-accent);
    color: #020617;
    border-color: var(--color-accent);
}

/* ===============================
   Header
   =============================== */

.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 20;
    background: rgba(2, 32, 70, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

    .site-header.header-scrolled {
        background: rgba(2, 20, 50, 0.96);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 42px;
    border-radius: 12px;
}

.logo-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f9fafb;
    letter-spacing: 0.04em;
}

/* Nav */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .main-nav a {
        font-size: 0.95rem;
        color: #e5edf7;
        padding-bottom: 3px;
        border-bottom: 2px solid transparent;
        transition: border-color 0.2s ease, color 0.2s ease;
    }

        .main-nav a:hover {
            border-color: var(--color-accent);
            color: #ffffff;
        }

/* Burger toggle */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #ffffff;
        border-radius: 999px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

        .nav-toggle span + span {
            margin-top: 5px;
        }

/* ===============================
   Hero
   =============================== */

.hero {
    padding: 80px 0 72px;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.06), rgba(1, 10, 24, 0.7) );
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3.3vw, 3.1rem);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-text p {
    color: #d0d7e6;
    max-width: 40rem;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-highlight {
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: #020617;
}

.hero-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #3a8cf0);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 35px rgba(37, 99, 235, 0.4);
    }

.btn-outline {
    background: transparent;
    color: #e5edf7;
    border-color: rgba(226, 232, 240, 0.5);
}

    .btn-outline:hover {
        background: rgba(15, 23, 42, 0.7);
    }

.full-width {
    width: 100%;
}

/* ===============================
   Scroll reveal
   =============================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ===============================
   Layout grids & cards
   =============================== */

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 40px;
    align-items: flex-start;
}

.card-list {
    display: grid;
    gap: 18px;
}

.card {
    padding: 18px 18px 16px;
    background: linear-gradient( 145deg, rgba(13, 31, 60, 0.98), rgba(26, 45, 78, 0.98) );
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.45);
}

    .card h3 {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .card p {
        margin: 0;
        font-size: 0.94rem;
        color: #d2d9ea;
    }

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.6);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
        border-color: rgba(248, 250, 252, 0.5);
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* ================================
   SERVICES – PARALLAX BACKGROUND
   ================================ */

.services-parallax {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.services-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/services-bg.jpg");
    background-size: cover;
    background-position: center;
    transform: translateY(0) scale(1.1);
    will-change: transform;
    z-index: 0;
    filter: brightness(0.45);
}

.services-overlay {
    position: relative;
    z-index: 1;
    background: rgba(10, 20, 40, 0.55);
    padding: 40px 0;
}

/* Gallery */

.gallery-grid {
    margin-top: 10px;
}

.gallery-item {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: #0b223f;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
        border-color: rgba(248, 250, 252, 0.5);
    }

    .gallery-item h3 {
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 0.98rem;
    }

    .gallery-item p {
        margin: 0;
        font-size: 0.92rem;
        color: #d2d9ea;
    }

    .gallery-item img {
        width: 100%;
        height: 170px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 10px;
    }

/* Photo strip */

.photo-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

    .photo-grid img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

        .photo-grid img:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85);
            border-color: rgba(248, 250, 252, 0.6);
        }

/* Customers */

.customer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: center;
    text-align: center;
}

.customer-item {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

    .customer-item:hover {
        transform: translateY(-4px);
        opacity: 1;
    }

    .customer-item img {
        width: 140px;
        height: 70px;
        object-fit: contain;
        margin-inline: auto;
        margin-bottom: 12px;
        transition: transform 0.25s ease;
    }

    .customer-item:hover img {
        transform: scale(1.06);
    }

    .customer-item p {
        font-size: 0.9rem;
        color: #d2d9ea;
    }

/* Contact */

.contact-section {
    background: #020817;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-top: 18px;
    color: #d2d9ea;
}

    .contact-details li + li {
        margin-top: 8px;
    }

.contact-form {
    background: #020617;
    padding: 22px 20px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

    .form-row label {
        font-size: 0.9rem;
        color: #e5edf7;
    }

input,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #020817;
    color: #e5edf7;
}

    input:focus,
    textarea:focus {
        outline: 2px solid var(--color-accent);
        outline-offset: 1px;
    }

/* Footer */

.site-footer {
    background: #00040a;
    padding: 16px 0 20px;
    color: #9ca3af;
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 960px) {
    .hero-inner,
    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-highlight {
        order: -1;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .logo-text {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background: rgba(2, 32, 70, 0.98);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

        .main-nav.nav-open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

    .nav-toggle {
        display: block;
    }

    .header-inner {
        gap: 10px;
    }

    .lang-switch {
        margin-left: auto;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .photo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
