:root {
    --bg-main: #0B0F19;
    --bg-alt: #111827;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --color-primary: #D4AF37;   /* Gold Accent */
    --color-secondary: #34D399; /* Emerald Accent */
    --border-accent: rgba(212, 175, 55, 0.15);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dynamic Font Fallback for Arabic Layout */
html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

/* Typography Headings */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Page Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

/* Header & Navbar Rules */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    z-index: 1010;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, #fff 60%, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1010;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--color-primary);
    color: var(--bg-main);
    border-color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition-fast);
    transform-origin: left center;
}

/* ==========================================================================
   REFRESHED HERO BLOCK (MATCHES YOUR REFERENCE PICTURE DESIGN)
   ========================================================================== */
.hero-section {
    padding: 2.5rem 0 4rem 0;
    background-color: var(--bg-main);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 950px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #151b26;
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-text-content {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-text-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-text-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* Grid Layout Elements */
.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.text-content p {
    font-size: 1.05rem;
    color: #CBD5E1;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.text-content p:last-child {
    margin-bottom: 0;
}

.image-content {
    position: relative;
}

.feature-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Tables Styling Rules */
.dark-section {
    background-color: #06090F;
}

.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th, 
.stats-table td {
    padding: 1.25rem 1.5rem;
    text-align: start;
}

.stats-table th {
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-accent);
}

.stats-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition-fast);
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background-color: rgba(255,255,255,0.01);
}

.stats-table td:first-child {
    font-weight: 600;
}

.stats-table td.impact-val {
    color: var(--color-secondary);
    font-weight: 700;
}

/* Air Defense Frame Styling Rules */
.defense-section {
    margin-top: 5rem;
}

.defense-desc {
    text-align: center;
    color: #CBD5E1;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

.defense-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: stretch;
}

.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fluid Media Gallery Blocks */
.gallery-subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 3.5rem 0 1.5rem 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #141b26;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-normal);
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Gratitude Messages Segment rules */
.gratitude-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(17, 24, 39, 0.4) 100%);
    border: 1px solid var(--border-accent);
    padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.gratitude-card h2 {
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.gratitude-text {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: #E2E8F0;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 300;
}

.signature {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: #05070B;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* ==========================================================================
   MOBILE INTERACTION & SCREEN OPTIMIZATION BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .content-grid {
        gap: 2.5rem;
    }
    .defense-grid {
        grid-template-columns: 1fr;
    }
    .video-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    /* Converts Navigation Strip to Overlay Sidebar on Mobile Devices */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.25rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    /* Transforming Hamburger Lines Into An 'X' Configuration */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* Mirror cross transform orientation for right-to-left alignment */
    html[dir="rtl"] .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    html[dir="rtl"] .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -4px);
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid.reversed .image-content {
        grid-row: 1;
    }

    .hero-section {
        padding: 1.5rem 0 3rem 0;
    }
    
    .hero-container {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.95rem;
    }
    .logo-img {
        height: 38px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .stats-table th, .stats-table td {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    .video-wrapper {
        min-height: 220px;
    }
}