html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
    background-image: url(img/space.jpg);
}

footer .footer-links a {
    color: #c5c5c5;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

footer .footer-links a:hover {
    color: #00d4ff; /* Matches the space blue we used earlier */
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* Fix for mobile: stack links vertically on small screens */
@media (max-width: 576px) {
    footer .footer-links a {
        display: block;
        border: none !important;
        padding: 10px 0;
        
    }
}

/* Base Navbar State */
#navbar {
    transition: all 0.4s ease-in-out;
    background-color: transparent; /* Start clear */
    padding: 20px 0; /* Wider padding at top */
    backdrop-filter: blur(0px); /* No blur yet */
}

/* Scrolled Navbar State */
#navbar.scrolled {
    background-color: rgba(1, 5, 29, 0.85); /* Dark blue with 85% opacity */
    padding: 10px 0; /* Shrinks the navbar slightly when scrolling */
    backdrop-filter: blur(10px); /* Blurs the space background behind it */
    border-bottom: 1px solid rgba(0, 212, 255, 0.2); /* Subtle glow line */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Nav Links Styling */
#navbar .nav-link {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

#navbar .nav-link:hover::after {
    width: 100%;
}

#navbar .nav-link:hover {
    color: #00d4ff !important;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .home1 {
        padding: 10px;
        min-height: auto;
    }

    .text2 {
        font-size: 18px;
        text-align: center;
    }

    .title {
        font-size: 50px;
    }

    p {
        margin: 0 20px;
    }

    footer .container {
        flex-direction: column;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    footer .text {
        margin-bottom: 20px;
        text-align: center;
    }

    footer .text a,
    footer .text p.copyright {
        font-size: 14px;
    }

    #navbar {
        padding: 10px;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-toggler {
        margin-left: auto;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

.comp {
    height: 300px;
}

.over {
    font-size: 50px;
}

.cc {
    margin-top: 15px;
    margin-left: -200px;
    font-size: 40px;
}

h1 {
    color: white;
}

p {
    color: white;
    font-size: 20px;
    margin: 0 50px;
}

#demo {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    overflow: hidden;
}

.carousel-item img {
    height: 500px; 
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-indicators [button] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
}

.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.navbar-toggler-icon {
    color: white;
}

.lead {
    font-size: 1.5rem;
}

.card-text {
    color: black;
}

.custom-link-btn {
    color: white;
    border-color: rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.custom-link-btn:hover {
    background-color: #00d4ff;
    border-color: #00d4ff;
    color: #01051d;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
}