@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff00ff;
    --secondary: #00ffff;
    --background: #000000;
    --text: #ffffff;
    --hot-pink: #FF69B4;
    --deep-purple: #800080;
    --neon-green: #39FF14;
    --bg-gif: url('assets/background.gif');
}

body {
    font-family: 'VT323', monospace;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><circle cx='8' cy='8' r='5' fill='%23ff00ff'/></svg>") 8 8, auto;
}

/* ===== START SCREEN ===== */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gif), var(--background);
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 1;
}

.start-icon, .start-prompt {
    position: relative;
    z-index: 2;
}

.start-icon {
    cursor: pointer;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    transition: transform 0.2s;
}

.start-icon:hover {
    transform: scale(1.1);
}

.image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 5px;
}

.start-image {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px var(--hot-pink)) drop-shadow(0 0 5px var(--deep-purple));
    image-rendering: crisp-edges;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: subtleGlow 3s ease-in-out infinite;
}

.image-wrapper::before,
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

.image-wrapper::before {
    animation: pixelGlitch1 5s infinite;
    box-shadow: inset 0 0 0 1px #FF69B4, 2px 2px 0 #FF69B4, -1px -1px 0 #39FF14;
    mix-blend-mode: screen;
}

.image-wrapper::after {
    animation: pixelGlitch2 5s infinite;
    box-shadow: inset 0 0 0 2px #39FF14, -2px -1px 0 #800080, 1px 1px 0 #FF69B4;
    mix-blend-mode: screen;
}

.start-label {
    display: inline-block;
    color: var(--hot-pink);
    font-family: 'VT323', monospace;
    font-size: 32px;
    letter-spacing: 5px;
    text-shadow: 1px 1px 0 var(--deep-purple), -1px -1px 0 var(--neon-green), 0 0 10px var(--hot-pink);
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border: 2px solid var(--deep-purple);
    position: relative;
    z-index: 2;
    animation: textGlitch 4s infinite;
}

.start-prompt {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.blink {
    color: var(--hot-pink);
    font-family: 'VT323', monospace;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
    text-shadow: 0 0 10px var(--hot-pink), 0 0 20px var(--deep-purple), 0 0 30px var(--neon-green);
    letter-spacing: 3px;
}

/* ===== DESKTOP ===== */
.desktop {
    min-height: 100vh;
    background: url('assets/windowswallpaperpink.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding-bottom: 90px;
}

/* Desktop Icons Container - Grid layout for scattered effect */
.desktop-icons {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 150px);
    padding: 40px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 40px 20px;
    align-items: center;
    justify-items: center;
}

/* Individual Icon Styling */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    z-index: 10;
}

/* Position each icon in different grid cells for scattered look */
.desktop-icon[data-icon="music"] {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: start;
}

.desktop-icon[data-icon="videos"] {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    justify-self: end;
}

.desktop-icon[data-icon="socials"] {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    justify-self: center;
    margin-top: 40px;
}

.desktop-icon[data-icon="merch"] {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    justify-self: center;
    margin-top: 40px;
}

.desktop-icon[data-icon="diary"] {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    justify-self: start;
    margin-top: 20px;
}

.desktop-icon[data-icon="secret"] {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
    justify-self: end;
    margin-top: 20px;
}

/* Hover effect */
.desktop-icon:hover {
    transform: translateY(-8px);
    filter: brightness(1.2);
    text-shadow: 0 0 10px #FF69B4;
}

.desktop-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.6));
    transition: all 0.2s;
}

.desktop-icon span {
    color: #FFFFFF;
    font-family: 'VT323', monospace;
    font-size: 18px;
    text-shadow: 1px 1px 0 #800080;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border: 1px solid #FF69B4;
    border-radius: 4px;
}

/* Mobile - Keep scattered but responsive */
@media (max-width: 768px) {
    .desktop-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        padding: 30px 20px;
        min-height: auto;
        align-items: center;
        justify-items: center;
    }
    
    .desktop-icon {
        width: 90px;
        margin: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
    }
    
    /* Scatter them on mobile using nth-child */
    .desktop-icon:nth-child(1) { justify-self: start; }  /* music */
    .desktop-icon:nth-child(2) { justify-self: end; }    /* videos */
    .desktop-icon:nth-child(3) { justify-self: center; margin-top: 10px; }  /* socials */
    .desktop-icon:nth-child(4) { justify-self: center; margin-top: 20px; }  /* merch */
    .desktop-icon:nth-child(5) { justify-self: start; margin-top: 30px; }   /* diary */
    .desktop-icon:nth-child(6) { justify-self: end; margin-top: 30px; }     /* secret */
    
    .desktop-icon img {
        width: 65px;
        height: 65px;
    }
    
    .desktop-icon span {
        font-size: 14px;
    }
}

.desktop-icon[data-icon="diary"],
.desktop-icon[data-icon="secret"] {
    z-index: 15;
}

.desktop-icon:hover {
    filter: brightness(1.2);
    background: rgba(255, 255, 255, 0.2);
    outline: 1px dotted #FFFFFF;
    outline-offset: 4px;
    z-index: 100 !important;
}

.desktop-icon img {
    width: clamp(60px, 8vw, 96px);
    height: clamp(60px, 8vw, 96px);
    margin-bottom: 8px;
    image-rendering: crisp-edges;
    filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.7));
}

