@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-color: #f7f7f7; /* Light gray from user request */
    --text-primary: #111111;
    --text-muted: #888888;
    --accent-color: #000000;
    --sidebar-width: 280px; /* Increased as requested */
    
    --font-brand: 'Montserrat', sans-serif; /* High-end brand font */
    --font-heading: var(--font-brand);
    --font-hand: var(--font-brand);
    --font-alt: var(--font-brand);
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2.2rem 2.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid #f2f2f2;
    background: #fff;
}

.close-menu-btn {
    display: none; /* Only mobile */
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-color); /* Light gray background */
    position: relative;
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-logo {
    width: 100%;
    margin-bottom: 0.4rem; /* Direct placement under REVE NASI */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.mobile-logo-container {
    height: 40px;
    cursor: pointer;
}

.mobile-logo {
    height: 100%;
    width: auto;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 3.5rem; /* Lowered category selection as requested */
}

.nav-link {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: rgba(0,0,0,0.6);
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link:hover {
    color: #888; /* Color change instead of line */
    transform: rotateX(5deg) scale(1.05);
}

.nav-link.active {
    color: #000;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    padding-bottom: 2rem;
    display: flex;
    justify-content: center; /* Centered icons */
}

.social-links-side {
    display: flex;
    gap: 1.5rem;
    font-size: 1.4rem;
}

.social-links-side a {
    color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links-side a:hover {
    transform: scale(1.3) rotate(15deg);
}

/* Slideshow */
.hero-slideshow {
    width: 100%;
    height: 98vh; /* Increased to nearly full screen as requested */
    display: none;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.hero-slideshow.visible {
    display: flex;
}

.slideshow-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
}

.slide-container {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: fit-content; /* Wraps the image width */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide-container.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-slide {
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    filter: grayscale(10%);
}

.slide-info {
    position: absolute;
    bottom: 1.5rem; /* Pinned to bottom-right of container */
    right: 1.5rem;
    text-align: right;
    pointer-events: none;
    z-index: 10;
}

.slide-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.4rem 0.8rem;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.slide-artist {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.2rem 0.5rem;
    width: fit-content;
    margin-left: auto;
}

.slideshow-counter {
    display: none; /* Removed as requested */
}

.producer-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -1.75rem; /* Extreme tight placement under REVE NASI */
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    opacity: 0.7;
}

/* Sections */
.section {
    display: none;
    padding: 8rem 4rem;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section.active {
    display: block;
}

.section-title {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Lighter separator */
    padding-bottom: 1rem;
    width: fit-content;
}

/* Album Grid & Card (Consolidated) */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns as requested */
    gap: 3rem 2rem;
}

.album-card {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    display: flex;
    flex-direction: column;
}

.album-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.streaming-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
}

.slide-info {
    display: none; /* Removed as requested */
}

.album-card.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.album-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.album-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.1rem; /* Even tighter gap */
    line-height: 1.2;
}

.album-header-text {
    min-height: 4.4rem; /* Reduced from 5.8rem to tighten gap */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 0.6rem; /* Reduced from 1.2rem */
}

.album-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0; /* Let header-text handle bottom margin */
}

.tracklist-container {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.track-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 !important;
    margin: 0 !important;
    padding-inline-start: 0 !important;
}

.track-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Tightened from 0.4rem */
    color: var(--text-primary);
}

.track-num {
    font-family: var(--font-brand);
    font-size: 0.6rem;
    color: var(--text-muted);
    width: 18px; /* Tightened from 24px */
    flex-shrink: 0;
    font-weight: 600;
}

.streaming-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

.role-summary {
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    margin-top: auto;
    font-weight: 600;
}

