/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-green: #00CC3E;        /* Vibrant Green as requested */
    --primary-green-light: #00E646;  /* Lighter Vibrant Green */
    --primary-blue: #002008;         /* Black as requested */
    --primary-blue-light: #008547;   /* Dark charcoal for hover states */
    --pale-blue: #D6FFFA;            /* Pale Mint/Teal Background as requested */
    --pale-green: #E6FFF7;           /* Very Soft Mint */
    --dark-slate: #0D0D0D;           /* Text color as requested */
    --muted-slate: #4A4A4A;          /* Muted version of text color */
    --border-color: #B5ECE3;         /* Soft minty border */
    --white: #FFFFFF;
    --success-green: #00CC3E;
    --error-red: #EF4444;

    /* Fonts */
    --font-arabic: 'Noto Kufi Arabic', sans-serif;
    --font-english: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 15px rgba(0, 230, 70, 0.25);

    /* Spacing */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-carousel: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Dynamic Fonts & Styling based on Language */
html.lang-ar body {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

html.lang-en body {
    font-family: var(--font-english);
    direction: ltr;
    text-align: left;
}

body {
    background-color: var(--white);
    color: var(--dark-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Common Layout Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--pale-blue);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted-slate);
}

.font-sm {
    font-size: 0.85rem;
}

/* ==========================================================================
   BILINGUAL DISPLAY CONTROLS
   ========================================================================== */
html.lang-ar .lang-en {
    display: none !important;
}

html.lang-en .lang-ar {
    display: none !important;
}

/* ==========================================================================
   SCROLL PROGRESS & SCROLLBAR
   ========================================================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue-light) 100%);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pale-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
    border: 2px solid var(--pale-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-light);
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

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

.main-header.scrolled .header-container {
    height: 65px;
}

.logo-area .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.main-header.scrolled .logo-img {
    height: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-slate);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition-normal);
}

html.lang-ar .nav-link::after {
    right: 0;
    left: auto;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Language Switcher Button */
.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--pale-blue) 100%);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.lang-toggle-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1002;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 10px;
    transition: var(--transition-normal);
}

/* Mobile Responsive Menu Rules */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-xl);
        padding: 6rem 2rem 2rem 2rem;
        transition: right var(--transition-normal);
        flex-direction: column;
        align-items: flex-start;
        z-index: 1001;
    }

    html.lang-en .nav-menu {
        right: auto;
        left: -100%;
        transition: left var(--transition-normal);
    }

    .nav-menu.open {
        right: 0;
    }

    html.lang-en .nav-menu.open {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        display: block;
    }

    .lang-switch-li {
        margin-top: 1.5rem;
        width: 100%;
    }

    .lang-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    /* Burger Menu Animations */
    .mobile-menu-btn.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ==========================================================================
   CAROUSEL HERO BANNER
   ========================================================================== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%); /* Default sliding from Left to Right */
    transition: transform var(--transition-carousel), opacity var(--transition-carousel), visibility var(--transition-carousel);
    z-index: 1;
}

/* Active Slide Rules */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

/* Slide in from the left and slide out to the right */
.carousel-slide.slide-next-state {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.carousel-slide.slide-prev-state {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

/* Hero Content */
.slide-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 80px; /* Offset sticky header */
}

.text-wrapper {
    max-width: 700px;
    color: var(--white);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.carousel-slide.active .text-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.badge {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.text-wrapper h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.text-wrapper p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 204, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 204, 62, 0.6);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

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

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition-normal);
}

.carousel-control:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-glow);
}

.carousel-control.prev {
    right: 30px;
}

.carousel-control.next {
    left: 30px;
}

/* Mirror carousel controls visually for LTR */
html.lang-en .carousel-control.prev {
    right: auto;
    left: 30px;
}
html.lang-en .carousel-control.next {
    left: auto;
    right: 30px;
}

html.lang-en .carousel-control.prev i {
    transform: rotate(180deg);
}
html.lang-en .carousel-control.next i {
    transform: rotate(180deg);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-normal);
}

.indicator.active {
    width: 30px;
    border-radius: 10px;
    background-color: var(--primary-green);
}