.desktop-icon span {
    color: #FFFFFF;
    font-family: 'VT323', monospace;
    font-size: clamp(14px, 2vw, 20px);
    text-shadow: 1px 1px 0 #000000, 2px 2px 0 rgba(0,0,0,0.5);
    background: rgba(0, 128, 128, 0.7);
    padding: 4px 10px;
    border: 1px solid #00FFFF;
    border-radius: 2px;
    white-space: nowrap;
}

.desktop-icon[data-icon="secret"] span {
    background: rgba(80, 0, 80, 0.8) !important;
    border-color: #800080 !important;
    font-style: italic;
    opacity: 0.9;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-top: 2px solid #FF69B4;
    display: flex;
    justify-content: space-evenly; /* This spreads them evenly across full width */
    align-items: center;
    padding: 4px 0; /* Remove side padding so it stretches edge to edge */
    z-index: 1000;
    height: 60px;
    width: 100%; /* Ensure full width */
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 3px 0;
    border-radius: 3px;
    flex: 0 1 auto; /* Don't grow, but can shrink */
    width: auto;
    min-width: 50px; /* Minimum size */
}

.nav-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 105, 180, 0.3);
}

.nav-button img {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 5px #FF69B4);
}

.nav-button span {
    color: #FFFFFF;
    font-family: 'VT323', monospace;
    font-size: 10px;
    text-transform: lowercase;
    text-align: center;
    white-space: nowrap;
}

/* ===== DESKTOP FOOTER ===== */
.desktop-footer {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-family: 'VT323', monospace;
    font-size: 14px;
    z-index: 50;
    color: #FFFFFF;
    text-shadow: 1px 1px 0 #000000;
    pointer-events: none;
}

.visitor-counter {
    color: #39FF14;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border: 1px solid #39FF14;
    border-radius: 3px;
}

.under-construction {
    color: #FF69B4;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border: 1px solid #FF69B4;
    border-radius: 3px;
    animation: blink 2s infinite;
}

/* ===== MEDIUM SCREENS ===== */
@media (min-width: 769px) and (max-width: 1200px) {
    .desktop-icon[data-icon="music"] { top: 40px !important; left: 40px !important; }
    .desktop-icon[data-icon="videos"] { top: 40px !important; right: 40px !important; }
    .desktop-icon[data-icon="socials"] { top: 200px !important; left: 70px !important; }
    .desktop-icon[data-icon="merch"] { top: 200px !important; right: 80px !important; }
    .desktop-icon[data-icon="diary"] { bottom: 100px !important; left: 60px !important; }
    .desktop-icon[data-icon="secret"] { bottom: 80px !important; right: 70px !important; }
}
/* ===== MOBILE ===== */
@@media (max-width: 768px) {
    /* ... existing icon styles ... */
    
    .bottom-nav {
        height: 55px;
        padding: 3px 0;
        justify-content: flex-start; /* Allow scrolling */
        overflow-x: auto;
        gap: 15px; /* Add gap between scrolled items */
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-button {
        flex: 0 0 auto;
        width: auto;
        min-width: 60px;
        margin: 0 5px;
    }
    
    .nav-button:first-child {
        margin-left: 15px; /* Padding at start */
    }
    
    .nav-button:last-child {
        margin-right: 15px; /* Padding at end */
    }
    
    .nav-button img {
        width: 24px;
        height: 24px;
    }
    
    .nav-button span {
        font-size: 9px;
    }
}
/* ===== ANIMATIONS ===== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0.5; } }
@keyframes subtleGlow { 0%,100% { filter: drop-shadow(0 0 15px #FF69B4) drop-shadow(0 0 5px #800080); } 50% { filter: drop-shadow(0 0 20px #FF69B4) drop-shadow(0 0 10px #800080) drop-shadow(0 0 5px #39FF14); } }
@keyframes textGlitch { 0%,100% { text-shadow: 1px 1px 0 #800080, -1px -1px 0 #39FF14, 0 0 10px #FF69B4; } 98% { text-shadow: 1.5px 1px 0 #FF69B4, -1.5px -1px 0 #39FF14, 0 0 10px #800080; } 99% { text-shadow: -1px 1.5px 0 #39FF14, 1px -1.5px 0 #800080, 0 0 15px #FF69B4; } }

@keyframes pixelGlitch1 {
    0%,95% { opacity: 0; }
    96% { opacity: 0.3; clip-path: inset(10% 0 80% 0); transform: translate(1px, 0); }
    97% { opacity: 0.2; clip-path: inset(50% 0 30% 0); transform: translate(-1px, 1px); }
    98% { opacity: 0.25; clip-path: inset(20% 0 60% 0); transform: translate(0, -1px); }
    99% { opacity: 0.15; clip-path: inset(70% 0 15% 0); transform: translate(1px, 1px); }
}

@keyframes pixelGlitch2 {
    0%,95% { opacity: 0; }
    96% { opacity: 0.25; clip-path: inset(30% 0 40% 0); transform: translate(-1px, -1px); }
    97% { opacity: 0.2; clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    98% { opacity: 0.3; clip-path: inset(15% 0 70% 0); transform: translate(-1px, 1px); }
    99% { opacity: 0.15; clip-path: inset(45% 0 35% 0); transform: translate(0, 2px); }
}