/* -----------------------------------------------------------
   Fonts
----------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Moderustic:wght@300..800&family=Overlock+SC&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=SUSE:wght@100..800&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

/* -----------------------------------------------------------
   CSS Custom Properties
----------------------------------------------------------- */
:root {
    --bg:         #272625;
    --bg-2:       #34312f;
    --bg-3:       #2b2b2b;
    --accent:     #c9a96e;
    --text:       #e4e2dd;
    --text-muted: #888580;
    --text-dim:   #4a4846;
    --border:     rgba(255, 255, 255, 0.07);
    --radius:     12px;
    --shadow:     0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.7);
    --transition: 0.3s ease;
    --nav-h:      72px;
}

/* -----------------------------------------------------------
   Reset & Base
----------------------------------------------------------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Code Pro", monospace;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1.5s ease;
}

body.fade-in { opacity: 1; }

a { text-decoration: none; }

/* -----------------------------------------------------------
   Preloader
----------------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: var(--bg);
}

.ripple-loader {
    position: relative;
    width: 56px;
    height: 56px;
}

.ripple-loader div {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ripple-loader 1.2s ease-out infinite;
}

.ripple-loader div:nth-child(2) { animation-delay: -0.6s; }

@keyframes ripple-loader {
    0%   { top: 28px; left: 28px; width: 0;   height: 0;   opacity: 1; }
    100% { top: 0;    left: 0;    width: 56px; height: 56px; opacity: 0; }
}

/* -----------------------------------------------------------
   Navigation
----------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(25, 25, 25, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-h);
}

.first-container-home {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.first-nav-home {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 48px;
}

.first-nav-home > li {
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    animation: navFadeIn 0.5s forwards;
}

.first-nav-home > li:nth-child(1) { animation-delay: 0.3s; }
.first-nav-home > li:nth-child(2) { animation-delay: 0.5s; }
.first-nav-home > li:nth-child(3) { animation-delay: 0.7s; }
.first-nav-home > li:nth-child(4) { animation-delay: 0.9s; }

.first-nav-home a {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.first-nav-home a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.first-nav-home a:hover {
    color: var(--text);
}

.first-nav-home a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    list-style: none;
    margin: 0;
    padding: 6px;
    width: 190px;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.show {
    max-height: 420px;
    opacity: 1;
}

.dropdown-menu li a {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 3px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    text-align: left;
}

.dropdown-menu li a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------------------------
   Page Transition
----------------------------------------------------------- */
.page {
    position: relative;
    transition: transform 0.5s;
}

/* -----------------------------------------------------------
   Hero Section
----------------------------------------------------------- */
.first-section-home {
    height: 100vh;
    background-image: url('https://i.postimg.cc/50PNCLSJ/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: zoomBackground 20s infinite ease-in-out, changeBackground 10s infinite;
}

.first-section-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(25, 25, 25, 0.60) 0%,
        rgba(25, 25, 25, 0.05) 35%,
        rgba(25, 25, 25, 0.05) 65%,
        rgba(25, 25, 25, 0.95) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.first-section-home > * {
    position: relative;
    z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-indicator span {
    display: block;
    width: 16px;
    height: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transform: rotate(45deg);
    animation: scrollBounce 1.6s ease-in-out infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.45;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0.25; transform: rotate(45deg) translate(0, 0); }
    50%       { opacity: 0.85; transform: rotate(45deg) translate(4px, 4px); }
}

/* Name */
.name-home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.name-home h1,
.name-home h3 {
    font-size: 3.5rem;
    color: rgba(228, 226, 221, 0.85);
    margin: 0;
    letter-spacing: 18px;
}

.text-stable {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    font-size: 2rem;
}

.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 1s forwards;
    letter-spacing: -20px;
    font-size: 90%;
}

