/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}
.nav-logo h2 {
    color: #2c5530;
    font-weight: 700;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #2c5530;
}
.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-login,
.btn-primary,
.btn-secondary {
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
    border: none;
}
.btn-login {
    background: none;
    border: 2px solid #2c5530;
    color: #2c5530;
}
.btn-login:hover {
    background: #2c5530;
    color: #fff;
}
.btn-primary {
    background: #2c5530;
    color: #fff;
}
.btn-primary:hover {
    background: #1e3a22;
}
.btn-secondary {
    background: #f8f9fa;
    color: #2c5530;
    border: 2px solid #2c5530;
}
.btn-secondary:hover {
    background: #2c5530;
    color: #fff;
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content {
    flex: 1 1 400px;
    min-width: 320px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c5530;
    font-weight: 500;
    background: #f7faf7;
    border-radius: 18px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(44,85,48,0.06);
    font-size: 1rem;
}
.feature i {
    font-size: 1.1rem;
}
.hero-image {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(44,85,48,0.12);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-card img {
    width: 320px;
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(44,85,48,0.10);
    background: #fff;
}
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .hero-image-card {
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* --- Products Section --- */
.products {
    padding: 80px 0;
    background: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.1rem;
    color: #666;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-image {
    height: 200px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 1.5rem;
}
.product-info h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.product-info p {
    color: #666;
    margin-bottom: 1rem;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
}
.unit {
    color: #666;
}
.btn-add {
    width: 100%;
    background: #2c5530;
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.8rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.btn-add:hover {
    background: #1e3a22;
}

/* --- Features Section --- */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.feature-icon i {
    font-size: 2rem;
    color: #fff;
}
.feature-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
    padding: 80px 0;
    background: #fff;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.contact-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44,85,48,0.1);
    border-color: #2c5530;
}
.contact-icon {
    width: 60px;
    height: 60px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.contact-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.contact-card h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.contact-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}
.contact-form-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(44,85,48,0.08);
}
.contact-form h3 {
    color: #2c5530;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5530;
    font-weight: 500;
    font-size: 0.95rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2c5530;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44,85,48,0.1);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button {
    width: 100%;
    margin-top: 1rem;
}
.contact-map {
    text-align: center;
}
.contact-map h3 {
    color: #2c5530;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- About Section --- */
.about {
    padding: 80px 0;
    background: #fff;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1.5rem;
}
.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.about-features {
    list-style: none;
    margin-bottom: 2rem;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #2c5530;
    font-weight: 500;
}
.about-features i {
    color: #28a745;
    font-size: 1.2rem;
}
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5530 0%, #1e3a22 100%);
    color: #fff;
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3,
.footer-section h4 {
    color: #2c5530;
    margin-bottom: 1rem;
}
.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: #2c5530;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    width: 40px;
    height: 40px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}
.social-links a:hover {
    background: #1e3a22;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}

/* --- Login Form --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-form label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.login-form input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

/* --- Sign Up Modal --- */
.signup-modal-content {
    max-width: 350px;
    padding: 1.5rem 1rem 1.2rem 1rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,85,48,0.12);
    background: #fff;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.signup-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.signup-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(44,85,48,0.08);
    object-fit: cover;
}
.signup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 0.3rem;
}
.signup-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}
.signup-form {
    width: 100%;
    margin-bottom: 1rem;
}
.signup-form .form-group {
    margin-bottom: 0.8rem;
    text-align: left;
}
.signup-form label {
    font-weight: 500;
    color: #2c5530;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}
.signup-form input,
.signup-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f7faf7;
    transition: border-color 0.2s;
}
.signup-form input:focus,
.signup-form select:focus {
    border-color: #2c5530;
    outline: none;
}
.signup-btn {
    width: 100%;
    margin-top: 0.7rem;
    background: #2c5530;
    color: #fff;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7rem 0;
    border: none;
    transition: background 0.3s;
}
.signup-btn:hover {
    background: #1e3a22;
}
.signup-footer {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: #888;
}
.signup-footer a {
    color: #2c5530;
    font-weight: 500;
    text-decoration: underline;
}
@media (max-width: 500px) {
    .signup-modal-content {
        padding: 1.5rem 0.5rem;
        max-width: 95vw;
    }
    .signup-avatar {
        width: 56px;
        height: 56px;
    }
}

/* --- Profile Modal --- */
.profile-modal-content {
    max-width: 350px;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,85,48,0.12);
    background: #fff;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(44,85,48,0.08);
    object-fit: cover;
}
#profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 0.5rem;
}
#profile-email {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.profile-details {
    width: 100%;
    text-align: left;
    margin-bottom: 1.2rem;
}
.profile-details h3 {
    font-size: 1.1rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.profile-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-details li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    color: #333;
}
.profile-details strong {
    color: #2c5530;
}

/* --- Profile Icon --- */
.profile-icon {
    position: absolute;
    top: 24px;
    right: 32px;
    cursor: pointer;
    z-index: 100;
}
.profile-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(44,85,48,0.08);
    object-fit: cover;
    border: 2px solid #2c5530;
}
@media (max-width: 768px) {
    .profile-icon {
        top: 16px;
        right: 16px;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .section-header h2,
    .cta-content h2,
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 500px) {
    .container {
        padding: 0 10px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .modal-content,
    .signup-modal-content,
    .profile-modal-content {
        padding: 1rem 0.5rem;
        max-width: 95vw;
    }
}
.hidden {
    display: none !important;
}