@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Roboto+Condensed:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: radial-gradient(ellipse at center, #dce8f5 0%, #6b8fb5 55%, #2c4a6e 100%);
    min-height: 100vh;
    font-family: 'Roboto Condensed', sans-serif;
}

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #dce8f5 0%, #6b8fb5 55%, #2c4a6e 100%);
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    color: #ea580c;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    height: 100vh;
    z-index: 10;
}

canvas {
    touch-action: none;
    -webkit-touch-callout: none;
}

.scroll-spacer {
    height: 300vh;
    pointer-events: none;
}

#ui-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: opacity 0.5s;
    font-weight: bold;
}

.scroll-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #ea580c;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40%  { transform: translate(-50%, -10px); }
    60%  { transform: translate(-50%, -5px); }
}

/* ── Modals ── */

#video-modal,
#resume-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

#video-modal-inner {
    position: relative;
    width: min(90vw, 960px);
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 8px;
    overflow: hidden;
}

#resume-modal-inner {
    position: relative;
    width: min(90vw, 900px);
    height: min(90vh, 1100px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#video-modal-inner iframe,
#resume-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}
