/* --- Global Reset & Variables --- */
:root {
    --primary-blue: #0A192F;
    --light-blue: #172A45;
    --gold: #D4AF37;
    --gold-hover: #AA882C;
    --white: #FFFFFF;
    --gray-text: #8892B0;
    --light-gray: #F4F5F7;
    --font-en: 'Plus Jakarta Sans', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    background-color: var(--white);
    color: var(--primary-blue);
    overflow-x: hidden;
    line-height: 1.6;
}

/* RTL Switch Support */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* --- Typography & UI Components --- */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-blue);
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 40px;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-blue);
    border: 1px solid var(--gold);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 15px;
}
html[dir="rtl"] .btn-secondary {
    margin-left: 0;
    margin-right: 15px;
}

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

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

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

.btn-block {
    width: 100%;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--gold);
    font-size: 1.8rem;
}

.nav-menu a {
    color: var(--gray-text);
    text-decoration: none;
    margin: 0 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
}

.lang-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: var(--primary-blue);
    padding: 200px 0 140px 0;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 30%, var(--light-blue) 0%, var(--primary-blue) 70%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-content p {
    color: #4A5568;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.about-visual {
    position: relative;
    height: 400px;
}

.visual-box {
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(10,25,47,0.15);
}

.visual-box::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}
html[dir="rtl"] .visual-box::after {
    left: auto;
    right: 20px;
}

/* --- Services Grid --- */
.services {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10,25,47,0.08);
    border-top-color: var(--gold);
}

.service-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748B;
    font-size: 0.95rem;
}

/* --- Portfolio Grid --- */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.portfolio-item {
    position: relative;
    height: 350px;
    background-color: var(--primary-blue);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(10,25,47,0.1);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(10,25,47,0.95) 0%, rgba(10,25,47,0.2) 100%);
    z-index: 1;
}

.portfolio-info {
    position: relative;
    z-index: 2;
}

.portfolio-cat {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-info h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 5px 0 15px 0;
}

.portfolio-metric {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

/* --- Contact & Lead Gen --- */
.contact {
    padding: 100px 0;
    background-color: var(--primary-blue);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gray-text);
    margin-bottom: 40px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-link:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.contact-card {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-blue);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--gold);
    outline: none;
}

/* --- Footer --- */
footer {
    background: #060E1A;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .about-grid, .portfolio-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .nav-menu, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.1rem; }
    .hero-ctas {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-secondary { margin: 0; }
    html[dir="rtl"] .btn-secondary { margin: 0; }
}