/* ==============================
   CSS Variables & Globals
============================== */
:root {
    /* Color Palette */
    --primary-color: #1e7b41;
    --primary-dark: #14592f;
    --primary-light: #52a56e;
    --accent-color: #f1c40f; 
    
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-main: #fcfcfc;
    --bg-light: #f4f8f5;
    --white: #ffffff;
    
    --border-color: #eaeaea;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.section-title h2 span {
    color: var(--primary-light);
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin-top: 15px;
    border-radius: 4px;
}

.center-underline {
    margin: 15px auto 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 123, 65, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 123, 65, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==============================
   Navbar
============================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism */
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--white);
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* ==============================
   Hero Section
============================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    /* background: url('images/234234.jpeg') no-repeat center center/cover; */
    display: flex;
    align-items: center;
    color: var(--white);
    background-color: #00ffff;
}

/* If the image resolution is not perfect, maybe let's use a solid gradient overlaid */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 89, 47, 0.85) 0%, rgba(30, 123, 65, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==============================
   About Section
============================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Image hover tilt effect helper */
.tilt-effect {
    transition: transform 0.4s ease;
}
.tilt-effect:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* ==============================
   Products Section
============================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-muted);
}

/* ==============================
   Gallery Section
============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 123, 65, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==============================
   Contact Section
============================== */
.contact-card {
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef6f0 100%);
}

/* After removing the form, center the contact content nicely */
.contact-card .section-title {
    margin-bottom: 35px;
}

.contact-details {
    max-width: 640px;
}

.social-links {
    margin-top: 30px;
}

.contact-details {
    margin-top: 40px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 20px;
    margin-top: 5px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details a, .contact-details span {
    color: var(--text-muted);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn.whatsapp {
    background-color: #25D366;
}
.social-btn.whatsapp:hover {
    background-color: #1ebe56;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.social-btn.email {
    background-color: var(--text-dark);
}
.social-btn.email:hover {
    background-color: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.4);
}



/* ==============================
   Footer Section
============================== */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

.footer-bottom {
    font-size: 1rem;
}

/* ==============================
   Floating WhatsApp Button
============================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebe56;
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {transform: translateY(-15px);} 
    60% {transform: translateY(-7px);} 
}

/* ==============================
   Responsive Design
============================== */
@media (max-width: 992px) {
    .about-container, .contact-card {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px;
        gap: 20px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        color: var(--text-dark);
        font-size: 1.2rem;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar.scrolled .mobile-menu-btn {
        color: var(--text-dark);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .contact-info, .contact-form {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
