/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #020202;
    scroll-behavior: smooth;
}

/* Color Scheme */
:root {
    --primary-red: #d32f2f;
    --secondary-orange: #f57c00;
    --dark-grey: #000000; /* Solid black for header/footer */
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
}

.text-primary {
    color: var(--primary-red) !important;
}

.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-light);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    border-radius: 8px;
}

.btn-outline-light:hover {
    background-color: var(--secondary-orange);
    border-color: var(--secondary-orange);
}

/* Header */
.header {
    background: #000000; 
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.navbar {
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.logo {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(100%); /* Ensure logo visibility */
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 12px;
    padding: 8px 12px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: #f57c00 !important;
    background: rgba(245, 124, 0, 0.1);
    border-radius: 6px;
}

.dropdown-menu {
    background: #000000;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-top: 5px;
}

.dropdown-item {
    color: #ffffff;
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #d32f2f;
    color: #ffffff;
}

.search-form {
    max-width: 200px;
    margin-left: 15px;
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    background: #fff;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    border: none;
    background: #f57c00;
    color: #ffffff;
    padding: 6px 12px;
}

.search-form .btn:hover {
    background: #d32f2f;
}

.header.scrolled {
    background: #000000; /* Solid black on scroll */
}

/* Hero Slider */
.hero {
    margin-top: 70px;
}

.carousel-item {
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 8px;
    animation: fadeInUp 1s ease-in-out;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(0,0,0,0.3);
}

/* Sections */
.about, .services, .impact, .partners, .innovation-hub, .resources, .contact {
    padding: 60px 0;
}

.about, .resources, .partners {
    background: var(--light-grey);
}

.services, .impact, .innovation-hub {
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Cards */
.service-card, .impact-card, .hub-card, .resource-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover, .impact-card:hover, .hub-card:hover, .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card i, .hub-card i {
    color: var(--primary-red);
}

.service-card h5, .impact-card h5, .hub-card h5, .resource-card h5 {
    font-size: 1.3rem;
    margin: 10px 0;
    color: var(--text-dark);
}

.service-card p, .impact-card p, .hub-card p, .resource-card p {
    font-size: 0.9rem;
    color: #666;
}

.impact-card img, .resource-card img {
    border-radius: 10px;
    max-height: 180px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s;
}

.impact-card:hover img, .resource-card:hover img {
    transform: scale(1.03);
}

/* Stats */
.about h3 {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
}

/* Testimonial */
.testimonial {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    margin-top: 20px;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial cite {
    font-weight: 600;
    color: var(--primary-red);
}

/* Partners */
.partners img {
    max-height: 80px;
    object-fit: contain;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-grey) 100%);
    color: var(--white);
    padding: 40px 0;
}

.contact-info p {
    font-size: 1rem;
    margin: 10px 0;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--secondary-orange);
}

.contact-form .form-control {
    border-radius: 8px;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary-orange);
}

.footer a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--secondary-orange);
}

.social-icons a {
    margin-right: 15px;
    color: var(--white);
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--secondary-orange);
}

.newsletter-form .form-control {
    border-radius: 8px;
    padding: 10px;
    font-size: 0.9rem;
}

.newsletter-form button {
    width: 100%;
}

.revisit-consent {
    color: var(--secondary-orange);
    text-decoration: underline;
}

.revisit-consent:hover {
    color: var(--primary-red);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .carousel-item { height: 50vh; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption p { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .navbar-brand .logo { max-height: 40px; }
    .brand-name { font-size: 1.3rem; }
    .nav-link { font-size: 0.9rem; margin: 0 8px; }
    .search-form { max-width: 150px; }
    .dropdown-menu { background: #000000; }
}