/* ==========================================================================
   Variables & Theme
   ========================================================================== */
   :root {
    /* Color Palette */
    --primary-color: #2e5c3e; /* Deep Professional Green */
    --secondary-color: #4b8b5e; /* Lighter Green */
    --accent-color: #e6c867; /* Soft Gold/Sand accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f7f9f8;
    
    /* Typography */
    --font-primary: 'Tajawal', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --radius-soft: 12px;
    --radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Hide native scrollbar for full-page aesthetic if preferred */
    /* scrollbar-width: none; */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow: hidden; /* Prevent body scroll, use scroll-container */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px; /* Increased padding for dot nav */
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: 30px; }
.pt-5 { padding-top: 50px; }

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column-between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ==========================================================================
   Full Page Scroll Snapping
   ========================================================================== */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.section-snap {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow-y: auto; 
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional parallax effect to make scrolling feel better */
    z-index: 1;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92); /* Highly opaque white for readability */
    z-index: -1;
}

/* Background images for sections */
.about {
    background-image: url('https://images.unsplash.com/photo-1598902108854-10e335adac99?q=80&w=1920&auto=format&fit=crop');
}
.services {
    background-image: url('https://images.unsplash.com/photo-1416862291207-4ca732144d83?q=80&w=1920&auto=format&fit=crop'); /* Modern clean architecture */
}
.portfolio {
    background-image: url('https://images.unsplash.com/photo-1584738766473-61c083514bf4?q=80&w=1920&auto=format&fit=crop');
}
.partners {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop');
}
.contact-footer-wrapper {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop');
}

.section-content {
    min-height: 100vh;
    padding: 100px 0 60px; /* space for header */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hide scrollbar for internal sections to keep it clean */
.section-snap {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.section-snap::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   Typography & Titles
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: var(--radius-pill);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 92, 62, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 12px 35px;
    font-size: 1.1rem;
}

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

/* ==========================================================================
   1. Transparent Header
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Transparent as requested */
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-slow);
}

/* Liquid Glass effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Ensure logo is white on the dark hero background initially */
.navbar.on-dark .logo a,
.navbar.on-dark .btn-outline {
    color: #fff;
    border-color: #fff;
}
.navbar.on-dark .social-link {
    color: #fff;
}
.navbar.on-dark .lang-toggle {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.lang-toggle {
    display: flex;
    gap: 5px;
    font-weight: 700;
    color: var(--primary-color);
}

.lang-toggle a {
    opacity: 0.6;
    transition: var(--transition-fast);
}

.lang-toggle a.active, .lang-toggle a:hover {
    opacity: 1;
}

/* ==========================================================================
   Vertical Dot Navigation (Left Side)
   ========================================================================== */
.dot-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.dot-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dot-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(46, 92, 62, 0.4);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.dot-label {
    position: absolute;
    left: 25px; 
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dot-link:hover .dot,
.dot-link.active .dot {
    background-color: transparent;
    border-color: var(--primary-color);
    transform: scale(1.3);
}

.dot-link:hover .dot-label,
.dot-link.active .dot-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* If the hero is dark, make dots white */
.on-dark-section .dot {
    background-color: rgba(255, 255, 255, 0.5);
}
.on-dark-section .dot-link:hover .dot,
.on-dark-section .dot-link.active .dot {
    border-color: #fff;
    background-color: transparent;
}


/* ==========================================================================
   2. Hero Section (Plants Background)
   ========================================================================== */
.hero {
    background-image: url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    color: #fff;
    justify-content: center;
    align-items: center;
}

.hero::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(46, 92, 62, 0.8));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero-title {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   3. About Us Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.rounded-image {
    border-radius: var(--radius-soft);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: #fff;
    padding: 20px 10px;
    border-radius: var(--radius-soft);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

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

/* ==========================================================================
   4. Services Section (WOW Factor Accordion)
   ========================================================================== */
.services-accordion {
    display: flex;
    height: 400px;
    gap: 15px;
    width: 100%;
}

.service-panel {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-panel.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-panel:hover {
    flex: 3;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(46, 92, 62, 0.2);
}

.panel-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: auto;
    background: #fff;
    width: 70px; 
    height: 70px;
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.service-panel:hover .panel-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.panel-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    white-space: nowrap;
    color: var(--primary-color);
}

.panel-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-panel:hover .panel-content {
    opacity: 1;
    max-height: 200px;
    transition-delay: 0.2s;
}

.panel-content p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* ==========================================================================
   5. Portfolio Section (L-Shape Editorial Layout)
   ========================================================================== */
.portfolio-l-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 120px);
    gap: 15px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-text-area {
    grid-column: 1 / 3; /* RTL: spans right and middle columns */
    grid-row: 1 / 3; /* Spans top and middle rows */
    display: flex;
    align-items: center;
    padding-left: 40px; /* Space between text and images */
}

/* L-Shape Grid placements */
.p-img-1 { grid-column: 3; grid-row: 1; }
.p-img-2 { grid-column: 3; grid-row: 2; }
.p-img-3 { grid-column: 3; grid-row: 3; }
.p-img-4 { grid-column: 2; grid-row: 3; }
.p-img-5 { grid-column: 1; grid-row: 3; }

.portfolio-item {
    border-radius: var(--radius-soft);
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(46, 92, 62, 0.9));
    color: #fff;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.loader {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text-light);
}

/* ==========================================================================
   6. Partners Section
   ========================================================================== */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partner-logo {
    width: 160px;
    height: 80px;
    background-color: #e9ecef;
    border-radius: var(--radius-soft);
}

/* ==========================================================================
   7. Contact Section & Footer
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.contact-form-container, .contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--radius-soft);
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-left: 15px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo h2 {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.5rem;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-bottom {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .header-actions { gap: 15px; }
    .header-buttons, .header-social { display: none; } /* Simplified mobile header */
}

@media (max-width: 768px) {
    .portfolio-grid, .services-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .dot-nav { display: none; } /* Hide dots on mobile to save space */
    .section-snap { scroll-snap-align: none; height: auto; }
    .scroll-container { scroll-snap-type: none; overflow-y: visible; height: auto; }
    body { overflow: visible; }
    .section-content { min-height: auto; padding: 60px 0; }
}

/* ==========================================================================
   WhatsApp Float Icon
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-loop 2s infinite;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    color: #fff;
    background-color: #20b858;
    transform: scale(1.1);
}

@keyframes pulse-loop {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Demo Modal Styles
   ========================================================================== */
.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.demo-modal.show {
    opacity: 1;
    visibility: visible;
}

.demo-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.demo-modal.show .demo-modal-content {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: #2e5c3e;
    margin-bottom: 20px;
}

.demo-modal-content h3 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.demo-modal-content p {
    color: #4a4a4a;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.demo-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-modal-actions .btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-modal {
    background: transparent;
    border: 2px solid #e0e0e0 !important;
    color: #555 !important;
}

.btn-outline-modal:hover {
    background: #f5f5f5;
    color: #1a1a1a !important;
    border-color: #d0d0d0 !important;
}

.btn-primary-modal {
    background: #0077b5;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-primary-modal:hover {
    background: #006097;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}