/* Reset and Base Styles */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}*/

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 400px/*100vh*/;
    overflow: hidden;
    background-color: #000;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background Images with Dark Overlay */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

/* Floating Text Overlay */
.floating-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
    z-index: 3;
}

/* Text floating animation triggers when slide becomes active */
.floating-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.4s;
}

.floating-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.6s;
}

.floating-text .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.8s, background 0.2s ease;
}

.floating-text .btn:hover {
    background-color: #ff1a1a;
}

/* Active State Animations for Floating Text */
.slide.active .floating-text h2,
.slide.active .floating-text p,
.slide.active .floating-text .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Controls (Arrows) */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* Navigation Dots */
.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .floating-text {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .floating-text h2 { font-size: 2.2rem; }
    .floating-text p { font-size: 1.3rem; }
    .arrow { padding: 0.6rem 0.9rem; font-size: 1.5rem; }
}