.carousel-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    margin-top: -80px; /* Adjust based on your navbar height */
    overflow: hidden;
    background: #000;
}

/* Track container */
.carousel-track {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Individual slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Content positioning and styling */
.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 50%;
    color: #fff;
    z-index: 3;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
    color: #85c1f7;
}

.carousel-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.7s;
}

.carousel-btn:hover {
    background: white;
    color: #0d47a1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;  
    border: 2px solid #0d47a1;
    transform: translateY(20px) scale(1.05);
}

/* Activate content animations when slide is active */
.carousel-slide.active .slide-content h1,
.carousel-slide.active .slide-content p,
.carousel-slide.active .carousel-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Background image handling */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 100%
    );
}

/* Navigation controls */
.carousel-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #59bfee;
    transform: scale(1.2);
}

.prev-btn,
.next-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn svg,
.next-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(20,255,114,0.2);
    border-color: #5db3e6;
}

