/* Base Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #FF9800;
    --dark-green: #2E7D32;
    --light-green: #A5D6A7;
    --accent-color: #FFC107;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--dark-green);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #f9d401;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #F57C00;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header Styles - Updated with yellow background */
header {
    background-color: rgba(249, 212, 1, 0.95); /* #f9d401 with slight transparency */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

header.scrolled {
    padding: 0;
    background-color: rgba(249, 212, 1, 0.98); /* #f9d401 with less transparency when scrolled */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    max-height: 50px;
    transition: var(--transition);
}

.nav-links {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding-bottom: 5px;
    position: relative;
}

/* Update nav underline - remove from active links */
.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

/* Remove this rule or change it to not show the underline */
.nav-links a.active::after {
    width: 0; /* Set to 0 to hide the underline */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-cta {
    margin-left: 40px;
}

.btn-nav {
    padding: 8px 15px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 10;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333; /* Darker color for better visibility on yellow */
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--primary-color);
}

/* Hero Section - Full Screen */
.hero {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(165, 214, 167, 0.3), rgba(255, 193, 7, 0.2));
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px; /* Account for fixed header */
    padding-bottom: 20px;
    height: 100%;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    animation: fadeInLeft 1s ease;
}

.hero-image {
    position: relative;
    flex: 1;
    text-align: center;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    transform-origin: center center; /* Ensure it rotates from center */
}

.hero-image:hover img {
    transform: scale(1.1) rotate(3deg); /* Add rotation with scale */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.7;
}

/* Add animations for hero content */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero button - Yellow color */
.hero .btn-primary {
    background-color: #f9d401; /* Match header yellow */
    color: #333; /* Darker text for better contrast on yellow */
}

.hero .btn-primary:hover {
    background-color: #e6c400; /* Slightly darker yellow on hover */
    box-shadow: 0 4px 12px rgba(249, 212, 1, 0.4);
    color: #333;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

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

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-green);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer; /* Add pointer cursor to indicate clickable */
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-details {
    padding: 20px;
}

.product-details h3 {
    margin-bottom: 15px;
    color: var(--dark-green);
}

.product-details p {
    margin-bottom: 20px;
    color: var(--light-text);
}

/* Product section yellow buttons */
.products .btn-secondary {
    background-color: #f9d401; /* Yellow to match the header */
    color: #333; /* Darker text color for better readability on yellow */
}

.products .btn-secondary:hover {
    background-color: #e6c400; /* Slightly darker yellow on hover */
    box-shadow: 0 4px 12px rgba(249, 212, 1, 0.4);
    color: #333;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(165, 214, 167, 0.2), rgba(255, 193, 7, 0.1));
}

.about .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.about-content {
    flex: 1;
    padding-right: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-content p {
    margin-bottom: 20px;
}

.company-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.company-logos img {
    height: 80px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 25px;
    color: var(--dark-green);
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.world-map {
    margin-top: 30px;
}

.world-map img {
    width: 100%;
    opacity: 0.7;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

/* Style website links in contact info to match text */
.contact-info .info-item a {
    color: inherit;
    text-decoration: none;
}

.contact-info .info-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Footer Map Styling */
.footer-map {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}

.map-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content, 
    .hero-image {
        max-width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .nav-cta {
        margin-left: 20px;
    }
    
    .nav-links li {
        margin-left: 25px;
    }
    
    .hero p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 110px 0 60px;
    }
    
    .hero .container {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
    }
    
    .hero-content {
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 15px;
    }
    
    /* Make "Premium Solutions for" smaller */
    .hero h1 > span:not([class]), 
    .hero h1::first-line {
        font-size: 85%;
    }
    
    /* Remove text shadow from Mango Farmers */
    .hero h1 span {
        display: block;
        font-size: 110%;
        margin-top: 5px;
        color: var(--primary-color);
        text-shadow: none; /* Remove shadow */
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-image img {
        max-width: 100%;
        max-height: 40vh;
        object-fit: contain;
    }
    
    /* Adjust animation for mobile */
    @keyframes fadeInRight {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero-content {
        animation: fadeInLeft 0.8s ease;
    }
    
    .hero-image {
        animation: fadeInRight 0.8s ease;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(135deg, 
                    rgba(255, 222, 49, 0.97) 0%, 
                    rgba(249, 212, 1, 0.97) 50%,
                    rgba(242, 201, 0, 0.97) 100%);
        backdrop-filter: blur(5px);
        box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3), 
                    -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: 0.5s ease;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        height: auto;
        width: 100%;
        margin: 0;
        padding: 10px 0;
        text-align: center;
    }
    
    .nav-links a {
        height: auto;
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 12px 0;
    }
    
    .nav-links a:not(.btn-nav)::after {
        bottom: 5px;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
    
    .btn-nav {
        display: inline-block;
        width: 80%;
        margin: 5px auto;
        text-align: center;
        padding: 12px 20px;
    }
    
    .hamburger {
        display: block;
        margin-right: 5px;
    }
    
    header .container {
        height: 70px;
    }
    
    .features {
        padding: 60px 0 40px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .feature-card {
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 170px; /* Control height */
        justify-content: center;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-card img {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
        transition: transform 0.3s ease;
    }
    
    .feature-card:hover img {
        transform: scale(1.15);
    }
    
    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.35;
        margin-bottom: 0;
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
    }
    
    .footer-map {
        grid-column: span 2;
        order: 4;
    }
    
    /* Hide the Exporting Countries section */
    .footer-links {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .logo img {
        height: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h1::after {
        width: 60px;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero .btn-primary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hero-image img {
        max-height: 35vh;
    }
    
    .features,
    .products,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .company-logos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .nav-links {
        width: 85%;
    }
    
    .nav-links li {
        padding: 8px 0;
    }
    
    .btn-nav {
        width: 90%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-map {
        grid-column: span 1;
    }
}

/* Add to prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Lightbox for Product Images */
.product-image {
    cursor: pointer; /* Add pointer cursor to indicate clickable */
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: 0.3s ease;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80vh;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}

#lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 50px;
    font-size: 18px;
}

/* Form Confirmation Message */
.form-confirmation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s;
}

.close-confirmation {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-confirmation:hover {
    color: #666;
}

.confirmation-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.confirmation-content h3 {
    margin-bottom: 15px;
    color: var(--dark-green);
    font-size: 1.8rem;
}

.confirmation-content p {
    margin-bottom: 25px;
    color: var(--light-text);
}

.confirmation-content .btn-primary {
    min-width: 100px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0; /* Changed from 40px to 0 since there's no heading anymore */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 250px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

@media screen and (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 200px;
    }
}
