/* ─── RAVECORE — Main CSS ──────────────────────────────────────────────────── */

/* ── Variables ── */
:root {
    --bg:         #080808;
    --bg2:        #050505;
    --surface:    rgba(0,0,0,0.88);
    --border:     rgba(0,200,255,0.12);
    --accent:     #00c8ff;       /* light blue */
    --accent2:    #ff2d55;       /* neon red */
    --text:       #f0f0f0;
    --text-muted: #666666;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'Rajdhani', sans-serif;
    --font-content: 'Exo 2', sans-serif;
    --nav-h:       60px;
    --transition:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg:         #dce5f0;
    --bg2:        #cfd9ea;
    --surface:    rgba(255,255,255,0.96);
    --border:     rgba(0,91,158,0.2);
    --accent:     #005b9e;      /* #005b9e — specified by user */
    --accent2:    #cc0033;
    --text:       #1a1a2e;      /* charcoal */
    --text-muted: #3a4a6a;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.02em;
    transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}
[data-theme="light"] #site-nav { background: rgba(220,227,240,0.92); border-bottom:1px solid rgba(0,80,180,0.15); }

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s;
}
.nav-logo a:hover { opacity: 0.8; }

/* Logo image tinting per theme */
[data-theme="light"] .nav-logo img { filter: invert(1) brightness(0.2); }
[data-theme="light"] #site-footer .nav-logo img { filter: invert(1) brightness(0.3); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin-left: auto; }
.nav-links a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active {
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 8px var(--accent), 0 0 20px rgba(0,200,255,0.4);
    animation: nav-glow 2.5s ease-in-out infinite alternate;
}
@keyframes nav-glow {
    from { text-shadow: 0 0 4px var(--accent), 0 0 10px rgba(0,200,255,0.3); }
    to   { text-shadow: 0 0 12px var(--accent), 0 0 30px rgba(0,200,255,0.6), 0 0 50px rgba(0,200,255,0.2); }
}
/* Sliding arrow indicator under active nav item */
.nav-links { position: relative; }
.nav-indicator {
    position: absolute;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 8px var(--accent);
}
.nav-indicator::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--accent);
    filter: drop-shadow(0 0 4px var(--accent));
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
#theme-toggle:hover { border-color: var(--accent); }
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ── Carousel / Slide Viewport ── */
#carousel-wrap {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    bottom: calc(var(--player-h, 88px) + 44px);
    overflow: hidden;  /* clips horizontal track */
}
#carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}
.slide {
    min-width: 100vw;
    width: 100vw;
    height: 100%;
    position: relative;
    overflow-y: auto;   /* each slide scrolls independently */
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,200,255,0.2) transparent;
    /* Background is on body::before — nothing needed here */
}

/* Vertical content pages — top align, full natural height */
.slide--vertical {
    align-items: flex-start;
    height: auto;
    min-height: 100%;
}
.slide--vertical .slide-content {
    width: 96%;
    max-width: 1200px;
}
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: 2rem 2.5rem 2rem;
}

/* ── Slide nav dots ── */
#slide-dots {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.slide-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.slide-dot.active { background: var(--accent); transform: scale(1.5); }

/* Slide arrows */
#slide-prev, #slide-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
#slide-prev { left: 1rem; }
#slide-next { right: 3.5rem; }
#slide-prev:hover, #slide-next:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ── Page Content Shared ── */
.page-heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.page-sub {
    font-size: 0.85rem;
    color: #ff6b00;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}
.page-body { max-width: 640px; }

/* ── Playlist Grid ── */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-right: 0;
}
.playlist-card {
    background: rgba(0,0,0,0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.playlist-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.playlist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.playlist-card-info { padding: 0.8rem; }
.playlist-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--text);
}

