/* Color Palette Variables */
:root {
    --gold-light: #F4D03F;      /* Golden yellow */
    --gold-medium: #D4AF37;     /* Medium gold */
    --white: #FFFFFF;            /* White */
    --green-light: #52BE80;     /* Medium green */
    --green-medium: #27AE60;    /* Darker medium green */
    --green-dark: #1E8449;      /* Dark green */
    --green-alt: #58D68D;       /* Alternative green */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Poppins', sans-serif;
}

/* Language Dropdown in Navbar */
.navbar-nav .dropdown-menu {
    background: var(--white);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
    min-width: 150px;
}

.navbar-nav .dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(82, 190, 128, 0.1));
    color: var(--green-dark);
    padding-right: 25px;
}

body[dir="ltr"] .navbar-nav .dropdown-item:hover {
    padding-right: 20px;
    padding-left: 25px;
}

.navbar-nav .dropdown-toggle::after {
    margin-right: 8px;
    margin-left: 0;
}

body[dir="ltr"] .navbar-nav .dropdown-toggle::after {
    margin-right: 0;
    margin-left: 8px;
}


/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--green-medium), var(--green-dark)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-medium));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-light) !important;
    background: rgba(244, 208, 63, 0.2);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 132, 73, 0.8), rgba(212, 175, 55, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 1.4s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, var(--gold-medium), var(--gold-light));
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-light), var(--green-medium));
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--green-medium);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.card-title {
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 10px 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.values-list li i {
    color: var(--green-medium);
    margin-left: 10px;
}

body[dir="ltr"] .values-list li i {
    margin-left: 0;
    margin-right: 10px;
}

/* Value Items with Icons */
.value-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(82, 190, 128, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--green-light), var(--green-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(82, 190, 128, 0.3);
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.value-item h5 {
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

/* Activities Section */
.activities-section {
    background: var(--white);
}

.activity-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-light), var(--green-medium));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--green-medium);
}

.activity-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--green-light), var(--green-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(82, 190, 128, 0.3);
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
}

.activity-card h5 {
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Agents Section */
.agents-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.agent-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.agent-image {
    width: 60%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.agent-card:hover .agent-image {
    transform: scale(1.05);
}

/* Responsive Design for Agents */
@media (max-width: 1200px) {
    .agent-image {
        width: 65%;
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .agent-image {
        width: 70%;
        max-width: 300px;
    }
    
    .agent-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .agent-image {
        width: 75%;
        max-width: 280px;
    }
    
    .agent-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .agent-image {
        width: 80%;
        max-width: 250px;
    }
    
    .agent-card {
        padding: 15px;
    }
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--green-light), var(--green-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-left: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(82, 190, 128, 0.3);
}

body[dir="ltr"] .contact-icon {
    margin-left: 0;
    margin-right: 20px;
}

.contact-details h5 {
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--green-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--green-dark);
}

.map-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    border: 2px solid var(--green-medium);
    color: var(--green-medium);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--green-medium);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Contact Form Styles */
.contact-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-title {
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-label {
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--green-medium);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #adb5bd;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-control.is-valid {
    border-color: var(--green-medium);
}

.contact-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.contact-form .btn-primary {
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    min-width: 200px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
}

.contact-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.btn-primary .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        min-width: auto;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: var(--white);
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    
    .logo-img {
        height: 40px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

