/* ============================
   GLOBAL IMAGE CONSTRAINTS
   ============================ */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    /* Default to cover for consistent behavior */
}

/* ============================
   HERO CAROUSEL STYLES
   ============================ */

.hero-carousel-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .hero-carousel-image {
        height: 280px;
    }
}

.hero-text {
    padding-right: 20px;
}

/* Sticky Navbar Enhancements */
.navbar.sticky-top {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    /* Semi-transparent bg-dark */
    z-index: 2000;
    /* Ensure it stays above everything */
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    object-fit: contain !important;
}

@media (max-width: 480px) {
    .navbar-brand img {
        max-height: 30px;
    }
}




/* ================= HERO SHOWROOM (CONTROLLED IMAGE) ================= */

.hero-section {
    position: relative;
    height: 72vh;
    /* controlled height */
    min-height: 500px;
    overflow: hidden;
}

.hero-fullscreen {
    height: 100%;
}

.hero-fullscreen .carousel-item {
    height: 100%;

    /* THIS IS THE KEY CHANGE */
    background-size: contain;
    /* NOT cover */
    background-position: center center;
    background-repeat: no-repeat;

    /* optional soft background fill */
    background-color: #0f0f0f;
}

/* Overlay */
.hero-overlay {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.25));
    display: flex;
    align-items: center;
}

/* Text */
.hero-title {
    color: #fff;
    font-size: 2.6rem;
    max-width: 720px;
}

.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.15rem;
    max-width: 600px;
}

/* Mobile tuning */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 420px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* ================= HERO CARD CAROUSEL ================= */

.hero-card-carousel {
    position: relative;
}

.hero-card {
    border-radius: 16px;
    overflow: hidden;
}

.hero-card-image {
    width: 100%;
    height: 420px;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Carousel controls with visible background */
.hero-control {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
    filter: invert(1);
}

/* Make sure controls stay above image */
.carousel-control-prev.hero-control,
.carousel-control-next.hero-control {
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-card-image {
        max-height: 280px;
    }
}

/* ================= HERO DARK BACKGROUND ================= */

.hero-dark-section {
    background: #0f1115;
    /* deep dark */
}

.hero-card {
    border-radius: 18px;
    overflow: hidden;
    background: #161a22;
    /* slightly lighter than background */
    max-width: 1100px;
}

.hero-card-image {
    max-height: 420px;
    object-fit: cover;
}

/* Controls always visible */
.hero-control {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
    filter: invert(1);
}

.carousel-control-prev.hero-control,
.carousel-control-next.hero-control {
    z-index: 10;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-card-image {
        max-height: 280px;
        height: 280px;
    }
}

/* Card Image Consistency */
.card-img-top {
    width: 100%;
    height: 220px !important;
    object-fit: cover !important;
}