/* Basic CSS styles */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1; /* Start visible */
    transition: opacity 0.3s ease;
}

main {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-image: url('../images/studio2.gif');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
    overflow: hidden;
    display: block; /* Always visible */
}

.hotspot.album {
    position: absolute;
    left: calc((850 / 1920) * 100%);
    top: calc((740 / 1080) * 100%);
    z-index: 10;
}

.hotspot.screen {
    position: absolute;
    left: calc((850 / 1920) * 100%);
    top: calc((430 / 1080) * 100%);
    z-index: 10;
    cursor: pointer;
}

.hotspot.screen .dot {
    pointer-events: auto;
}

.hotspot.latest {
    position: absolute;
    left: calc((433 / 1920) * 100%);
    top: calc((407 / 1080) * 100%);
    z-index: 10;
}

.hotspot.award {
    position: absolute;
    left: calc((1300 / 1920) * 100%);
    top: calc((146 / 1080) * 100%);
    z-index: 10;
}

.dot {
    width: 7px;
    height: 7px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.hover-text {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hotspot:hover .hover-text {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    
    70% {
        transform: scale(1.3);
        box-shadow: 0 0 0 25px rgba(255, 255, 255, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Add these styles for the button */
.enter-button {
    position: absolute;
    left: calc((1500 / 1920) * 100%);
    top: calc((410 / 1080) * 100%);
    z-index: 20;
}

.enter-button.living-room {
    position: absolute;
    left: calc((85 / 1920) * 100%);
    top: calc((363 / 1080) * 100%);
    z-index: 20;
}

.minimal-button {
    background: rgba(255, 255, 255, 0.044);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 8px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.47, 0, 0.745, 0.715);
    backdrop-filter: blur(5px);
    min-width: 35px;
    min-height: 35px;
    justify-content: center;
}

.button-arrow {
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.47, 0, 0.745, 0.715);
}

.button-text {
    opacity: 0;
    width: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.47, 0, 0.745, 0.715);
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
}

.minimal-button:hover {
    background: rgba(0, 0, 0, 0.416);
    border-color: rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    gap: 8px;
    min-width: auto;
}

.minimal-button:hover .button-text {
    opacity: 1;
    max-width: 200px;
    width: auto;
    transform: translateX(0);
}

.minimal-button:hover .button-arrow {
    transform: translateX(4px);
}

.minimal-button:active {
    transform: scale(0.98);
}

/* Add styles for the headers */
.top-headers {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 30;
}

.header-link {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 24px;
    margin: 0;
    margin-bottom: 15px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Update follow text styles */
.follow-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 30;
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 16px;
    opacity: 0.7;
    letter-spacing: 1px;
    /* Remove rotation */
    transform: none;
    transform-origin: center;
    cursor: pointer;
}

.follow-text span {
    position: relative;
    display: inline-block;
    padding-bottom: 5px; /* Space for underline */
}

.follow-text span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.follow-text:hover {
    opacity: 1;
}

.follow-text:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    body {
        width: 100%;
        height: 100vh;
    }

    main {
        width: 100vw;
        height: 100vh;
        background-size: auto 100vh;
        background-position: 50% center;
        transform-origin: center;
        touch-action: pan-x; /* Enable horizontal touch sliding */
    }

    /* Remove the blur effect */
    main::before {
        display: none;
    }

    .hover-text {
        display: block !important; /* Override any display: none */
    }

    .hotspot .hover-text {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        transform: translateY(-30px) translateX(-50%);
        left: 50%;
        pointer-events: none;
        opacity: 1 !important; /* Force visibility */
        transition: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 100; /* Ensure it's above other elements */
    }

    /* Keep the arrow pointer */
    .hotspot .hover-text::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid rgba(0, 0, 0, 0.8);
    }

    /* Remove any hiding styles */
    .hotspot:hover .hover-text {
        opacity: 1 !important;
    }

    .dot {
        width: 8px;
        height: 8px;
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
    }

    .dot:active {
        transform: scale(0.9);
    }

    /* Adjust hotspot positions for better visibility */
    .hotspot {
        transform-origin: center;
        z-index: 100;
    }

    .hotspot.album,
    .hotspot.screen,
    .hotspot.latest,
    .hotspot.award {
        transform: scale(1.2);
    }

    /* Style the hotspot text overlay */
    .hotspot-text-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(8px);
    }

    .hotspot-text-content {
        background: rgba(255, 255, 255, 0.1);
        padding: 25px 30px;
        border-radius: 15px;
        text-align: center;
        max-width: 85%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .hotspot-text-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hotspot-text-overlay.active .hotspot-text-content {
        transform: translateY(0);
        opacity: 1;
    }

    .hotspot-title {
        color: white;
        font-family: 'Poppins', sans-serif;
        font-size: 22px;
        margin-bottom: 12px;
        font-weight: 500;
        transform: translateY(10px);
        opacity: 0;
        transition: all 0.3s ease 0.1s;
    }

    .hotspot-description {
        color: rgba(255, 255, 255, 0.9);
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
        transform: translateY(10px);
        opacity: 0;
        transition: all 0.3s ease 0.2s;
    }

    .hotspot-text-overlay.active .hotspot-title,
    .hotspot-text-overlay.active .hotspot-description {
        transform: translateY(0);
        opacity: 1;
    }

    main.grabbing {
        cursor: grabbing;
        transition: none;
    }

    main.grabbing .hover-text {
        opacity: 0;
    }

    .minimal-button {
        min-width: 30px;
        min-height: 30px;
        font-size: 11px;
    }

    .top-headers {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
        top: 30px;
        left: 30px;
        width: auto;
    }

    .header-link {
        font-size: 20px;
        margin-bottom: 0; /* Remove vertical margin */
        position: relative;
    }

    /* Add separator between links */
    .header-link:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 15px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    /* Adjust hover effect for mobile */
    .header-link:hover {
        transform: none;
        opacity: 1;
    }

    .follow-text {
        bottom: 30px;
        right: 30px;
        font-size: 14px;
    }
}

