/* Background image (replaces inline style on body) */
.bg-hero {
  background-image: url('../images/sky_bg.png');
  background-size: cover;
  background-position: center;
}

/* Custom scrollbar for horizontal scroll */
.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Smooth scrolling */
.horizontal-scroll {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Minimal utilities missing from our trimmed Tailwind build */
.max-w-8xl { max-width: 90rem; }
.p-4 { padding: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-gray-400 { color: #9ca3af; }
.cursor-pointer { cursor: pointer; }
.opacity-60 { opacity: 0.6; }

/* App card (clickable wrapper) */
.app-card {
    transition: box-shadow 0.25s ease;
}

.app-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-card:not(.is-disabled):hover .portal-card {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

/* Focus animation (keyboard only) */
.app-card:focus {
    outline: none;
}

.app-card:not(.is-disabled):focus-visible .portal-card {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.14),
        0 0 0 4px rgba(59, 130, 246, 0.35);
    transform: translateY(-4px);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
    .app-card:not(.is-disabled):focus-visible .portal-card {
        transform: none;
        transition: none;
    }
}

/* Portal card (visual component) - inspired by the CodePen layout */
.portal-card {
    height: 400px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
}

.portal-card__media {
    flex: 7 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
}

.portal-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.portal-card__img--cover {
    object-fit: cover;
}

.portal-card__body {
    flex: 3 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    text-align: center;
    background: #ffffff;
}

.portal-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #111827;
}

.portal-card__subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.25;
    color: #6b7280;
}

.cover-overlay {
    transition: opacity 0.6s ease;
}

.app-card:hover .cover-overlay {
    opacity: 1;
}

/* Card content area styling */
.app-card .bg-gray-800 {
    transition: background-color 0.6s ease;
}

/* .app-card:not(.cursor-not-allowed):hover .bg-gray-800 {
    background-color: rgb(31, 41, 55);
} */

/* Cards container - horizontal layout */
.cards-container {
    display: flex;
    flex-direction: column; /* mobile: vertical */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    overflow-x: hidden; /* mobile: no horizontal scroll */
    overflow-y: hidden;
    gap: 2rem; /* equivalent to Tailwind gap-8 */
    padding: 0 1rem;
}

/* Ensure cards don't shrink and maintain consistent sizing */
.cards-container .app-card {
    flex-shrink: 0 !important;
    width: min(20rem, 100%); /* mobile: responsive width */
    margin: 0 auto;
}

/* >= md: horizontal card view */
@media (min-width: 768px) {
    .cards-container {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        align-items: stretch;
    }

    .cards-container .app-card {
        width: 20rem; /* same as Tailwind w-80 */
        margin: 0;
    }
}