/* IMPORT NULSHOCK HEAVY FONT */
@import url('https://fonts.cdnfonts.com/css/nulshock');

:root {
    --ps2-blue: #0099ff;
    --ps2-darkblue: #0066cc;
    --ps2-yellow: #ffff00;
    --ps2-orange: #ff9900;
}

/* --- GRAIN EFFECT --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
}

::-webkit-scrollbar {
    width: 12px;
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0099ff, #0066cc);
    border-radius: 6px;
}

body {
    background: #000;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    overflow-x: hidden;
}

#viewport-lens {
    position: relative;
    width: 100%;
    min-height: 100vh;

    /* JAPANESE RISING SUN AESTHETIC - RESTORED FLAT */
    background:
        radial-gradient(circle at center 0%,
            #cc0000 0%,
            #cc0000 15%,
            transparent 15.5%),
        repeating-conic-gradient(from 0deg at center 0%,
            #ff9900 0deg 10deg,
            #cc0000 10deg 20deg);
    background-color: #ff9900;
    background-attachment: fixed;

    /* STACKING FIX: NO Z-INDEX HERE */
}

/* 420p CRUNCH OVERLAY - Filters EVERYTHING below it */
#retro-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    /* Above UI/BG, Below Photos */
    backdrop-filter: url(#retro-420p) contrast(1.1) saturate(1.2);
}

/* REMOVE OBSOLETE GALLERY OVERRIDE */

.container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #ffcc00;
}

.container {
    width: 800px;
    margin: 60px auto 100px auto;
    position: relative;
    /* BREAKING STACKING CONTEXT: NO Z-INDEX HERE */
    padding: 0;
    text-align: left;
}

/* PSEUDO-ELEMENT FOR GLASS UI - Sitting BEHIND the Crunch Layer */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    /* BLUE/GLASS WINDOW */
    background: rgba(30, 30, 100, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 40px / 25px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 0 3px #000, 0 10px 40px rgba(0, 0, 0, 0.5);
}

header {
    position: relative;
    z-index: 100;
    padding: 30px 40px;
}

/* SCANLINES OVERLAY */
html::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;

    /* Interlaced scanline pattern */
    background: repeating-linear-gradient(transparent 0px,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 2px);
}

/* REMOVED INEFFECTIVE HTML TRANSFORM */
html {
    height: 100%;
}


/* --- IMAGE LIGHTBOX MODAL --- */
.img-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    /* Higher z-index to stay above CRT overlay */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent modal itself from scrolling */
}

/* LOCK BODY SCROLL WHEN MODAL OPEN */
body.modal-open {
    overflow: hidden !important;
}

