/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5530;
    text-decoration: none;
}

.logo:hover {
    color: #1e3c21;
}

.logo img {
    width: 33px;
    height: 33px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2c5530;
}

.active {
    color: #2c5530;
    font-weight: bold;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/Home/tea-field.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #2c5530;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1e3c21;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature img {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.feature h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* Video Section */
.video-section {
    padding: 6rem 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.video-section h2 {
    color: #2c5530;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 42.75%;
    height: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-description {
    margin-top: 2.5rem;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Preview Section */
.about-preview {
    background-color: #f9f9f9;
    padding: 4rem 5%;
    text-align: center;
}

.about-preview h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.about-preview p {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: #2c5530;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #2c5530;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section {
    text-align: left;
}

.footer-section:last-child {
    text-align: right;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin: 0.5rem 0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #2c5530;
        border-radius: 10px;
        transition: all 0.3s linear;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu li a:hover {
        background-color: rgba(44, 85, 48, 0.1);
    }

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

    .video-section {
        padding: 3rem 5%;
    }
    
    .video-container {
        max-width: 100%;
        padding-bottom: 56.25%;
    }

    .video-section h2 {
        font-size: 1.8rem;
    }

    .video-description {
        font-size: 1.1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;  /* Stack sections vertically */
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section,
    .footer-section:last-child {
        text-align: center;  /* Center all text on mobile */
    }

    .footer-section h3 {
        margin-bottom: 0.8rem;
    }

    .footer-section p {
        margin: 0.3rem 0;
    }

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

/* Even smaller screens */
@media (max-width: 480px) {
    footer {
        padding: 2rem 5% 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

@media (max-width: 1400px) {
    .video-container {
        max-width: 1000px;
        padding-bottom: 45%;
    }
}

@media (max-width: 1200px) {
    .video-container {
        max-width: 900px;
        padding-bottom: 50.625%;
    }
}

/* Products Page */
.products-section {
    padding: 120px 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    position: relative;
    min-height: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-info h2 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.product-info p {
    margin-bottom: 3.5rem;
}

.product-info .price {
    color: #2c5530;
    font-weight: bold;
    position: absolute;
    bottom: 4rem;
    width: 100%;
    left: 0;
    text-align: center;
}

.product-info .cta-button {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    padding: 1rem 0;
}

/* About Page */
.about-section {
    padding: 120px 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h1 {
    color: #2c5530;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

/* Values Section */
.values-section {
    background-color: #f9f9f9;
    padding: 120px 5% 4rem;  /* Match about-section padding */
}

.values-section h2 {
    max-width: 1200px;
    margin: 0 auto 2rem;
    color: #2c5530;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #2c5530;
    margin: 1rem 0;
}

/* Contact Page Styles */
.contact-section {
    padding: 120px 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

.submit-button {
    background-color: #2c5530;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #1e3c21;
}

/* After Submit Form Status */
#form-status {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

#form-status:empty {
    display: none;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Slideshow styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.about-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    z-index: 2;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

/* Hamburger Menu Animation */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
