/* ===================================
   BASE STYLES
   =================================== */

body {
    margin: 0;
    background: #ffffff;
    position: relative;
    width: 100vw;
}

/* ===================================
   SPOTIFY PLAYER - BLACK & WHITE
   =================================== */

#spotify-container {
    filter: grayscale(100%) contrast(1.2);
}

#spotify-container iframe {
    opacity: 0.9;
}

canvas {
    display: block;
    cursor: default;
}

canvas.clickable {
    cursor: pointer;
}

/* ===================================
   CONTROLS & BUTTONS
   =================================== */

#controls {
    position: fixed;
    bottom: 2.5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5vw;
    z-index: 100;
}

#projectButton,
#explodeButton,
#infoButton {
    background: #333;
    color: white;
    border: none;
    padding: 1vh 2.5vw;
    border-radius: 0.5vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(10px + 0.4vw);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0.2vh 1vh rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#projectButton:hover,
#explodeButton:hover,
#infoButton:hover {
    background: #555;
    transform: translateY(-0.2vh);
    box-shadow: 0 0.4vh 1.5vh rgba(0, 0, 0, 0.25);
}

#projectButton:active,
#explodeButton:active,
#infoButton:active {
    transform: translateY(0);
}

#projectButton.active,
#explodeButton.active {
    background: #f5f7f8;
    color: #333;
}

/* ===================================
   LOADING & LABELS
   =================================== */

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(14px + 0.5vw);
    color: #666;
    text-align: center;
}

.category-label {
    position: absolute;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.category-label.visible {
    opacity: 1;
}

.category-label:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.category-label:active {
    transform: scale(0.98);
}

.label-line {
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform-origin: left center;
}

.label-line.visible {
    opacity: 1;
}

/* ===================================
   VINYL OVERLAY
   =================================== */

#vinyl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vinyl-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

#close-vinyl {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

#close-vinyl:hover {
    color: #000;
}

#vinyl-category {
    margin: 0 0 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

#vinyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.vinyl-item {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.vinyl-item:hover {
    transform: translateY(-5px);
}

.vinyl-item.selected .vinyl-disc {
    animation: vinylPulse 0.6s ease-out;
}

@keyframes vinylPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5), inset 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(0, 0, 0, 0.5);
    }
}

.vinyl-disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 30%, #1a1a1a 40%, #0a0a0a 100%);
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.vinyl-disc::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--vinyl-center-color, #cd7f32);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.vinyl-disc::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.vinyl-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ===================================
   PROJECT DETAIL OVERLAY
   =================================== */

#project-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

#project-detail-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#close-project {
    position: sticky;
    top: 20px;
    right: 20px;
    float: right;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 20px 20px 0 0;
}

#close-project:hover {
    background: rgba(255, 0, 0, 0.9);
    transform: rotate(90deg);
}

#project-content {
    padding: 60px 40px 40px;
}

/* ===================================
   INFO OVERLAY
   =================================== */

#info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

#info-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#close-info {
    position: sticky;
    top: 20px;
    right: 20px;
    float: right;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 20px 20px 0 0;
}

#close-info:hover {
    background: rgba(255, 0, 0, 0.9);
    border-color: rgba(255, 0, 0, 0.9);
    transform: rotate(90deg);
}

#info-content {
    padding: 60px 40px 40px;
    color: white;
}

#info-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 40px 0;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #87b3e8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(135, 179, 232, 0.2), rgba(93, 74, 127, 0.2));
    border: 2px solid rgba(135, 179, 232, 0.4);
    border-radius: 8px;
    color: #87b3e8;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px 0;
}

.info-link:hover {
    background: linear-gradient(135deg, rgba(135, 179, 232, 0.4), rgba(93, 74, 127, 0.4));
    border-color: rgba(135, 179, 232, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(135, 179, 232, 0.3);
}

.contact-item {
    margin-bottom: 15px;
}

.contact-label {
    display: inline-block;
    width: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#project-content h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: #1a1a1a;
}

#project-content .team {
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 30px;
    color: #333;
}

#project-content .description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #333;
}

#project-content video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

#project-content .features {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

#project-content .features h2 {
    margin-top: 0;
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

