/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0A2647;
    --secondary-color: #144272;
    --accent-color: #205295;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 600;
}

.bg-light {
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #000;
}

.cta-container {
    text-align: center;
    margin-top: 40px;
}

.cta-container.text-left {
    text-align: left;
}


/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Sections --- */
.hero, .hero-subpage {
    position: relative;
    color: var(--white);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Ensures animations look clean */
}

.hero { height: 70vh; }
.hero-subpage { height: 45vh; } /* Increased height for more impact */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* UPDATED: Changed from a solid color to a modern gradient */
    background: linear-gradient(45deg, rgba(10, 38, 71, 0.85), rgba(20, 66, 114, 0.7));
    display: flex;
    flex-direction: column; /* This helps align the animated text */
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    /* ADDED: A subtle shadow to make the text stand out */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    /* ADDED: A fade-in animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    /* ADDED: A delayed fade-in animation */
    opacity: 0; /* Start hidden before animation begins */
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* ADDED: Keyframes for the fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Homepage: Companies Section --- */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.company-card {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.company-logo-img { /* Changed from .company-logo to .company-logo-img */
    width: 80px;
    height: 80px;
    border-radius: 50%; /* If your logos are circular, keep this. If square, remove. */
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image respects border-radius if any */
}

/* Specific background colors for logo containers (optional if logos are full circles with their own BG) */
.logo-foods { background-color: #8CC63F; } /* From Image 1 */
.logo-spices { background-color: #A36B4F; } /* From Image 2 */
.logo-tech { background-color: #2F92D7; } /* From Image 3 */
.logo-education { background-color: #925AA7; } /* From Image 4 & 5 */
.logo-bookshop { background-color: #E2214C; } /* From Image 6 */

.company-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use 'contain' to ensure entire logo is visible */
    background-color: transparent; /* Assuming the logos themselves have the colored circle */
}


.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.company-card p {
    margin-bottom: 20px;
    min-height: 48px; /* To align buttons */
}

/* --- Sub-page Grids & Cards --- */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2-col-wide-right {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.feature-card i { color: var(--accent-color); margin-bottom: 15px; }
.feature-card h3 { margin-bottom: 10px; color: var(--primary-color); }
.feature-card ul { padding-left: 20px; list-style-type: disc; margin-top: 15px; }

.icon-box {
    text-align: center;
}
.icon-box i { color: var(--accent-color); margin-bottom: 15px; }
.icon-box h4 { margin-bottom: 10px; color: var(--secondary-color); }

.product-card {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card h4 { padding: 15px 15px 5px 15px; color: var(--primary-color); }
.product-card p { padding: 0 15px 15px 15px; }

.location-info {
    margin: 30px 0;
    line-height: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact p {
    margin: 0 15px;
}
.footer-contact, .social-media {
    display: flex;
}
.social-media a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 15px;
    transition: transform 0.3s;
}
.social-media a:hover {
    transform: scale(1.2);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .grid-2-col-wide-right {
        grid-template-columns: 1fr;
    }

    .companies-grid, .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero { height: 60vh; }
    .hero-subpage { height: 35vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }

    .grid-2, .grid-3, .grid-4, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}