/*
Theme Name: E-Land Theme (Landing Page)
Author: Eslam M. Mohamed
Author URI: https://www.linkedin.com/in/essov3/
Theme URI: 
Tags: full-site-editing
Text Domain: eland-wp-theme
Requires at least: 6.1
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0.6

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================
   Base & Global Styles
   ======================================== */
body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

.section-padding {
    padding: 80px 0;
}

.min-vh-100-custom {
    min-height: 100vh;
}

.section-title { 
    text-align: center;
    margin-bottom: 60px !important;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

section {
    min-height: 65vh;
}

/* ========================================
   Buttons
   ======================================== */
.btn-action {
    font-weight: 500;
    border-radius: 50rem !important; 
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
}

.btn-animated-border {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 10px; 
    padding-top: 10px;
    background-color: transparent;
}

/* Underline animation effect */
.btn-animated-border.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%; 
    width: 0;
    height: 2px; 
    background-color: currentColor; 
    transition: width 0.3s ease-in-out, right 0.3s ease-in-out;
}

.btn-animated-border.underline:hover::after {
    width: 100%;
    right: 0; 
}

/* Background fill animation effect */
.btn-animated-border.fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--text-light);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-animated-border.fill:hover::before {
    width: 100%;
}


/* ========================================
   Header & Navigation
   ======================================== */

/* Marquee Top Bar */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.marquee-content {
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content marquee {
    display: inline-block;
    width: 100%;
}

/* Navbar base styles */

.navbar {
     transition: all 0.3s ease;
    padding: 1rem 0;
    background-color:  var(--navbar-bg);
    color : var(--text-light);
    box-shadow: none;
}

 .scrollable-header{
    background-color: transparent;
}


.scrollable-header .navbar-brand img {
    border-radius: 0.5rem;
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0)  invert(1) !important;
    transition: height 0.3s ease;
}

.scrollable-header .nav-link{
    color: var(--text-light) !important;

}
.nav-link {
    font-weight: 500;
    margin: 0 10px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-light-hover) !important;
}


.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center center;
    height: 2px;
    width: 56%;
    background-color: var(--accent-color, #0d6efd);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease;
    opacity: 0;
}

.scrollable-header .nav-link:after{
 background-color: var(--text-light, #0d6efd);

}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* State: Not Scrolled (Transparent) */
.scrollable-header:not(.scrolled) .navbar-toggler-icon {
    background-image: var(--toggler-icon-light); 
}
.scrollable-header:not(.scrolled) .navbar-toggler {
    border-color: var(--border-navbar-transparent);
}
.scrollable-header:not(.scrolled) .btn-action.btn-animated-border {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}
.scrollable-header:not(.scrolled) .btn-action.btn-animated-border:hover {
    color: var(--primary-color);
}
.scrollable-header:not(.scrolled) .btn-action.btn-animated-border::after {
    background-color: var(--text-light);
}

/* State: Scrolled (Solid Background) */
.scrollable-header.scrolled {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.7rem 0;
}

body:has(.marquee-container) .navbar.fixed-top,
.marquee-container + .navbar.fixed-top {
    top: 36px;
}

.scrollable-header.scrolled .navbar-brand img {
    filter: unset !important;
}

.scrollable-header.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.scrollable-header.scrolled .nav-link:hover,
.scrollable-header.scrolled .nav-link.active {
    color: var(--primary-color) !important; 
}

.scrollable-header.scrolled .nav-link::after {
   background-color: var(--text-primary, #0d6efd);
}

.scrollable-header.scrolled .navbar-toggler-icon {
    background-image: var(--toggler-icon-dark);
}

.scrollable-header.scrolled .navbar-toggler {
    border-color: var(--border-navbar-scrolled);
}

.scrollable-header.scrolled .btn-action.btn-animated-border {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.scrollable-header.scrolled .btn-action.btn-animated-border:hover {
    background-color: var(--primary-color-hover-bg); 
    color: var(--primary-color-darker);
}
.scrollable-header.scrolled .btn-action.btn-animated-border::after {
    background-color: var(--primary-color);
}

/* Dark Mode Navbar Overrides */
.navbar-dark .navbar-brand { color: #fff !important; }
.navbar-dark .navbar-brand:hover { color: #f8f9fa !important; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, 0.85) !important; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff !important; }
.navbar-dark .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, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.navbar-dark .btn-action.btn-animated-border { color: #fff !important; border-color: #fff !important; }
.navbar-dark .btn-action.btn-animated-border:hover { background-color: #fff !important; color: #212529 !important; }
.navbar-dark .btn-action.btn-animated-border::after { border-color: #fff; }
.navbar-dark .dropdown-menu { background-color: rgba(33, 37, 41, 0.95); border-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); }
.navbar-dark .dropdown-item { color: rgba(255, 255, 255, 0.85); }
.navbar-dark .dropdown-item:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }


/* ========================================
   Page Sections
   ======================================== */

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden; 
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-hero-overlay);
    z-index: 0;
    opacity: 0.7;
}
.hero-content {
    position: relative;
    z-index: 1; 
    background-color: transparent; 
    padding: 20px; 
    border-radius: 0; 
}
.hero-content h1 {
    font-size: 2.8rem; 
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: none; 
}
.hero-content p {
    font-size: 1.2rem; 
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}
.hero-content .video-montage-text {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.85);
}
#hero .btn-action.btn-animated-border {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}
#hero .btn-action.btn-animated-border:hover {
    background-color: rgba(255,255,255,0.1); 
}
#hero .btn-action.btn-animated-border::after {
    background-color: var(--text-light);
}

/* Video Backgrounds (used in Hero & Separators) */
.video-background-container { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
}
.video-background-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; 
    min-width: 177.77vh; 
    min-height: 100vh; 
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Video Separator Section */
.video-separator-section {
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 45vh; 
    padding: 60px 0; 
}
.video-separator-section .video-background-container {
    z-index: 0; 
}
.video-separator-section .video-background-container iframe {
    min-height: 100%; 
}
.video-separator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-separator-overlay); 
    z-index: 1; 
}
.video-separator-content {
    position: relative;
    z-index: 2; 
    padding: 30px 20px;
}
.video-separator-title {
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: none; 
    margin: 0;
}