@media (max-width: 768px) {
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .carousel-control.prev { right: 10px; }
    .carousel-control.next { left: 10px; }
    
    html.lang-en .carousel-control.prev { left: 10px; }
    html.lang-en .carousel-control.next { right: 10px; }
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-subtitle {
    display: inline-block;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark-slate);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    margin: 1.5rem auto 3rem auto;
    border-radius: 10px;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-area p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green-light);
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green-light);
}

.stat-card p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted-slate);
}

/* About Image Decor */
.about-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-wrapper-decor {
    position: relative;
    width: 90%;
    max-width: 480px;
}

.image-wrapper-decor::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-blue-light);
    border-radius: 20px;
    z-index: -1;
    transition: var(--transition-normal);
}

html.lang-en .image-wrapper-decor::before {
    right: auto;
    left: -20px;
}

.about-main-img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: float 4s ease-in-out infinite;
}

html.lang-en .floating-badge {
    right: auto;
    left: -30px;
}

.floating-badge i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-badge h4 {
    font-size: 1rem;
    font-weight: 700;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .image-wrapper-decor {
        margin-top: 3rem;
        width: 100%;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--primary-blue-light) 100%);
    transition: var(--transition-normal);
}

html.lang-ar .service-card::before {
    left: auto;
    right: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(0, 255, 76, 0.2);
}

.card-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--pale-blue) 100%);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: var(--transition-normal);
}

.service-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue-light) 100%);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-slate);
}

.card-desc {
    color: var(--muted-slate);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Service Nested Bullet List */
.service-sub-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-sub-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--dark-slate);
    font-weight: 600;
}

.service-sub-list li i {
    color: var(--primary-green-light);
    margin-top: 3px;
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.why-us-grid {
    margin-top: 2rem;
}

.why-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-light);
}

.why-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 2rem;
    left: 2rem;
    transition: var(--transition-normal);
}

html.lang-ar .why-number {
    left: auto;
    right: 2rem;
}

.why-card:hover .why-number {
    color: rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.why-card p {
    color: var(--muted-slate);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   IMAGE & PROJECT GALLERY SECTION
   ========================================================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted-slate);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
    transition: all 0.5s ease;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), opacity var(--transition-normal), scale var(--transition-normal);
    transform-origin: center;
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 204, 62, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h4 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.item-overlay p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.view-details-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.view-details-btn:hover {
    background-color: var(--primary-blue-light);
    color: var(--white);
    transform: rotate(45deg);
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.contact-grid {
    align-items: stretch;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-slate);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--pale-blue);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark-slate);
    transition: var(--transition-normal);
}

textarea.form-control {
    border-radius: 20px;
    resize: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green-light);
    background-color: var(--white);
    box-shadow: var(--shadow-glow);
}

/* Validation Styling */
.form-control.invalid {
    border-color: var(--error-red);
    background-color: rgba(239, 68, 68, 0.05);
}

.error-msg {
    display: none;
    color: var(--error-red);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.4rem;
    margin-inline-start: 1rem;
}

.form-control.invalid + .error-msg {
    display: block;
}

/* Notification Banners */
.alert-banner {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: var(--pale-green);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.05);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact Info Area */
.contact-info-wrapper {
    display: flex;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.info-details p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

/* Social Link Group */
.social-links-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    margin-top: 1rem;
}

.social-links-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--dark-slate);
    color: var(--white);
    border-top: 5px solid var(--primary-green);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}

.footer-brand .logo-area {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after, .footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-green-light);
}

html.lang-ar .footer-links h4::after, html.lang-ar .footer-newsletter h4::after {
    left: auto;
    right: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-green-light);
    margin-inline-start: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.85rem 1.25rem;
    border-radius: 50px 0 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
}

html.lang-ar .newsletter-input {
    border-radius: 0 50px 50px 0;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-green-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    padding: 0 1.5rem;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

html.lang-ar .newsletter-btn {
    border-radius: 50px 0 0 50px;
}

.newsletter-btn:hover {
    background: var(--primary-green-light);
    box-shadow: var(--shadow-glow);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    background-color: rgba(15, 23, 42, 0.98);
}

.bottom-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.842);
}




/* ==========================================================================
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}
