:root {
    /* DEFAULT LIGHT THEME */
    --primary: #005697;
    --secondary: #6DB33F;
    --accent: #26D0CE;
    --dark: #FFFFFF;
    --glass: rgba(0, 86, 151, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text: #0A192F;
    --text-muted: #556270;
    --white: #FFFFFF;

    /* Layout */
    --container: 1200px;
    --header-height: 90px;

    /* Font */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* DARK THEME OVERRIDES */
body.dark-mode {
    --primary: #005697;
    --secondary: #6DB33F;
    --accent: #26D0CE;
    --dark: #0A192F;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #E6F1FF;
    --text-muted: #8892B0;
    --white: #FFFFFF;
}

/* Dark Mode Specific Adjustments */
body.dark-mode .header {
    background: rgba(10, 25, 47, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .hero {
    background: #0A192F;
}

body.dark-mode .hero-bg {
    background: radial-gradient(circle, rgba(109, 179, 63, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
}

body.dark-mode .services,
body.dark-mode .why-us,
body.dark-mode .contact,
body.dark-mode .card,
body.dark-mode .glass-card {
    background: transparent;
}

body.dark-mode .card {
    background: var(--glass);
    box-shadow: none;
    border: 1px solid var(--glass-border);
}

body.dark-mode .card:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
}

body.dark-mode .feature {
    border-left-color: var(--glass-border);
}

body.dark-mode .nav {
    background: #0A192F;
    border-bottom: 1px solid var(--glass-border);
}

body.dark-mode .contact-box a.btn-primary {
    background: white;
    color: var(--primary);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

body.dark-mode .loader {
    background: #0A192F;
}

.loader img {
    width: 80px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.theme-btn:hover {
    color: var(--secondary);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #007cc2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 194, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 194, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    /* Increased size */
    font-weight: 700;
    color: var(--primary);
    /* Blue text for logo name */
}

.logo img {
    height: 55px;
    /* Increased logo size from 40px */
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Full screen impact */
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    padding-bottom: 80px;
    overflow: hidden;
    background: #0A192F;
    /* Dark fallback color instead of white gradient */
    z-index: 1;
}

#vanta-bg {
    display: none;
}

/* Premium Video Background */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content */
    overflow: hidden;
    /* Optional: Fallback color if image/video fails */
    background: #0A192F;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Video at bottom of container */
    opacity: 0.6;
    /* Slightly dim the video itself */
}

/* Fallback Image is handled via poster attribute on video tag 
   or we can add a specific class if needed, but avoiding overlapping backgrounds 
*/

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Overlay for text readability */
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.7) 0%, rgba(10, 25, 47, 0.9) 100%);
    z-index: 2;
    /* On top of video */
}

/* Ensure content is strictly above */
.hero-content {
    z-index: 10;

    max-width: 800px;
    position: relative;
    padding: 0 20px;
    text-align: center;
    /* Removed card styling per user request */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
    /* High contrast on dark background */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for readability */
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    /* Light text */
    margin-bottom: 40px;
    max-width: 650px;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    /* Lighter gradient for dark background */
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Ensure buttons don't overflow on small screens */
}

.hero::before {
    display: none;
}

/* Mouse Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    z-index: 10;
}

/* ... existing styles ... */

.glass-card {
    padding: 50px;
    /* Adjusted padding */
    background: rgba(255, 255, 255, 0.7);
    /* More opaque */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Contact */
.contact {
    padding: 80px 0 120px;
    background: #FFFFFF;
}

.contact-box {
    background: linear-gradient(135deg, #005697, #003e6d);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 86, 151, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 1;
    color: white;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box a.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-box a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0A192F;
    padding: 60px 0 20px;
    color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 55px;
    width: auto;
}

.footer-logo p {
    color: #8892B0;
    max-width: 300px;
    margin-top: 15px;
}

.footer h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-links a {
    display: block;
    color: #8892B0;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #8892B0;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892B0;
    font-size: 0.9rem;
}

/* Animations via Utility Classes */
/* Animations via Utility Classes */
/* Removed default opacity: 0 to prevent invisible text if JS fails. 
   GSAP will handle the 'from' state automatically. */
.fade-up {
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ... */

/* Hero Section Refinement */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align for professional look */
    position: relative;
    padding-top: var(--header-height);
    background: #0A192F;
    z-index: 1;
}

.hero-content {
    z-index: 10;
    max-width: 900px;
    position: relative;
    padding: 0 40px;
    text-align: left;
    width: 100%;
    opacity: 1 !important;
    /* FORCE visibility */
}

.hero-content * {
    opacity: 1 !important;
    /* Ensure ALL children are visible */
}

.hero h1 {
    font-size: 5rem;
    /* Larger, bolder */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    /* Limit width for readability */
    font-weight: 400;
    margin-left: 0;
    /* Align left */
}

/* Button Alignment */
.hero-btns {
    justify-content: flex-start;
    /* Align interactions left */
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
/* Nav Actions */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Stats Counter */
.stats-counter {
    padding: 50px 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    display: inline-block;
    color: var(--accent);
}

.stat-item span {
    font-size: 3rem;
    color: var(--accent);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* WhatsApp Widget */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 900;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #0A192F;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-right: 20px;
}

/* RTL / Arabic Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature {
    padding-left: 0;
    padding-right: 20px;
    border-left: none;
    border-right: 3px solid #E0E0E0;
}

[dir="rtl"] .card-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-list li::before {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .hero-bg {
    right: auto;
    left: -10%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: 0;
        background: white;
        overflow: hidden;
        transition: height 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        height: 280px;
        /* Increased for better spacing */
    }

    .nav-list {
        flex-direction: column;
        padding: 40px 30px;
        gap: 20px;
        align-items: center;
    }

    /* RTL Mobile Adjustments */
    [dir="rtl"] .nav-list {
        align-items: center;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-bg {
        right: 50%;
        transform: translate(50%, -50%);
        width: 400px;
        height: 400px;
        opacity: 0.5;
    }

    .row {
        flex-direction: column;
    }

    .glass-card {
        width: 100%;
        padding: 40px;
    }

    .services,
    .why-us,
    .contact {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .why-us h2 {
        font-size: 2.5rem;
    }

    .contact-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        text-align: center;
        justify-content: center;
        /* Center on mobile */
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 0 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-logo p,
    .contact-box p {
        margin: 0 auto 20px;
    }

    .footer-links a {
        display: inline-block;
        margin: 0 10px 10px;
    }
}