.animated-text:nth-child(16) { animation-delay: 0.5s; }
.animated-text:nth-child(15) { animation-delay: 1s; }
.animated-text:nth-child(14) { animation-delay: 1.5s; }
.animated-text:nth-child(13) { animation-delay: 2s; }
.animated-text:nth-child(12) { animation-delay: 2.5s; }
.animated-text:nth-child(11) { animation-delay: 3s; }
.animated-text:nth-child(10) { animation-delay: 3.2s; }
.animated-text:nth-child(9)  { animation-delay: 3.4s; }
.animated-text:nth-child(8)  { animation-delay: 3.6s; }
.animated-text:nth-child(7),
.animated-text:nth-child(6)  { animation-delay: 3s; }
.animated-text:nth-child(5)  { animation-delay: 2.5s; }
.animated-text:nth-child(4)  { animation-delay: 2s; }
.animated-text:nth-child(3)  { animation-delay: 1.5s; }
.animated-text:nth-child(2)  { animation-delay: 1s; }
.animated-text:nth-child(1)  { animation-delay: 0.5s; }

.text-animated {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: rgba(0, 0, 0, 0.18);
    z-index: 0;
    animation: expandShrink 15s infinite;
    filter: blur(4px);
    white-space: nowrap;
}

/* -----------------------------------------------------------
   Buy Songs Section
----------------------------------------------------------- */
.buyingSection {
    background: var(--bg-2);
    padding: 56px 20px 28px;
    text-align: center;
}

.buyingSection h2 {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 10px;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.buyingSection h2::before,
.buyingSection h2::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* -----------------------------------------------------------
   Photo Grid
----------------------------------------------------------- */
.second-section-home {
    background: var(--bg-2);
    padding: 20px 0 60px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 0 40px;
}

.photo-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: alignPhotoItems 0.6s forwards;
}

