/* ---------- Import fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bakbak+One&family=Press+Start+2P&family=Rubik+Broken+Fax&display=swap');

:root {
    /* Color Variables for easy theming */
    --color-bg-dark: #120724;
    --color-bg-gradient-start: #1a0f35;
    --color-bg-gradient-end: #0b0415;
    --color-neon-cyan: #00f0ff;
    --color-neon-pink: #ff2ee6;
    --color-text-main: #eeeeee;
    --color-text-muted: #dddddd;
    
    /* Spacing & Layout */
    --container-width: 1000px;
    --header-height: 80px;
    --border-radius-lg: 12px;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--color-bg-dark);
    scroll-behavior: smooth;
}

body {
    font-family: 'Bakbak One', sans-serif;
    background: radial-gradient(circle at top, var(--color-bg-gradient-start), var(--color-bg-gradient-end) 80%);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
.site-header {
    background: rgba(20, 10, 40, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-family: 'Bakbak One', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.profile-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--color-neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    object-fit: cover;
}

/* Navigation Links */
.nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Bakbak One', sans-serif;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-neon-pink);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--color-neon-pink);
}

.nav-link:hover {
    color: var(--color-neon-pink);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    padding: 4rem 0;
    text-align: center;
}

/* Typography Styles */
.hero-section {
    margin-bottom: 5rem;
}

.hero-title {
    font-family: 'Rubik Broken Fax', cursive;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-neon-cyan);
    text-shadow: 0 0 12px var(--color-neon-cyan), 0 0 28px var(--color-neon-pink);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: var(--color-neon-pink);
    text-shadow: 0 0 6px rgba(255, 46, 230, 0.6);
    letter-spacing: 2px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: var(--color-neon-pink);
    margin: 4rem 0 2rem;
    text-shadow: 0 0 5px var(--color-neon-pink);
    text-align: left;
}

/* Glass Panel Component (Formerly .white-box) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.glass-panel h3 {
    font-family: 'Bakbak One', sans-serif;
    color: var(--color-neon-pink);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.glass-panel p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.glass-panel p:last-child {
    margin-bottom: 0;
}

/* Grid Layout for Cards */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(18, 7, 36, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-list.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

/* --- Archive Page --- */
.archive-card-link {
    display: block;
    height: 100%;
}

.archive-card-link .glass-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.archive-card-link:hover .glass-panel {
    border-color: var(--color-neon-pink);
    transform: translateY(-5px);
}

.archive-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Games Page (Twist: Pixel borders & Action color) --- */
.game-card-link {
    display: block;
    height: 100%;
}

.game-card-link .glass-panel {
    height: 100%;
    border: 2px dashed rgba(255,255,255,0.1);
    /* Explicit border-radius removed to revert to global default/previous state */
}

.game-card-link:hover .glass-panel {
    border-color: var(--color-neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: scale(1.02);
}

.game-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--color-neon-pink);
    color: #000;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* --- Graphics Page (Twist: Artistic gradients) --- */
.graphic-card-link {
    display: block;
    height: 100%;
}

.graphic-card-link .glass-panel {
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Subtle gradient overlay on hover */
.graphic-card-link:hover .glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,46,230,0.1), rgba(0,240,255,0.1));
    z-index: -1;
}

/* REPLACED border-image with a masked pseudo-element 
   This creates the gradient border effect while maintaining rounded corners 
*/
.graphic-card-link .glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg); 
    padding: 1px; /* The border width */
    background: linear-gradient(45deg, var(--color-neon-pink), var(--color-neon-cyan)); 
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.graphic-card-link:hover .glass-panel::after {
    opacity: 1;
}

.graphic-card-link:hover .glass-panel {
    /* Hide the original white border so the gradient border shows */
    border-color: transparent;
}

