/* ========================================
   NIMESH KALINGA – OFFICIAL WEBSITE
   Premium Dark Theme Stylesheet
   ======================================== */

/* ---------- Custom Properties ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    --accent: #c8a44e;
    --accent-light: #e0c060;
    --accent-glow: rgba(200, 164, 78, 0.35);

    --gradient-accent: linear-gradient(135deg, #c8a44e 0%, #e0c060 50%, #c8a44e 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(200, 164, 78, 0.08) 0%, rgba(10, 10, 15, 0) 60%);

    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Accent subtle variants */
    --accent-subtle: rgba(200, 164, 78, 0.12);
    --accent-subtle-hover: rgba(200, 164, 78, 0.2);
    --accent-subtle-border: rgba(200, 164, 78, 0.15);

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-30: 120px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ---------- Skip Navigation ---------- */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10001;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top 0.3s ease;
}

.skip-nav:focus {
    top: 16px;
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
    display: none;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(200, 164, 78, 0.3);
    mix-blend-mode: normal;
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(200, 164, 78, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    display: none;
}

/* Show custom cursor only on non-touch desktops */
@media (hover: hover) and (min-width: 1025px) {

    html,
    body,
    a,
    button,
    .gallery-item,
    .play-btn,
    .btn {
        cursor: none;
    }

    .custom-cursor,
    .custom-cursor-follower {
        display: block;
    }
}

.custom-cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(200, 164, 78, 0.15);
}

/* ---------- Musician-Style Preloader ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader-vinyl {
    position: relative;
    width: 100px;
    height: 100px;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--bg-primary) 18%, transparent 18.5%),
        radial-gradient(circle at center, var(--accent) 19%, transparent 19.5%),
        radial-gradient(circle at center, transparent 24%, rgba(200, 164, 78, 0.08) 24.5%, rgba(200, 164, 78, 0.08) 25%, transparent 25.5%),
        radial-gradient(circle at center, transparent 34%, rgba(200, 164, 78, 0.06) 34.5%, rgba(200, 164, 78, 0.06) 35%, transparent 35.5%),
        radial-gradient(circle at center, transparent 44%, rgba(200, 164, 78, 0.04) 44.5%, rgba(200, 164, 78, 0.04) 45%, transparent 45.5%),
        conic-gradient(from 0deg, #1a1a24, #222230, #1a1a24, #222230, #1a1a24, #222230, #1a1a24, #222230, #1a1a24);
    animation: vinylSpinLoader 2s linear infinite;
    box-shadow: 0 0 30px rgba(200, 164, 78, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

@keyframes vinylSpinLoader {
    to {
        transform: rotate(360deg);
    }
}

.loader-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.loader-equalizer span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.loader-equalizer span:nth-child(1) {
    height: 10px;
    animation-delay: 0s;
}

.loader-equalizer span:nth-child(2) {
    height: 20px;
    animation-delay: 0.1s;
}

.loader-equalizer span:nth-child(3) {
    height: 28px;
    animation-delay: 0.2s;
}

.loader-equalizer span:nth-child(4) {
    height: 16px;
    animation-delay: 0.3s;
}

.loader-equalizer span:nth-child(5) {
    height: 22px;
    animation-delay: 0.15s;
}

@keyframes eqBounce {
    0% {
        height: 6px;
        opacity: 0.4;
    }

    100% {
        height: 28px;
        opacity: 1;
    }
}

.loader-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: loaderFade 1.5s ease-in-out infinite alternate;
}

@keyframes loaderFade {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* ---------- Particles Background ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Navigation ---------- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    gap: 2px;
    position: relative;
    z-index: 1001;
}

.logo-n {
    color: var(--text-primary);
}

.logo-k {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(200, 164, 78, 0.12);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(240, 240, 245, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Shimmer Border ---------- */
.shimmer-border {
    position: relative;
    overflow: hidden;
}

.shimmer-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(200, 164, 78, 0.25) 50%,
            transparent 70%);
    animation: shimmerMove 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% {
        transform: translateX(-100%) rotate(0deg);
    }

    100% {
        transform: translateX(100%) rotate(0deg);
    }
}

