:root {
    --primary-color: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary-color: #f5f5f5;
    --lightest-green: #e8f5e9;
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    transition: var(--transition);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    margin-top: 80px;
    background: url('images/header-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    animation: backgroundSlide 20s infinite ease-in-out; /* Increased duration for smoother transitions */
    overflow: hidden;
}

@keyframes backgroundSlide {
    0% {
        background: url('images/header-bg.jpg') center/cover no-repeat;
        transform: scale(1);
        opacity: 1;
    }
    30% {
        background: url('images/header-bg.jpg') center/cover no-repeat;
        transform: scale(1.05);
        opacity: 1;
    }
    33.33% {
        background: url('images/header-bg2.jpg') center/cover no-repeat;
        transform: scale(1);
        opacity: 0.98; /* Slightly reduced opacity for smoother fade */
    }
    63.33% {
        background: url('images/header-bg2.jpg') center/cover no-repeat;
        transform: scale(1.05);
        opacity: 1;
    }
    66.66% {
        background: url('images/header-bg3.jpg') center/cover no-repeat;
        transform: scale(1);
        opacity: 0.98;
    }
    96.66% {
        background: url('images/header-bg3.jpg') center/cover no-repeat;
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        background: url('images/header-bg.jpg') center/cover no-repeat;
        transform: scale(1);
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
    /* Removed the black box background: background: rgba(0, 0, 0, 0.5); */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.product-content .category {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-content .description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.product-content .price {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.image-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-stack-top {
    position: relative;
    width: 80%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    margin-left: auto;
}

.image-stack-top img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-stack-bottom {
    position: absolute;
    width: 80%;
    bottom: -20px;
    left: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-stack-bottom img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Testimonials */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--lightest-green);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: left 0.6s ease;
}

.testimonial-card:hover::after {
    left: 100%;
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
}

.footer-column h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    max-width: 350px;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-details {
    margin: 1rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--primary-light);
    font-size: 1rem;
    width: 20px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
    }

    .footer-contact {
        text-align: center;
        max-width: 100%;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-stack {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .navbar-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}