.smart-scroll {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.scrolled-down {
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}


.scrolled-up {
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

#nav-bar-title,
#jumbotron-title {
    font-family: "Press Start 2P", cursive;
}

/*Abdallah changed background image here*/
/* JUMBOTRON STYLE HERE */
.custom-jumbotron {
    background: linear-gradient(
            rgba(0, 0, 250, 0.25),
            rgba(125, 250, 250, 0.45)
        ),
        url("/storage/resources/main_background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white !important;
    height: 100vh;
    background-size: cover;
    scrollbar-width: none;
}

.footer-btn,
.footer-btn:hover {
    cursor: pointer;
    text-decoration: none;
    color: black;
}

.nav-link {
    cursor: pointer;
}

.title {
    margin-top: 10vh;
}

.text_margin {
    width: 70vw;
    margin: 0 auto;
}

.string-1 {
    padding-top: 30px;
    padding-bottom: 30px;
    width: 600px;
    margin: -35px auto 0;
    font-weight: 100;
}

.content {
    margin: 10%;
}

br {
    margin: 20px;
}

/*
.navbar, footer {
    border: 0;
    border-radius: 0;
    background: linear-gradient(to left, #044c7f33, #044B7F);
} */

#jumbotron-text {
    /* white-space: nowrap; */
}

@media (max-width: 769px) {
    .navbar .link {
        padding-left: 10px;
        visibility: visible;
        width: 100%;
        font-size: 14px;
    }

    .navbar .navbar-brand .link {
        visibility: hidden;
    }

    .navbar .dropdown .dropdown-menu {
        text-align: left !important;
    }

    button[type="submit"] {
        width: 50%;
        float: left;
    }

    .navbar-form {
        border: 0;
    }

    .form-group {
        padding: 0;
        margin: 0;
    }

    /* Smooth scrolling for anchor links */
    html {
        scroll-behavior: smooth;
    }

    /* Parallel Courseware Section Styling */
    #parallel-courseware-section .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    #parallel-courseware-section .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

    #parallel-courseware-section .badge {
        font-size: 0.8em;
        padding: 0.25rem 0.5rem;
        vertical-align: baseline;
        margin: 0 2px;
    }

    /* Better spacing for checkmark icons */
    #parallel-courseware-section .fa-check-circle {
        flex-shrink: 0;
    }

    /* Icon alignment */
    #parallel-courseware-section .d-flex.align-items-start {
        line-height: 1.5;
    }

    /* Demo section specific styles */
    .demo-gif-container img {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .demo-gif-container img:hover {
        transform: scale(1.02);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    }

    .demo-description .badge {
        font-size: 0.75em;
        padding: 0.35rem 0.65rem;
    }

    .demo-description .list-unstyled li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f8f9fc;
    }

    .demo-description .list-unstyled li:last-child {
        border-bottom: none;
    }

    /* Responsive adjustments for demo section */
    @media (max-width: 991px) {
        .demo-gif-container {
            margin-bottom: 2rem;
        }

        .demo-description h5 {
            font-size: 1.1rem;
        }
    }

    /* Hero section */
    .hero-description {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-description p {
        margin-bottom: 0.75rem;
    }

    .hero-description p:last-child {
        margin-bottom: 0;
    }

    /* Better responsive spacing */
    @media (max-width: 768px) {
        .hero-description p.lead {
            font-size: 1.1rem !important;
        }

        .hero-description p:not(.lead) {
            font-size: 1rem !important;
        }

        #jumbotron-title {
            font-size: 4.5rem;
            margin-bottom: 1.5rem !important;
        }
    }

    @media (max-width: 576px) {
        #jumbotron-title {
            font-size: 1.5rem;
        }

        .hero-description {
            padding: 0 1rem;
        }
    }
}
