﻿:root {
    --main-color: #00ffff;
    --main-color-light: #33ffff;
    --main-color-dark: #009999;
    --proj-col-sec: #7febc5;
    --bg-color: #001010;
    --text-color: #00ffff;
    --text-light: #33ffff;
    --accent-color: #ff00ff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(0,255,255,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,255,255,0.05) 1px, transparent 1px);
        background-size: 50px 50px;
        z-index: -2;
        animation: gridShift 20s linear infinite, gradientShift 30s ease infinite;
    }

@keyframes gridShift {
    0% {
        background-position: 0 0,0 0;
    }

    50% {
        background-position: 200px 0,0 200px;
    }

    100% {
        background-position: 0 0,0 0;
    }
}

@keyframes gradientShift {
    0% {
        background-color: #001010;
    }

    50% {
        background-color: #002020;
    }

    100% {
        background-color: #001010;
    }
}

nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    padding: 20px;
    position: relative;
    z-index: 2;
}

    nav a {
        color: var(--main-color);
        font-size: 2rem;
        position: relative;
        padding: 5px 10px;
        transition: 0.3s;
    }

        nav a::before, nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 100%;
            top: 0;
            background: var(--main-color-light);
            box-shadow: 0 0 20px var(--main-color-light);
            transition: all 0.3s ease-in-out;
        }

        nav a::before {
            left: 0;
        }

        nav a::after {
            right: 0;
        }

        nav a:hover {
            color: var(--text-light);
            text-shadow: 0 0 10px var(--main-color-light), 0 0 20px var(--main-color);
        }

            nav a:hover::before, nav a:hover::after {
                width: 5px;
            }

h1, h2, x9, h3 {
    font-family: 'Share Tech Mono', monospace;
    text-shadow: 0 0 5px var(--main-color-dark);
}

.homepage h1, .about-page h1 {
    text-shadow: 0 0 10px var(--main-color-light), 0 0 20px var(--main-color);
    transition: text-shadow 0.3s ease;
}

    .homepage h1:hover, .about-page h1:hover {
        text-shadow: 0 0 20px var(--main-color), 0 0 30px var(--main-color-light), 0 0 40px var(--main-color-light);
    }

.tech-shape {
    position: fixed;
    border: 1px solid var(--main-color-light);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--main-color);
    animation: floatShape 10s linear infinite, pulse 3s ease-in-out infinite, flicker 4s linear infinite;
    opacity: 0.6;
    z-index: 0;
}

    .tech-shape.small {
        width: 50px;
        height: 50px;
    }

    .tech-shape.medium {
        width: 100px;
        height: 100px;
    }

    .tech-shape.large {
        width: 150px;
        height: 150px;
    }

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(20px) rotate(45deg);
    }

    100% {
        transform: translateY(0) rotate(90deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px var(--main-color-light);
    }

    50% {
        box-shadow: 0 0 25px var(--main-color);
    }

    100% {
        box-shadow: 0 0 5px var(--main-color-light);
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.homepage h1 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--main-color);
}

.homepage h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--main-color-light);
}

.homepage h4 {
    text-align: center;
    max-width: 700px;
    margin: auto;
    font-size: 1.3rem;
    color: var(--proj-col-sec);
    animation: fadeInText 2s ease-in-out;
}

.homepage p {
    text-align: center;
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    color: var(--text-light);
    animation: fadeInText 2s ease-in-out;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-section h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
    gap: 30px;
}