.photo-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-item:hover img {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.photo-item p {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin: 0;
    transition: color var(--transition);
    line-height: 1.5;
}

.photo-item:hover p {
    color: var(--text);
}

/* Fade-blur images */
.fade-blur-image {
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.fade-blur-image.show {
    opacity: 1;
    filter: blur(0);
}

/* -----------------------------------------------------------
   Last Released Section
----------------------------------------------------------- */
.third-section-home {
    background-color: var(--bg);
    background-image: url("https://i.postimg.cc/J4gwBPwK/background-II.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px 60px;
    min-height: 480px;
}

.third-section-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.74);
    z-index: 0;
}

.third-section-home > * {
    position: relative;
    z-index: 1;
}

.lastReleasedPhoto img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.audio-section {
    flex: 1;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.audio-section h2 {
    font-size: 26px;
    color: var(--text);
    letter-spacing: 8px;
    margin: 0 0 6px;
    text-align: left;
    font-weight: 400;
}

.audio-section p {
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 28px;
    text-align: left;
}

.audio-section audio {
    width: 100%;
    border-radius: 8px;
}

/* -----------------------------------------------------------
   Section Labels
----------------------------------------------------------- */
.section-label {
    text-align: center;
    padding: 60px 0 32px;
}

.section-label h2 {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.section-label h2::before,
.section-label h2::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

/* -----------------------------------------------------------
   Event Section
----------------------------------------------------------- */
.second-section-home-container {
    background: var(--bg-2);
    padding: 0 40px 70px;
}

.second-section-event {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.event-items {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.event-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(201, 169, 110, 0.28);
}

.event-items h1 {
    color: var(--text);
    font-size: 15px;
    letter-spacing: 4px;
    margin: 0;
    font-weight: 500;
}

.event-items h3 {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 400;
}

.event-items p {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin: 0;
}

.event-photos {
    width: 100%;
    border-radius: 10px;
    margin-top: 18px;
    display: block;
    filter: brightness(0.6);
    transition: filter 0.4s ease;
}

.event-items:hover .event-photos {
    filter: brightness(0.85);
}

/* -----------------------------------------------------------
   Contact Section
----------------------------------------------------------- */
.contact-section {
    background: var(--bg);
    padding: 0 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

.social-icons a {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    padding: 0;
    margin: 0;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-icons a:hover {
    color: var(--accent);
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(201, 169, 110, 0.08);
    transform: translateY(-4px);
}

/* -----------------------------------------------------------
   Swipe Navigation
----------------------------------------------------------- */
.slide-out { transform: translateX(-100%); }
.slide-in  { transform: translateX(100%);  }

/* -----------------------------------------------------------
   Content Visibility
----------------------------------------------------------- */
#content { display: none; }

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 28px 20px;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 4px;
}

/* -----------------------------------------------------------
   Animations
----------------------------------------------------------- */
@keyframes navFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomBackground {
    0%, 100% { background-size: 100%; }
    50%       { background-size: 110%; }
}

@keyframes changeBackground {
    0%, 100% { background-image: url('https://i.postimg.cc/J4gwBPwK/background-II.png'); }
    50%       { background-image: url('https://i.postimg.cc/50PNCLSJ/background.png'); }
}

@keyframes slideIn {
    0%   { opacity: 0; transform: translateY(-300px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes expandShrink {
    0%, 100% { transform: translateX(-50%) scale(0.8); }
    50%       { transform: translateX(-50%) scale(1.5); }
}

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

/* -----------------------------------------------------------
   Responsive — Mobile (max-width: 600px)
----------------------------------------------------------- */
@media (max-width: 600px) {
    :root { --nav-h: 60px; }

    .first-container-home { padding: 0 16px; }

    .first-nav-home { gap: 18px; }

    .first-nav-home a {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
        transform: none;
        width: 170px;
    }

    .dropdown-menu li a {
        font-size: 9px;
        padding: 10px 12px;
    }

    .first-section-home {
        height: 100svh;
        background-attachment: scroll;
        background-position: center center;
    }

    .name-home h1, .name-home h3 {
        font-size: 2rem;
        letter-spacing: 10px;
    }

    .scroll-indicator { display: none; }

    .buyingSection { padding: 40px 16px 20px; }
    .buyingSection h2 { font-size: 9px; letter-spacing: 5px; }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 16px;
    }

    .photo-item p { font-size: 8px; }

    .third-section-home {
        flex-direction: column;
        gap: 30px;
        padding: 70px 10px 60px;
        background-attachment: scroll;
    }

    .lastReleasedPhoto img {
        width: 280px;
        height: 280px;
    }

    .audio-section { max-width: 100%; }
    .audio-section h2 { font-size: 18px; letter-spacing: 4px; }
    .audio-section p  { font-size: 9px; letter-spacing: 3px; }
    .audio-section audio { height: 70px;  width: 320px;}

    .second-section-home-container { padding: 0 16px 48px; }

    .second-section-event {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-label { padding: 44px 0 24px; }
    .section-label h2 { font-size: 9px; letter-spacing: 6px; }

    .contact-section { padding: 0 16px 60px; }

    .social-icons { gap: 12px; }

    .social-icons a {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    footer p { font-size: 9px; letter-spacing: 2px; }
}

/* -----------------------------------------------------------
   Responsive — Small Mobile (max-width: 375px)
----------------------------------------------------------- */
@media (max-width: 375px) {
    .name-home h1, .name-home h3 { font-size: 1.6rem; letter-spacing: 8px; }
    .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px; }
    .social-icons a { width: 42px; height: 42px; font-size: 15px; }
}

/* -----------------------------------------------------------
   Responsive — Tablet (600px – 768px)
----------------------------------------------------------- */
@media (min-width: 600px) and (max-width: 768px) {
    .first-nav-home { gap: 28px; }

    .first-nav-home a {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .name-home h1, .name-home h3 { font-size: 2.8rem; letter-spacing: 14px; }

    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 0 24px;
    }

    .third-section-home {
        flex-direction: column;
        padding: 80px 30px 60px;
        background-attachment: scroll;
    }

    .lastReleasedPhoto img { width: 200px; height: 200px; }
    .audio-section h2 { font-size: 20px; }

    .second-section-home-container { padding: 0 24px 48px; }

    .second-section-event {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* -----------------------------------------------------------
   Responsive — Small Desktop (768px – 992px)
----------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        padding: 0 30px;
    }

    .third-section-home {
        flex-direction: row;
        padding: 90px 40px;
        background-attachment: scroll;
    }

    .second-section-event {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -----------------------------------------------------------
   Responsive — Medium Desktop (992px – 1200px)
----------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
        padding: 0 32px;
    }

    .third-section-home { padding: 90px 50px; }
}