.stream-link {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.stream-link:hover {
    transform: scale(1.2);
    color: #666;
}

/* Contact Card */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 480px;
    margin: 4rem auto;
    padding: 4rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 1.8rem 3rem;
    text-decoration: none;
    color: var(--text-color);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.contact-card i {
    font-size: 1.1rem;
    color: var(--text-color);
    width: 20px;
    text-align: center;
}

.contact-card span {
    font-family: var(--font-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid #eee;
}

/* Mobile Top Nav */
.top-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    z-index: 200;
    border-bottom: 1px solid #eee;
}

.logo-text {
    font-family: var(--font-hand);
    font-size: 1.5rem;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

body.section-home .hamburger-btn,
body.section-home .close-menu-btn {
    display: none !important;
}

@media (max-width: 900px) {
    body.section-home .hamburger-btn {
        display: none !important; /* Keep hidden on home */
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 220px; padding: 2.5rem 1.5rem; }
}

@media (max-width: 900px) {
    .sidebar { 
        width: 100%; 
        height: 100vh;
        left: -100%; /* Hidden by default */
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Moved up as requested */
        padding: 3rem 2rem; /* Reverted to higher position as requested */
        border-right: none;
    }

    /* Base nav-link style for mobile */
    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 3px;
        width: auto;
    }

    /* OVERLAY STATE: When menu is opened from category pages */
    body:not(.section-home) .sidebar.mobile-active {
        left: 0;
        background: rgba(0, 0, 0, 0.3); /* Lighter as requested */
        backdrop-filter: blur(10px);
        z-index: 300; /* Covery top-nav (200) */
        justify-content: center;
        padding-bottom: 25vh;
    }

    /* Force all text elements in overlay to be WHITE */
    body:not(.section-home) .sidebar.mobile-active .nav-link,
    body:not(.section-home) .sidebar.mobile-active .close-menu-btn,
    body:not(.section-home) .sidebar.mobile-active .close-menu-btn i,
    body:not(.section-home) .sidebar.mobile-active .social-links-side a i {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    body:not(.section-home) .sidebar.mobile-active .sidebar-logo,
    body:not(.section-home) .sidebar.mobile-active .sidebar-footer {
        display: none;
    }

    /* HOME STATE: When sidebar acts as the home screen */
    body.section-home .sidebar {
        left: 0;
        background: #ffffff !important;
        transition: none;
        display: flex;
    }

    /* Force text elements in home sidebar to be BLACK */
    body.section-home .sidebar .nav-link,
    body.section-home .sidebar .nav-link.active {
        color: #000000 !important;
    }

    body.section-home .sidebar .social-links-side a i,
    body.section-home .sidebar .producer-label {
        color: #111111 !important;
    }

    body.section-home .sidebar .brand-logo {
        color: #111111;
    }

    body.section-home .sidebar .close-menu-btn {
        display: none !important;
    }

    body.section-home .sidebar .side-nav a[data-target="home"] {
        display: none !important;
    }

    .close-menu-btn {
        display: block;
        position: absolute;
        top: 2rem;
        left: 2rem;
        background: none;
        border: none;
        font-size: 1.8rem;
        z-index: 110;
        cursor: pointer;
    }

    .sidebar-logo {
        width: 100%;
        max-width: 200px;
    }

    .brand-logo {
        width: 100%;
        margin-bottom: 0.5rem; /* Reduced margin */
    }

    .producer-label {
        font-size: 0.7rem;
        margin-top: -1.2rem;
        margin-bottom: 1.5rem; /* Reduced margin */
    }

    .top-nav {
        display: flex;
        background: #fff;
    }

    body.section-home .top-nav {
        display: none !important;
    }

    .hamburger-btn i {
        color: #000; /* Reverted to black as requested */
    }

    .main-content { margin-left: 0; padding-top: 70px; }

    /* Hide hero slideshow on mobile home as the sidebar is the content */
    body.section-home .hero-slideshow {
        display: none !important;
    }

    /* Fixed: removed from mobile for current user request */
    .hero-slideshow {
        display: none !important;
    }

    .section { padding: 4rem 1.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 3rem; }

    .album-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 2rem 1rem;
    }

    .album-header-text {
        min-height: 3.5rem;
    }

    .album-title {
        font-size: 0.9rem;
    }

    .side-nav {
        align-items: center;
        text-align: center;
        margin-top: 1rem; /* Reverted to higher position as requested */
        gap: 1rem; /* Compact layout preserved */
    }

    .social-links-side {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 1.8rem; /* Increased gap for better touch targets */
    }

    .sidebar-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 5rem; /* Only this moves lower as requested */
        padding-bottom: 2rem;
    }
}
