html {
    scroll-behavior: smooth;
}
body { font-family: 'Poppins', sans-serif; }
.navbar-brand { color: #facc15 !important; font-weight: 700; }
.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
#contact { background: #000; color: #fff; }
#heroSlider .carousel-item img {
    height: 500px; /* adjust height as needed */
    object-fit: cover; /* ensures image covers the container without stretching */
}

/* Optional: adjust caption position */
#heroSlider .carousel-caption {
    bottom: 20px; /* move captions a bit up from the bottom */
}

@media (max-width: 768px) {
    #heroSlider .carousel-item img {
        height: 250px; /* smaller height on mobile */
    }
}
/* Navbar link hover */
.navbar-nav .nav-link {
    color: #000 !important; /* default link color */
    position: relative;
    transition: color 0.3s ease;
}

/* Change color on hover */
.navbar-nav .nav-link:hover {
    color: #dc2626 !important; /* red on hover */
}

/* Optional: add underline animation */
.navbar-nav .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s;
    margin-top: 5px;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.sticky-top {
    transition: box-shadow 0.3s;
}

.sticky-top.scrolled {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* General mobile fixes */
@media (max-width: 576px) {

    .navbar-brand {
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .navbar-brand img {
        height: 35px !important;
        margin-right: 10px;
    }

    .navbar-brand span {
        font-size: 14px !important;
        line-height: 1.1;
    }

    .navbar-brand small {
        font-size: 10px !important;
        line-height: 1.2;
        white-space: normal !important; /* Allow wrapping */
        max-width: 150px; /* Keeps it clean */
        display: block;
    }
    /* Carousel height control */
    #heroSlider .carousel-item img {
        height: 280px;
        object-fit: cover;
    }

    /* Show captions on mobile */
    .carousel-caption {
        display: block !important;
        text-align: left !important;
        padding-bottom: 1.5rem;
    }
    .carousel-caption h3 {
        font-size: 1.1rem;
    }
    .carousel-caption p {
        font-size: 0.85rem;
    }

    /* Card adjustments */
    .card img {
        height: 180px;
        object-fit: cover;
    }
    .card-title {
        font-size: 1rem;
    }

    /* About icons smaller */
    #about i {
        font-size: 1.8rem !important;
    }

    /* Contact buttons full width */
    #contact a.btn {
        width: 100%;
        margin-bottom: 10px;
    }

    footer .col-md-4,
    footer .col-md-8 {
        text-align: center !important;
        margin-bottom: 20px;
    }

    footer img {
        margin: 0 auto 10px auto;
        display: block;
        height: 40px !important;
    }

    footer small {
        font-size: 10px !important;
        display: block;
        line-height: 1.3;
    }

    footer .row > div {
        text-align: center !important;
    }

    /* Fix for footer links and contact info */
    footer ul,
    footer p {
        text-align: center !important;
    }

    /* Ensure columns stack properly */
    footer .col-6 {
        width: 100% !important;
    }
}
