* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100vw; /* Forces absolutely everything to never exceed the screen width */
}/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--navy); 
}
::-webkit-scrollbar-thumb {
    background: var(--gold); 
    border-radius: 10px;
    border: 3px solid var(--navy); /* Creates a cool padded effect */
}
::-webkit-scrollbar-thumb:hover {
    background: white; 
}:root {
    --navy: #0a192f;
    --gold: #c5a059;
    --off-white: #f8f9fa;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    background-color: var(--navy); 
    color: var(--gold); 
    /* ADD THESE TWO LINES: */
    overflow-x: hidden; /* This completely disables left/right scrolling into white space! */
    width: 100%;
}

/* Sticky Navigation */
header {
    background: var(--navy);
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.hero-description {
    max-width: 800px; 
    width: 90%; /* Keeps it neatly inside the screen on phones */
    margin: 0 auto 30px auto; 
    font-size: 1.1rem;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows the menu to wrap to the next line if squeezed */
    gap: 15px; /* Adds space between the logo and the links when they wrap */
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap; /* Allows the links themselves to wrap on tiny screens */
    justify-content: center;
}
.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cta-mini {
    background: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--navy) !important;
    font-weight: bold;
}

/* Hero Section with BAAJ Logo Background */
.hero {
    height: 90vh;
    
    /* 1. This base color perfectly matches the dark navy edges of your logo */
    /* It fills the empty space so the image doesn't look like a cut-out box */
    background-color: #060e1c; 
    
    /* 2. The overlay gradient (also matched to the logo) and the image */
    background-image: linear-gradient(rgba(6, 14, 28, 0.85), rgba(6, 14, 28, 0.85)), 
                      url('images/baajlogo.jpeg'); 
                      
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
/* 3. Shrink the massive Hero text for small screens */
    .hero h1 {
    /* The Magic Line: clamp(minimum size, preferred size, maximum size) */
    font-size: clamp(1.8rem, 8vw, 3.5rem) !important; 
    line-height: 1.2;
    color: var(--gold);
    margin-bottom: 20px;
    word-wrap: break-word; /* Forces long words to snap to the next line */
}
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    border-radius: 5px;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid white;
    color: white;
    padding: 13px 38px;
    text-decoration: none;
    margin: 10px;
    border-radius: 5px;
}

/* Details Section */
.details-section {
    padding: 80px 15%;
    text-align: center;
    background: var(--off-white);
}
/* --- ANIMATIONS --- */

/* 1. The Fade In Effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 2. The Slide Up Effect */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px); /* Starts 40px lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends in its normal position */
    }
}/* Apply to the Hero Container */
.hero-content {
    animation: fadeIn 1s ease-out;
}

/* Staggered Slide Up Effects */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    /* Animation: Name | Duration | Timing | Delay | Fill Mode */
    animation: slideUp 1s ease-out 0.2s both; 
}

.hero p {
    animation: slideUp 1s ease-out 0.5s both;
}

.hero-btns {
    animation: slideUp 1s ease-out 0.8s both;
}
/* Update your existing button classes to add 'transition' */
.btn-primary, .btn-secondary, .cta-mini {
    transition: all 0.3s ease; /* Makes any changes smooth */
}

/* Hover effect for the Gold Button */
.btn-primary:hover {
    background: white;
    color: var(--navy);
    transform: translateY(-4px); /* Lifts the button up */
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4); /* Adds a subtle golden shadow */
}

/* Hover effect for the Transparent/White Button */
.btn-secondary:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Hover effect for the Donate button in the navbar */
.cta-mini:hover {
    transform: scale(1.05); /* Slightly enlarges the button */
    background: white;
}
/* --- MISSION OBJECTIVES GRID --- */
.mission-section {
    padding: 80px 10%;
    background-color: var(--white);
    text-align: center;
}

.mission-section h2 {
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.objectives-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap; /* Allows stacking on mobile screens */
}

.objective-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-10px);
}

.objective-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

/* --- TRANSPARENCY SECTION UPDATES --- */
.founders {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--navy);
}

.legal-details p {
    font-size: 0.9rem;
    color: #666;
}/* --- NEW CONTENT LAYOUTS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 10%;
}

.light-bg {
    background-color: var(--off-white);
}

.dark-bg {
    background-color: var(--navy);
    color: white;
}

.dark-bg h2 {
    color: var(--gold);
}

h2 {
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* Split Layouts (2 Columns) */
.split-layout {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.split-box, .contact-info, .legal-info {
    flex: 1;
    min-width: 300px;
}

/* Grids (3 and 4 Columns) */
.grid-3, .grid-4 {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    border-top: 4px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--navy);
    margin-bottom: 10px;
}

/* Specific Element Styling */
.activities-box, .values-box {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.inline-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.inline-list li {
    display: inline-block;
    background: var(--navy);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
}

/* Footer Tagline Update */
footer {
    background: #06101f;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-tagline {
    color: var(--gold);
    letter-spacing: 3px;
    margin: 10px 0;
    font-weight: bold;
/* --- MOBILE RESPONSIVENESS (NUCLEAR FIX) --- */
@media (max-width: 768px) {
    /* 1. Force the website to lock strictly to the phone screen width */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100% !important;
        position: relative;
    }

    /* 2. Fix the Navigation stacking */
    nav {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
        justify-content: center;
        padding: 0;
    }

    /* 3. Shrink the massive Title and force long words to break */
    .hero h1 {
        font-size: 2rem !important; 
        line-height: 1.2;
        word-wrap: break-word !important; 
        overflow-wrap: break-word !important;
        margin-top: 20px;
    }

    /* 4. Fix the boxes that are too wide for small phones */
    /* This overrides the 300px minimum we set for desktop */
    .split-box, .contact-info, .legal-info, .form-container, .card, .objective-card {
        min-width: 100% !important; 
        margin-bottom: 20px;
    }

    /* 5. Stack the layouts perfectly */
    .split-layout, .grid-3, .grid-4 {
        flex-direction: column;
        gap: 20px;
    }

    /* 6. Give the Hero text room to breathe below the navbar */
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding-top: 150px;
        padding-bottom: 50px;
    }

    /* 7. Stack the buttons */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 80%;
        margin: 0;
    }
}