@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Color Palette */
.bg-dark-blue {
    background-color: #0f172a;
}

.text-dark-blue {
    color: #0f172a;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

.text-warning {
    color: #f59e0b !important; /* Gold color for highlights */
}

.btn-dark-blue {
    background-color: #0f172a;
    color: white;
    border: 2px solid #0f172a;
}

.btn-dark-blue:hover {
    background-color: transparent;
    color: #0f172a;
}

/* Navbar Tweaks */
.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: #f59e0b !important;
}

/* Smooth Scroll Padding */
section {
    scroll-margin-top: 70px;
}

/* Card Hover Effects */
.hover-effect div {
    transition: transform 0.3s ease, background-color 0.3s;
}

.hover-effect:hover div {
    transform: translateY(-5px);
    background-color: rgba(255,255,255,0.1);
}

/* Carousel Caption Background */
.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 2rem;
}


.carousel-caption {
    background: rgba(15, 23, 42, 0.85); 
    border-radius: 10px;
    padding: 20px !important; /* Adds breathing room inside the box */
    
    /* Center the box and keep it away from edges */
    left: 5% !important; 
    right: 5% !important;
    bottom: 20px !important;
    width: 90% !important;
}

/* 2. Mobile Specific Fixes */
@media (max-width: 768px) {
    /* Force images to be tall enough on phone so text doesn't cover the whole picture */
    .carousel-item img {
        height: 500px !important; /* Taller height for mobile */
        object-fit: cover;
    }
    
    /* Make text smaller on phone so it fits */
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* --- FINAL MOBILE FIXES --- */

/* 1. Fix the "White Line" on the right */
html, body {
    overflow-x: hidden; /* Nuclear option: cuts off anything that sticks out */
    width: 100%;
    position: relative;
}

/* 2. Fix Navbar covering your photo on mobile */
@media (max-width: 991px) {
    #intro {
        /* Adds extra breathing room at the top ONLY on mobile */
        /* This pushes your photo down so the navbar doesn't cover it */
        padding-top: 130px !important; 
        padding-bottom: 50px;
    }

    /* Optional: Ensure the photo doesn't touch the edges */
    #intro img {
        margin-top: 20px;
        max-width: 80%; /* Makes image slightly smaller on phone for cleaner look */
    }
}
