/* Y2K EARLY 2000'S AESTHETIC STYLES */

/* RESET AND BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    background: #000;
    color: #0F0;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><text y="15" font-size="15">👆</text></svg>'), auto;
}

/* ANIMATED BACKGROUNDS */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000 25%, #0a0a0a 25%, #0a0a0a 50%, #000 50%, #000 75%, #0a0a0a 75%, #0a0a0a);
    background-size: 20px 20px;
    animation: matrix-scroll 20s linear infinite;
    z-index: -2;
}

@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    box-shadow: 
        100px 100px #fff, 200px 150px #fff, 300px 50px #fff,
        400px 200px #fff, 500px 100px #fff, 600px 250px #fff,
        700px 150px #fff, 800px 300px #fff, 900px 200px #fff,
        150px 300px #fff, 250px 200px #fff, 350px 400px #fff,
        450px 350px #fff, 550px 250px #fff, 650px 450px #fff;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* HEADER STYLES */
.y2k-header {
    background: linear-gradient(45deg, #FF00FF, #00FFFF, #FFFF00);
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #0F0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.glitch-text {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: 2rem;
    color: #000;
    text-shadow: 
        2px 2px 0 #FF00FF,
        -2px -2px 0 #00FFFF,
        2px -2px 0 #FFFF00,
        -2px 2px 0 #0F0;
    animation: glitch 2s infinite;
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #FF00FF;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #00FFFF;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 2px 0 #FF00FF, -2px -2px 0 #00FFFF, 2px -2px 0 #FFFF00, -2px 2px 0 #0F0; }
    25% { text-shadow: -2px 2px 0 #FF00FF, 2px -2px 0 #00FFFF, -2px -2px 0 #FFFF00, 2px 2px 0 #0F0; }
    50% { text-shadow: 2px -2px 0 #FF00FF, -2px 2px 0 #00FFFF, 2px 2px 0 #FFFF00, -2px -2px 0 #0F0; }
    75% { text-shadow: -2px -2px 0 #FF00FF, 2px 2px 0 #00FFFF, -2px 2px 0 #FFFF00, 2px -2px 0 #0F0; }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(70% 0 15% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, -2px); }
}

.under-construction {
    margin-top: 10px;
    background: #000;
    color: #FF00FF;
    padding: 5px;
    border: 2px solid #0F0;
    font-size: 1.2rem;
}

marquee {
    color: #FFFF00;
    font-weight: bold;
}

/* NAVIGATION */
.y2k-nav {
    background: #111;
    padding: 15px;
    border-bottom: 3px solid #0F0;
    text-align: center;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    color: #000;
    border: 3px solid #0F0;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.nav-btn:hover {
    background: linear-gradient(45deg, #00FFFF, #FFFF00);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* MAIN CONTENT */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 300px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    color: #00FFFF;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 #FF00FF;
}

/* HOME SECTION */
.welcome-box {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #0F0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.hit-counter {
    font-size: 1.5rem;
    color: #FFFF00;
    margin: 20px 0;
    font-family: 'VT323', monospace;
}

#counter {
    color: #FF00FF;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.intro-text {
    margin: 20px 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.intro-text p {
    margin: 10px 0;
    color: #0F0;
}

.blink-box {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #0F0;
    animation: blink-bg 2s infinite;
}

@keyframes blink-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.blink-box p {
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
}

/* GAMES SECTION */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.game-card {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #FF00FF;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.game-preview {
    width: 100%;
    aspect-ratio: 3 / 2;
    border: 2px solid #0F0;
    margin-bottom: 15px;
    overflow: hidden;
    background: #050505;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(255, 0, 255, 0.8);
    border-color: #00FFFF;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.game-preview img:hover {
    transform: scale(1.05);
}

/* Image popup overlay */
.image-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 720px;
    max-width: 90vw;
    height: 480px;
    max-height: 80vh;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 3px solid #00FFFF;
    border-radius: 8px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.image-popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.image-popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.game-card h3 {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    color: #00FFFF;
    margin: 10px 0;
    font-size: 1rem;
}

.game-card p {
    color: #0F0;
    margin: 10px 0;
    font-size: 1.1rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
}

.game-stats span {
    background: #111;
    padding: 5px 10px;
    border: 1px solid #0F0;
    color: #FFFF00;
}

/* PROGRESS SECTION */
.progress-container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.progress-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0F0;
    padding: 20px;
}

.progress-item h3 {
    color: #00FFFF;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #111;
    border: 2px solid #FF00FF;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF00FF, #00FFFF, #FFFF00);
    transition: width 0.5s;
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #0F0;
    font-size: 1.2rem;
    font-weight: bold;
}

.dev-log {
    background: rgba(2, 8, 2, 0.85);
    border: 2px solid #1BFF8F;
    padding: 28px;
    margin-top: 40px;
    border-radius: 18px;
    box-shadow: 0 0 35px rgba(0, 255, 128, 0.15);
}

.dev-log h3 {
    color: #9CFFFA;
    margin-bottom: 24px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
}

.log-entries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.log-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.95), rgba(17, 34, 17, 0.9));
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.log-entry::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 0, 255, 0.35);
    pointer-events: none;
    opacity: 0.5;
}

