/* Starry Background */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    z-index: 0;
}

.twinkling {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    background: radial-gradient(ellipse at bottom, rgba(245, 243, 243, 0.2), rgba(181, 178, 178, 0) 60%);
    animation: twinkle 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}




header h1,
header p {
    position: relative;
    z-index: 2;
    font-family: 'popins', sans-serif;
}

header a {
    position: relative;
    z-index: 3;
}

/* Auto-scroll Carousel */
.carousel {
    animation: auto-scroll 12s linear infinite;
}

@keyframes auto-scroll {
    0% {
        transform: translateX(0%);
    }

    5% {
        transform: translateX(-5%);
    }

    0% {
        transform: translateX(0%);
    }
}

.carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

@media (max-width: 768px) {
    header {
        padding: 20px 10px;
        max-height: 50% !important;
        min-height: 1% !important;
    }

    header h1 {
        font-size: 1.5rem;
        /* Smaller font size for mobile */
        margin-bottom: 10px;
    }

    header p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    #heroCarousel {
        max-height: 200px;
        /* Reduce height for mobile */
        width: 100%;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .carousel-inner {
        font-size: 1rem;
        /* Smaller text size for carousel items */
    }
}