/* ── 3D Music Wall Cubes ── */
.music-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}
.cube-wrap {
    width: 160px;
    height: 160px;
    perspective: 600px;
    perspective-origin: 50% 50%;
    cursor: pointer;
}
.cube {
    width: 160px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.cube-wrap:hover .cube { transform: rotateY(-90deg); }

.cube-face {
    position: absolute;
    top: 0; left: 0;
    width: 160px;
    height: 160px;
    backface-visibility: hidden;
    overflow: hidden;
}
.cube-face--front { transform: translateZ(80px); }
.cube-face--right  {
    transform: rotateY(90deg) translateZ(80px);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}
.cube-face--front img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cube-face--right h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
/* Cube badge + overlay */
.cube-face--front { position: relative; }
.cube-track-badge {
    position: absolute;
    top: .5rem; right: .5rem;
    background: rgba(0,0,0,.75);
    color: var(--accent);
    font-size: .58rem;
    letter-spacing: .06em;
    padding: .2rem .5rem;
    border-radius: 20px;
    font-family: var(--font-body);
    pointer-events: none;
}
.cube-title-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: var(--text);
    font-family: var(--font-display);
    font-size: .78rem;
    letter-spacing: .05em;
    padding: 1.2rem .5rem .4rem;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cube-play-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: .35rem .7rem;
    font-family: var(--font-display);
    font-size: .8rem;
    cursor: pointer;
    border-radius: 3px;
    width: 100%;
    margin-bottom: .4rem;
    letter-spacing: .05em;
    transition: opacity .2s;
}
.cube-play-btn:hover { opacity: .85; }

/* ── Blog ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: rgba(0,0,0,0.82);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
}
.blog-card:hover { border-color: var(--accent); }
.blog-card-date { font-size: 0.75rem; color: #ff8c00; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.blog-card p  { font-size: 0.8rem; color: var(--text-muted); }

/* ── Contact Form ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.contact-form input,
.contact-form textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    transition: border-color 0.2s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 0.7rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.btn:hover { opacity: 0.85; }

/* ── Floating Player ── */
#floating-player {
    position: fixed;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: min(820px, 96vw);
    background: var(--bg2);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 2000;
    transition: bottom 0.4s var(--transition);
}
#floating-player.open { bottom: 0; }
#player-bar {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
#player-title { flex: 1; font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 0.05em; }
#player-close {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 1rem; transition: color 0.2s;
}
#player-close:hover { color: var(--accent2); }
#player-embed { padding: 0.5rem; }
#player-embed iframe { border-radius: 4px; }

/* ── Footer ── */
#site-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    background: rgba(8,8,8,0.9);
    border-top: 1px solid var(--border);
    z-index: 800;
    padding: 0 2rem;
}
[data-theme="light"] #site-footer { background: rgba(245,245,240,0.9); }
.footer-inner { display: flex; align-items: center; gap: 2rem; width: 100%; }
.footer-copy { font-size: 0.85rem; font-weight: 600; color: var(--accent); opacity: 0.85; }
.footer-links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer-links a { font-size: 0.85rem; font-weight: 600; color: var(--accent); opacity: 0.8; }
.footer-links a:hover { color: var(--accent); opacity: 1; text-decoration: none; }

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Responsive — Mobile ── */
@media (max-width: 900px) {
    /* Nav */
    .nav-links {
        display: none; flex-direction: column;
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: rgba(8,8,8,0.97);
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid var(--border);
        z-index: 999; gap: 0.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.5rem; padding: .4rem 0; }
    #nav-toggle { display: block; margin-left: auto; }
    .nav-indicator { display: none; }

    /* Slides */
    .slide-content { padding: 1rem; width: 100% !important; max-width: 100% !important; }
    .page-heading  { font-size: clamp(2.5rem, 8vw, 4rem) !important; }

    /* Player bar */
    #persistent-player {
        grid-template-columns: 1fr auto;
        padding: 0 .8rem;
        --player-h: 68px;
        height: 68px;
    }
    .player-progress { display: none; }
    .player-right    { display: none; }
    .player-buttons  { gap: 0.3rem; }
    .player-btn      { width: 28px; height: 28px; font-size: .9rem; }
    .player-btn--primary { width: 34px; height: 34px; font-size: 1rem; }
    #player-track-title { font-size: .8rem; }
    #queue-drawer { width: 100%; right: 0; }

    /* Footer */
    #site-footer { padding: 0 1rem; }
    .footer-copy { display: none; }

    /* Arrows */
    #slide-prev, #slide-next { display: none; }
    #slide-dots { right: .6rem; }

    /* Albums grid */
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Music wall */
    .music-wall {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1.2rem;
    }
    .cube-wrap  { width: 120px; height: 120px; perspective: 400px; }
    .cube       { width: 120px; height: 120px; }
    .cube-face  { width: 120px; height: 120px; }
    .cube-face--front { transform: translateZ(60px); }
    .cube-face--right { transform: rotateY(90deg) translateZ(60px); }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }

    /* Album 2-col → 1-col */
    .album-page-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }

    /* About */
    .about-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .about-body { max-height: none !important; }

    /* Contact form */
    .contact-form { max-width: 100%; }

    /* Song list */
    .song-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    :root { --nav-h: 52px; }
    #site-nav { padding: 0 1rem; }
    .nav-logo img { height: 28px !important; }
    .page-heading { font-size: clamp(2rem, 10vw, 3rem) !important; }
    .playlist-grid { grid-template-columns: repeat(2, 1fr); }
    .music-wall    { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .cube-wrap, .cube, .cube-face { width: 100%; height: auto; aspect-ratio: 1; }
    .cube-wrap { perspective: 300px; }
}

