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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f7f9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: #004d99; /* Deep Blue for Headings */
}

a {
    text-decoration: none;
    color: #007bff;
}

/* Navbar */
.navbar {
    background-color: #004d99;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-item a {
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.navbar-item a:hover {
    background-color: #003366;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff6f00; /* Vibrant Orange */
    color: white !important;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.btn:hover {
    background-color: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
.section {
    padding: 60px 0;
    border-radius: 12px;
    margin-bottom: 40px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    /* CORRECTED HERO BACKGROUND URL TO .png */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/static/african_market_bg.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: 12px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Image Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px; /* Standard professional height */
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
    color: white;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    width: 100%;
    padding: 30px 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: white;
}

.slide-content p {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works {
    text-align: center;
}

.flow-diagram-image {
    margin: 40px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
}

.how-it-works h2 {
    margin-bottom: 10px;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 25px;
    border-radius: 10px;
    background-color: #f8fbfd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e7ee;
}

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

.step-icon {
    font-size: 2.5rem;
    color: #ff6f00;
    margin-bottom: 15px;
    display: block;
}

.step h3 {
    margin-top: 0;
    color: #004d99;
}

/* Features Section */
.features {
    text-align: center;
    background-color: #e9f2ff; /* Light Blue Background */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #007bff;
}

.feature-item:hover {
    transform: scale(1.03);
    border-left-color: #ff6f00;
}

.icon {
    font-size: 2.2rem;
    color: #007bff;
    margin-bottom: 10px;
    height: 35px; /* Ensures vertical alignment consistency */
}

.icon-decentralized::before { content: "\f0ac"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Globe */
.icon-cost::before { content: "\f53a"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Money Bill Wave */
.icon-simple::before { content: "\f121"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Code */
.icon-secure::before { content: "\f023"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Lock */
.icon-scalability::before { content: "\f200"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Chart Line */
.icon-speed::before { content: "\f0e7"; font-family: 'Font Awesome 5 Free'; font-weight: 900; } /* Lightning Bolt */


/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #004d99;
    color: white;
    margin-bottom: 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: #003366;
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-menu {
        display: none; /* Hide menu on small screens for simplicity */
    }
    .navbar-container {
        justify-content: center;
    }
    .hero {
        padding: 60px 10px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .slider-container {
        height: 400px;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step {
        max-width: 90%;
        margin-bottom: 20px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