/* --- Contacts Page (Twist: Icon lists & clean rows) --- */
.contact-container {
    max-width: 800px; /* Narrower for contacts */
    margin: 0 auto;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-info h4 {
    color: var(--color-neon-pink);
    margin-bottom: 0.25rem;
    font-family: 'Bakbak One', sans-serif;
}

.contact-info p, .contact-info a {
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.contact-info a:hover {
    color: var(--color-neon-cyan);
    text-decoration: underline;
}

/* --- Custom Component Resets --- */
/* This ensures your new <site-header> tags behave like normal blocks */
site-header, site-footer {
    display: block;
    width: 100%;
}

/* ... rest of the CSS stays the same ... */

/* ---------- Import fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bakbak+One&family=Press+Start+2P&family=Rubik+Broken+Fax&display=swap');

:root {
/* ... (Keep all your existing variable definitions here) ... */
    /* Color Variables for easy theming */
    --color-bg-dark: #120724;
    --color-bg-gradient-start: #1a0f35;
    --color-bg-gradient-end: #0b0415;
    --color-neon-cyan: #00f0ff;
    --color-neon-pink: #ff2ee6;
    --color-text-main: #eeeeee;
    --color-text-muted: #dddddd;
    
    /* Spacing & Layout */
    --container-width: 1000px;
    --header-height: 80px;
    --border-radius-lg: 12px;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--color-bg-dark);
    scroll-behavior: smooth;
}

body {
    font-family: 'Bakbak One', sans-serif;
    background: radial-gradient(circle at top, var(--color-bg-gradient-start), var(--color-bg-gradient-end) 80%);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header & Navigation --- */
.site-header {
    background: rgba(20, 10, 40, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-family: 'Bakbak One', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.profile-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--color-neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    object-fit: cover;
}

/* Navigation Links */
.nav-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Bakbak One', sans-serif;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-neon-pink);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--color-neon-pink);
}

.nav-link:hover {
    color: var(--color-neon-pink);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-neon-cyan);
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Main Content Area --- */
.main-content {
    flex: 1;
    padding: 4rem 0;
    text-align: center;
}

/* Typography Styles */
.hero-section {
    margin-bottom: 5rem;
}

.hero-title {
    font-family: 'Rubik Broken Fax', cursive;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--color-neon-cyan);
    text-shadow: 0 0 12px var(--color-neon-cyan), 0 0 28px var(--color-neon-pink);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: var(--color-neon-pink);
    text-shadow: 0 0 6px rgba(255, 46, 230, 0.6);
    letter-spacing: 2px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: var(--color-neon-pink);
    margin: 4rem 0 2rem;
    text-shadow: 0 0 5px var(--color-neon-pink);
    text-align: left;
}

/* Glass Panel Component (Formerly .white-box) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.glass-panel h3 {
    font-family: 'Bakbak One', sans-serif;
    color: var(--color-neon-pink);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.glass-panel p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.glass-panel p:last-child {
    margin-bottom: 0;
}

/* Grid Layout for Cards */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(18, 7, 36, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-list.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

/* --- Archive Page --- */
.archive-card-link {
    display: block;
    height: 100%;
}

.archive-card-link .glass-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.archive-card-link:hover .glass-panel {
    border-color: var(--color-neon-pink);
    transform: translateY(-5px);
}

.archive-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Games Page --- */
.game-card-link {
    display: block;
    height: 100%;
}

.game-card-link .glass-panel {
    height: 100%;
    border: 2px dashed rgba(255,255,255,0.1);
    /* No explicit border-radius so it inherits global default */
}

.game-card-link:hover .glass-panel {
    border-color: var(--color-neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: scale(1.02);
}

.game-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--color-neon-pink);
    color: #000;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', cursive;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* --- Graphics Page --- */
.graphic-card-link {
    display: block;
    height: 100%;
}

.graphic-card-link .glass-panel {
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Subtle gradient overlay on hover */
.graphic-card-link:hover .glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,46,230,0.1), rgba(0,240,255,0.1));
    z-index: -1;
}

/* Masked pseudo-element for gradient border with rounded corners */
.graphic-card-link .glass-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg); 
    padding: 1px; /* Border width */
    background: linear-gradient(45deg, var(--color-neon-pink), var(--color-neon-cyan)); 
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.graphic-card-link:hover .glass-panel::after {
    opacity: 1;
}

.graphic-card-link:hover .glass-panel {
    border-color: transparent;
}

/* --- Contacts Page --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-info h4 {
    color: var(--color-neon-pink);
    margin-bottom: 0.25rem;
    font-family: 'Bakbak One', sans-serif;
}

.contact-info p, .contact-info a {
    color: var(--color-text-main);
    font-size: 1.1rem;
}

.contact-info a:hover {
    color: var(--color-neon-cyan);
    text-decoration: underline;
}