/* ---------- Section Common ---------- */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 1.5px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-title .accent {
    color: var(--accent);
    font-style: italic;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ---------- Waveform Section Divider ---------- */
.waveform-divider {
    width: 100%;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.waveform-divider svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: none;
    stroke: rgba(200, 164, 78, 0.15);
    stroke-width: 1.5;
    stroke-linecap: round;
    animation: waveAnim 4s ease-in-out infinite alternate;
}

@keyframes waveAnim {
    0% {
        d: path("M0,20 Q30,5 60,20 T120,20 T180,20 T240,20 T300,20 T360,20 T420,20 T480,20 T540,20 T600,20 T660,20 T720,20 T780,20 T840,20 T900,20 T960,20 T1020,20 T1080,20 T1140,20 T1200,20");
    }

    100% {
        d: path("M0,20 Q30,35 60,20 T120,20 T180,20 T240,20 T300,20 T360,20 T420,20 T480,20 T540,20 T600,20 T660,20 T720,20 T780,20 T840,20 T900,20 T960,20 T1020,20 T1080,20 T1140,20 T1200,20");
    }
}

/* ---------- Hero Section ---------- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.02);
    transition: transform 15s ease;
}

#hero:hover .hero-bg-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 15, 0.1) 0%, rgba(10, 10, 15, 0.2) 30%, rgba(10, 10, 15, 0.7) 60%, rgba(10, 10, 15, 0.92) 100%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.1) 50%, rgba(10, 10, 15, 0.8) 100%),
        radial-gradient(ellipse at 75% 50%, rgba(200, 164, 78, 0.06) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
}

.hero-text-wrapper {
    max-width: 560px;
    padding-top: 120px;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    padding-left: 48px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 1.5px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

/* Each letter wraps for reveal animation */
.title-line .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-90deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.title-line.revealed .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(200, 164, 78, 0.3));
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(240, 240, 245, 0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 440px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-social {
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-social a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 240, 245, 0.15);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.05rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.hero-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(200, 164, 78, 0.2);
    background: rgba(200, 164, 78, 0.08);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- About Section ---------- */
#about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(200, 164, 78, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.04);
}

.image-frame {
    position: absolute;
    inset: -12px;
    border: 1.5px solid rgba(200, 164, 78, 0.2);
    border-radius: calc(var(--radius-lg) + 4px);
    pointer-events: none;
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    opacity: 0.15;
    filter: blur(2px);
}

.about-story p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.about-story p:first-child::first-letter {
    font-family: var(--font-display);
    font-size: 3.2rem;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 4px;
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Music Section ---------- */
#music {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#music::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(200, 164, 78, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* ---------- Glassmorphism Music Cards ---------- */
.music-card {
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(240, 240, 245, 0.06);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
    perspective: 800px;
}

.music-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 164, 78, 0.25);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(200, 164, 78, 0.1);
}

.card-artwork {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.music-card:hover .card-artwork img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.music-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transform: scale(0.7);
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}

.music-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    transform: scale(1.1) !important;
}

/* Vinyl Spin Effect */
.vinyl-effect {
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(200, 164, 78, 0.05), transparent, rgba(200, 164, 78, 0.03), transparent);
    opacity: 0;
    transition: var(--transition-slow);
    animation: vinylSpin 4s linear infinite;
}

.music-card:hover .vinyl-effect {
    opacity: 1;
}

@keyframes vinylSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Card Equalizer Bars */
.card-equalizer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.music-card:hover .card-equalizer {
    opacity: 1;
}

.card-equalizer span {
    display: block;
    width: 3px;
    border-radius: 1.5px;
    background: var(--accent);
}

