/* Base & Reset */
:root {
    --primary-green: #074730;
    /* Sophisticated Deep Emerald */
    --secondary-green: #0C5D41;
    --gold: #D4AF37;
    /* Regal Gold */
    --gold-light: #F9F1D8;
    --white: #FFFFFF;
    --light-bg: #F8FAF9;
    --text-dark: #0F172A;
    /* Slate Dark */
    --text-muted: #64748B;
    /* Slate Muted */
    --glass: rgba(255, 255, 255, 0.85);

    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-spiritual: 'Amiri', serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-green);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-green);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switcher a {
    font-size: 0.85rem;
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-green);
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-light);
}

.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
}

.service-card:hover:before {
    transform: translateX(100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Floating Elements */
.whatsapp-float,
.call-float {
    position: fixed;
    right: 30px;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float {
    bottom: 30px;
    background-color: #25D366;
}

.call-float {
    bottom: 105px;
    background-color: var(--primary-green);
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: 8rem;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent, var(--gold));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer h2,
.footer h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(8px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Sections */
.py-5 {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-border-x {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    /* Mobile Enhancements */
    .hero-section {
        padding: 120px 0 80px !important;
    }

    .py-5 {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .stat-border-x {
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 64, 43, 0.98);
    z-index: 2000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    display: flex;
    animation: fadeInMenu 0.4s ease forwards;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 6vw, 2rem);
    color: var(--white);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-links a:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg) scale(1.2);
    color: var(--gold);
}

/* RTL Adjustments */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-switcher {
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 0;
    padding-right: 1.5rem;
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0C5D41, #074730);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2));
    animation: pulseLogo 2s ease-in-out infinite;
}

.loader-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loader-text {
    font-family: var(--font-heading);
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.loader-progress-bg {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: slideProgress 1.5s ease-in-out infinite;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes slideProgress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(340%);
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1001;
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--gold);
    width: 0%;
}

/* Validation Feedback */
.invalid-feedback {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

.is-invalid {
    border-color: #ef4444 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Global Alert Toast */
.alert-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}