.modal-content {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    /* Ensure full image is visible */
    border-radius: 8px;
    box-shadow:
        0 0 0 5px #000000,
        0 0 20px #000000,
        0 0 40px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-content:hover {
    transform: scale(1.02);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.close-modal:hover {
    color: #ff00ff;
}

/* --- HEADER --- */
header {
    position: relative;
    z-index: 100;
    padding: 30px 40px;
}

h1 {
    font-size: 28px;
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #ffcc00 0%, #ff9900 100%);
    color: #ffff00;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
    letter-spacing: 3px;
    /* NULSHOCK HEAVY FONT */
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    /* BLACK OUTLINE */
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --- COLUMNS --- */
.profile-body {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.left-col {
    width: 220px;
}

.right-col {
    flex: 1;
}

/* --- GLOSSY PS2 PILL NAV --- */
.pill-nav {
    margin-bottom: 15px;
}

.pill-nav a {
    display: block;
    background: linear-gradient(to bottom, #0099ff 0%, #0066cc 100%);
    color: #ffff00;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* NULSHOCK HEAVY FONT */
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    /* BLACK OUTLINE */
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    box-shadow:
        0 0 0 2px #000,
        0 0 6px #000,
        0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
}

.sticker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    max-width: 600px;
}

.pill-nav a:hover {
    background: linear-gradient(to bottom, #ffcc00 0%, #ff9900 100%);
    color: #000;
    transform: translateY(-2px);
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.5);
}

/* --- GLOSSY BOXES WITH GRAFFITI BORDER --- */
.box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 25px;
    /* Increased margin for the shadow spread */
    overflow: hidden;

    /* GRAFFITI BORDER EFFECT: Solid inner line -> Sprayed outer fade */
    box-shadow:
        0 0 0 3px #000000,
        /* Solid thick outline */
        0 0 10px #000000,
        /* Initial blur */
        0 0 20px rgba(0, 0, 0, 0.8);
    /* Fade out "spray" */
}

.box-header {
    background: linear-gradient(to bottom, #ffcc00 0%, #ff9900 100%);
    color: #ffff00;
    font-weight: 700;
    padding: 8px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* NULSHOCK HEAVY FONT */
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    /* BLACK OUTLINE */
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.box-header.blue {
    background: linear-gradient(to bottom, #0099ff 0%, #0066cc 100%);
    color: #ffff00;
}

.box-header.pink {
    background: linear-gradient(to bottom, #ff6699 0%, #ff3366 100%);
    color: #ffff00;
}

.content-pad {
    padding: 12px;
    background: rgba(0, 40, 100, 0.25);
    /* Slightly deeper blue tint */
}

/* INTERESTS LAYOUT REFINEMENT */
.interest-section {
    margin-bottom: 20px;
}

.interest-header {
    color: #00ccff;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000;
    border-bottom: 1px solid rgba(0, 204, 255, 0.3);
    padding-bottom: 2px;
}

.interest-content {
    color: #fff;
    font-weight: 700;
    line-height: 1.6;
    font-size: 12px;
    text-shadow: 1px 1px 2px #000;
}


/* --- PROFILE --- */
.profile-pic img {
    width: 100%;
    border-radius: 8px;
    box-shadow:
        0 0 0 2px #000,
        0 0 10px #000,
        0 4px 12px rgba(0, 0, 0, 0.5);
    /* EXEMPT FROM 420p FILTER */
    /* LIFT PHOTOS ABOVE THE CRUNCH LAYER */
    position: relative;
    z-index: 100;
    filter: none;
}

.left-col>p {
    color: #ffff00;
    font-weight: 700;
    text-align: center;
    font-size: 13px;
    /* Slightly larger for the thicker outline */
    margin: 12px 0;
    padding: 12px 18px;
    /* Matching pill-nav padding */
    background: linear-gradient(to bottom, #0099ff 0%, #0066cc 100%);
    border-radius: 20px;
    border: none;
    /* Shadow handles the border look */
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0px -2px 0 #000,
        0px 2px 0 #000,
        -2px 0px 0 #000,
        2px 0px 0 #000;
    box-shadow:
        0 0 0 2px #000,
        0 0 6px #000,
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.mood-status {
    margin: 10px 0;
    font-weight: 600;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 12px;
    box-shadow:
        0 0 0 2px #000,
        0 0 6px #000,
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    color: #ccc;
}

.contact-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-table td:first-child {
    color: #00ccff;
    font-weight: 600;
}

/* --- GLOSSY TIMELINE PILLS --- */
.timeline-post {
    background: linear-gradient(to right,
            #0066cc 0%,
            #0099ff 50%,
            #0066cc 100%);
    padding: 0;
    margin-bottom: 20px;
    border-radius: 18px;
    box-shadow:
        0 0 0 2px #000,
        0 0 8px #000,
        0 4px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: transform 0.2s;
}

.timeline-post:hover {
    transform: translateX(4px);
}

.post-date {
    font-size: 11px;
    color: #000;
    background: linear-gradient(to bottom, #ffff00, #ffcc00);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 16px;
    letter-spacing: 1px;
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        1px 0 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.post-content {
    font-size: 13px;
    line-height: 1.5;
    color: #ffff00;
    padding: 10px 16px;
    font-weight: 700;
    flex: 1;
    font-family: 'Nulshock', 'Arial Black', sans-serif;
    /* BLACK OUTLINE */
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
}

/* MEDIA IN POSTS */
.post-media {
    margin: 10px 0;
    text-align: center;
}

.post-media img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow:
        0 0 0 2px #000,
        0 4px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
    /* EXEMPT FROM 420p FILTER */
    /* LIFT PHOTOS ABOVE THE CRUNCH LAYER */
    position: relative;
    z-index: 100;
    filter: none;
}

.post-media img:hover {
    transform: scale(1.02);
}


/* --- PINTEREST-STYLE MASONRY GALLERY --- */
.gallery-grid {
    column-count: 3;
    column-gap: 12px;
    padding: 12px;
}

.photo-frame {
    break-inside: avoid;
    margin-bottom: 12px;
    display: inline-block;
    width: 100%;
}

.photo-frame img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
    /* EXEMPT FROM 420p FILTER */
    /* LIFT PHOTOS ABOVE THE CRUNCH LAYER */
    position: relative;
    z-index: 100;
    filter: none;
}

.photo-frame img:hover {
    transform: scale(1.05);
}

.left-col .box {
    background: rgba(255, 255, 255, 0.03);
}

/* --- Y2K STICKERS --- */
.sticker-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
}

.sticker {
    z-index: 50;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(2px 2px 0 black);
    image-rendering: pixelated;
    opacity: 0.9;
    height: 32px;
    /* Uniform height for header stickers */
    width: auto;
}

.sticker:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 153, 255, 0.8));
}

.sticker-top-left,
.sticker-top-right,
.sticker-bottom-left,
.sticker-bottom-right {
    /* REMOVED: FLOATING MOVEMENTS */
    animation: none;
}

/* Stagger animations removed */

/* Keyframes removed for performance and static look */

/* Hide stickers on mobile to avoid overlap */
@media (max-width: 1000px) {
    .sticker {
        display: none;
    }
}