/* Explain: Component styles for UI elements and layout. - */
.site-header {
    background: var(--nav-bg);
}

.btn {
    transition: all 300ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.application-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--surface-color);
}

.application-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
    .application-badge {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

.swiper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.swiper::-webkit-scrollbar {
    display: none;
}

.swiper-wrapper {
    display: flex;
    gap: 1.25rem;
    align-items: stretch;
}

.swiper-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: auto;
}

@media (min-width: 640px) {
    .swiper-slide {
        flex-basis: calc((100% - 1.25rem) / 2);
    }
}

@media (min-width: 1024px) {
    .swiper-slide {
        flex-basis: calc((100% - 3.75rem) / 4);
    }
}

@media (min-width: 1280px) {
    .swiper-slide {
        flex-basis: calc((100% - 5rem) / 5);
    }
}

@keyframes preloader-slide {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 70%; transform: translateX(20%); }
    100% { width: 100%; transform: translateX(100%); }
}

.preloader-bar {
    animation: preloader-slide 1.5s infinite ease-in-out;
}

@keyframes flipY {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.animate-flip-y {
    animation: flipY 6s linear infinite;
    transform-style: preserve-3d;
}