.project-card {
    background-color: #111;
    border: 2px solid var(--main-color-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

    .project-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .project-card x9 {
        margin: 10px 0 5px;
        color: var(--proj-col-sec);
    }

    .project-card h3 {
        margin: 10px 0 5px;
        color: var(--main-color-light);
    }

    .project-card p {
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 15px;
    }

    .project-card .project-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .project-card button {
        background-color: var(--main-color);
        border: none;
        padding: 5px 10px;
        border-radius: 5px;
        color: #000;
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s ease;
    }

        .project-card button:hover {
            box-shadow: 0 0 15px var(--main-color);
        }

    .project-card .status {
        color: var(--text-light);
        font-size: 0.8rem;
    }

    .project-card:hover {
        box-shadow: 0 0 20px var(--main-color);
        transform: translateY(-5px);
    }

.homepage img, .about-page img {
    transition: box-shadow 0.3s ease;
    border: 3px solid var(--main-color-light);
}

    .homepage img:hover, .about-page img:hover {
        box-shadow: 0 0 30px var(--main-color-light), 0 0 50px var(--main-color);
    }

.about-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

    .about-page img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        margin-bottom: 20px;
    }

    .about-page h1 {
        font-size: 3rem;
        color: var(--main-color);
    }

    .about-page p {
        max-width: 600px;
        color: var(--text-light);
        line-height: 1.6;
        margin-bottom: 40px;
    }

.contact {
    color: var(--main-color-light);
    font-size: 1rem;
}

.page-wrapper {
    animation: pageFadeIn 0.5s ease forwards;
}

.page-exit {
    animation: pageFadeOut 0.45s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        filter: brightness(1.4);
    }

    to {
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        filter: brightness(1);
    }

    to {
        opacity: 0;
        filter: brightness(1.6);
    }
}

.page-wrapper {
    animation: pageFadeIn 0.6s ease forwards;
    position: relative;
}

.glitch-exit {
    animation: glitchFlash 0.15s steps(2, end) infinite, scanlineSweep 0.55s linear forwards, pageFadeOut 0.55s ease forwards;
}

@keyframes glitchFlash {
    0% {
        filter: brightness(1) contrast(1);
    }

    50% {
        filter: brightness(1.8) contrast(1.6) saturate(1.3);
    }

    100% {
        filter: brightness(1) contrast(1);
    }
}

@keyframes scanlineSweep {
    0% {
        box-shadow: inset 0 0 0 rgba(0,0,0,0), inset 0 -100vh 0 rgba(0,255,255,0.08);
    }

    100% {
        box-shadow: inset 0 0 0 rgba(0,0,0,0), inset 0 100vh 0 rgba(0,255,255,0.15);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(1.01);
    }
}

.page-enter {
    animation: pageFadeIn 0.7s ease forwards, glitchIntro 0.25s steps(2, end);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.99);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glitchIntro {
    0% {
        filter: brightness(1.6) contrast(1.4);
    }

    50% {
        filter: brightness(1.1) contrast(1.1);
    }

    100% {
        filter: brightness(1) contrast(1);
    }
}

.page-wrapper {
    opacity: 0;
    transform: scale(0.99);
}

    .page-wrapper.page-enter {
        animation: pageFadeIn 0.7s ease forwards, glitchIntro 0.25s steps(2, end);
    }

.page-wrapper {
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .page-wrapper.page-enter {
        opacity: 1;
        transform: scale(1);
    }

.project-header-box {
    max-width: 900px;
    margin: 20px auto 40px auto; 
    padding: 30px;
    border: 2px solid var(--main-color);
    border-radius: 15px;
    box-shadow: 0 0 20px var(--main-color-light);
    text-align: center;
    background-color: rgba(0,0,0,0.6);
    animation: flickerBox 3s linear infinite;
}

    .project-header-box h2 {
        font-size: 3rem;
        margin-bottom: 15px;
        color: var(--main-color);
        text-shadow: 0 0 10px var(--main-color-light), 0 0 20px var(--main-color);
        animation: flickerText 2.5s linear infinite;
    }

@keyframes flickerText {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--main-color-light), 0 0 20px var(--main-color);
    }

    20%, 22%, 24%, 55% {
        opacity: 0.4;
        text-shadow: 0 0 3px var(--main-color-dark), 0 0 5px var(--main-color-dark);
    }
}

