/* Prevent horizontal overflow on mobile */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Carousel */
.carousel-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

#hero [data-carousel-indicator] .carousel-indicator-line {
    width: 0.25rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.4);
}

#hero [data-carousel-indicator].is-active .carousel-indicator-line {
    width: 0.5rem;
    height: 4rem;
    background-color: rgb(59, 130, 246);
    box-shadow: 0 0 20px rgba(59, 130, 246, 1);
}

#hero .carousel-dot {
    background-color: rgba(255, 255, 255, 0.4);
}

#hero .carousel-dot.is-active {
    width: 1.5rem;
    background-color: rgb(59, 130, 246);
}

.about-carousel-dot {
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.about-carousel-dot.is-active {
    width: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
    .about-carousel-dot.is-active {
        width: 1.5rem;
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.glass-input {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #152842;
}

.glass-input:focus {
    outline: none;
    border-color: #1BB5EA;
    background: rgba(0, 0, 0, 0.05);
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Hero background zoom — desktop only to avoid mobile overflow */
.hero-bg-zoom {
    transform: scale(1);
}

@media (min-width: 1024px) {
    .hero-bg-zoom {
        animation: slowZoom 15s linear infinite;
    }
}

#header {
    --header-height: 64px;
}

@media (min-width: 640px) {
    #header {
        --header-height: 72px;
    }
}

#header:has(#header-bar.py-3) {
    --header-height: 56px;
}

@media (min-width: 640px) {
    #header:has(#header-bar.py-3) {
        --header-height: 60px;
    }
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: #152842;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 0;
    height: 2px;
    background-color: #1BB5EA; /* primary blue */
    transition: all 0.3s ease;
}

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

.nav-link:hover {
    color: #1BB5EA; /* primary blue */
}

.mobile-link {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    display: block;
}

.mobile-link:hover {
    color: #1BB5EA;
    padding-left: 0.5rem;
}

.mobile-link:last-of-type {
    border-bottom: none;
}

/* Form Error Styling (For jQuery Validate) */
label.error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Marquee Animation */
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 2rem));
    }
}

/* Marquee Styles (Second Block) */
.marquee {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 100%;
    animation: marqueeMove 28s linear infinite;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 14px;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    transform: scale(1.08);
    filter: grayscale(0%);
}

@keyframes marqueeMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile Touch Utilities */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on slider controls */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Smooth scrolling for iOS */
@supports (-webkit-touch-callout: none) {
    .h-screen {
        height: -webkit-fill-available;
    }
}

/* About section — prevent glow/image overflow on mobile */
#about .grid > * {
    min-width: 0;
}

#about [data-aos] {
    overflow: hidden;
}

/* Hero slider specific mobile optimizations */
@media (max-width: 1023px) {
    #hero h1 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    #hero .hero-slide-content {
        filter: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-\[slowZoom_15s_linear_infinite\] {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