/* Further adjustments for smaller screens */
@media screen and (max-width: 480px) {
    .top-headers {
        top: 20px;
        left: 20px;
        gap: 20px;
    }

    .header-link {
        font-size: 18px;
    }

    .header-link:not(:last-child)::after {
        right: -10px;
        height: 12px;
    }
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    body, main {
        height: -webkit-fill-available;
    }

    .hover-text {
        transform: translateX(-50%) translateY(0);
    }
}

/* Social media overlay styles */
.social-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.social-overlay.active {
    opacity: 1;
    visibility: visible;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
    max-width: 500px;
    margin: 0 auto;
}

.social-icon {
    color: white;
    font-size: 35px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-overlay.active .social-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay for each icon */
.social-icon:nth-child(1) { transition-delay: 0.1s; }
.social-icon:nth-child(2) { transition-delay: 0.2s; }
.social-icon:nth-child(3) { transition-delay: 0.3s; }
.social-icon:nth-child(4) { transition-delay: 0.4s; }

.social-icon:hover {
    transform: scale(1.2);
    color: #ff3333;
}

/* Bedroom specific styles */
.bedroom {
    background-image: url('../images/bedroom1.gif');
}

/* Bedroom hotspot positions - adjust these coordinates based on your image */
.hotspot.bed {
    position: absolute;
    left: calc((960 / 1920) * 100%);
    top: calc((540 / 1080) * 100%);
    z-index: 10;
}

.hotspot.desk {
    position: absolute;
    left: calc((1200 / 1920) * 100%);
    top: calc((500 / 1080) * 100%);
    z-index: 10;
}

.hotspot.wardrobe {
    position: absolute;
    left: calc((400 / 1920) * 100%);
    top: calc((500 / 1080) * 100%);
    z-index: 10;
}

.hotspot.window {
    position: absolute;
    left: calc((800 / 1920) * 100%);
    top: calc((300 / 1080) * 100%);
    z-index: 10;
}

/* Update back button arrow direction */
.bedroom .minimal-button .button-arrow {
    transform: rotate(180deg);
}

.bedroom .minimal-button:hover .button-arrow {
    transform: rotate(180deg) translateX(-4px);
}

/* Create a container for hotspots that moves with background */
.hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    transform: translateX(0); /* Initial position */
}

/* Make hotspots clickable */
.hotspot {
    pointer-events: auto;
}

/* Album overlay styles */
.album-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.album-overlay.active {
    opacity: 1;
    visibility: visible;
}

