/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    position: relative; /* For positioning overlay and video */
}

/* Navbar Styles */
.navbar {
    background-color: #24a228;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #f0f0f0;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 60px; /* To prevent overlap with navbar */
    overflow: hidden;
}

.hero .hero-content {
    position: relative;
    z-index: 2; /* Above the overlay and video */
    height: 70vh;
    max-width: 600px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-primary {
    background-color: #ff7f50;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #ff6347;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Behind the overlay and content */
}

.hero-image video {
    width: 100%;
    height: 150%;
    object-fit: cover;
    border-radius: 10px;
}

/* Overlay for Hero Video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1; /* Between video and content */
}

/* Featured Products */
.featured-products {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #24a228;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #24a228;
}

.product-card p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.btn-secondary {
    background-color: #24a228;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary i {
    margin-right: 8px;
}

.btn-secondary:hover {
    background-color: #1e8b1e;
}

.btn-details {
    border: none;
    background-color: #82f050;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin: 10px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-details i {
    margin-right: 8px;
}

.btn-details:hover {
    background-color: #6ab34d;
}

.product-card .product-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #24a228;
}

.contact-section p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form .required {
    color: red;
    margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: #24a228;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #1e8b1e;
}

/* Contact Information */
.contact-info {
    max-width: 800px;
    margin: 0 auto 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #24a228;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-info a {
    color: #24a228;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #1e8b1e;
}

/* Map Section */
.map {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
}

/* Thank You Section */
.thank-you-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.thank-you-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #24a228;
}

.thank-you-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.thank-you-section .btn-primary {
    background-color: #ff7f50;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.thank-you-section .btn-primary:hover {
    background-color: #ff6347;
}

/* Download Prompt */
.download-prompt {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(36, 162, 40, 0.95);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    z-index: 1001;
    text-align: center;
}

.download-prompt .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.download-prompt a {
    display: inline-block;
    margin: 10px;
    color: #fff;
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer .social-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 18px;
}

.footer .social-links a:hover {
    color: #ff7f50;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #24a228;
        flex-direction: column;
        align-items: center;
        transition: left 0.3s ease;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        padding-top: 60px; /* Maintain space for navbar */
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .product-card {
        width: 90%;
    }

    /* Contact Section Adjustments */
    .contact-form, .contact-info {
        padding: 20px;
    }

    .contact-section p {
        font-size: 16px;
    }

    .contact-form button {
        width: 100%;
    }

    /* Thank You Section Adjustments */
    .thank-you-section h2 {
        font-size: 28px;
    }

    .thank-you-section p {
        font-size: 16px;
    }
}

/* Additional Enhancements */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade-in Animation for Products */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-grid .product-card {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.product-grid .product-card:nth-child(1) {
    animation-delay: 0.3s;
}

.product-grid .product-card:nth-child(2) {
    animation-delay: 0.5s;
}

.product-grid .product-card:nth-child(3) {
    animation-delay: 0.7s;
}

/* Hero Section Enhancements */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 60px; /* To prevent overlap with navbar */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2; /* Above the overlay and video */
    max-width: 600px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensuring Video Covers Entire Hero Section */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Behind the overlay and content */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    z-index: 1; /* Between video and content */
}
