/* ===========================
       GLOBAL HERO SECTION
   =========================== */

.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-text-color);
    padding: 0 20px;
    font-family: var(--font-body);
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 4px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-inner {
    margin-top: 10vh;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease forwards;
    position: relative;
    z-index: 2;
}

.hero-name {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-role {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 5px 0;
}

.hero-divider {
    width: 820px;
    height: 2px;
    margin: 10px auto 20px;
    background: linear-gradient(to right, transparent, #bababa, transparent);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 250px;
}

/* ===========================
        GAMES HERO SECTION
   =========================== */

.games-hero {
    position: relative;
    background: var(--primary-color);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.games-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.games-hero .hero-btn {
    display: inline-block;
    background: var(--third-color);
    color: white;
    padding: 14px 26px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 12px;
}

/* ===========================
        LEGEND SECTION
   =========================== */

.games-legend {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.legend-item i {
    font-size: 1rem;
    color: var(--color-h1);
}

/* ===========================
        RESPONSIVE
   =========================== */

@media (max-width: 650px) {
    .games-hero h1 {
        font-size: 2.4rem;
    }
    .legend-item {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
}

/* ===========================
        GAMES SECTION
   =========================== */

#games {
    width: 100%;
    padding: 5vh;
    margin-top: 0;
    background: var(--third-color);
    color: var(--primary-text-color);
}

.game-category {
    margin-bottom: 30px;
}

.game-category h2 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    opacity: 0.8;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ===========================
        PROJECT GRID
   =========================== */

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 260px); /* fixed card width */
    justify-content: center; /* center the entire row */
    gap: 30px;
}

@media (max-width: 1100px) { 
    .projects-container { 
        grid-template-columns: repeat(auto-fit, 220px); 
    } 
}
@media (max-width: 800px)  { 
    .projects-container { 
        grid-template-columns: repeat(auto-fit, 180px); 
    } 
}
@media (max-width: 520px)  { 
    .projects-container { 
        grid-template-columns: repeat(auto-fit, 100%); /* single column full width */
    } 
}

/* ===========================
        PROJECT CARD
   =========================== */

.project-card {
    position: relative; /* ✅ needed for overlay */
    background: var(--fifth-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #fff;
    border-radius: 12px; /* match the card */
    pointer-events: none; /* optional: prevents interfering with hover effects */
}

.project-card.locked {
    cursor: not-allowed;
}


.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 5px 18px rgba(0,0,0,0.4);
}

.project-card.locked {
    cursor: not-allowed;
    opacity: 0.7;
}

/* IMAGE */
.project-image {
    width: 100%;
    max-width: 310px;
    min-width: 150px;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--sixth-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LOCKED OVERLAY */
.lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding-bottom: 12rem;
    color: #fff;
}

/* ===========================
        PROJECT CONTENT
   =========================== */

.project-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center; /* center horizontally */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.project-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    min-height: 6vh;
}

.project-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    background: var(--sixth-color);
    border-radius: 6px;
    border: 1px solid #333;
}

/* LEGEND ICONS */
.project-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 1.2rem;
    opacity: 0.5;
    margin-top: 1vh;
    margin-left: auto;
}

.project-icons i:hover {
    opacity: 1;
}