.card-equalizer span:nth-child(1) {
    animation: cardEq 0.6s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.card-equalizer span:nth-child(2) {
    animation: cardEq 0.6s ease-in-out infinite alternate;
    animation-delay: 0.1s;
}

.card-equalizer span:nth-child(3) {
    animation: cardEq 0.6s ease-in-out infinite alternate;
    animation-delay: 0.2s;
}

.card-equalizer span:nth-child(4) {
    animation: cardEq 0.6s ease-in-out infinite alternate;
    animation-delay: 0.15s;
}

.card-equalizer span:nth-child(5) {
    animation: cardEq 0.6s ease-in-out infinite alternate;
    animation-delay: 0.05s;
}

@keyframes cardEq {
    0% {
        height: 4px;
    }

    100% {
        height: 18px;
    }
}

.card-info {
    padding: 22px 24px 26px;
}

.track-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.track-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.track-artist {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.track-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(240, 240, 245, 0.06);
}

.track-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(240, 240, 245, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.track-link:hover {
    transform: scale(1.15);
    border-color: transparent;
}

.track-link-yt {
    color: #ff4444;
}

.track-link-yt:hover {
    background: rgba(255, 68, 68, 0.15);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.track-link-sp {
    color: #1db954;
}

.track-link-sp:hover {
    background: rgba(29, 185, 84, 0.15);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.2);
}

/* ---------- Gallery Section ---------- */
#gallery {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.gallery-expand-icon {
    color: var(--accent);
    font-size: 1rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-expand-icon {
    transform: scale(1.2);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(200, 164, 78, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(200, 164, 78, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ---------- Contact / Connect Section ---------- */
#contact {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

#contact::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(200, 164, 78, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
    max-width: 450px;
}

.social-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Glassmorphism Social Cards */
.social-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: rgba(22, 22, 31, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 240, 245, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.social-card:hover {
    background: rgba(28, 28, 40, 0.6);
    border-color: rgba(200, 164, 78, 0.2);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

#social-youtube .social-icon {
    background: rgba(255, 0, 0, 0.12);
    color: #ff4444;
}

#social-instagram .social-icon {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
}

#social-tiktok .social-icon {
    background: rgba(0, 242, 234, 0.12);
    color: #00f2ea;
}

#social-facebook .social-icon {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.social-handle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.social-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.social-card:hover .social-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.contact-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    filter: brightness(0.85) contrast(1.1);
}

.contact-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(200, 164, 78, 0.15);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* ---------- Contact Form ---------- */
.contact-form-col {
    width: 100%;
}

.contact-form {
    background: rgba(22, 22, 31, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 240, 245, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(240, 240, 245, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.1);
    background: rgba(15, 15, 22, 0.8);
}

.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #d4af5e 100%);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 78, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit.sending {
    opacity: 0.7;
    pointer-events: none;
}

.form-submit .btn-icon {
    transition: transform 0.3s ease;
}

.form-submit:hover .btn-icon {
    transform: translateX(4px);
}

.form-status {
    margin-top: 16px;
    padding: 0;
    font-size: 0.9rem;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.form-status.show {
    padding: 14px 18px;
    max-height: 100px;
}

.form-status.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

/* ---------- Footer ---------- */
#footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(240, 240, 245, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(240, 240, 245, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-line {
    width: 60px;
    height: 1px;
    background: rgba(200, 164, 78, 0.3);
    margin: 0 auto 20px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(200, 164, 78, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 164, 78, 0.25);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(200, 164, 78, 0.3);
}

/* ---------- Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 24px;
    }

    .hero-text-wrapper {
        padding-top: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form {
        padding: 30px 24px;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide custom cursor on touch devices */
    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    html,
    body,
    a,
    button {
        cursor: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition), visibility var(--transition);
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 14px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        padding-left: 0;
    }

    .hero-subtitle::before {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.7) 50%, rgba(10, 10, 15, 0.92) 100%),
            radial-gradient(ellipse at 50% 40%, rgba(200, 164, 78, 0.06) 0%, transparent 60%) !important;
    }

    /* Swipeable Music Cards */
    .music-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .music-grid::-webkit-scrollbar {
        display: none;
    }

    .music-card {
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    #about,
    #music,
    #gallery,
    #contact {
        padding: 80px 0;
    }

    .scroll-indicator {
        display: none;
    }

    .waveform-divider {
        height: 24px;
    }

    /* Carousel Dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        padding-bottom: 4px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1.5px solid rgba(200, 164, 78, 0.4);
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .carousel-dot.active {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(200, 164, 78, 0.4);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .music-card {
        min-width: 260px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

/* ---------- Prefers Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg-img {
        transition: none;
        transform: none;
    }

    #hero:hover .hero-bg-img {
        transform: none;
    }

    .shimmer-border::after {
        display: none;
    }

    #particles-canvas {
        display: none;
    }

    .wave-path {
        animation: none;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .hero-subtitle,
    .hero-tagline,
    .hero-cta,
    .hero-social,
    .title-line {
        opacity: 1;
        transform: none;
    }

    .title-line .char {
        opacity: 1;
        transform: none;
    }
}