:root {
    --blue-primary: #111424;
    --gold-primary: #1A365D; /* Navy Blue Accent */
    --gold-light: #EBF1FA; /* Soft Light Blue */
    --gold-dark: #0F1C3F; /* Deep Navy Hover */
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #5a6c7d;
    --bg-main: #ffffff;
    --bg-alt: #fafafa;
    --bg-dark: #1A1A1A;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    /* Typography */
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

html[dir="ltr"] {
    font-family: var(--font-en);
}

html[dir="rtl"] {
    font-family: var(--font-ar);
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
    font-weight: 800; /* Arabic looks better slightly bolder */
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: white;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.logo-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-dark);
    border-radius: 50%;
    margin-top: 0.5rem;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--bg-alt);
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-lang:hover {
    background-color: var(--gold-light);
    color: var(--gold-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem; /* Account for navbar */
    overflow: hidden;
    background-color: var(--bg-alt);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--gold-light), transparent 50%),
                radial-gradient(circle at bottom left, rgba(44, 62, 80, 0.05), transparent 50%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    background: linear-gradient(145deg, #080d19 0%, #0f204b 100%);
    color: var(--text-light);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(17, 20, 36, 0.3);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 800px;
    width: 100%;
    /* Override glass-card properties if present */
    backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-content p.slogan {
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.hero .slogan {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin: 1.5rem 0 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--gold-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-icon {
    width: 60px;
    height: 60px;
    background-color: var(--gold-light);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: center;
}

.info-card {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
        "icon title"
        "icon desc";
    gap: 0.2rem 1.5rem;
    align-items: center;
    text-align: right;
}

html[dir="ltr"] .info-card {
    text-align: left;
}

.info-card.interactive {
    transition: var(--transition-fast);
}

.info-card.interactive:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(17, 20, 36, 0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--bg-alt);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.info-card .icon-wrapper {
    grid-area: icon;
    margin-bottom: 0;
}

.info-card h3 {
    grid-area: title;
    margin: 0;
    align-self: end;
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.info-card p {
    grid-area: desc;
    margin: 0;
    align-self: start;
    font-size: 1rem;
    color: var(--text-muted);
}

.info-card.interactive:hover .icon-wrapper {
    background-color: var(--gold-primary);
    color: var(--text-light);
}

.whatsapp-card:hover .icon-wrapper {
    background-color: #25D366; /* WhatsApp brand color */
    color: white;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: var(--bg-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    color: #2ecc71;
    font-weight: 600;
    padding: 1rem;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
}

.error-message {
    color: #e74c3c;
    font-weight: 600;
    padding: 1rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
}

/* ==========================================================================
   Map Section
   ========================================================================== */
.map-section {
    padding: 0 2rem 6rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.map-container {
    overflow: hidden;
    padding: 0.5rem;
}

.map-container iframe {
    border-radius: calc(var(--border-radius) - 0.5rem);
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer .logo {
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.footer .logo-text {
    color: var(--text-light);
}

.footer .logo-dot {
    background-color: var(--gold-primary);
}

.footer-desc {
    max-width: 400px;
    margin: 0 auto;
}

.footer-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    width: 100%;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(17, 20, 36, 0.2);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding-top: 4rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Hero Logo
   ========================================================================== */
.hero-logo {
    max-width: 400px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 260px;
    }
}
