﻿
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Play:wght@400;700&display=swap");

:root {
    --dark-blue: #0a0a2a;
    --mid-blue: #001f4d;
    --light-blue: #0088ff;
    --neon-blue: #00ccff;
    --text-glow: rgba(0, 204, 255, 0.8);
}

/* General text styles */
h1, h2 {
    font-family: 'Press Start 2P', sans-serif;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--text-glow);
}

h3 {
    font-size: 18px;
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--text-glow), 0 0 15px rgba(0, 255, 255, 0.5);
}

p, ul, li {
    font-family: 'Play', sans-serif;
    color: white;
}

* {
    box-sizing: border-box;
}

/* Background and layout */
body {
    margin: 0;
    background: radial-gradient(circle, var(--dark-blue), var(--mid-blue));
    color: white;
    text-align: center;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    border: 5px solid var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--neon-blue);
    width: 100%;
}

/* Footer */
footer {
    padding: 30px;
    background: var(--dark-blue);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

    footer p {
        font-size: 16px;
        color: var(--neon-blue);
    }

/* Cookie banner */
#cookie-banner {
    font-size: clamp(0.7rem, 1vw, 1rem);
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(10, 10, 42, 0.9);
    color: white;
    text-align: center;
    padding: 10px 30px;
    z-index: 1000;
    line-height: 1.4;
    box-sizing: border-box;
}

    #cookie-banner a {
        color: var(--neon-blue);
    }

    #cookie-banner button {
        background: var(--neon-blue);
        color: black;
        padding: 5px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        #cookie-banner button:hover {
            background: white;
            color: var(--mid-blue);
        }

/* HEADER PORTRAIT */
.portrait-stats-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: flex-start;
}

.character-frame {
    width: 15vw;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    box-shadow: 0 0 10px #00ffcc;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: glowBorder 3s infinite alternate;
    min-width: 120px;
}

    .character-frame:hover {
        transform: scale(1.1);
        box-shadow: 0 0 30px var(--neon-blue);
        animation: none;
    }

    .character-frame::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 90%;
        aspect-ratio: 1 / 1;
        transform: translate(-50%, -50%);
        background: url('../assets/gameportraitsqr.png') center no-repeat;
        background-size: cover;
        border-radius: 5px;
        box-shadow: 0 0 15px var(--neon-blue);
    }

/* HEADER STATS*/
.stats {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    width: auto;
    flex-grow: 1;
    box-shadow: 0 0 15px var(--light-blue);
    text-align: left;
    align-items: flex-start;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    font-size: 1.2vw;
    min-width: 250px;
}

    .stats h2, .stats h3 {
        font-size: 1.5vw;
        color: var(--neon-blue);
        text-shadow: 0 0 5px rgba(0, 255, 153, 0.8);
    }

    .stats p {
        font-size: 1vw;
        color: #ffffff;
    }

    .stats li strong {
        color: var(--neon-blue);
        text-shadow: 0 0 5px var(--text-glow), 0 0 10px var(--neon-blue);
    }

/* SOCIAL BUTTONS */
.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
        width: 6vw;
        height: 6vw;
        background: none;
    }

        .social-links a:hover {
            transform: scale(1.2);
            background: none;
        }

    .social-links img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        transition: transform 0.3s;
    }

    .social-links a:hover img {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px var(--neon-blue));
    }

/* HEADER ANIMATION */
.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(255, 255, 153, 0.7); 
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 153, 0.6);
    opacity: 0;
    animation: fadeInOut var(--fade-duration) infinite ease-in-out, moveRandom var(--random-duration) linear infinite;
}
/* --- modal base --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.modal-inner {
  position: relative;
  background: var(--dark-blue);
  width: 90%;
  max-width: 600px;
  margin: 5% auto;
  padding: 2rem;
  border: 3px solid var(--neon-blue);
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 0 30px var(--neon-blue);
}
.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--neon-blue);
  cursor: pointer;
}
.modal-inner img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.modal-inner h2 {
  margin-top: 0;
  font-family: 'Press Start 2P';
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--text-glow);
}
.modal-inner p {
  text-align: left;
  line-height: 1.4;
}
/* ─── Modal scrolling & sticky link ─────────────────────────────────── */
.modal-inner {
    /* limit height to viewport minus a little margin */
    max-height: 80vh;
    overflow-y: auto; /* scroll if content overflows */
    padding-bottom: 3rem; /* room for the sticky link */
    position: relative; /* for sticky children */
}

