/* === Color Palette & Variables === */
:root {
    --primary: #002147;       /* Dark Navy Blue */
    --accent: #D22E1F;        /* Vibrant Red */
    --bg-light: #F8FAFB;      /* Light grayish/blue background */
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* === Base Reset === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* === Hero Section with Particles === */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1586528116311-ad8ed7c83a7f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 20px 100px; /* Desktop Padding */
    overflow: hidden;
    height: auto; /* FIX: Prevents global stylesheets from squishing the container */
    min-height: 100vh;
}

/* Dark Navy Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.9) 0%, rgba(0, 33, 71, 0.7) 100%);
    z-index: 1;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    max-width: 750px;
    margin: 0 auto 50px auto;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* === Modern Buttons === */
.btn {
    padding: 16px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(210, 46, 31, 0.3);
}

.btn-primary:hover {
    background-color: #a82418;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(210, 46, 31, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === NEW: Hero Stats (Glassmorphism) === */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 70px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    transition: var(--transition);
    min-width: 250px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-item i {
    font-size: 34px;
    color: var(--accent);
}

.stat-item h4 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 2px 0;
    color: var(--white);
    line-height: 1;
}

.stat-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* === Supplier List Section === */
.supplier-list-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 38px;
    color: var(--primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 25px;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Modern Card Design */
.supplier-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.05);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.supplier-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.1);
    border-bottom: 4px solid var(--accent);
}

.card-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(210, 46, 31, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.supplier-card:hover .card-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.supplier-card h3 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.card-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.card-detail i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.supplier-card p.description {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* === Supplier Form Section === */
.supplier-form-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.form-container {
    background: var(--bg-light);
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.08);
    border: 1px solid rgba(0, 33, 71, 0.05);
}

.form-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 25px;
    flex: 1;
    min-width: 280px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5ea;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    background-color: var(--white);
    transition: var(--transition);
    box-sizing: border-box;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(210, 46, 31, 0.1);
    outline: none;
    background-color: var(--white);
}

textarea.form-control {
    resize: vertical;
    height: 140px;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(210, 46, 31, 0.2);
}

/* ========================================== */
/* === Responsive / Mobile Optimization ===   */
/* ========================================== */
@media(max-width: 768px) {
    /* FIX: Force height to wrap content, overriding any global '100vh' rules */
    .hero {
        padding: 120px 15px 80px; 
        height: auto !important; 
        min-height: auto;
    }
    .hero h1 {
        font-size: 32px; 
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 16px; 
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 45px;
    }
    
    /* FIX: Removed conflicting animation so it relies purely on your AOS settings */
    .stat-item {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 15px 20px;
        opacity: 1; /* Ensures AOS works correctly */
    }

    .supplier-list-section,
    .supplier-form-section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .section-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .supplier-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .supplier-card {
        padding: 25px 20px;
    }

    .form-container {
        padding: 30px 15px;
        border-radius: 12px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-group {
        min-width: 100%; 
        margin-bottom: 20px;
    }
    .form-control {
        padding: 14px 15px;
        font-size: 15px;
    }
}