@keyframes flickerBox {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        box-shadow: 0 0 20px var(--main-color-light);
        border-color: var(--main-color);
    }

    20%, 22%, 24%, 55% {
        box-shadow: 0 0 5px var(--main-color-dark);
        border-color: var(--main-color-dark);
    }
}


    .project-header-box p {
        color: var(--text-light);
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

.project-status {
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 15px;
}

    .project-status span:first-child {
        color: var(--main-color);
        margin-right: 10px;
    }

.project-links a {
    margin: 0 10px;
    display: inline-block;
}

.devlog-entry {
    max-width: 700px;
    margin: 25px auto;
    padding: 15px 20px;
    border: 2px solid var(--main-color-dark);
    border-radius: 10px;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 0 15px var(--main-color-light);
    cursor: pointer;
}

    .devlog-entry summary {
        font-size: 1.4rem;
        color: var(--main-color-light);
        outline: none;
        text-shadow: 0 0 5px var(--main-color);
    }

    .devlog-entry[open] summary {
        color: var(--main-color);
        text-shadow: 0 0 15px var(--main-color-light), 0 0 25px var(--main-color);
    }

    .devlog-entry p {
        color: var(--text-light);
        font-size: 1rem;
        margin: 10px 0;
    }

    .devlog-entry img {
        width: 100%;
        max-width: 600px;
        margin-top: 10px;
        border: 2px solid var(--main-color-light);
        border-radius: 5px;
        box-shadow: 0 0 20px var(--main-color);
    }

.project-header-section {
    padding-top: 20px;
    padding-bottom: 40px;
}

.project-header-box {
    margin-top: 0;
}

.devlog-entry {
  max-width: 700px;
  margin: 25px auto;
  padding: 15px 20px;
  border: 2px solid var(--main-color-dark);
  border-radius: 10px;
  background-color: rgba(0,0,0,0.5);
  box-shadow: 0 0 15px var(--main-color-light);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.devlog-entry > *:not(summary) {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.devlog-entry[open] > *:not(summary) {
  opacity: 1;
  transform: translateY(0);
}

.devlog-entry::after {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 110%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    rgba(0,255,255,0.05) 0px,
    rgba(0,255,255,0.05) 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0;
  animation: glitchOverlay 2s linear infinite;
}

.devlog-entry[open]::after {
  opacity: 0.2;
}

@keyframes glitchOverlay {
  0% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.devlog-entry summary {
  font-size: 1.4rem;
  color: var(--main-color-light);
  outline: none;
  text-shadow: 0 0 5px var(--main-color);
  transition: text-shadow 0.3s ease;
}

.devlog-entry[open] summary {
  text-shadow: 0 0 15px var(--main-color-light), 0 0 25px var(--main-color);
}

.devlog-entry {
  max-width: 700px;
  margin: 25px auto;
  border: 2px solid var(--main-color-dark);
  border-radius: 10px;
  background-color: rgba(0,0,0,0.5);
  box-shadow: 0 0 15px var(--main-color-light);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.devlog-entry .devlog-content {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.6s ease;
}

.devlog-entry[open] .devlog-content {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.devlog-entry::after {
  content: '';
  position: absolute;
  top: 0; left: -5%;
  width: 110%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    rgba(0,255,255,0.05) 0px,
    rgba(0,255,255,0.05) 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: glitchOverlay 2s linear infinite;
}

.devlog-entry[open]::after {
  opacity: 0.2;
}

@keyframes glitchOverlay {
  0% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.devlog-entry summary {
  font-size: 1.4rem;
  color: var(--main-color-light);
  outline: none;
  text-shadow: 0 0 5px var(--main-color);
  transition: text-shadow 0.3s ease;
}

.devlog-entry[open] summary {
  text-shadow: 0 0 15px var(--main-color-light), 0 0 25px var(--main-color);
}

.devlog-entry {
    max-width: 700px;
    margin: 25px auto;
    border: 2px solid var(--main-color-dark);
    border-radius: 10px;
    background-color: rgba(0,0,0,0.5);
    box-shadow: 0 0 15px var(--main-color-light);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.devlog-content {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}

}

.devlog-entry::after {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient( rgba(0,255,255,0.05) 0px, rgba(0,255,255,0.05) 2px, transparent 2px, transparent 4px );
    opacity: 0;
    animation: glitchOverlay 2s linear infinite;
}

@keyframes glitchOverlay {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }
}

.devlog-content video {
    display: block;
    margin-left: 20px;
    border-radius: 6px;
    border: 2px solid var(--main-color-light);
    box-shadow: 0 0 8px var(--main-color-dark), 0 0 18px rgba(0,255,255,0.35), inset 0 0 12px rgba(0,255,255,0.12);
    background-image: repeating-linear-gradient( to bottom, rgba(0,255,255,0.05), rgba(0,255,255,0.05) 1px, transparent 1px, transparent 3px );
    background-blend-mode: overlay;
    animation: videoScanlines 6s linear infinite;
    background-size: 100% 100%;
}

@keyframes videoScanlines {
    from {
        background-position-y: 0;
    }

    to {
        background-position-y: 100%;
    }
}

.award-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
}

.award-panel {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px;
    border: 2px solid var(--main-color-dark);
    background: rgba(0, 16, 16, 0.85);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.25), inset 0 0 20px rgba(0, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

    .award-panel::after {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( to bottom, rgba(255,255,255,0.025), rgba(255,255,255,0.025) 1px, transparent 1px, transparent 4px );
        pointer-events: none;
        opacity: 0.4;
    }

.award-image {
    width: 180px;
    height: auto;
    border: 2px solid var(--main-color-light);
    box-shadow: 0 0 20px var(--main-color-dark);
    flex-shrink: 0;
}

.award-info h2 {
    font-size: 1.6rem;
    color: var(--main-color);
    margin-bottom: 8px;
}

.award-info h3 {
    font-size: 1.3rem;
    color: var(--main-color-light);
    margin-bottom: 4px;
}

.award-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
    margin-bottom: 15px;
}

.award-info p {
    color: var(--text-light);
    line-height: 1.6;
}

.award-panel {
    animation: subtleFloat 8s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.award-panel {
    transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

    .award-panel:hover {
        border-color: var(--main-color-light);
        box-shadow: 0 0 35px rgba(0, 255, 255, 0.45), 0 0 60px rgba(0, 255, 255, 0.25), inset 0 0 25px rgba(0, 255, 255, 0.2);
        transform: translateY(-6px);
    }

    .award-panel:hover {
        animation: awardGlowPulse 2.5s ease-in-out infinite;
    }

@keyframes awardGlowPulse {
    0% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.35), inset 0 0 20px rgba(0, 255, 255, 0.15);
    }

    50% {
        box-shadow: 0 0 55px rgba(0, 255, 255, 0.55), inset 0 0 30px rgba(0, 255, 255, 0.25);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.35), inset 0 0 20px rgba(0, 255, 255, 0.15);
    }
}

.projects-placeholder {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px;
}

.placeholder-frame {
    position: relative;
    width: 100%;
    max-width: 700px;
    padding: 40px 30px;
    border: 2px dashed var(--main-color-dark);
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(0,255,255,0.2);
    background: rgba(0, 20, 20, 0.4);
    overflow: hidden;
    animation: framePulse 3s ease-in-out infinite;
}

    .placeholder-frame h3 {
        font-size: 1.8rem;
        color: var(--main-color);
        margin-bottom: 15px;
        text-shadow: 0 0 10px var(--main-color-dark);
    }

    .placeholder-frame p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .placeholder-frame .scanline {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( to bottom, transparent 0%, rgba(0,255,255,0.15) 50%, transparent 100% );
        animation: scanSweep 4s linear infinite;
        pointer-events: none;
    }

@keyframes scanSweep {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes framePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0,255,255,0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0,255,255,0.5);
    }
}

.dropdown-date {
    display: block;
    margin-top: 4px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent-dark);
    text-transform: uppercase;
    opacity: 0.85;
    text-shadow: 0 0 6px rgba(0,255,255,0.25);
    animation: flicker 6s infinite; 
}
