/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2c5f2d;
    --secondary-color: #97bc62;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Header and Navigation Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 60px;
    transition: var(--transition);
}

.logo-container:hover img {
    transform: scale(1.05);
}

.company-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.company-name .tagline {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-button {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-button:hover {
    background-color: #234c24;
    transform: translateY(-2px);
}

/* Hide menu icons by default */
.fa-bars, 
.fa-times {
    display: none !important;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Add these responsive styles for the header */
@media screen and (max-width: 992px) {
    .company-name h1 {
        font-size: 1.3rem;
    }
    
    .company-name .tagline {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }

    .logo-container img {
        height: 50px;
    }

    .company-name h1 {
        font-size: 1.1rem;
    }
    
    .company-name .tagline {
        font-size: 0.75rem;
    }

    .nav-links {
        position: fixed;
        background: var(--white);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 999;
        transition: 0.5s;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 30px;
    }

    .nav-links ul li {
        margin: 1rem 0;
    }

    .fa-bars, 
    .fa-times {
        display: block !important;
    }

    .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-button {
        margin-top: 1rem;
        display: inline-block;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .company-name .tagline {
        display: none;
    }

    .company-name h1 {
        font-size: 1rem;
    }

    .logo-container img {
        height: 45px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: #666;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #666;
    margin-bottom: 0;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.product-categories-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 3/4;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-image {
    position: relative;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: white;
    z-index: 1;
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.explore-btn {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 4rem 5% 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        gap: 2rem;
    }
}

@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: var(--white);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 999;
        transition: 0.5s;
    }

    .nav-links ul {
        flex-direction: column;
        padding: 30px;
    }

    .fa-bars, .fa-times {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-right: 0;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #234c24;
}


.button-loader {
    display: none;
}

.submitting .button-text {
    display: none;
}

.submitting .button-loader {
    display: inline-block;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.5s ease;
}

.notification.success {
    background-color: var(--primary-color);
}

.notification.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