.album-container {
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    color: white;
    max-height: 90vh;
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.album-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
    z-index: 1010;
    position: relative;
}

.close-button:hover {
    transform: rotate(90deg);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.album-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-overlay.active .album-item {
    opacity: 1;
    transform: translateY(0);
}

/* Add delay for each album */
.album-item:nth-child(1) { transition-delay: 0.1s; }
.album-item:nth-child(2) { transition-delay: 0.15s; }
.album-item:nth-child(3) { transition-delay: 0.2s; }
.album-item:nth-child(4) { transition-delay: 0.25s; }
.album-item:nth-child(5) { transition-delay: 0.3s; }
.album-item:nth-child(6) { transition-delay: 0.35s; }
.album-item:nth-child(7) { transition-delay: 0.4s; }
.album-item:nth-child(8) { transition-delay: 0.45s; }

.album-cover {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    aspect-ratio: 1/1;
    background-color: #333;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-play i {
    font-size: 40px;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.album-item:hover .album-play {
    opacity: 1;
}

.album-item:hover .album-play i {
    transform: scale(1);
}

.album-item:hover .album-cover img {
    transform: scale(1.05);
}

.album-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.album-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

/* Mobile styles for albums */
@media screen and (max-width: 1024px) {
    .albums-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .album-container {
        padding: 20px;
    }
    
    .album-header h2 {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
}

/* About overlay styles */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.about-overlay.active {
    opacity: 1;
    visibility: visible;
}

.about-container {
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    color: white;
    max-height: 90vh;
    overflow-y: auto;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.about-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
}

.about-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
    z-index: 1010;
    position: relative;
}

.about-close-button:hover {
    transform: rotate(90deg);
}

.about-content {
    display: flex;
    gap: 40px;
}

.about-image {
    flex: 1;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.about-overlay.active .about-image {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
    transition-delay: 0.2s;
}

.about-overlay.active .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #fff;
}

.about-intro {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #ddd;
}

.about-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #bbb;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #ff3333;
}

.stat-item p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    margin: 0;
    color: #aaa;
}

