html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.slider_section {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

#customCarousel1 {
    width: 100%;
    height: 100%;
}

.carousel-inner,
.carousel-item {
    width: 100%;
    height: 100%;
    min-height: 650px;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000; /* Fallback color */
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Smooth fade transition */
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.carousel-item .container {
    position: relative;
    height: 100%;
    z-index: 2;
}

.row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-box {
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.col-lg-8 {
    margin: 0 auto;
}

.custom-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.small-text {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 1.5s ease;
    transition-delay: 0.3s;
}

.large-text {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.5s ease;
    transition-delay: 0.6s;
    margin-bottom: 1rem;
}

.medium-text {
    font-size: 1.5rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.5s ease;
    transition-delay: 0.9s;
    margin-bottom: 1.5rem;
}

.custom-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 2rem;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.5s ease;
    transition-delay: 1.2s;
    background: linear-gradient(145deg, #6a4b20, #8a6b40);
    border: 2px solid #5a3b10;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.custom-btn:hover {
    background: linear-gradient(145deg, #8a6b40, #6a4b20);
    transform: translateY(48px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
}

.carousel-item.active .small-text,
.carousel-item.active .large-text,
.carousel-item.active .medium-text,
.carousel-item.active .custom-btn {
    transform: translateY(0);
    opacity: 1;
}

.text-shadow {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    font-size: 2rem;
    color: #ffffff;
}

.container {
    max-width: 100%;
    padding: 0 15px;
}