.log-date-block {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 0, 0.12);
    border: 1px solid rgba(255, 255, 0, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.25);
}

.log-date {
    color: #FFF79C;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.log-content {
    display: grid;
    gap: 8px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 0, 255, 0.35);
}

.log-text {
    color: #C8FFD8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.log-text:not(:last-child) {
    position: relative;
    padding-bottom: 6px;
}

.log-text:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* STORAGE SECTION */
.storage-container {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.drive-connector {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #0F0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.drive-connector h3 {
    color: #00FFFF;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.status-message {
    margin-top: 20px;
    padding: 10px;
    background: #111;
    border: 1px solid #FF00FF;
    color: #0F0;
}

.connected-drives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.drive-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00FFFF;
    padding: 15px;
    text-align: center;
}

.drive-item h4 {
    color: #FFFF00;
    margin-bottom: 10px;
}

.storage-stats {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FF00FF;
    padding: 20px;
}

.storage-stats h3 {
    color: #00FFFF;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: #111;
    padding: 15px;
    text-align: center;
    border: 1px solid #0F0;
}

.stat-label {
    display: block;
    color: #FFFF00;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #FF00FF;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ABOUT SECTION */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.profile-card {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #0F0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.avatar-container {
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #FF00FF;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.profile-card h3 {
    color: #00FFFF;
    margin: 15px 0;
    font-size: 1.3rem;
}

.bio {
    color: #0F0;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 1.1rem;
}

.skills h4 {
    color: #FFFF00;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    color: #000;
    padding: 5px 10px;
    border: 1px solid #0F0;
    font-size: 0.9rem;
    font-weight: bold;
}

.contact-info {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #FF00FF;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.contact-info h4 {
    color: #00FFFF;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-link {
    display: block;
    background: #111;
    color: #0F0;
    padding: 10px;
    text-align: center;
    border: 2px solid #FFFF00;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.contact-link:hover {
    background: #FFFF00;
    color: #000;
    transform: translateX(5px);
}

/* BUTTONS */
.y2k-button {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    color: #000;
    border: 3px solid #0F0;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
}

.y2k-button:hover {
    background: linear-gradient(45deg, #00FFFF, #FFFF00);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.y2k-button:active {
    transform: scale(0.95);
}

/* FOOTER */
.y2k-footer {
    background: linear-gradient(45deg, #111, #222);
    border-top: 3px solid #0F0;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content p {
    color: #0F0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: #000;
    color: #FF00FF;
    padding: 5px 10px;
    border: 1px solid #0F0;
    font-size: 0.8rem;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(45deg, #000, #111);
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #0F0;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    color: #FF00FF;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: #00FFFF;
}

#modal-title {
    color: #00FFFF;
    margin-bottom: 20px;
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#modal-body {
    color: #0F0;
    line-height: 1.6;
}

.game-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-subtitle {
    color: #9CFFFA;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-overview {
    font-size: 1rem;
    color: #C8FFD8;
}

.highlight-callout {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, 0.5);
    background: rgba(255, 0, 255, 0.08);
    color: #FFF79C;
    font-weight: 600;
    text-align: center;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.pillar-card {
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 14px;
    background: rgba(8, 17, 8, 0.9);
}

.pillar-card h4 {
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.system-block {
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.system-card {
    background: rgba(12, 12, 12, 0.8);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.system-card h5 {
    margin-bottom: 6px;
    color: #FFFF8D;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.dot-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dot-list li {
    position: relative;
    padding-left: 16px;
    color: #C8FFD8;
}

.dot-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FF00FF;
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.split-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 0, 0.4);
    padding: 12px;
    background: rgba(9, 9, 9, 0.8);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 255, 255, 0.1);
    color: #9CFFFA;
}

.chip.muted {
    color: rgba(255, 255, 255, 0.5);
    border-style: dashed;
}

.inspiration-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.detail-grid .info-item {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
}

.detail-grid .info-label {
    display: block;
    color: #7BFFDA;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-grid .info-value {
    display: block;
    color: #FFF79C;
    font-size: 1rem;
    font-weight: 600;
}

.note {
    font-size: 0.9rem;
    color: #C8FFD8;
    border-left: 3px solid #FF00FF;
    padding-left: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 1.5rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #0F0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF00FF, #00FFFF);
    border: 2px solid #0F0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00FFFF, #FFFF00);
}

/* SELECTION STYLING */
::selection {
    background: #FF00FF;
    color: #000;
}

::-moz-selection {
    background: #FF00FF;
    color: #000;
}