/* Mobile styles for about */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-container {
        padding: 20px;
    }
    
    .about-header h2 {
        font-size: 24px;
    }
    
    .about-text h1 {
        font-size: 28px;
    }
    
    .about-intro {
        font-size: 16px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Hide scrollbars but keep functionality */
.about-container, .album-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.about-container::-webkit-scrollbar, .album-container::-webkit-scrollbar {
    display: none;
}

/* Enable touch sliding */
.about-overlay, .album-overlay {
    touch-action: pan-y; /* Enable vertical touch sliding */
}

/* Make content smoothly scrollable */
.about-content, .albums-grid {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Ensure content is properly contained */
.about-container {
    max-height: 90vh;
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    color: white;
}

.album-container {
    max-height: 90vh;
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    color: white;
}

/* Improve close buttons for mobile */
.close-button, .about-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
    z-index: 1010;
    position: relative;
}

/* Increase tap target size on mobile */
@media screen and (max-width: 768px) {
    .close-button, .about-close-button {
        padding: 15px;
        font-size: 28px;
    }
    
    .close-button i, .about-close-button i {
        display: block;
        width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
    }
    
    /* Ensure containers don't overflow */
    .about-container, .album-container {
        padding: 20px;
        max-height: 85vh;
    }
    
    /* Make sure headers are always visible */
    .about-header, .album-header {
        position: sticky;
        top: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1005;
        padding: 10px 0;
        margin-bottom: 20px;
    }
}

/* Improve mobile scrolling for overlays */
@media screen and (max-width: 768px) {
    /* Make overlay content scrollable on mobile */
    .about-overlay, .album-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    
    /* Fix container positioning */
    .about-container, .album-container {
        position: relative;
        max-height: none;
        height: auto;
        margin: 0;
        padding: 20px;
        padding-top: 60px; /* Space for fixed header */
        padding-bottom: 40px; /* Bottom padding for scrolling */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix header positioning */
    .about-header, .album-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        z-index: 1005;
        padding: 15px 20px;
        margin: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Ensure content is fully scrollable */
    .about-content, .albums-grid {
        height: auto;
        overflow: visible;
    }
    
    /* Fix album grid layout */
    .albums-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding-bottom: 30px;
    }
    
    /* Ensure images don't cause overflow */
    .about-image img, .album-cover img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix close button */
    .close-button, .about-close-button {
        position: fixed;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        padding: 0;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    /* Show/hide close button based on scroll position */
    .overlay-scrolled .close-button,
    .overlay-scrolled .about-close-button {
        opacity: 0.7;
    }
    
    .overlay-scrolled .close-button:hover,
    .overlay-scrolled .about-close-button:hover {
        opacity: 1;
    }
    
    /* Add scroll indicator */
    .scroll-indicator {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1100;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .scroll-indicator::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
        transform: rotate(45deg) translateY(-5px);
        animation: scrollIndicator 1.5s infinite;
    }
    
    @keyframes scrollIndicator {
        0% {
            opacity: 0;
            transform: rotate(45deg) translate(-5px, -5px);
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: rotate(45deg) translate(5px, 5px);
        }
    }
    
    /* Hide scroll indicator when paused */
    .scroll-paused .scroll-indicator {
        opacity: 0;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container, .album-container {
        padding-top: 50px;
    }
    
    .about-header h2, .album-header h2 {
        font-size: 18px;
    }
    
    .about-text h1 {
        font-size: 24px;
    }
}

/* Improved scroll buttons */
@media screen and (max-width: 768px) {
    .scroll-controls {
        position: fixed;
        bottom: 30px;
        right: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 2000; /* Ensure highest z-index */
    }
    
    .scroll-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 51, 51, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.8);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    
    .scroll-btn i {
        font-size: 24px;
    }
    
    .scroll-btn:active {
        transform: scale(0.9);
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

/* Add specific styling for the bedroom page */
.bedroom-main {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-image: url('../images/bedroom1.gif'); /* Use the bedroom image instead */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
    overflow: hidden;
    display: block;
}

/* Bedroom-specific hotspot positions */
.bedroom-main .hotspot.bed {
    position: absolute;
    left: calc((850 / 1920) * 100%);
    top: calc((740 / 1080) * 100%);
    z-index: 10;
}

.bedroom-main .hotspot.desk {
    position: absolute;
    left: calc((1300 / 1920) * 100%);
    top: calc((650 / 1080) * 100%);
    z-index: 10;
}

.bedroom-main .hotspot.wardrobe {
    position: absolute;
    left: calc((400 / 1920) * 100%);
    top: calc((500 / 1080) * 100%);
    z-index: 10;
}

.bedroom-main .hotspot.window {
    position: absolute;
    left: calc((1500 / 1920) * 100%);
    top: calc((300 / 1080) * 100%);
    z-index: 10;
}

/* Adjust the back button position for bedroom */
.bedroom-main .enter-button {
    position: absolute;
    left: calc((100 / 1920) * 100%);
    top: calc((900 / 1080) * 100%);
    z-index: 20;
}

/* Reverse the arrow direction for the back button */
.bedroom-main .minimal-button .button-arrow {
    transform: rotate(180deg);
}

.bedroom-main .minimal-button:hover .button-arrow {
    transform: rotate(180deg) translateX(-4px);
}

/* Add grabbing cursor for better touch feedback */
.grabbing {
    cursor: grabbing !important;
}

/* Ensure hotspots container can be transformed */
.hotspots-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: transform 0.1s ease-out;
}

/* Improve touch experience on mobile */
@media (max-width: 768px) {
    main {
        touch-action: none; /* Prevent browser handling of touch gestures */
    }
    
    .hotspot .dot {
        width: 10px; /* Larger dots on mobile */
        height: 10px;
    }
}

/* Update menu toggle to match "Follow on" style */
.menu-toggle {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 30;
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 16px;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    text-transform: none;
    letter-spacing: normal;
}

.menu-toggle:hover {
    opacity: 1;
    transform: translateX(5px);
    background: none;
    box-shadow: none;
}

.menu-toggle span {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.menu-toggle span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.menu-toggle:hover span::after {
    width: 100%;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2000 !important;
}

.menu-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background-color: rgba(20, 20, 20, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.menu-overlay.active .menu-container {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h2 {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.menu-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-close-button:hover {
    opacity: 1;
}

.menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

.menu-section:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-section h3 {
    font-family: 'Poppins', sans-serif;
    color: #ff3333;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.menu-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.5s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.content-menu .menu-item:nth-child(1) { animation-delay: 0.1s; }
.content-menu .menu-item:nth-child(2) { animation-delay: 0.2s; }
.content-menu .menu-item:nth-child(3) { animation-delay: 0.3s; }

.locations-menu .menu-item:nth-child(1) { animation-delay: 0.4s; }
.locations-menu .menu-item:nth-child(2) { animation-delay: 0.5s; }
.locations-menu .menu-item:nth-child(3) { animation-delay: 0.6s; }
.locations-menu .menu-item:nth-child(4) { animation-delay: 0.7s; }
.locations-menu .menu-item:nth-child(5) { animation-delay: 0.8s; }
.locations-menu .menu-item:nth-child(6) { animation-delay: 0.9s; }
.locations-menu .menu-item:nth-child(7) { animation-delay: 1.0s; }

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 51, 51, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff3333;
    font-size: 18px;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
    background: rgba(255, 51, 51, 0.8);
    color: white;
    transform: rotate(360deg);
}

.menu-text {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Mobile styles for menu */
@media screen and (max-width: 768px) {
    .menu-toggle {
        bottom: 20px;
        left: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .menu-container {
        padding: 20px;
        width: 100%;
        max-width: none;
    }
    
    .menu-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .menu-header h2 {
        width: 100%;
        text-align: center;
        font-size: 24px;
    }

    .menu-section {
        text-align: center;
    }

    .menu-section h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .menu-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }

    .menu-icon {
        margin-right: 15px;
    }

    .menu-text {
        text-align: center;
        font-size: 16px;
    }

    .menu-close-button {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Hotspot Media Queries */
@media screen and (max-width: 1366px) {
    .hotspot.guitar {
        left: calc((800 / 1366) * 100%);
        top: calc((520 / 768) * 100%);
    }

    .hotspot.piano {
        left: calc((1100 / 1366) * 100%);
        top: calc((460 / 768) * 100%);
    }

    .hotspot.vinyl {
        left: calc((350 / 1366) * 100%);
        top: calc((580 / 768) * 100%);
    }

    .hotspot.speakers {
        left: calc((1300 / 1366) * 100%);
        top: calc((330 / 768) * 100%);
    }

    /* index */
    .hotspot.latest {
        position: absolute;
        left: calc((733 / 1920) * 100%);
        top: calc((407 / 1080) * 100%);
        z-index: 10;
    }
    
    .hotspot.award {
        position: absolute;
        left: calc((1400 / 1920) * 100%);
        top: calc((146 / 1080) * 100%);
        z-index: 10;
    }
    .hotspot.album {
        position: absolute;
        left: calc((650 / 1920) * 100%);
        top: calc((720 / 1080) * 100%);
        z-index: 10;
    }

    .bedroom-main .hotspot.desk {
        position: absolute;
        left: calc((1350 / 1920) * 100%);
        top: calc((420 / 1080) * 100%);
        z-index: 10;
    }
    
    .hotspot.screen {
        position: absolute;
        left: calc((850 / 1920) * 100%);
        top: calc((230 / 1080) * 100%);
        z-index: 10;
        cursor: pointer;
    }
    .enter-button.living-room {
        position: absolute;
        left: calc((110 / 1920) * 100%);
        top: calc((563 / 1080) * 100%);
        z-index: 20;
    }

}

@media screen and (max-width: 1024px) {
    .hotspot.guitar {
        left: calc((750 / 1024) * 100%);
        top: calc((500 / 768) * 100%);
    }

    .hotspot.piano {
        left: calc((950 / 1024) * 100%);
        top: calc((440 / 768) * 100%);
    }

    .hotspot.vinyl {
        left: calc((300 / 1024) * 100%);
        top: calc((560 / 768) * 100%);
    }

    .hotspot.speakers {
        left: calc((1100 / 1024) * 100%);
        top: calc((320 / 768) * 100%);
    }
}

@media screen and (max-width: 768px) {
    .hotspot.guitar {
        left: calc((600 / 768) * 100%);
        top: calc((480 / 480) * 100%);
    }

    .hotspot.piano {
        left: calc((700 / 768) * 100%);
        top: calc((420 / 480) * 100%);
    }

    .hotspot.vinyl {
        left: calc((250 / 768) * 100%);
        top: calc((540 / 480) * 100%);
    }

    .hotspot.speakers {
        left: calc((800 / 768) * 100%);
        top: calc((300 / 480) * 100%);
    }
}

@media screen and (max-width: 480px) {
    .hotspot.guitar {
        left: calc((400 / 480) * 100%);
        top: calc((460 / 320) * 100%);
    }

    .hotspot.piano {
        left: calc((450 / 480) * 100%);
        top: calc((400 / 320) * 100%);
    }

    .hotspot.vinyl {
        left: calc((200 / 480) * 100%);
        top: calc((520 / 320) * 100%);
    }

    .hotspot.speakers {
        left: calc((500 / 480) * 100%);
        top: calc((280 / 320) * 100%);
    }
}

/* Update only the social icons grid layout */
.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
    max-width: 500px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 30px;
    }
}

@media screen and (max-width: 480px) {
    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 25px;
    }
}

/* Enhanced wave animation with better visibility */
.enter-button::before,
.enter-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
}

.enter-button::before {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: waveEffect 2s infinite, rotate 8s linear infinite;
}

.enter-button::after {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: waveEffect 2s infinite 0.5s, rotate 8s linear infinite reverse;
}

@keyframes waveEffect {
    0% {
        width: 45px;
        height: 45px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        border-width: 3px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        opacity: 0.7;
        border-width: 2px;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        width: 90px;
        height: 90px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
        border-width: 1px;
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    }
}

/* Enhanced hover effects */
.enter-button:hover::before,
.enter-button:hover::after {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    animation-duration: 1.5s;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Enhanced button pulse */
.minimal-button {
    animation: buttonPulse 4s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Update mobile hotspot text to always show */
@media (max-width: 768px) {
    .hotspot .hover-text {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        transform: translateY(-30px) translateX(-50%);
        left: 50%;
        pointer-events: none;
        opacity: 1 !important; /* Force visibility */
        transition: none; /* Remove transition */
        /* Add subtle shadow for better visibility */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Remove hover/tap states since text is always visible */
    .hotspot .dot:active + .hover-text,
    .hotspot .dot:focus + .hover-text {
        opacity: 1;
    }

    /* Keep the arrow pointer */
    .hotspot .hover-text::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid rgba(0, 0, 0, 0.8);
    }
}

/* Update button styles for mobile */
@media screen and (max-width: 768px) {
    .minimal-button {
        transition: all 0.3s ease;
    }

    .button-text {
        transition: all 0.3s ease;
    }

    .button-arrow {
        transition: transform 0.3s ease;
    }
}

/* Album links styles */
.album-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.album-cover:hover .album-links {
    opacity: 1;
}

.album-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.album-link:hover {
    transform: scale(1.1);
}

.album-link.spotify:hover {
    color: #1DB954;
    background: rgba(29, 185, 84, 0.1);
}

.album-link.youtube:hover {
    color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
}

.album-link.apple:hover {
    color: #fc3c44;
    background: rgba(252, 60, 68, 0.1);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .album-links {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .album-link {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Update audio control button position */
.audio-control {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.audio-control.muted i::before {
    content: "\f6a9"; /* Font Awesome muted icon */
}

/* Update loading indicator position to match */
.audio-loading {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    z-index: 999;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Update mobile adjustments */
@media screen and (max-width: 768px) {
    .audio-control {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }

    .audio-loading {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}

/* Latest Show styles */
.latest-show-main {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-image: url('../images/latest-show.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
    overflow: hidden;
    display: block;
}

.latest-show-container {
    position: relative;
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
    color: white;
    z-index: 10;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.show-item {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.show-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.show-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.show-item:hover .show-image img {
    transform: scale(1.1);
}

.show-info {
    padding: 20px;
}

.show-info h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: white;
}

.show-date, .show-venue {
    font-size: 14px;
    color: #aaa;
    margin: 5px 0;
}

.show-ticket-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #ff3333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.show-ticket-link:hover {
    background: #ff4444;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .latest-show-container {
        margin: 60px auto;
    }

    .shows-grid {
        grid-template-columns: 1fr;
    }
}

