/* Base Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

/* Tab System */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Project Cards – equal height on desktop, flexible on mobile */
.project-card {
  display: flex;
  flex-direction: column;
}

/* The text/content area (your snippet div) should be the flexible part */
.project-card .card-body {
  display: flex;
  flex-direction: column;
}

/* Keep the More link pinned to the bottom of the body */
.project-card .card-body a {
  margin-top: auto;
}


.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #f5c518;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a716;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .role-filters {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .role-filters button {
        white-space: nowrap;
        margin-right: 8px;
    }
}

/* HERO tagline fade-in */
.hero-word {
    opacity: 0;
    animation: fadeInWord 0.8s ease-out forwards;
}

/* Each word gets its own delay */
.hero-word:nth-child(1) {
    animation-delay: 0s;
}

.hero-word:nth-child(2) {
    animation-delay: 1s;
}

.hero-word:nth-child(3) {
    animation-delay: 2s;
}

@keyframes fadeInWord {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-hint {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    background: rgba(245, 197, 24, 0.9); /* imdb-yellow */
    color: #121212; /* imdb-dark */
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Show on hover (desktop) */
.group:hover .gallery-hint {
    opacity: 1;
}

/* On mobile (no hover), always show */
@media (max-width: 768px) {
    .gallery-hint {
        opacity: 1;
    }
}

.mobile-video-hint {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.6);
    color: #f5c518; /* imdb-yellow */
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Mobile only: always visible */
@media (max-width: 768px) {
    .mobile-video-hint {
        opacity: 1;
    }
}

.mobile-video-hint.hidden {
    opacity: 0 !important;
}

/* Language button underline animation */
.lang-btn {
    position: relative;
    padding-bottom: 4px;
}

.lang-btn::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #f5c518;
    transition: width 0.3s ease;
}

.lang-btn.active::after {
    width: 100%;
}

.gallery-hint {
    position: absolute;
    right: 4px;
    bottom: 2px;
    font-size: 0.65rem;
    opacity: 0.8;
    pointer-events: none;
}

.gallery-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
}

.gallery-close {
    background: #f5c518;
    color: #121212;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}


/* Desktop hover hint */
.gallery-hover-hint {
    display: none;
    font-size: 0.75rem;
    color: #ccc;
    margin-bottom: 6px;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

@media (min-width: 640px) {
    .gallery-hover-hint {
        display: block;
    }

    /* Show hint when hovering ANY gallery thumbnail */
    .gallery-thumb:hover ~ .gallery-hover-hint,
    .gallery-group:hover .gallery-hover-hint {
        opacity: 1;
    }
}

/* Hover overlay (desktop only) */
.hover-hint-overlay {
    position: absolute;
    inset: 0;
    display: none;           /* hidden by default */
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(245,197,24,0.5);  /* Yellow 50% opacity */
    color: #121212;
    padding: 8px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;    /* prevents blocking clicks */
}

@media (min-width: 640px) { /* desktop only */
    .gallery-thumb:hover .hover-hint-overlay {
        display: flex;
        opacity: 1;
    }
}

.gallery-header span[data-i18n] {
    font-size: 1.125rem; /* same as text-lg */
    font-weight: 700;    /* bold */
    color: #f5c518;
}
