html {
    scroll-behavior: smooth;
}

body {
    background-color: #f2f7fb;
    display: flex;
    flex-direction: column;
}

html,
body {
    height: 100%;
}

main {
    flex: 1;
}

:root {
    --theme-color: #7826e7;
    --theme-bg: #212529;
    --theme-text: #f9f9f9;
}

.bg-theme-color {
    background: var(--theme-color) !important;
}

.text-theme-color {
    color: var(--theme-color);
}

.transition-navbar {
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.7) !important;
    backdrop-filter: blur(4px);
}

.carousel-wrapper {
    position: relative;
}

.carousel-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

.carousel-card {
    flex: 0 0 auto;
    width: 250px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding-bottom: 1rem;
    padding-top: 0.4rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    cursor: pointer;
    font-size: 3rem;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.btn-neu {
    background: #e0e0e0;
    border: none;
    border-radius: 12px;
    box-shadow: 6px 6px 16px #bebebe,
        -6px -6px 16px #ffffff;
    color: #333;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: box-shadow .2s ease-in-out;
}

.btn-neu:hover {
    box-shadow: 2px 2px 8px #bebebe,
        -2px -2px 8px #ffffff;
}

.landing-section {
    background: url('https://source.unsplash.com/1600x900/?technology,abstract') no-repeat center center;
    background-size: cover;
    /* height: 100vh; */
    /* full viewport height */
    position: relative;
}

.landing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* dark overlay */
    z-index: 0;
}

.landing-content {
    margin-top: 8rem;
    position: relative;
    z-index: 1;
}

.btn-hover-effect {
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-hover-effect:hover,
.btn-hover-effect:focus {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.btn-hover-effect-link:hover,
.btn-hover-effect-link:focus {
    background: black;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.02);
}

.captcha-container img {
    display: block;
    margin-bottom: 0.5rem;
}

#id_captcha_1 {
    width: 100%;
}

.bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(20px);
    transform: scale(1.1);
    /* avoids visible edges after blur */
    z-index: -1;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    color: #fff;
}

/* prevent white background on focus */
.bg-glass:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    /* remove Bootstrap blue glow */
    outline: transparent !important;
    border: none !important;
    color: #fff;
}

.bg-glass::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.text-box {
    background-color: rgba(120, 38, 231, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 9999px;
    padding: 1rem 1.5rem;
}

.navbar-custom {
    top: 1rem;
    width: 100%;
    max-width: 1000px;
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
}

/* Up to small (<576px) */
@media (max-width: 575.98px) {
    
}

/* Up to medium (<768px) */
@media (max-width: 767.98px) {
    
}

/* Up to large (<992px) */
@media (max-width: 991.98px) {
    .navbar-custom {
        width: 100%;
        background-color: rgba(31, 41, 55, 0.5);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        z-index: 50;
        padding: 1rem 1.5rem !important;
        border-radius: 0 !important;
        top: 0 !important;
    }
}

/* Up to extra-large (<1200px) */
@media (max-width: 1199.98px) {}

/* Up to xxl (<1400px) */
@media (max-width: 1399.98px) {}