/* ==========================================
   CSS VARIABLES (For Dark/Light Mode)
   ========================================== */
:root {
    --bg-color: #0d0d0d; 
    --text-color: #ffb6c1; 
    --nav-line: rgba(255, 182, 193, 0.3);
    --heading-color: #ffffff;
    --aurora-color: rgba(0, 191, 255, 0.35); /* Mystical Cyan Blue Glow */
}

body.light-mode {
    --bg-color: #ffffff; 
    --text-color: #cc4b70; 
    --nav-line: rgba(204, 75, 112, 0.3);
    --heading-color: #111111;
    --aurora-color: rgba(255, 182, 193, 0.8); /* Light Pastel Pink Glow */
}

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

body {
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: 'Poppins', sans-serif;
    font-weight: 200; 
    overflow-x: hidden; 
    cursor: none !important; 
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ==========================================
   REALISTIC LIGHT SWITCH
   ========================================== */
#theme-toggle-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 30px;
    background-color: #222;
    border-radius: 15px;
    border: 2px solid var(--text-color);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.8);
}
#theme-toggle-switch {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

body.light-mode #theme-toggle-container {
    background-color: #eee;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}
body.light-mode #theme-toggle-switch {
    transform: translateX(30px);
    background-color: var(--text-color);
}

/* ==========================================
   MINIMALIST MUTE BUTTON
   ========================================== */
#mute-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: none; /* Removed the circle border! */
    color: var(--text-color); /* Automatically pulls your exact pink variables */
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    outline: none;
}
#mute-btn:hover {
    transform: scale(1.15);
    text-shadow: 0 0 15px var(--text-color); /* Creates a soft pink glow behind the icon */
}

/* ==========================================
   CUSTOM MAGIC WAND CURSOR & YELLOW FAIRY DUST
   ========================================== */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none; 
    z-index: 999999;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    transition: font-size 0.2s ease;
}

#custom-cursor::after {
    content: '🪄';
    position: absolute;
    transform: rotate(-30deg); /* Wand tilts backwards */
    transition: transform 0.2s ease;
}

#custom-cursor.pointer-active {
    font-size: 45px; 
}
#custom-cursor.pointer-active::after {
    transform: rotate(-55deg); /* Tilts further back when hovering */
}

a, button, img, video, .word, .gallery-item { cursor: none !important; }

/* Light Yellow Fairy Dust Spray */
.fairy-dust {
    position: fixed;
    width: 3px; 
    height: 3px;
    background-color: #fffacd; /* Lemon Chiffon / Light Yellow */
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px #fffacd, 0 0 12px #ffd700; /* Golden glow */
}

/* Anime Burst Click Effect */
.anime-pop-circle {
    position: fixed;
    border: 3px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%); 
}
.anime-pop-line {
    position: fixed;
    width: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    pointer-events: none;
    z-index: 99999;
    transform-origin: center bottom;
}
.anime-sparkle {
    position: fixed;
    color: var(--text-color);
    font-size: 24px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 8px var(--text-color);
}

/* Star/Bubble Click Burst Effect */
.mini-burst-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px currentColor; 
}


/* ==========================================
   PAGE LAYOUT & AURORA GRADIENT
   ========================================== */
#aurora-bg {
    position: fixed;
    bottom: -50%; 
    left: -50%; 
    width: 200vw; 
    height: 200vh;
    background: radial-gradient(circle at center, var(--aurora-color) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
    opacity: 0; 
    transition: background 0.5s ease;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
}

.panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 18vw 5rem 10vw; 
}

.content-box {
    background: transparent; 
    padding: 0;
    max-width: 800px;
    margin-bottom: 2rem;
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; color: var(--heading-color); font-weight: 600;}
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--heading-color); border-bottom: 1px solid var(--text-color); padding-bottom: 10px; font-weight: 400;}
h3 { margin-bottom: 1rem; margin-top: 2rem; color: var(--heading-color); font-weight: 400;}
h4 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--heading-color); font-size: 1.2rem; font-weight: 400;}
p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; font-weight: 200;}
ul { list-style-type: none; margin-top: 1rem;}
li { margin-bottom: 0.8rem; font-size: 1.1rem; border-left: 2px solid var(--text-color); padding-left: 10px;}

a { 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.3s; 
}
a:hover { 
    color: var(--heading-color); 
    text-shadow: 0 0 10px var(--text-color); 
}

.word {
    display: inline-block;
    transition: color 0.2s ease, text-shadow 0.2s ease; 
}
.word:hover {
    color: var(--heading-color);
    text-shadow: 0 0 15px var(--text-color), 0 0 30px var(--text-color);
}

/* ==========================================
   HORIZONTAL GALLERIES
   ========================================== */
.horizontal-gallery {
    display: grid;
    grid-auto-flow: column; 
    grid-auto-columns: max-content; 
    gap: 15px;
    overflow-x: auto; 
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) transparent;
}
.horizontal-gallery::-webkit-scrollbar { height: 10px; }
.horizontal-gallery::-webkit-scrollbar-thumb { background: var(--text-color); border-radius: 5px; }

.gallery-3-row { grid-template-rows: repeat(3, 220px); }
.gallery-1-row { grid-template-rows: 400px; }

.horizontal-gallery img.gallery-item,
.horizontal-gallery video.gallery-item {
    height: 100% !important; 
    width: auto !important; 
    max-width: 85vw; 
    min-width: 150px; 
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease; 
    background-color: #111; 
}

.gallery-item:hover { 
    box-shadow: 0 10px 30px var(--text-color);
    transform: scale(1.02);
}

/* ==========================================
   TIMELINE NAVIGATION
   ========================================== */
.timeline-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.timeline-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    border-left: 2px solid var(--nav-line);
}

.timeline-nav li {
    margin: 0;
    padding: 10px 0 10px 20px;
    border: none;
    position: relative;
    text-align: right;
}

.timeline-nav .nav-category span {
    font-size: 0.9rem;
    color: var(--heading-color);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.timeline-nav a {
    display: block;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
    position: relative;
    font-weight: normal;
}
.timeline-nav a span { display: inline-block; transition: 0.3s ease; }

.timeline-nav a::before {
    content: '';
    position: absolute;
    left: -26px; 
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    transition: 0.3s ease;
}

.timeline-nav a.nav-sub::before {
    width: 6px; 
    height: 6px;
    left: -24px;
}

.timeline-nav a:hover, 
.timeline-nav a.active {
    color: var(--heading-color);
    opacity: 1;
    text-shadow: 0 0 10px var(--text-color);
}

.timeline-nav a:hover::before, 
.timeline-nav a.active::before {
    background: var(--text-color);
    border-color: var(--text-color);
    box-shadow: 0 0 10px var(--text-color);
}

.timeline-nav a.active span {
    transform: translateX(-5px); 
    font-weight: bold;
}

/* ==========================================
   UNIVERSAL LIGHTBOX
   ========================================== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-img, #lightbox-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    cursor: pointer !important; 
}

#lightbox-img.hidden, #lightbox-video.hidden {
    display: none;
}

#lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px #ffb6c1;
    font-weight: 400;
}

#lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #ffb6c1;
    font-size: 3rem;
    transition: 0.2s;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffb6c1;
    font-size: 3rem;
    padding: 20px;
    transition: 0.2s;
}

#lightbox-prev { left: -80px; }
#lightbox-next { right: -80px; }

#lightbox-close:hover, .lightbox-nav:hover {
    color: #fff;
    text-shadow: 0 0 15px #ffb6c1;
    transform: translateY(-50%) scale(1.1);
}