/* ── Sci-fi Content Container ──────────────────────────────────────────────── */
.content-frame {
    position: relative;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Corner accents — pure CSS, no images */
.content-frame::before,
.content-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.content-frame::before {
    top: 0; left: 0;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
}
.content-frame::after {
    bottom: 0; right: 0;
    border-bottom: 1px solid #ff6b00;
    border-right: 1px solid #ff6b00;
}

/* Slide content wrapper gets the frame treatment on content pages */
.slide--vertical .slide-content {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2rem;
    padding-top: calc(var(--nav-h) + 2.5rem);  /* nav clearance + breathing room */
    margin-top: 0;
    position: relative;
}
.slide--vertical .slide-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    pointer-events: none;
}
.slide--vertical .slide-content::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 40px;
    border-bottom: 1px solid #ff6b00;
    border-right: 1px solid #ff6b00;
    pointer-events: none;
}

/* Non-vertical slides also get framing */
.slide:not(.slide--vertical) .slide-content {
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2.5rem;
    position: relative;
    /* Ensure content never hides under nav on short-content pages */
    margin-top: 0;
}
.slide:not(.slide--vertical) .slide-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
    pointer-events: none;
}
.slide:not(.slide--vertical) .slide-content::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 30px; height: 30px;
    border-bottom: 1px solid #ff6b00;
    border-right: 1px solid #ff6b00;
    pointer-events: none;
}

/* ── Typewriter cursor ───────────────────────────────────────────────────────── */
.type-cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
    font-weight: 400;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
.type-cursor--done { animation: blink 1.2s step-end 3; opacity: 0; }

/* ── Cyber scan-line loader ──────────────────────────────────────────────────── */
#cyber-scan {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,200,255,0.03) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: cyber-scan-move 0.8s linear;
    opacity: 1;
    transition: opacity 0.4s ease;
}
#cyber-scan.cyber-scan--done { opacity: 0; }
@keyframes cyber-scan-move {
    from { background-position: 0 -100vh; }
    to   { background-position: 0 100vh; }
}

/* ── Cyber Loader Bar ────────────────────────────────────────────────────────── */
#cyber-loader {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--accent));
    z-index: 99999;
    opacity: 0;
    transition: width 0.08s linear, opacity 0.3s ease;
    box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0,200,255,0.5);
    pointer-events: none;
}

/* ── Typewriter cursor ───────────────────────────────────────────────────────── */
.type-cursor {
    display: inline;
    color: var(--accent);
    font-weight: 400;
    opacity: 1;
}
.type-cursor.blink {
    animation: cursor-blink 0.8s step-end infinite;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
/* Body text that types gray then fades to off-white */
.type-body {
    color: #888;
    transition: color 1.2s ease;
}
/* Page heading initial state for blur-zoom — no cursor ever */
.page-heading {
    will-change: filter, transform, opacity;
}
.page-heading .type-cursor { display: none !important; }

/* ── Content reveal blocks ───────────────────────────────────────────────────── */
.reveal-block {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-block.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════════════════
   RC FLIP-CARD SYSTEM  —  albums page + music wall
   Hover/focus: card flips to reveal title, year, LISTEN button.
   ══════════════════════════════════════════════════════════════════════════════ */

.rc-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
}

/* ── Card shell ── */
.rc-card {
    aspect-ratio: 1;
    perspective: 900px;
    cursor: pointer;
}
.rc-card-inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}
.rc-card:hover .rc-card-inner,
.rc-card:focus-within .rc-card-inner {
    transform: rotateY(180deg);
}

