@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Variables & Reset --- */
:root {
    --primary-color: #1C4D8D;   /* Black */
    --accent-color: #A2D5C6;    /* Sage Green */
    --text-dark: #000000;       /* Black */
    --bg-light: #F6F6F6;        /* Off White */
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

/* Animated Underline for standard links */
.nav-links li:not(:last-child) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li:not(:last-child) a:hover::after {
    width: 100%;
}

.nav-links li:not(:last-child) a:hover {
    color: var(--accent-color);
}

/* CTA Button Style for the last link (Contact) */
.nav-links li:last-child a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-links li:last-child a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)), url('https://via.placeholder.com/1920x600?text=Global+Trade');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover { background: #e0e0e0; }

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Grid System (Products & Blog) --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ddd;
}

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.card-text { font-size: 0.9rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

/* Product Card Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.card-btn.outline { border: 1px solid var(--primary-color); color: var(--primary-color); }
.card-btn.outline:hover { background: rgba(0, 0, 0, 0.05); }

.card-btn.fill { background: var(--primary-color); color: var(--white); }
.card-btn.fill:hover { background: var(--accent-color); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 60px;
}

/* Left Panel: Contact Info */
.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
}

.contact-info h3 { color: var(--white); margin-bottom: 20px; font-size: 1.4rem; }
.contact-info p { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; line-height: 1.5; opacity: 0.9; }
.contact-info svg { flex-shrink: 0; width: 20px; height: 20px; fill: var(--white); margin-top: 3px; }

/* Right Panel: Form */
.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.form-group button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Map & Extras --- */
.map-container {
    margin-top: 50px;
    width: 100%;
    height: 450px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

.whatsapp-btn {
    background-color: #25D366;
    color: var(--white);
    border: none;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.whatsapp-btn:hover { background-color: #128C7E; transform: translateY(-2px); }

/* --- Footer --- */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        gap: 15px;
    }
    .nav-links.active { display: flex; }
    
    /* Reset CTA style for mobile to fit menu */
    .nav-links li:last-child a {
        display: block;
        text-align: center;
    }
    .menu-toggle { display: block; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .grid-layout { grid-template-columns: 1fr; }
}

/* --- Modal (Popup) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--text-dark); }

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.8;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* --- Search Bar --- */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- About Page Specifics --- */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission, .vision {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
    transition: var(--transition);
}

.vision { border-top-color: var(--accent-color); }

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mission h3, .vision h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Footer Socials */
.footer-social { margin-bottom: 20px; }
.footer-social h4 { color: #fff; margin-bottom: 15px; }
.social-icons { display: flex; gap: 15px; justify-content: center; }
.social-icons a {
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Button Helper for About Page */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-grid, .mission-vision { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 30px; }
}

/* --- Hero Slider Animation --- */
.product-hero {
    position: relative;
    background: transparent !important; /* Override default hero styles */
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 16s infinite;
}

.slide-item:nth-child(1) { animation-delay: 0s; }
.slide-item:nth-child(2) { animation-delay: 4s; }
.slide-item:nth-child(3) { animation-delay: 8s; }
.slide-item:nth-child(4) { animation-delay: 12s; }

@keyframes slideFade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: -1;
}
