/*
Theme Name: Clavera Home Main
Theme URI: https://claverahome.com
Author: Ahmed Abdelnasser
Author URI: https://ahmedabdnasser.com
Description: A custom WordPress theme for Clavera Saudi Group - Premium protective solutions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clavera-saudi
*/

/* ============================================
   Theme Color Variables
   ============================================ */
:root {
    --primary-green: #a8d930;
    --primary-green-dark: #8fb825;
    --primary-green-light: #c4e85a;
    --dark-navy: #0e1f31;
    --text-dark: #333333;
    --text-gray: #6b6b6b;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

body.front-page {
    padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-green-dark);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.main-header {
    background: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow-lg);
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
}

.main-header.scrolled .navbar-nav .nav-link:hover,
.main-header.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-green);
}

.navbar {
    padding: 1.5rem 0;
    transition: padding 0.3s ease;
}

.main-header.scrolled .navbar {
    padding: 1rem 0;
}

.navbar-brand {
    padding: 0;
}

.logo-img, .footer-logo-img {
    height: 100px;
    width: auto;
    max-height: 113px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.main-header.scrolled .logo-img {
    height: 75px;
    max-height: 88px;
    filter: none;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-header.scrolled .navbar-nav .nav-link {
    color: var(--text-dark);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green);
    background: rgba(168, 217, 48, 0.1);
}

.main-header.scrolled .navbar-nav .nav-link:hover,
.main-header.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-green);
    background: rgba(168, 217, 48, 0.1);
}

.btn-cta {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--primary-green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 217, 48, 0.3);
}

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

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

.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");
}

.main-header.scrolled .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%2814, 31, 49, 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;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 31, 49, 0.65) 0%, rgba(14, 31, 49, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    flex: 0 1 auto;
    white-space: nowrap;
    min-width: 0;
}