/* ── Shared face styles ── */
.rc-card-front,
.rc-card-back {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── FRONT ── */
.rc-card-front {
    background: #0a0a0a;
    border: 1px solid rgba(0,200,255,0.1);
}
.rc-card-front img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.rc-card-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .4rem;
    background: rgba(0,20,40,0.9);
}
.rc-card-placeholder span {
    font-family: var(--font-display);
    font-size: 2.5rem; color: var(--accent); letter-spacing: .1em;
}
.rc-card-placeholder small {
    font-size: .55rem; color: var(--text-muted);
    text-align: center; padding: 0 .5rem;
}
.rc-card-year {
    position: absolute;
    top: .45rem; right: .45rem;
    background: rgba(0,0,0,0.82);
    color: var(--accent);
    font-size: .62rem;
    font-family: var(--font-display);
    padding: .15rem .42rem;
    border-radius: 3px;
    letter-spacing: .06em;
}

/* ── BACK ── */
.rc-card-back {
    transform: rotateY(180deg);
    border: 1px solid rgba(0,200,255,0.35);
    display: flex; align-items: center; justify-content: center;
}
.rc-card-back-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(3px) brightness(0.28);
    transform: scale(1.08);
}
.rc-card-back-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .6rem; padding: 1.2rem;
    text-align: center;
}
.rc-card-back-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: .07em;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.rc-card-back-year {
    font-size: .7rem;
    color: var(--accent);
    font-family: var(--font-display);
    letter-spacing: .08em;
    opacity: .9;
}
.rc-card-btn {
    display: inline-block;
    margin-top: .3rem;
    padding: .45rem 1.2rem;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-size: .82rem;
    letter-spacing: .1em;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    font-weight: 700;
}
.rc-card-btn:hover { background: #33d4ff; transform: scale(1.04); }

/* ── Light mode overrides for rc-card ── */
[data-theme="light"] .rc-card-front {
    border-color: rgba(0,91,158,0.25);
    background: #e8edf5;
}
[data-theme="light"] .rc-card-year {
    background: rgba(0,0,0,0.7);
    color: #005b9e;
}
[data-theme="light"] .rc-card-back {
    border-color: rgba(0,91,158,0.5);
}
[data-theme="light"] .rc-card-back-year { color: #005b9e; }
[data-theme="light"] .rc-card-btn {
    background: #005b9e; color: #fff;
}
[data-theme="light"] .rc-card-btn:hover { background: #0070c0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .rc-album-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
}
@media (max-width: 480px) {
    .rc-album-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
    .rc-card-back-title { font-size: .9rem; }
}

/* ══════════════════════════════════════════════════════════
   LIGHT MODE — comprehensive content fixes
   Charcoal text · light-gray card bg · #005b9e blue
   ══════════════════════════════════════════════════════════ */

/* CSS custom properties for light mode */
[data-theme="light"] {
    --card-bg:    rgba(246,248,251,0.97);   /* very light gray */
    --card-text:  #1c2236;                  /* charcoal */
}

/* Slide content area — transparent so bg shows through */
[data-theme="light"] .slide-content {
    --surface: var(--card-bg);
}

/* ── Headings ── */
[data-theme="light"] .page-heading { color: #005b9e; }
[data-theme="light"] .page-sub     { color: #ff8c00; }   /* keep orange sub-heading */

/* ── Nav ── */
[data-theme="light"] .nav-links a         { color: #2a3550; }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active  { color: #005b9e; }

/* ── Blog cards ── */
[data-theme="light"] .blog-card {
    background:   var(--card-bg);
    border-color: rgba(0,91,158,0.15);
    box-shadow:   0 2px 14px rgba(0,0,0,0.07);
}
[data-theme="light"] .blog-card-date  { color: #ff8c00; }
[data-theme="light"] .blog-card h3    { color: #005b9e; }
[data-theme="light"] .blog-card-link  { color: #005b9e; }
[data-theme="light"] .blog-card p     { color: #2a3550; }
/* Tag pills */
[data-theme="light"] .blog-card span[style*="border"] {
    border-color: rgba(0,91,158,0.4)  !important;
    color:        #005b9e              !important;
    background:   rgba(0,91,158,0.07) !important;
}
/* READ → link */
[data-theme="light"] .blog-card a[href] { color: #005b9e; font-weight:700; }

/* ── About page ── */
[data-theme="light"] .about-body p    { color: #1c2236; }
[data-theme="light"] .about-body h2   { color: #005b9e; }
[data-theme="light"] .about-body a    { color: #005b9e; }

/* ── About stats — keep blue border/bg, white numbers, orange labels ── */
/* (Stats are inline-styled, so the dark-mode inline values stay as-is in dark)  */
/* In light mode we lighten the card bg slightly */

/* ── Contact form ── */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background:   #ffffff;
    border-color: rgba(0,91,158,0.3);
    color:        #1c2236;
}
[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder { color: #7a8aaa; }
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: #005b9e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,91,158,0.15);
}

/* ── Playlist / album cards ── */
[data-theme="light"] .playlist-card,
[data-theme="light"] .music-album-card {
    background:   var(--card-bg);
    border-color: rgba(0,91,158,0.18);
    box-shadow:   0 2px 12px rgba(0,0,0,0.07);
    color:        #1c2236;
}
[data-theme="light"] .music-album-title { color: #1c2236; }
[data-theme="light"] .music-album-year  { color: #005b9e; }
[data-theme="light"] .playlist-card-info h2,
[data-theme="light"] .playlist-card-info h3 { color: #1c2236; }

/* ── Song list ── */
[data-theme="light"] .song-list-item {
    background:   var(--card-bg);
    border-color: rgba(0,91,158,0.15);
    color:        #1c2236;
}
[data-theme="light"] .song-list-title { color: #1c2236; }

/* ── Post body text ── */
[data-theme="light"] .post-body           { color: #2a3550; }
[data-theme="light"] .post-body h1,
[data-theme="light"] .post-body h2,
[data-theme="light"] .post-body h3        { color: #005b9e; }
[data-theme="light"] .post-body a         { color: #005b9e; }
[data-theme="light"] .post-body strong    { color: #1c2236; }
[data-theme="light"] .post-body blockquote { border-color: #005b9e; color: #2a3550; }

/* ── Footer ── */
[data-theme="light"] #site-footer {
    background: rgba(210,222,238,0.97);
}
[data-theme="light"] .footer-copy          { color: #005b9e; }
[data-theme="light"] .footer-links a       { color: #005b9e; opacity: 0.85; }
[data-theme="light"] .footer-links a:hover { opacity: 1; }

/* ── Background brightness in light mode ── */
[data-theme="light"] body::before  { filter: brightness(0.55); }
[data-theme="light"] body::after   { opacity: 0.15; }
[data-theme="light"] #particle-canvas { opacity: 0.3; }

/* ── Buttons ── */
[data-theme="light"] .btn {
    background:   #005b9e;
    color:        #ffffff;
    border-color: #005b9e;
}
[data-theme="light"] .btn:hover { background: #0070c0; border-color: #0070c0; }

/* ── RC flip-card back in light mode ── */
[data-theme="light"] .rc-card-back-title { color: #fff; }   /* stays white on blurred art */

/* ── Misc text ── */
[data-theme="light"] .page-body,
[data-theme="light"] .about-body { color: #1c2236; }
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 { color: #1c2236; }
/* but page-heading stays #005b9e */
[data-theme="light"] .page-heading { color: #005b9e !important; }


/* ── Nav dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s;
    user-select: none;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--accent); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 200px;
    padding: .6rem 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    list-style: none;
    margin-top: .4rem;
}
/* Invisible bridge so mouse doesn't lose hover crossing the gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: .6rem;
    background: transparent;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
    display: block;
    padding: .5rem 1rem;
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .15s, background .15s;
}
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    color: var(--accent);
    background: rgba(0,200,255,.06);
}
[data-theme="light"] .nav-dropdown-menu { background: rgba(255,255,255,.97); border-color: rgba(0,91,158,.2); }
[data-theme="light"] .nav-dropdown-menu li a:hover { color: #005b9e; background: rgba(0,91,158,.06); }
@media (max-width: 768px) {
    .nav-dropdown-menu { position: static; border: none; padding: 0; background: transparent; box-shadow: none; }
    .nav-dropdown-toggle { display: none; }
    .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu li a { padding: .4rem 1.2rem; font-size: .8rem; }
}
