.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

body {
    background-color: #0e0e0e;
    color: #e2e2e2;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

/* Pac-Man Background Animation */
.pacman-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(circle at 10px 10px, rgba(234, 234, 0, 0.2) 2px, transparent 0);
    background-size: 100px 100px;
}

.pacman {
    width: 40px;
    height: 40px;
    background: #eaea00;
    border-radius: 50%;
    position: absolute;
    animation: pacman-move 20s linear infinite;
    box-shadow: 0 0 15px #eaea00;
}

.pacman::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 15px 20px 15px 0;
    border-color: transparent #0e0e0e transparent transparent;
    animation: mouth 0.3s ease-in-out infinite alternate;
}

@keyframes pacman-move {
    0% {
        left: -50px;
        top: 10%;
        transform: rotate(0deg);
    }
    25% {
        left: 100%;
        top: 10%;
        transform: rotate(0deg);
    }
    25.01% {
        left: 100%;
        top: 40%;
        transform: rotate(180deg);
    }
    50% {
        left: -50px;
        top: 40%;
        transform: rotate(180deg);
    }
    50.01% {
        left: -50px;
        top: 70%;
        transform: rotate(0deg);
    }
    75% {
        left: 100%;
        top: 70%;
        transform: rotate(0deg);
    }
    75.01% {
        left: 100%;
        top: 90%;
        transform: rotate(180deg);
    }
    100% {
        left: -50px;
        top: 90%;
        transform: rotate(180deg);
    }
}

@keyframes mouth {
    0% {
        border-width: 20px 20px 20px 0;
    }
    100% {
        border-width: 0px 20px 0px 0;
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(27, 27, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 251, 251, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.glass-panel-yellow {
    background: rgba(27, 27, 27, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(234, 234, 0, 0.3);
}

/* Scroll Progress Dot */
#scroll-dot {
    transition: top 0.1s ease-out;
    box-shadow: 0 0 20px 5px #eaea00;
}

.pixel-grid {
    background-image: radial-gradient(rgba(53, 53, 53, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.scanline {
    background: linear-gradient(to bottom, rgba(19, 19, 19, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(to right, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.01));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/*sticky panels*/
.sticky-stage {
    width: 100%;
    min-height: var(--stage-height, 200vh);
    position: relative;
}

.sticky-stage-pin {
    position: sticky;
    top: 80px; /* Aligned with navbar height */
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #353535 transparent;
}

/* About: scroll-typed word reveal */
.about-word {
    opacity: 0;
    display: inline-block;
    transition: opacity 120ms linear;
    will-change: opacity;
}

.about-word.is-visible {
    opacity: 1;
}

.about-word.is-caret {
    background: #eaea00;
    color: #1d1d00;
    padding: 0.1em 0.18em;
    box-shadow: 0 0 0 2px rgba(234, 234, 0, 0.25), 0 0 14px rgba(234, 234, 0, 0.2);
    animation: about-caret-blink 0.85s steps(2, end) infinite;
}

@keyframes about-caret-blink {
    0%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.35;
    }
}

#projects .sticky-stage-pin {
    overflow-y: hidden;
    overflow-x: hidden;
    justify-content: flex-start; /* Title at the top */
    padding-top: 2rem;
}

#project-slider-container {
    width: 100vw;
    margin-left: calc(-1 * 1.5rem); /* Counteract .sticky-stage-pin padding */
    position: relative;
    overflow: visible;
}

#project-slider {
    image-rendering: pixelated;
    display: flex;
    align-items: center;
}

.project-card {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0.5;
    transform: scale(0.9);
    display: flex;
    flex-direction: column;
}

.project-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card .image-container {
    position: relative;
    /* Height adjustment: change 1.2 to increase height (e.g., 1.4 for 40% taller than 16:9) */
    /* Original was 16/9. 1.2 adds 20% more vertical space relative to 16:9. */
    aspect-ratio: 1/1;
    width: 100%;
}


.project-card.active-card {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.project-detail-modal.is-open {
    display: flex;
}

.project-detail-panel {
    animation: project-detail-pop 0.25s ease-out;
}

.project-detail-close-btn .material-symbols-outlined {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.project-detail-close-btn:hover .material-symbols-outlined {
    transform: scale(1.15) rotate(6deg);
    filter: drop-shadow(0 0 8px currentColor);
}

body.modal-open {
    overflow: hidden;
}

@keyframes project-detail-pop {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sticky-stage-pin::-webkit-scrollbar {
    width: 6px;
}

.sticky-stage-pin::-webkit-scrollbar {
    width: 6px;
}

.sticky-stage-pin::-webkit-scrollbar-track {
    background: transparent;
}

.sticky-stage-pin::-webkit-scrollbar-thumb {
    background-color: #353535;
    border-radius: 10px;
}

.sticky-stage-pin::-webkit-scrollbar-thumb:hover {
    background-color: #00fbfb;
}


/* Icon Hover Animations */
.glass-panel .material-symbols-outlined {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, filter 0.3s ease;
}

.glass-panel:hover .material-symbols-outlined {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px currentColor);
}

.glass-panel:hover .material-symbols-outlined[style*="bolt"] {
    animation: icon-jolt 0.5s infinite;
}

.glass-panel:hover .material-symbols-outlined[style*="psychology"] {
    animation: icon-pulse 1s infinite;
}

.glass-panel:hover .material-symbols-outlined[style*="draw"] {
    animation: icon-float 2s infinite ease-in-out;
}

.glass-panel:hover .material-symbols-outlined[style*="groups"] {
    animation: icon-bounce 0.6s infinite;
}

@keyframes icon-jolt {
    0%, 100% {
        transform: scale(1.2) translateY(0);
    }
    50% {
        transform: scale(1.3) translateY(-4px) rotate(-10deg);
    }
}

@keyframes icon-pulse {
    0% {
        transform: scale(1.2);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes icon-float {
    0%, 100% {
        transform: scale(1.2) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-8px);
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: scale(1.2) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-5px);
    }
}

.experience-stage {
    width: 100vw;
    min-height: 500vh; /* Increased to allow more scroll room for years */
    position: relative;
    padding: 0;
}

.experience-pin {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

/* Odometer / Slot Machine Styling */
.year-display {
    display: flex;
    height: 1.1em; /* Fixed height for 1 digit */
    overflow: hidden;
    line-height: 1;
    color: #eaea00;
    text-shadow: 0 0 20px rgba(234, 234, 0, 0.4);
    width: 4ch; /* Exactly 4 characters wide */
    white-space: nowrap;
}

.year-digit-column {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 1ch;
    min-width: 1ch;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.year-digit-item {
    height: 1.2em; /* Match line-height */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1ch;
    flex-shrink: 0;
}

.role-content-container {
    animation: content-slide-up 0.5s ease-out;
}

@keyframes content-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.font-retro {
    font-family: 'Press Start 2P', cursive;
}