.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.carousel-inner,
.carousel-item {
    height: 85vh;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 85vh;
    background-position: center;
    background-size: cover;
    transition: transform 0.8s ease-in-out; /* smoother slide */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1; /* Overlay behind dots */
}

.content {
    position: relative;
    z-index: 2;
    color: white;
    height: 100%;
    padding: 0 5%;
}

.text-content {
   
    padding-top: 12vh;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-family: "Instrument Serif";
}

p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}


.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.circle-img-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-img {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-20px) translateX(15px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

.floating-dots {
    position: absolute;
    z-index: 2;
}

.dots-left {
    left: -100px;
    bottom: 100px;
    opacity: 0.7;
    animation: floatLeft 15s infinite linear;
}

.dots-right {
    right: -100px;
    top: 150px;
    opacity: 0.7;
    animation: floatRight 18s infinite linear;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: block;
    margin: 20px;
}

@keyframes floatLeft {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes floatRight {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(60px) rotate(-180deg);
    }

    100% {
        transform: translateY(0) rotate(-360deg);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .circle-img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    p.lead {
        font-size: 1.1rem;
    }

    .text-content {
        text-align: center;
        padding-top: 10vh;
    }

    .circle-img {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .btn {
        padding: 10px 25px;
    }

    .floating-dots {
        display: none;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .circle-img {
        width: 220px;
        height: 220px;
    }

    .btn {
        width: 100%;
        margin-right: 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}