.btn-primary {
    background: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 217, 48, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 5px;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-navy);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.about-section .section-title {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-section .section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Tabs Wrapper */
.about-tabs-wrapper {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    overflow: hidden;
    padding: 2rem;
}

/* Tabs Navigation */
.about-tabs {
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-tabs .nav-item {
    margin-bottom: 0;
}

.about-tabs .nav-link {
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    color: var(--text-gray);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.about-tabs .nav-link i {
    font-size: 1.2rem;
}

.about-tabs .nav-link:hover {
    color: var(--primary-green);
    background: rgba(168, 217, 48, 0.1);
}

.about-tabs .nav-link.active {
    color: var(--white);
    background: var(--primary-green);
    box-shadow: 0 4px 15px rgba(168, 217, 48, 0.3);
}

.about-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}

/* Tab Content */
.about-tab-content {
    min-height: 500px;
}

.about-tab-panel {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 1.5rem;
}

.about-content-text {
    padding: 1rem 0;
}

.about-content-text .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-content-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* About Image Wrapper */
.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(168, 217, 48, 0.4);
    z-index: 2;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* About Stats */
.about-stats {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

/* Ensure 2x2 grid on mobile */
@media (max-width: 767px) {
    .about-stats .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Mission Visual */
.mission-visual,
.vision-visual {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.mission-icon-wrapper,
.vision-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(168, 217, 48, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mission-icon-wrapper i,
.vision-icon-wrapper i {
    font-size: 3rem;
    color: var(--white);
}

.mission-visual img,
.vision-visual img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7);
}

/* Mission Points */
.mission-points {
    margin-top: 2rem;
}

.mission-point-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mission-point-item:hover {
    background: rgba(168, 217, 48, 0.1);
    transform: translateX(5px);
}

.point-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.point-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.point-content h5 {
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.point-content p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.7;
}

/* Vision Goals */
.vision-goals {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.vision-goal-item {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.vision-goal-item:hover {
    background: rgba(168, 217, 48, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.vision-goal-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.vision-goal-item h5 {
    color: var(--dark-navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.vision-goal-item p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced Value Cards */
.value-card-enhanced {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border-top: 4px solid var(--primary-green);
}

.value-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
    border-top-color: var(--primary-green-dark);
}

.value-icon-enhanced {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(168, 217, 48, 0.3);
    transition: all 0.3s ease;
}

.value-card-enhanced:hover .value-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(168, 217, 48, 0.4);
}

.value-card-enhanced h4 {
    color: var(--dark-navy);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.value-card-enhanced p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Why Choose Section
   ============================================ */
.why-choose-section {
    padding: 5rem 0;
}

.why-choose-section .section-header {
    position: relative;
    z-index: 10;
}

/* Features Carousel */
#featuresCarousel {
    position: relative;
    padding-bottom: 3rem;
}

#featuresCarousel .carousel-inner {
    padding: 1rem 0;
}

#featuresCarousel .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

#featuresCarousel .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

#featuresCarousel .carousel-fade .carousel-item.active,
#featuresCarousel .carousel-fade .carousel-item-next.carousel-item-start,
#featuresCarousel .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

#featuresCarousel .carousel-fade .active.carousel-item-start,
#featuresCarousel .carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Carousel Indicators */
#featuresCarousel .carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

#featuresCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-gray);
    border: 2px solid var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-indent: -9999px;
    overflow: hidden;
}

#featuresCarousel .carousel-indicators button.active {
    background: var(--primary-green);
    opacity: 1;
    width: 32px;
    border-radius: 6px;
    border-color: var(--primary-green);
}

#featuresCarousel .carousel-indicators button:hover {
    opacity: 0.8;
    background: var(--primary-green);
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h4 {
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    margin: 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(14, 31, 49, 0.3));
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.service-content h3 {
    color: var(--dark-navy);
    margin-bottom: 1rem;
}

.service-content > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--primary-green);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.service-types {
    padding: 1rem;
    background: rgba(168, 217, 48, 0.1);
    border-radius: 5px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ============================================
   Who We Serve Section
   ============================================ */
.who-we-serve-section {
    padding: 0;
    background: var(--white);
    overflow: hidden;
}

/* Spaces Showcase - Boss Design */
.spaces-showcase {
    display: flex;
    flex-direction: column;
}

.space-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.space-showcase-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.space-showcase-item:nth-child(even) .space-visual-wrapper {
    order: 2;
}

.space-showcase-item:nth-child(even) .space-content-wrapper {
    order: 1;
}

.space-visual-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.space-showcase-item:hover .space-background {
    transform: scale(1.1);
}

.space-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 31, 49, 0.85) 0%, rgba(14, 31, 49, 0.65) 100%);
    z-index: 1;
}

.residential-showcase .space-overlay,
.corporate-showcase .space-overlay,
.commercial-showcase .space-overlay {
    background: linear-gradient(135deg, rgba(14, 31, 49, 0.85) 0%, rgba(14, 31, 49, 0.7) 100%);
}

.space-number {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    z-index: 2;
    line-height: 1;
    font-family: 'Arial', sans-serif;
}

.space-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: var(--white);
    position: relative;
    z-index: 2;
    direction: ltr;
}

.space-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    direction: ltr;
}

.space-icon-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(168, 217, 48, 0.3);
    transition: all 0.5s ease;
}

.space-showcase-item:hover .space-icon-badge {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 217, 48, 0.4);
}

.residential-showcase .space-icon-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    box-shadow: 0 10px 30px rgba(168, 217, 48, 0.3);
}

.residential-showcase:hover .space-icon-badge {
    box-shadow: 0 15px 40px rgba(168, 217, 48, 0.4);
}

.commercial-showcase .space-icon-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    box-shadow: 0 10px 30px rgba(168, 217, 48, 0.3);
}

.commercial-showcase:hover .space-icon-badge {
    box-shadow: 0 15px 40px rgba(168, 217, 48, 0.4);
}

.space-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}

.space-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
}

.space-divider {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 3px;
    margin: 0 auto 2.5rem;
}

.residential-showcase .space-divider {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
}

