/* Custom Utility Classes */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    @apply transition-colors duration-300 hover:text-primary;
}

.nav-link.active {
    @apply text-primary font-bold;
}

.mobile-nav-link {
    @apply py-3 border-b border-slate-50 block;
}

/* Portal Cards */
.portal-card {
    @apply flex items-center gap-5 p-6 rounded-[2rem] transition-all duration-300 transform hover:-translate-y-1 hover:shadow-xl;
}

.icon-box {
    @apply w-14 h-14 rounded-2xl flex items-center justify-center transition-colors duration-300;
}

.arrow {
    @apply text-primary font-bold text-xl transition-transform duration-300 group-hover:translate-x-2;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: #dc2f2f;
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

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

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

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

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

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

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

.animate-marquee {
    animation: marquee 25s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 25s linear infinite;
}

/* Pause on hover */
.group:hover .animate-marquee,
.group:hover .animate-marquee2 {
    animation-play-state: paused;
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

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

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

.step-inactive {
    display: none;
}

input,
select,
textarea {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

input:focus {
    border-color: #dc2f2f !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 47, 47, 0.1);
}

.clip-path-diagonal {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}
/* Allows the "group-[.is-active]" selector to work */
.fleet-item.is-active {
    opacity: 1 !important;
}

#fleet-image-display {
    transition:
        opacity 0.5s ease-in-out,
        transform 1s ease-out;
}

/* Soften the parallax effect */
.fleet-item {
    will-change: opacity, transform;
}
.swiper-pagination-bullet-active {
    background: #dc2f2f !important;
    width: 25px !important;
    border-radius: 5px !important;
}