/* Services Section */
#services {
    overflow-x: hidden;
}
.service-block {
    padding: 3rem 0; 
    border-bottom: 1px solid var(--border-light); 
}
.service-block:last-child {
    border-bottom: none;
}
.service-icon-col i {
    color: var(--primary-color); 
    font-size: 4.5rem; 
    transition: transform 0.3s ease;
}
.service-block:hover .service-icon-col i {
    transform: scale(1.1) rotate(5deg);
}
.service-image-col img.service-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 16/9;
}
.service-block:hover .service-image-col img.service-image {
    transform: scale(1.03);
}
.service-text-col h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}
.service-text-col p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card .card-img-top {
    object-fit: cover;
    height: 100%;
}
.service-no-image {
    background-color: rgba(0,0,0,0.03);
}
.service-no-image i {
    color: var(--primary-color);
}
.service-card .service-text-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Why Us Section */
#why-us {
    overflow-x: hidden;
}
#why-us .img-fluid {
    border-radius: 0.75rem; 
}
#why-us ul {
    list-style: none;
    padding-right: 0;
}
#why-us ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
#why-us ul li i {
    color: white;
    font-size: 1.4rem;
    line-height: 1.6;
}
.stat-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 0.75rem; 
    text-align: center;
    margin-top: 20px;
}
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.stat-item p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Our Works Section */
#our-works {
    background-color: var(--bg-light);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem; 
    margin-bottom: 30px;
    box-shadow: none; 
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0.75rem; 
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    border-radius: 0.75rem; 
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.gallery-item .overlay i {
    font-size: 2rem;
}

/* Testimonials Section */
#testimonials {
    background-color: #f8f9fa;
}
.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
}
.testimonial-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 5px solid rgba(0,0,0,0.05);
}
.testimonial-no-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background-color: #f0f0f0;
    color: #555;
}
.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}
.testimonial-item h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.testimonial-item span {
    display: block;
    font-size: 0.9rem;
    color: #777;
}
#testimonialCarousel .carousel-indicators {
    margin-bottom: -2rem;
}
#testimonialCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color, #0d6efd);
}
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
    position: relative;
    background-position: center;
}

/* Why Differ Section */
#why-differ {
    position: relative; 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; 
    color: var(--text-light); 
}
#why-differ::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-why-differ-overlay);
    z-index: 1;
    opacity: 0.9;
}
#why-differ .container { 
    position: relative;
    z-index: 2;
}
#why-differ .list-row { 
    list-style: none;
    padding-right: 0;
    margin-bottom: 40px; 
}
#why-differ .list-row .list-item { 
    font-size: 1.15rem; 
    color: #e9ecef; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    margin-bottom: 30px; 
    background-color: rgba(255,255,255,0.05); 
    padding: 1.5rem;
    border-radius: 0.75rem; 
}
#why-differ .list-row .list-item i {
    color: var(--accent-color); 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    width: auto; 
    text-align: center;
    flex-shrink: 0; 
}
#why-differ .lead {
    color: #f0f0f0; 
    font-size: 1.3rem;
    margin-bottom: 35px; 
    line-height: 1.7;
}
#why-differ .cta-button.btn-animated-border { 
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 15px 35px; 
    font-size: 1.3rem; 
    box-shadow: none; 
}
#why-differ .cta-button.btn-animated-border:hover {
    background-color: var(--secondary-color-hover-bg); 
    color: var(--secondary-color-darker); 
    transform: translateY(-2px); 
}
#why-differ .cta-button.btn-animated-border::after {
    background-color: var(--secondary-color);
}

