/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #fff8f0;
    overflow-x: hidden; /* Prevents horizontal scrolling as a failsafe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-header {
    display: flex;
    align-items: center;
    background: #ff6a00;
    color: #fff;
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #800000, #ff6a00);
    width: 15%;
    height: 100%;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.nav-container {
    display: flex;
    flex-direction: column;
    width: 85%;
    height: 100%;
}

.nav-container-top {
    display: flex;
    align-items: center;
    height: 50%;
    padding: 1rem 2rem;
    background-color: #0b0b0b;
    padding-left: 150px;
    color: #fff;
    border-bottom-left-radius: 25px;
    gap: 15px;
}

/* KEY DESKTOP FIX: Ensures email and phone are side-by-side on large screens */
.contact-info-wrapper {
    display: flex;
    align-items: center;
    gap: 25px; /* Adjust gap between email and phone */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-container-bottom {
    display: flex;
    align-items: center;
    height: 50%;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #ff6a00, #ffb700);
    color: #fff;
}

.nav-container_bottom-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.nav-container_bottom-left a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-container_bottom-left a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(to right, #800000, #ff6a00);
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    height: 510px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    animation: slide 21s infinite;
}
.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 100px;
    transition: color 0.3s ease;
}
.hero h2, .hero p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
@keyframes slide {
    0%, 12%   { transform: translateX(0); }
    16%, 24%  { transform: translateX(-100%); }
    28%, 36%  { transform: translateX(-200%); }
    40%, 48%  { transform: translateX(-300%); }
    52%, 60%  { transform: translateX(-400%); }
    64%, 72%  { transform: translateX(-500%); }
    76%, 84%  { transform: translateX(-600%); }
    88%, 100% { transform: translateX(-700%); }
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(to right, #800000, #ff6a00);
    color: white;
    padding: 20px 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    padding: 10px;
}

.stat-item h3 {
    font-size: 1.8rem;
}

/* Prize section */
.prizes {
    padding: 20px 0;
    background-color: #fff8f0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: #800000;
    margin-bottom: 10px;
}

.section-title p {
    color: #721c24;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.prizes-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.prizes-card:hover {
    transform: translateY(-5px);
}

.prizes-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700);
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.prize-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 10px;
}

.prizes-content {
    padding: 20px;
}

.prizes-content h3 {
    margin-bottom: 10px;
    color: #800000;
}

/* Steps section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.steps-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    padding-top: 70px;
    text-align: center;
}

.steps-card:hover {
    transform: translateY(-5px);
}

.steps-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700);
    color: white;
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 2;
}

.steps-content {
    padding: 20px;
}

/* Features section */
.features {
    padding: 60px 0;
    background-color: #fff8f0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background: linear-gradient(to right, #ff6a00, #ffb700);
    color: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: #800000;
}

/* Categories section */
.categories {
    padding: 60px 0;
    background-color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(128, 0, 0, 0.7));
    padding: 20px;
    color: white;
    text-align: center;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

/* Supply chain section */
.supply-chain {
    padding: 60px 0;
    background-color: #fff8f0;
}

.supply-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
    flex-wrap: wrap;
}

.supply-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: #e0c9a6;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 20%;
    flex-shrink: 0;
}

.step-icon {
    background: linear-gradient(to right, #800000, #ff6a00);
    color: white;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff8f0;
}

/* CTA section */
.cta {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/images/import.webp') center/cover no-repeat;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background-color: #fce4ec;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
    color: #721c24;
}

.client-info {
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    background-color: #0b0b0b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #ffb700;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #dca2a2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6a00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #9d3939;
}

/* Hamburger Menu (Initially Hidden on Desktop) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}

/* =================================== */
/* RESPONSIVE ADJUSTMENTS (TABLET) */
/* =================================== */
@media (max-width: 1024px) {
    .nav-container-top {
        padding-left: 20px;
        flex-wrap: wrap;
        height: auto;
        border-radius: 0;
    }
    .contact-info-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .nav-container-top .contact-value,
    .nav-container-top .contact-label {
        font-size: 0.9em;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .supply-steps::before {
        display: none;
    }
    .step {
        width: 33.33%;
        margin-bottom: 40px;
    }
}

/* =================================== */
/* RESPONSIVE ADJUSTMENTS (MOBILE) */
/* =================================== */
@media (max-width: 768px) {
    /* --- Header for Mobile --- */
    .top-header {
        flex-direction: column;
        height: auto;
        position: relative;
    }

    .logo-container, .nav-container {
        width: 100%;
    }
    
    .logo-container {
        height: 60px;
        padding: 5px;
    }
    .logo-container img {
        max-height: 50px;
        width: auto;
    }
    .nav-container-top {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 10px 5px;
        height: auto;
    }
    .contact-info-wrapper {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    .contact-label {
        display: none;
    }
    .contact-icon, .contact-value {
        font-size: 0.8em;
    }

    .nav-container-top > div[style*="margin-left: auto"] {
        margin-left: 0 !important;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-container-top .btn {
        padding: 8px 15px;
        font-size: 0.9em;
        min-height: unset;
        width: auto;
        flex-grow: 1;
        max-width: 180px;
    }
    
    .nav-container-bottom {
        justify-content: flex-end;
        height: 40px;
        padding: 0 1rem;
    }

    /* --- Mobile Menu --- */
    .nav-container_bottom-left {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ff6a00;
        padding: 10px 0;
        z-index: 10;
    }

    .nav-container_bottom-left.active {
        display: flex;
    }

    .hamburger-menu {
        display: block;
    }
    
    /* --- General Layout for Mobile --- */
    .hero {
        height: 400px;
    }

    /* KEY CHANGE: Hide the stats bar on mobile */
    .stats-bar {
        display: none;
    }

    h1, h2, .section-title h2 {
        font-size: 1.8rem;
    }
    .prizes-grid, .category-grid, .features-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .step {
        width: 50%;
    }
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    .section-title div[style*="justify-content: center"] span[style*="width: 180px"] {
        width: 100px !important;
    }
    .tabs-container .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tabs-container .tab-content {
        flex-direction: column;
        text-align: center;
    }
    .supply-chain .container[style*="display: flex"],
    .contact-us .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .step {
        width: 100%;
    }
    .section-title div[style*="justify-content: center"] span[style*="width: 180px"] {
        display: none !important;
    }
    .section-title h2 {
        font-size: 1.5rem;
        margin: 0 !important;
    }
    .contact-icon, .contact-value {
        font-size: 0.7em;
    }
}