.modal-link {
    /* stick the link to the bottom of the modal-inner scrolling area */
    position: sticky;
    bottom: 1rem;
    z-index: 10; /* stay above the content when scrolling */
    background: var(--neon-blue);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Play', sans-serif;
    display: inline-block;
    margin-top: 1rem;
}

/* ─── Custom scrollbar ─────────────────────────────────────────────── */
.modal-inner::-webkit-scrollbar {
    width: 12px;
}

.modal-inner::-webkit-scrollbar-track {
    background: var(--dark-blue);
}

.modal-inner::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 6px;
    box-shadow: 0 0 5px var(--text-glow);
}

    .modal-inner::-webkit-scrollbar-thumb:hover {
        background: white;
        box-shadow: 0 0 8px var(--neon-blue);
    }

/* For Firefox */
.modal-inner {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) var(--dark-blue);
}
/* Container that keeps 16:9 ratio */
.modal-video .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    margin-bottom: 1rem;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

/* Make iframe fill it */
.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PROJECT CARDS AND TOGGLES */
.game-info {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.toggle-info {
    background: var(--light-blue);
    border: 2px solid var(--neon-blue);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: 'Press Start 2P', sans-serif;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: block;
    width: 100%;
    border-radius: 10px;
}

    .toggle-info:hover {
        filter: brightness(1.2);
        border-color: white;
        color: black;
        background: var(--neon-blue);
        box-shadow: 0 0 25px var(--neon-blue);
        transform: scale(1.02);
    }

.project-card {
    position: relative;
    background: #141414;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--light-blue);
    box-shadow: 0 0 15px var(--light-blue);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 10px;
    min-height: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

    .project-card h2, .project-card h3 {
        font-family: 'Press Start 2P', sans-serif;
        color: var(--neon-blue);
        text-shadow: 0 0 10px var(--text-glow);
        font-size: 1.2rem; 
        text-align: center;
    }

    .project-card:hover {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0 0 30px #00aaff;
        transition: 0.3s ease-in-out;
    }


    .project-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
    }

.more-info {
    display: block;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, transform 0.3s ease-in-out;
}

    .more-info.active {
        opacity: 1;
        max-height: 300px;
        transform: scaleY(1);
    }

/* CSS ANIMATIONS */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.8), 0 0 40px rgba(0, 255, 204, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    }
}

@keyframes glowBorder {
    0% {
        box-shadow: 0 0 15px var(--neon-blue);
    }

    100% {
        box-shadow: 0 0 30px var(--neon-blue);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes moveRandom {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(10px, -15px);
    }

    50% {
        transform: translate(-20px, 10px);
    }

    75% {
        transform: translate(15px, 20px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes pixelatedZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* DIFFERENT VIEWPORTS */
@media (max-width: 2560px) {
}

@media (max-width: 1440px) {
}

@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    body {
        font-size: 0.8rem;
    }

    header {
        padding: 10px;
    }

    .social-links a {
        min-width: 60px;
        min-height: 60px;
    }

    .social-links img {
        min-width: 60px;
        min-height: 60px;
    }

    .arcade-machine,
    .game-description {
        width: 100%;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .arcade-container {
        flex-direction: column;
        align-items: center;
    }

    .game-description {
        margin-top: 20px;
    }

    .character-frame {
        width: 20vw;
        min-width: 80px;
    }
}

@media (max-width: 425px) {

    #cookie-banner {
        padding: 5px 15px;
    }

    body {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .arcade-container {
        width: 100%;
        padding: 0;
        margin: 0; 
        box-sizing: border-box;
    }

    .arcade-machine,
    .game-description {
        width: 100%;
        padding: 0; 
        margin: 0; 
        box-sizing: border-box; 
    }

    .arcade-screen {
        width: 100%;
        aspect-ratio: 3 / 2;
    }

    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .social-links img {
        width: 40px;
        height: 40px;
    }

    .character-frame {
        width: 25vw;
        min-width: 50px;
    }

    .description-text h2 {
        font-size: 18px;
    }

    .description-text p,
    .description-text ul {
        font-size: 12px;
    }

    .portrait-stats-container .stats {
        display: none;
    }
}

@media (max-width: 300px) {

}