.commercial-showcase .space-divider {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
}

.space-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    direction: ltr;
}

.space-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.space-feature-item:hover {
    background: rgba(168, 217, 48, 0.1);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(168, 217, 48, 0.2);
}

.space-feature-item.highlight-feature {
    background: linear-gradient(135deg, rgba(168, 217, 48, 0.15), rgba(168, 217, 48, 0.05));
    border-color: var(--primary-green);
    grid-column: 1 / -1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s ease;
}

.space-feature-item:hover .feature-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(5deg);
}

.highlight-feature .feature-icon {
    background: var(--primary-green);
    color: var(--white);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-text[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.feature-text strong {
    color: var(--dark-navy);
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.feature-text span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.space-benefit-box {
    background: linear-gradient(135deg, rgba(168, 217, 48, 0.1), rgba(168, 217, 48, 0.05));
    padding: 2rem;
    border-radius: 20px;
    border-left: 5px solid var(--primary-green);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.space-benefit-box i {
    color: var(--primary-green);
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.space-benefit-box p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* Flip Card Container */
.flip-card-wrapper {
    perspective: 1000px;
    height: 500px;
    margin-bottom: 2rem;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card-wrapper:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

/* Front Side */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.flip-card-front {
    background: var(--white);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #1a2f47 100%);
    transform: rotateY(180deg);
    color: var(--white);
}

/* Front Side Image */
.flip-front-image {
    height: 60%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.flip-card-wrapper:hover .flip-front-image {
    transform: scale(1.1);
}

.flip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(14, 31, 49, 0.7));
}

/* Front Side Content */
.flip-front-content {
    padding: 2rem;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.flip-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(168, 217, 48, 0.4);
    transition: all 0.6s ease;
}

.flip-card-wrapper:hover .flip-icon-large {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 15px 40px rgba(168, 217, 48, 0.6);
}

.flip-front-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.flip-subtitle {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.flip-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flip-card-wrapper:hover .flip-hint {
    opacity: 0;
}

.flip-card.flipped ~ .flip-hint,
.flip-card.flipped .flip-hint {
    opacity: 0;
}

.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: inline;
    }
}

/* Back Side Content */
.flip-back-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.flip-back-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(168, 217, 48, 0.3);
}

.flip-back-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.flip-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.flip-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    text-align: left;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.flip-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.flip-feature-item.highlight {
    background: rgba(168, 217, 48, 0.2);
    border-left: 3px solid var(--primary-green);
}

.flip-feature-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.flip-feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.flip-benefit {
    background: rgba(168, 217, 48, 0.15);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
    margin-top: auto;
}

.flip-benefit i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.flip-benefit p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   Service Areas Section
   ============================================ */
.service-areas-section {
    padding: 5rem 0;
}

.service-areas-section .section-title {
    max-width: 100%;
}

.service-areas-section .lead {
    max-width: 100%;
    font-size: 1.1rem;
    line-height: 1.7;
}

.areas-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.area-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: rgba(168, 217, 48, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.area-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.area-icon i {
    font-size: 2rem;
    color: var(--primary-green);
}

.area-content {
    flex: 1;
    width: 100%;
}

.area-content h5 {
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.area-content p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.areas-visual {
    position: relative;
}

.areas-visual img {
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    width: 100%;
    height: auto;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(168, 217, 48, 0.03) 100%);
}

/* Contact Info Cards */
.contact-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-green);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-top-color: var(--primary-green-dark);
}

.contact-card-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(168, 217, 48, 0.3);
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(168, 217, 48, 0.5);
}

.contact-card-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card-icon.email {
    background: linear-gradient(135deg, #EA4335, #C5221F);
}

.contact-info-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.contact-card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.contact-card-link:hover {
    color: var(--primary-green-dark);
    gap: 0.75rem;
}

.contact-email-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.contact-email-links .contact-card-link {
    font-size: 0.95rem;
    justify-content: center;
}

/* Contact Details Cards */
.contact-details-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.contact-details-card h4 {
    color: var(--dark-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-details-card h4 i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.contact-details-card p {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.8;
}

/* Contact Form Styles */
.contact-form-wrapper {
    margin-bottom: 3rem;
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    border-top: 4px solid var(--primary-green);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-title i {
    color: var(--primary-green);
    font-size: 2.5rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form .form-label i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--light-bg);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(168, 217, 48, 0.25);
    outline: none;
}

.contact-form .form-check-input {
    border: 2px solid var(--light-bg);
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.contact-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(168, 217, 48, 0.25);
}

.contact-form .form-check-label {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form .btn-primary {
    background: var(--primary-green);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 217, 48, 0.4);
}

.contact-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#form-messages {
    min-height: 50px;
}

#form-messages.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    border: none;
    font-weight: 500;
}

#form-messages.alert-success {
    background: rgba(168, 217, 48, 0.1);
    color: var(--primary-green-dark);
    border-left: 4px solid var(--primary-green);
}

#form-messages.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

#form-messages i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.cta-button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-align: center;
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
    padding: 5rem 0;
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.partner-logo-item {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.partner-logo-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.partner-logo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.partner-logo-item:hover .partner-logo-circle {
    transform: scale(1.05);
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

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

/* ============================================
   Trust Section
   ============================================ */
.trust-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.trust-item {
    padding: 2rem;
}

.trust-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* Ensure 2x2 grid on mobile for trust section */
@media (max-width: 767px) {
    .trust-section .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .trust-item {
        padding: 1.5rem 0.75rem;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .trust-label {
        font-size: 1rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-widget {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 94px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-contact {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-green);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.contact-item span,
.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ============================================
   Policy Pages
   ============================================ */
.page-header-section {
    padding: 4rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.page-content-section {
    padding: 4rem 0;
}

.policy-content {
    max-width: 900px;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 1.75rem;
    color: var(--dark-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

.policy-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-section ul li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.policy-section strong {
    color: var(--dark-navy);
}

.contact-details {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--primary-green);
}

.contact-details p {
    margin: 0.5rem 0;
}

.contact-details a {
    color: var(--primary-green);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(168, 217, 48, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 217, 48, 0.4);
}

/* Floating WhatsApp Button - Boss Level */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5),
                0 0 0 0 rgba(37, 211, 102, 0.7),
                0 0 0 0 rgba(37, 211, 102, 0.7);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: whatsapp-float 3s ease-in-out infinite;
    overflow: visible;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6),
                0 0 0 10px rgba(37, 211, 102, 0.1),
                0 0 0 20px rgba(37, 211, 102, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    animation: none;
}

.floating-whatsapp:active {
    transform: translateY(-5px) scale(1.05);
}

/* Pulse Animation */
.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: -1;
}

/* Ripple Effect on Hover */
.whatsapp-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
}

.floating-whatsapp:hover .whatsapp-ripple {
    width: 150%;
    height: 150%;
    opacity: 0;
    animation: whatsapp-ripple 0.6s ease-out;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-navy);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--dark-navy);
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

/* Notification Badge */
.whatsapp-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #FF4444;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    animation: whatsapp-badge-pulse 2s ease-in-out infinite;
    z-index: 10001;
}

.whatsapp-notification-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

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

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes whatsapp-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes whatsapp-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 58px;
        height: 58px;
        font-size: 1.75rem;
        bottom: 20px;
        left: 20px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5),
                    0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    
    .floating-whatsapp:hover {
        transform: translateY(-6px) scale(1.08);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6),
                    0 0 0 8px rgba(37, 211, 102, 0.1);
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .whatsapp-notification-badge {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }
    
    .whatsapp-notification-badge::before {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    .floating-whatsapp {
        width: 56px;
        height: 56px;
        font-size: 1.65rem;
        bottom: 15px;
        left: 15px;
    }
}

/* ============================================
   Floating Language Switcher Button
   ============================================ */
.floating-language-switcher {
    position: fixed;
    bottom: calc(30px + 64px + 12px);
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 9998;
    box-shadow: 0 6px 20px rgba(168, 217, 48, 0.4),
                0 0 0 0 rgba(168, 217, 48, 0.6);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-language-switcher:hover {
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 30px rgba(168, 217, 48, 0.5),
                0 0 0 8px rgba(168, 217, 48, 0.1),
                0 0 0 16px rgba(168, 217, 48, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.floating-language-switcher:active {
    transform: translateY(-4px) scale(1.05);
}

.floating-language-switcher .lang-text {
    display: block;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 768px) {
    .floating-language-switcher {
        width: 52px;
        height: 52px;
        font-size: 1rem;
        bottom: calc(20px + 58px + 10px);
        right: 20px;
        box-shadow: 0 5px 15px rgba(168, 217, 48, 0.4);
    }
    
    .floating-language-switcher:hover {
        transform: translateY(-5px) scale(1.08);
        box-shadow: 0 8px 25px rgba(168, 217, 48, 0.5),
                    0 0 0 6px rgba(168, 217, 48, 0.1);
    }
}

@media (max-width: 576px) {
    .floating-language-switcher {
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
        bottom: calc(15px + 56px + 10px);
        right: 15px;
    }
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* RTL Layout Adjustments */
html[dir="rtl"] .navbar-nav {
    text-align: right;
}

html[dir="rtl"] .navbar-nav .nav-link {
    margin-left: 0;
    margin-right: 0.25rem;
}

html[dir="rtl"] .space-feature-item {
    text-align: right;
}

html[dir="rtl"] .space-feature-item .feature-icon {
    margin-right: 0;
    margin-left: 1rem;
}

html[dir="rtl"] .service-features li i {
    margin-right: 0;
    margin-left: 0.5rem;
}

html[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .footer-menu a:hover {
    padding-left: 0;
    padding-right: 5px;
}

html[dir="rtl"] .footer-legal {
    justify-content: flex-start;
}

html[dir="rtl"] .text-md-end {
    text-align: left !important;
}

html[dir="rtl"] .text-center {
    text-align: center !important;
}

html[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

/* RTL Bootstrap adjustments */
html[dir="rtl"] .ms-lg-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

html[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

html[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* RTL Floating buttons positioning */
html[dir="rtl"] .floating-language-switcher {
    right: auto;
    left: 30px;
}

html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .floating-language-switcher {
        left: 20px;
        right: auto;
    }
    
    html[dir="rtl"] .floating-whatsapp {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 576px) {
    html[dir="rtl"] .floating-language-switcher {
        left: 15px;
        right: auto;
    }
    
    html[dir="rtl"] .floating-whatsapp {
        left: 15px;
        right: auto;
    }
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.75rem;
    }
    
    .hero-btn {
        flex: 1 1 auto;
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }
    
    .about-tabs-wrapper {
        padding: 1.5rem;
    }
    
    .about-tabs .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .vision-goals {
        grid-template-columns: 1fr;
    }
    
    .mission-icon-wrapper,
    .vision-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .mission-icon-wrapper i,
    .vision-icon-wrapper i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 75px;
        max-height: 88px;
    }
    
    .main-header.scrolled .logo-img {
        height: 63px;
        max-height: 75px;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .main-header.scrolled .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-tabs-wrapper {
        padding: 1rem;
    }
    
    .about-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        border-bottom: none;
        margin-bottom: 2rem;
    }
    
    .about-tabs .nav-item {
        width: 100%;
    }
    
    .about-tabs .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .about-tabs .nav-link span {
        display: inline-block;
    }
    
    /* Reduce title and subtitle width by 30% on mobile */
    .about-section .section-title {
        max-width: 560px; /* 800px * 0.7 = 560px */
    }
    
    .about-section .section-subtitle {
        max-width: 490px; /* 700px * 0.7 = 490px */
    }
    
    .about-tab-content {
        min-height: auto;
    }
    
    .tab-content-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .mission-point-item {
        flex-direction: column;
        text-align: center;
    }
    
    .point-icon {
        margin: 0 auto 1rem;
    }
    
    .experience-badge {
        top: 10px;
        right: 10px;
        padding: 1rem;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .mission-icon-wrapper,
    .vision-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .mission-icon-wrapper i,
    .vision-icon-wrapper i {
        font-size: 2rem;
    }
    
    /* Spaces Showcase Mobile */
    .space-showcase-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .space-showcase-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .space-showcase-item:nth-child(even) .space-visual-wrapper {
        order: 1;
    }
    
    .space-showcase-item:nth-child(even) .space-content-wrapper {
        order: 2;
    }
    
    .space-visual-wrapper {
        min-height: 400px;
    }
    
    .space-number {
        font-size: 5rem;
        top: 2rem;
        right: 2rem;
    }
    
    .space-image-title {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
    }
    
    .space-image-title h4 {
        font-size: 2rem;
    }
    
    .space-image-title p {
        font-size: 1.1rem;
    }
    
    .space-content-wrapper {
        padding: 3rem 2rem;
    }
    
    .space-title {
        font-size: 2.25rem;
    }
    
    .space-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .space-feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .feature-text strong {
        font-size: 0.95rem;
    }
    
    .feature-text span {
        font-size: 0.85rem;
    }
    
    .space-icon-badge {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .contact-info-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    /* Service Areas Mobile */
    .service-areas-section {
        padding: 3rem 0;
    }
    
    .service-areas-section .section-title {
        font-size: 1.75rem;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .service-areas-section .lead {
        font-size: 1rem;
        max-width: 95%;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .areas-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 600px;
        margin: 2rem auto 0;
    }
    
    .area-item {
        padding: 1.25rem 1rem;
        margin-bottom: 0;
    }
    
    .area-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.875rem;
    }
    
    .area-icon i {
        font-size: 1.75rem;
    }
    
    .area-content h5 {
        font-size: 1.05rem;
        margin-bottom: 0.375rem;
    }
    
    .area-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .partner-logo-item {
        max-width: 150px;
    }
    
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 63px;
        max-height: 75px;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        gap: 0.5rem;
    }
    
    .hero-btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        flex: 1 1 auto;
    }
    
    .main-header.scrolled .logo-img {
        height: 56px;
        max-height: 69px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .value-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card p {
        max-width: 100%;
    }
    
    .service-content,
    .serve-content {
        padding: 1.5rem;
    }
    
    /* Spaces Showcase Small Mobile */
    .space-visual-wrapper {
        min-height: 350px;
    }
    
    .space-number {
        font-size: 4rem;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .space-image-title {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
    }
    
    .space-image-title h4 {
        font-size: 1.75rem;
    }
    
    .space-image-title p {
        font-size: 1rem;
    }
    
    .space-content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .space-title {
        font-size: 1.875rem;
    }
    
    .space-subtitle {
        font-size: 1.1rem;
    }
    
    .space-icon-badge {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .space-feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .space-benefit-box {
        padding: 1.5rem;
    }
    
    .space-benefit-box i {
        font-size: 1.75rem;
    }
    
    .space-benefit-box p {
        font-size: 0.95rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-title i {
        font-size: 2rem;
    }
    
    /* Service Areas Small Mobile */
    .service-areas-section {
        padding: 2.5rem 0;
    }
    
    .service-areas-section .section-title {
        font-size: 1.5rem;
        max-width: 95%;
    }
    
    .service-areas-section .lead {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .areas-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .area-item {
        padding: 1rem 0.75rem;
    }
    
    .area-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .area-icon i {
        font-size: 1.5rem;
    }
    
    .area-content h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .area-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .partner-logo-item {
        max-width: 120px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-light {
    background-color: var(--light-bg) !important;
}

.text-primary {
    color: var(--primary-green) !important;
}

.shadow {
    box-shadow: 0 5px 15px var(--shadow) !important;
}

.rounded {
    border-radius: 10px !important;
}

/* Space Image Title Styles */
.space-image-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: var(--white);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.space-image-title h4 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.space-image-title p {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ============================================
   Loading Popup - Boss Level Animation
   ============================================ */
.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e1f31 0%, #1a2f47 50%, #0e1f31 100%);
    background-size: 200% 200%;
    animation: loading-gradient 8s ease infinite;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animated Background Gradient */
@keyframes loading-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles Background */
.loading-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.loading-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(168, 217, 48, 0.4);
    border-radius: 50%;
    animation: loading-particle-float 8s ease-in-out infinite;
}

.loading-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    width: 6px;
    height: 6px;
    background: rgba(168, 217, 48, 0.5);
}

.loading-particle:nth-child(2) {
    left: 30%;
    animation-delay: 1.5s;
    animation-duration: 10s;
}

.loading-particle:nth-child(3) {
    left: 50%;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
    background: rgba(168, 217, 48, 0.45);
}

.loading-particle:nth-child(4) {
    left: 70%;
    animation-delay: 4.5s;
    animation-duration: 9s;
}

.loading-particle:nth-child(5) {
    left: 20%;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}

.loading-particle:nth-child(6) {
    left: 80%;
    animation-delay: 5s;
    width: 6px;
    height: 6px;
    background: rgba(168, 217, 48, 0.5);
}

@keyframes loading-particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Loading Content */
.loading-popup-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

/* Logo Wrapper with Shimmer */
.loading-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    animation: loading-logo-enter 1s ease-out;
}

.loading-logo-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(168, 217, 48, 0.4),
        transparent
    );
    animation: loading-shimmer 3s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes loading-logo-enter {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Text Wrapper */
.loading-text-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

/* Main Title */
.loading-text-main {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 4px;
    font-family: 'Cairo', sans-serif;
    display: inline-block;
    text-shadow: 0 0 30px rgba(168, 217, 48, 0.5),
                 0 0 60px rgba(168, 217, 48, 0.3),
                 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    position: relative;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-text-main span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg) scale(0.5);
}

.loading-text-main span.visible {
    animation: loading-letter-pop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Subtitle */
.loading-text-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-text-subtitle span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.loading-text-subtitle span.visible {
    animation: loading-subtitle-letter 0.4s ease-out forwards;
}

/* Arabic text styling - no letter spacing, proper RTL */
html[dir="rtl"] .loading-text-main,
html[dir="rtl"] .loading-text-subtitle,
.loading-text-arabic {
    letter-spacing: 0 !important;
    direction: rtl;
    text-align: center;
}

.loading-text-arabic {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-text-arabic.loading-text-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Letter Animations */
@keyframes loading-letter-pop {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
    }
    50% {
        transform: translateY(-10px) rotateX(0deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes loading-subtitle-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading-subtitle-letter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.loading-progress {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: loading-progress-show 0.5s ease-out 0.5s forwards;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
    border-radius: 10px;
    width: 0%;
    animation: loading-progress-fill 3.5s ease-out 1s forwards;
    box-shadow: 0 0 20px rgba(168, 217, 48, 0.6);
    position: relative;
    overflow: hidden;
}

.loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: loading-progress-shine 1.5s ease-in-out infinite;
}

@keyframes loading-progress-show {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes loading-progress-fill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes loading-progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .loading-text-main {
        font-size: 3.5rem;
        letter-spacing: 3px;
    }
    
    .loading-text-subtitle {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .loading-text-main {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .loading-text-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }
    
    .loading-logo-wrapper {
        margin-bottom: 2rem;
    }
    
    .loading-text-wrapper {
        margin-bottom: 2rem;
    }
    
    .loading-progress {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .loading-text-main {
        font-size: 2rem;
        letter-spacing: 1.5px;
    }
    
    .loading-text-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    
    .loading-logo-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .loading-text-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .loading-progress {
        max-width: 250px;
        height: 3px;
    }
}
