
.slider {
    --primary: #20B4B7;
    --accent: #e83925;
    --glass: rgba(255, 255, 255, 0.1);
    --content-bg: rgba(255, 255, 255, 0.12);
    --transition-speed: 1.5s;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

body1, html1 {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 5;
    }

/* Background image zoom effect */
.bg-zoom {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 6s ease-out;
    z-index: -1;
}

.slide.active .bg-zoom {
    transform: scale(1);
}

/* Dark overlay for slides */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(70deg, rgba(0,0,0,0.6) 0%, transparent 80%);
    z-index: 0;
}

/* Content box with blur */
.content {
    position: relative;
    z-index: 10;
    margin-left: 8%;
    padding: 40px;
    width: 85%;
    max-width: 650px;
    color: white;
    background: var(--content-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s var(--easing);
    transition-delay: 0.5s;
}

.slide.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* Text styles */
.content h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0 0 15px;
    line-height: 1.2;
}

.content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Button styles */
.btn1 {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

    .btn1:hover {
        background: var(--accent);
        text-decoration-color:white;
        transform: scale(1.05);
    }

/* Animated boxes styles */
.box {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    z-index: 4;
    opacity: 0;
    transition: all 1.5s var(--easing);
}

.slide.active .box {
    opacity: 1;
    transform: scale(1);
}

/* Specific boxes positioning and size */
.box-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 20%;
    transition-delay: 0.8s;
    animation: float 8s infinite ease-in-out;
}

.box-2 {
    width: 240px;
    height: 240px;
    bottom: 15%;
    right: 8%;
    transition-delay: 1.1s;
    animation: float 10s infinite ease-in-out 1s;
}

.box-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 30%;
    transition-delay: 1.4s;
    animation: float 7s infinite ease-in-out;
    background: rgba(100, 181, 246, 0.2);
}

.box-4 {
    width: 200px;
    height: 200px;
    bottom: 40%;
    right: 20%;
    transition-delay: 1.6s;
    animation: float 12s infinite ease-in-out 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive styles */
@media (max-width: 268px) {
    .slide {
        justify-content: center;
    }

    .content {
        margin-left: 0;
        padding: 30px;
        width: 90%;
        text-align: center;
    }

    .nav-controls {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 20px;
    }

    .box {
        display: none; /* hide boxes on small screens if desired */
    }

    .slide::after {
        background: rgba(0,0,0,0.5);
    }
}

/* Navigation dots */
.nav-controls {
    position: absolute;
    bottom: 40px;
    left: 8%;
    z-index: 100;
    display: flex;
    gap: 15px;
}

.dot {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

    .dot.active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: white;
        animation: progress 5s linear forwards;
    }

@keyframes progress {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

