/* Design System & Custom Properties */
:root {
    --primary: #d4af37; /* Luxury Warm Gold */
    --primary-hover: #b8962e;
    --primary-light: #faf5e6;
    --secondary: #1e293b; /* Charcoal Navy Slate */
    --secondary-light: #334155;
    --dark: #0f172a; /* Ultra Dark Slate */
    --light: #f8fafc; /* Warm White */
    --white: #ffffff;
    --gray: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    
    /* Typography */
    --font-main: 'Tajawal', 'Cairo', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 10px 20px -5px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   Bilingual Visibility Logic
   ========================================== */
html[lang="en"] .lang-ar {
    display: none !important;
}
html[lang="ar"] .lang-en {
    display: none !important;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography & Layout Elements */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Top Bar Styling */
.top-bar {
    background-color: var(--dark);
    color: var(--light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info {
    display: flex;
    gap: 20px;
}
.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-info a:hover {
    color: var(--primary);
}

.top-lang-select a {
    color: var(--gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.top-lang-select a:hover {
    color: var(--primary);
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: var(--dark);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
}
.header.scrolled .logo-text {
    color: var(--white);
}
.header.scrolled .nav-menu a {
    color: #e2e8f0;
}
.header.scrolled .nav-menu a.active,
.header.scrolled .nav-menu a:hover {
    color: var(--primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-fast);
}

.header.scrolled .header-container {
    height: 70px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo-text .accent {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu ul {
    display: flex;
    gap: 30px;
}
.nav-menu a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-light);
    position: relative;
    padding: 8px 0;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    transition: var(--transition-normal);
}

html[lang="ar"] .nav-menu a::after {
    right: 0;
}
html[lang="en"] .nav-menu a::after {
    left: 0;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary);
}

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

/* Language Switcher Pill Button */
.lang-switch-btn {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}
.lang-switch-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-1px);
}
.header.scrolled .lang-switch-btn {
    border-color: var(--primary);
    color: var(--primary);
}
.header.scrolled .lang-switch-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    animation: zoomBackground 15s infinite alternate ease-in-out;
}

@keyframes zoomBackground {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp var(--transition-slow) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.25;
}
.hero-title .accent-text {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* SVG Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}
.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.hero-wave .shape-fill {
    fill: var(--light);
}

/* Stats Section */
.stats-section {
    position: relative;
    z-index: 5;
    margin-top: -30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 600;
}

/* Sections Global Styling */
section {
    padding: 100px 0;
}

.section-title-wrapper {
    margin-bottom: 50px;
}
.section-title-wrapper.text-center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    background-color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

/* About Us Section */
.about {
    background-color: var(--white);
}

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

.about-img-wrapper {
    position: relative;
}

.about-img-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--light);
}
.about-img {
    width: 100%;
    transition: var(--transition-slow);
}
.about-img-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: -25px;
    background-color: var(--primary);
    color: var(--dark);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html[lang="ar"] .about-badge {
    right: -25px;
}
html[lang="en"] .about-badge {
    left: -25px;
}

.badge-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}
.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.about-desc {
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feat-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.feat-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.feat-info p {
    font-size: 0.95rem;
    color: var(--gray);
}

.about-values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.value-item i {
    color: var(--primary);
}

/* Services Section */
.services {
    background-color: var(--light);
}

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

.service-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 65px;
    height: 65px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}
.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--dark);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.98rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-list li {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.service-list li i {
    color: var(--primary);
    transition: var(--transition-fast);
}

html[lang="en"] .service-list li i {
    transform: rotate(180deg);
}

/* Why Us Section */
.why-us {
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.why-us-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.why-us-content .why-us-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.why-us-content h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 20px;
}
.why-us-content p {
    color: #cbd5e1;
    margin-bottom: 40px;
}

.why-us-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.why-feat {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.why-feat i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 5px;
}
.why-feat h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.why-feat p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cta-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    color: var(--dark);
    box-shadow: var(--shadow-lg);
}
.cta-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.cta-box p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}



/* Contact Us Section */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method-card {
    display: flex;
    gap: 20px;
    background-color: var(--light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.method-icon {
    width: 55px;
    height: 55px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.method-details h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.method-details p {
    font-size: 1rem;
    font-weight: 600;
}
.method-details p a:hover {
    color: var(--primary);
}
.availability {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

.map-btn {
    margin-top: 10px;
}

/* Footer Styling */
.footer {
    background-color: var(--dark);
    color: #cbd5e1;
    padding: 80px 0 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

html[lang="ar"] .footer-col h3::after {
    right: 0;
}
html[lang="en"] .footer-col h3::after {
    left: 0;
}

.brand-col .logo {
    margin-bottom: 20px;
}
.brand-col .logo-text {
    color: var(--white);
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col ul a {
    color: #94a3b8;
}
.footer-col ul a:hover {
    color: var(--primary);
}

html[lang="ar"] .footer-col ul a:hover {
    padding-right: 5px;
}
html[lang="en"] .footer-col ul a:hover {
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-list li i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--dark);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .about-container,
    .services-grid,
    .why-us-container,
    .contact-container,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-container {
        gap: 60px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-img-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .why-us-cta {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-methods {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--dark);
        padding: 40px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    html[lang="ar"] .nav-menu {
        right: -100%;
        left: auto;
    }
    html[lang="en"] .nav-menu {
        left: -100%;
        right: auto;
    }
    
    html[lang="ar"] .nav-menu.active {
        right: 0;
    }
    html[lang="en"] .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-menu a {
        color: var(--white);
        font-size: 1.15rem;
    }
    
    .nav-actions .btn-nav {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 80px 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-section {
        margin-top: 0;
        padding-top: 50px;
    }
    
    .about-badge {
        padding: 15px;
    }

    html[lang="ar"] .about-badge {
        right: 0;
    }
    html[lang="en"] .about-badge {
        left: 0;
    }
    
    .badge-num {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