#project-content .features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#project-content .features li {
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

#project-content .features li:last-child {
    border-bottom: none;
}

#project-content .features li::before {
    content: "✦ ";
    font-weight: bold;
    margin-right: 10px;
}

/* ===================================
   BIO CARD
   =================================== */

#bio-card {
    position: fixed;
    top: 1vw;
    left: 1vw;
    z-index: 500;
    opacity: 0;
    transform: translateX(-2.6vw);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#bio-card.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: none;
}

#bio-card .photo-container {
    width: 15.9vw;
    height: 15.9vw;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0.78vw 2.6vw rgba(0, 0, 0, 0.5);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(50% - 7.95vw);
    left: calc(50% - 7.95vw);
    z-index: 2;
    animation: spinCounterClockwise 20s linear infinite;
    pointer-events: auto;
}

#bio-card .photo-container:hover {
    box-shadow: 0 1vw 3.1vw rgba(0, 0, 0, 0.6);
}

#bio-card .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#bio-card .vinyl-bio {
    width: 39vw;
    height: 39vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: rgb(36, 38, 37);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

#bio-card .bio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.73vw;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    font-weight: 600;
    top: 0;
    left: 0;
    letter-spacing: 0.08vw;
    word-spacing: 0.31vw;
    animation: spinCounterClockwise 20s linear infinite;
}

@keyframes spinCounterClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

#bio-card .bio-text .spiral-word {
    position: absolute;
    white-space: nowrap;
    color: #fdfbfb;
    transform-origin: center;
    font-size: 1.35vw;
    font-weight: 500;
}

#bio-close {
    position: absolute;
    top: 40.4vw;
    left: 14.3vw;
    background-color: rgb(36, 38, 37);
    color: white;
    border: 0.52vw solid rgb(194, 18, 50);
    border-radius: 0%;
    width: 9.4vw;
    height: 4.7vw;
    font-size: 2.5vw;
    line-height: 1.88vw;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0.21vw 0.78vw rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

#bio-close:hover {
    background: rgb(194, 18, 50);
    transform: scale(1.3);
    box-shadow: 0 0.31vw 1vw rgba(255, 0, 0, 0.5);
}

#reopen-bio {
    position: fixed;
    top: 50px;
    left: 50px;
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 499;
    opacity: 0;
    pointer-events: none;
}

#reopen-bio.visible {
    opacity: 1;
    pointer-events: auto;
}

#reopen-bio:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===================================
   NOISE BUTTON (SHOWN WITH SIMPLE BIO)
   =================================== */

#noise-button {
    position: fixed;
    bottom: 2vw;
    left: 2vw;
    background: #333;
    color: #fff;
    border: none;
    padding: 0.8vw 1.5vw;
    border-radius: 0.4vw;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1vw;
    cursor: pointer;
    box-shadow: 0 0.2vw 0.8vw rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 500;
}

#noise-button:hover {
    background: #555;
    transform: translateY(-0.1vw);
    box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.4);
}

/* ===================================
   SIMPLE BIO (SHOWN WHEN MUTED)
   =================================== */

#simple-bio {
    position: fixed;
    top: 2vw;
    left: 2vw;
    max-width: 42vw;
    z-index: 500;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
}

#simple-bio h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.3vw;
    font-weight: 500;
    margin: 0 0 1vw 0;
    color: #000;
}

#simple-bio .bio-paragraph {
    font-size: 1.25vw;
    line-height: 1.3;
    margin-left: 0.16vw;
    color: #0b0b0b;
    font-weight: 400;
}

#mute-photo {
    position: fixed;
    top: 2vw;
    right: 2vw;
    width: 15.6vw;
    height: 20.8vw;
    border-radius: 30%;
    object-fit: cover;
    box-shadow: 0 0.2vw 0.8vw rgba(0, 0, 0, 0.2);
    z-index: 501;
}

/* ===================================
   NAME ANIMATIONS (MAIN)
   =================================== */