/* Contact Section */
#contact {
    overflow-x: hidden;
}
.contact-form, .contact-info {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 0.75rem; 
    box-shadow: none; 
}
.contact-form input, .contact-form textarea {
    border-radius: 0.75rem;
    margin-bottom: 15px;
    direction: rtl !important;
}
.contact-form button.btn-action.btn-animated-border {
    width: 100%;
    padding: 12px; 
    font-size: 1.1rem; 
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.contact-form button.btn-action.btn-animated-border:hover { 
     background-color: var(--primary-color-hover-bg);
     color: var(--primary-color-darker);
}
.contact-form button.btn-action.btn-animated-border::after {
    background-color: var(--primary-color);
}
.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 15px;
}
.contact-info p {
    margin-bottom: 10px;
}

/* ========================================
   Footer
   ======================================== */
footer {
    padding: 3rem 0;
    text-align: center;
}
footer .social-icons a {
    color: var(--primary-color, #212529);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    padding: 4px 10px;
    border-radius: 4px;
}
footer .social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}
footer p {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0;
}

/* ========================================
   Utility & Floating Elements
   ======================================== */

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: .3s;
    transform: translateY(20px);
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}
.whatsapp-float:hover {
    background-color: #1ebf56;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transform: scale(1.05);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #ffffff; }


/* ========================================
   Media Queries
   ======================================== */

@media (min-width: 768px) { 
    #why-differ .list-row .list-item {
        text-align: right; 
        align-items: flex-start; 
        flex-direction: row; 
    }
    #why-differ .list-row .list-item i {
        margin-bottom: 0; 
        margin-left: 15px; 
        font-size: 1.8rem; 
    }
    .service-text-col,
    .service-block.layout-icon-left .service-text-col,
    .service-block.layout-icon-right .service-text-col {
         text-align: right; 
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-light); 
        padding: 1rem;
        margin-top: 0.5rem; 
        border-radius: 0.75rem; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .navbar-nav { 
        text-align: center;
    }
    .navbar-collapse .navbar-nav .nav-link {
        color: var(--text-dark) !important; 
        padding: 10px 0;
        border-bottom: 1px solid var(--text-light);
    }
    .navbar-collapse .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    .navbar-collapse .navbar-nav .nav-link:hover,
    .navbar-collapse .navbar-nav .nav-link.active {
        color: var(--primary-color) !important; 
    }
    .navbar .btn-action { 
        display: block;
        margin: 15px auto;
    }
    .video-separator-title {
        font-size: 2rem; 
    }
    .video-separator-section {
        min-height: 35vh; 
        padding: 40px 0;
    }
    #why-differ .list-row .list-item { 
         font-size: 1.1rem;
         flex-direction: column;
         align-items: center;
         text-align: center;
    }
     #why-differ .list-row .list-item i {
         margin-left: 0; 
         margin-bottom: 10px; 
         font-size: 2.2rem; 
    }
    #why-differ .lead {
        font-size: 1.15rem;
    }
    #why-differ .cta-button.btn-animated-border { 
        padding: 12px 30px;
        font-size: 1.15rem;
    }
     .hero-content h1 {
        font-size: 2.2rem; 
    }
    .hero-content p {
        font-size: 1.1rem; 
    }
    .navbar-dark .navbar-collapse {
        background-color: var(--primary-color);
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .marquee-container {
        font-size: 12px;
        padding: 6px 0;
    }
    
    body:has(.marquee-container) .navbar.fixed-top,
    .marquee-container + .navbar.fixed-top {
        top: 30px;
    }

    .navbar:not(.scrolled) .btn-action.btn-animated-border{
        color: #0d6efd !important;
    }
    .service-icon-col i {
        font-size: 3.5rem; 
        margin-bottom: 1.5rem; 
    }
    .service-text-col,
    .service-block.layout-icon-left .service-text-col,
    .service-block.layout-icon-right .service-text-col {
        text-align: center; 
    }
    .service-block {
        padding: 2rem 0;
    }
    .hero-content h1 {
        font-size: 2rem; 
    }
    .hero-content p {
        font-size: 1rem; 
    }
    .section-title {
        font-size: 1.8rem; 
    }
    #why-differ {
        background-attachment: scroll; 
    }
    .nav-link::after {
        background-color:unset;
    }
    section{
        min-height: unset !important;
    }
    .testimonial-item {
        padding: 1.5rem 1rem;
    }
    .testimonial-item img {
        width: 80px;
        height: 80px;
    }
    .testimonial-item p {
        font-size: 1rem;
    }
    .whatsapp-float { 
        width: 50px; 
        height: 50px; 
    }
    .whatsapp-float svg { 
        width: 28px; 
        height: 28px; 
    }
}

