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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFF;
    color: #333;
    line-height: 1.6;
    direction: ltr;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2E5F3F 0%, #1a3d28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(216, 182, 106, 0.3);
    border-top-color: #D8B66A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #D8B66A 0%, #c9a55a 100%);
    color: #2E5F3F;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.section-badge-light {
    background: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero {
    background-image: url('../img/src/tomato.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
    position: relative;
    margin-top: 0;
    padding-top: 110px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 95, 63, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(216, 182, 106, 0.2);
    border: 1px solid #D8B66A;
    color: #D8B66A;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #FFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero h1 span {
    color: #D8B66A;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    margin: 0 auto;
}

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

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(-5px);
}

.btn-primary {
    background: linear-gradient(135deg, #D8B66A 0%, #c9a55a 100%);
    color: #2E5F3F;
    box-shadow: 0 4px 15px rgba(216, 182, 106, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 182, 106, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFF;
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(0);
}

/* About Section */
.about {
    padding: 8rem 2rem;
    background-color: #FFF;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #2E5F3F;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.about > .about-content > p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Cairo', sans-serif;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: transparent;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.card:hover .card-bg {
    transform: scale(1.1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 95, 63, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    border-radius: 20px;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #D8B66A;
    font-weight: 600;
}

.card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.why-choose-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.why-choose-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
}

.why-choose-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2E5F3F;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #FFF;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(46, 95, 63, 0.1);
}

.feature-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 95, 63, 0.15);
    border-color: #D8B66A;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(216, 182, 106, 0.2) 0%, rgba(216, 182, 106, 0.1) 100%);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2E5F3F;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    font-family: 'Cairo', sans-serif;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2E5F3F 0%, #1a3d28 100%);
    padding: 5rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: #FFF;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #D8B66A;
    font-family: 'Poppins', sans-serif;
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    color: #D8B66A;
    font-weight: 600;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Carousel Section */
.gallery-carousel {
    padding: 8rem 2rem;
    background-color: #F8F9FA;
    overflow: hidden;
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.gallery-carousel h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #2E5F3F;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D8B66A 0%, #c9a55a 100%);
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-track {
    background-color: #e0e0e0;
    border-radius: 10px;
}

.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(46, 95, 63, 0.9));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-overlay {
    transform: translateY(0);
}

.carousel-overlay span {
    color: #FFF;
    font-weight: 600;
    font-size: 1rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #D8B66A 0%, #c9a55a 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2.5rem;
    color: #2E5F3F;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.cta-banner p {
    font-size: 1.2rem;
    color: #2E5F3F;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: #2E5F3F;
    color: #FFF;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 95, 63, 0.3);
}

.btn-cta:hover {
    background: #1a3d28;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 95, 63, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E5F3F 0%, #1a3d28 100%);
    color: #FFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(46, 95, 63, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #D8B66A 0%, #c9a55a 100%);
    color: #2E5F3F;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(216, 182, 106, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-logo {
        width: 100px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .about {
        padding: 5rem 1.5rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        min-width: 100%;
        max-width: 100%;
    }

    .about h2,
    .why-choose-us h2,
    .gallery-carousel h2 {
        font-size: 2rem;
    }

    .about > .about-content > p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .why-choose-us {
        padding: 5rem 1.5rem;
    }

    .why-choose-bg {
        background-attachment: scroll;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    .stats-section {
        padding: 4rem 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .gallery-carousel {
        padding: 5rem 1rem;
    }

    .carousel-item {
        width: 220px;
    }

    .carousel-item img {
        height: 180px;
    }

    .cta-banner {
        padding: 4rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .cta-banner p {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .about {
        padding: 4rem 1rem;
    }

    .about h2,
    .why-choose-us h2,
    .gallery-carousel h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .why-choose-us {
        padding: 4rem 1rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .stats-container {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-carousel {
        padding: 4rem 0.5rem;
    }

    .carousel-item {
        width: 180px;
    }

    .carousel-item img {
        height: 150px;
    }

    .cta-banner {
        padding: 3rem 1rem;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .carousel-item {
        width: 160px;
    }

    .carousel-item img {
        height: 130px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-logo {
        width: 90px;
    }
}