.name-box {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.name-inner {
    width: 45vw;
    height: 65px;
    line-height: 65px;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.name-left {
    background-color: #4a3875;
    color: #1a0f2e;
    transform-origin: right center;
    transform: perspective(400px) rotateY(30deg);
}

.name-center {
    background-color: #6495ed;
    color: #e6f0ff;
    transform-origin: left center;
    transform: perspective(400px) rotateY(-30deg);
}

.name-inner span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
}

.name-left span {
    animation-duration: 20s;
    animation-delay: -10s;
}

.name-center span {
    animation-duration: 20s;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ===================================
   NAME ANIMATIONS (BACKGROUND)
   =================================== */

.bg-name-box {
    position: fixed;
    z-index: -2;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bg-name-inner {
    width: 45vw;
    height: 65px;
    line-height: 65px;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.bg-name-left {
    transform-origin: right center;
    transform: perspective(400px) rotateY(30deg);
}

.bg-name-right {
    transform-origin: left center;
    transform: perspective(400px) rotateY(-30deg);
}

.bg-name-inner span {
    display: inline-block;
    padding-left: 100%;
}

/* Concentric circles pulsing from vinyl center */
@keyframes pulse-out {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.pulse-circle {
    position: fixed;
    top: 15%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 2px solid #6495ed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
}

.pulse-circle-1 {
    animation: pulse-out 4s ease-out infinite;
    animation-delay: 0s;
}

.pulse-circle-2 {
    animation: pulse-out 4s ease-out infinite;
    animation-delay: 1s;
    border-color: #5d4a7f;
}

.pulse-circle-3 {
    animation: pulse-out 4s ease-out infinite;
    animation-delay: 2s;
    border-color: #87b3e8;
}

.pulse-circle-4 {
    animation: pulse-out 4s ease-out infinite;
    animation-delay: 3s;
    border-color: #4a3875;
}

/* ===================================
   VIEWCUBE
   =================================== */

#viewcube-container {
    position: fixed;
    bottom: 70px;
    right: 70px;
    width: 120px;
    height: 120px;
    perspective: 600px;
    z-index: 1000;
    pointer-events: none;
}

#viewcube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    pointer-events: auto;
    cursor: grab;
}

#viewcube:active {
    cursor: grabbing;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgb(194, 18, 50);
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.cube-face:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.cube-face.front {
    transform: translateZ(60px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(60px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(60px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(60px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(60px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(60px);
}

/* ===================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   =================================== */

/* Tablets and smaller laptops (1024px and below) */
@media (max-width: 1024px) {
    #vinyl-container {
        padding: 30px;
        max-width: 700px;
    }

    #vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }

    .vinyl-disc {
        width: 150px;
        height: 150px;
    }
}

/* Tablets portrait and large phones (768px and below) */
@media (max-width: 768px) {
    #controls {
        bottom: 20px;
        gap: 10px;
        flex-wrap: wrap;
        width: 90%;
        justify-content: center;
    }

    #projectButton,
    #explodeButton,
    #infoButton {
        padding: 12px 24px;
        font-size: 12px;
    }

    #bio-card {
        top: 10px;
        left: 10px;
    }

    #bio-card .vinyl-bio {
        width: 400px;
        height: 400px;
    }

    #bio-card .photo-container {
        width: 165px;
        height: 165px;
        top: calc(50% - 82.5px);
        left: calc(50% - 82.5px);
    }

    #bio-card .bio-text {
        font-size: 10px;
    }

    #bio-card .bio-text .spiral-word {
        font-size: 16px;
    }

    #bio-close {
        bottom: -65px;
        width: 120px;
        height: 60px;
        font-size: 32px;
        border-width: 6px;
    }

    #spotify-container {
        top: 40px;
        right: 40px;
    }

    #spotify-container iframe {
        width: 250px;
        height: 132px;
    }

    #viewcube-container {
        bottom: 90px;
        right: 20px;
        width: 100px;
        height: 100px;
    }

    .cube-face {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }

    .cube-face.front { transform: translateZ(50px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(50px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(50px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(50px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

    .category-label {
        font-size: 14px;
        padding: 10px 20px;
    }

    #vinyl-container {
        padding: 20px;
        max-width: 90%;
        width: 90%;
    }

    #vinyl-category {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .vinyl-disc {
        width: 120px;
        height: 120px;
    }

    .vinyl-disc::before {
        width: 40px;
        height: 40px;
    }

    .vinyl-disc::after {
        width: 15px;
        height: 15px;
    }

    .vinyl-label {
        font-size: 12px;
    }

    #project-detail-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    #project-content {
        padding: 20px;
    }

    #project-content h1 {
        font-size: 32px;
    }

    #project-content .team {
        font-size: 16px;
    }

    #project-content .description {
        font-size: 18px;
    }

    #project-content .features {
        padding: 20px;
    }

    #project-content .features h2 {
        font-size: 24px;
    }

    #project-content .features li {
        font-size: 16px;
    }

    .name-box {
        transform: translate(-50%, -50%) scale(0.7);
    }

    .name-inner {
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
    }

    .bg-name-inner {
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
    }

    #info-container {
        padding: 30px 20px;
        max-width: 90%;
        width: 90%;
    }

    #info-content h1 {
        font-size: 32px;
    }

    #info-content h2 {
        font-size: 20px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    #controls {
        bottom: 10px;
        gap: 8px;
        width: 95%;
    }

    #projectButton,
    #explodeButton,
    #infoButton {
        padding: 10px 16px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
    }

    #bio-card {
        top: 5px;
        left: 5px;
    }

    #bio-card .vinyl-bio {
        width: 280px;
        height: 280px;
    }

    #bio-card .photo-container {
        width: 115px;
        height: 115px;
        top: calc(50% - 57.5px);
        left: calc(50% - 57.5px);
    }

    #bio-card .bio-text {
        font-size: 8px;
    }

    #bio-card .bio-text .spiral-word {
        font-size: 12px;
    }

    #bio-close {
        bottom: -55px;
        width: 100px;
        height: 50px;
        font-size: 24px;
        border-width: 5px;
    }

    #spotify-container {
        top: 20px;
        right: 20px;
    }

    #spotify-container iframe {
        width: 200px;
        height: 105px;
        transform: scale(0.9);
        transform-origin: top right;
    }

    .category-label {
        font-size: 12px;
        padding: 8px 16px;
        letter-spacing: 0.5px;
    }

    #loading {
        font-size: 14px;
    }

    #vinyl-container {
        padding: 15px;
        border-radius: 8px;
    }

    #close-vinyl,
    #close-project,
    #close-info {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    #vinyl-category {
        font-size: 20px;
        margin-bottom: 15px;
    }

    #vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .vinyl-disc {
        width: 100px;
        height: 100px;
    }

    .vinyl-disc::before {
        width: 32px;
        height: 32px;
    }

    .vinyl-disc::after {
        width: 12px;
        height: 12px;
    }

    .vinyl-label {
        font-size: 11px;
    }

    #project-detail-container {
        border-radius: 10px;
    }

    #project-content {
        padding: 15px;
    }

    #info-container {
        padding: 20px 15px;
    }

    #info-content h1 {
        font-size: 24px;
    }

    #info-content h2 {
        font-size: 18px;
    }

    .info-link {
        font-size: 14px;
    }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
    #bio-card .vinyl-bio {
        width: 240px;
        height: 240px;
    }

    #bio-card .photo-container {
        width: 100px;
        height: 100px;
        top: calc(50% - 50px);
        left: calc(50% - 50px);
    }

    #bio-card .bio-text {
        font-size: 7px;
    }

    #bio-card .bio-text .spiral-word {
        font-size: 10px;
    }

    #projectButton,
    #explodeButton,
    #infoButton {
        padding: 8px 12px;
        font-size: 10px;
    }

    #vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .vinyl-disc {
        width: 90px;
        height: 90px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    #bio-card {
        top: 5px;
        left: 5px;
    }

    #bio-card .vinyl-bio {
        width: 280px;
        height: 280px;
    }

    #bio-card .photo-container {
        width: 115px;
        height: 115px;
    }

    #controls {
        bottom: 10px;
    }

    #projectButton,
    #explodeButton,
    #infoButton {
        padding: 8px 16px;
        font-size: 11px;
    }

    #project-detail-container,
    #vinyl-container,
    #info-container {
        max-height: 95vh;
    }
}
