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

html {
    scroll-behavior: smooth;
}

/* Font & Direction */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    direction: rtl;
    color: #014421;
    background-color: #fff;
}

/* Color Palette */
:root {
    --primary-color: #014421;        /* Royal Green */
    --secondary-color: #02663A;      /* Darker Royal Green */
    --accent-color: #D4AF37;         /* Gold */
    --dark-color: #0A0A0A;
    --light-color: #FDFCF8;
    --white: #ffffff;
    --gray: #6c757d;
    --gold: #D4AF37;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--primary-color));
    border-radius: 5px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar-custom.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand h4 {
    color: var(--gold) !important;
    font-weight: bold;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
    right: 10%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(1, 68, 33, 0.85), rgba(212, 175, 55, 0.25));
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
    font-size: 1.4rem;
    color: var(--light-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--primary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    position: relative;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-color));
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

/* Cards & Features */
.feature-box,
.contact-info,
.value-card,
.goal-item {
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.feature-box:hover,
.contact-info:hover,
.value-card:hover,
.goal-item:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--primary-color) !important;
    color: var(--gold);
    padding: 60px 0;
}
.footer a {
    color: var(--gold);
}
.social-links a {
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 68, 33, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .navbar-brand h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
