/* Global Styles */
:root {
    --primary-green: #28a745;
    --dark-green: #1e7e34;
    --light-green: #34ce57;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--black);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--black) !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-left: 10px;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.3));
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    direction: rtl;
}

.brand-text {
    color: var(--primary-green);
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.brand-text-en {
    color: var(--dark-green);
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    margin-top: -2px;
    line-height: 1;
    display: block;
    width: 100%;
    text-align: right;
}

.navbar-nav .nav-link {
    color: var(--black) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

.navbar-toggler {
    border-color: var(--primary-green);
}

.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(40, 167, 69, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    margin-top: 76px;
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.hero-section .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-section .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

.hero-section .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.hero-section .carousel-caption p {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border: 2px solid var(--white);
}

/* Section Styles */
section {
    padding: 0px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-section .lead {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.3rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.mission-vision .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    height: 100%;
}

.mission-vision .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.mission-vision .card-body {
    padding: 2rem;
}

.mission-vision .card-body i {
    color: var(--primary-green);
}

.mission-vision .card-body h3 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 1rem;
}

.mission-vision .card-body p {
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    border-color: var(--primary-green);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h4 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.contact-item h5 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--white);
    margin: 0;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-green);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    backdrop-filter: blur(10px);
}

.contact-form-wrapper h4 {
    color: var(--primary-green);
    font-weight: 700;
}

.contact-form .form-label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: var(--white);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--light-green);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-slide-right {
    animation: slideRight 1s ease-out;
}

.animate-slide-left {
    animation: slideLeft 1s ease-out;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out;
}

.animate-fade-up-delay {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.animate-fade-up-delay-2 {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
    
    .brand-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        margin-right: 8px;
        line-height: 1.2;
    }
    
    .brand-text {
        font-size: 0.95rem;
        line-height: 1.2;
        margin: 0;
        padding: 0;
    }
    
    .brand-text-en {
        font-size: 0.65rem;
        margin-top: -1px;
        line-height: 1.1;
        padding: 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

