:root {
    /* Cute Pastel Color Palette - Kawaii Vtuber Theme */
    --color-bg: linear-gradient(135deg, #FFF0F5 0%, #FFE4F0 50%, #F8E8FF 100%);
    --color-primary: #FF6BB8;
    /* Vibrant Pink for better visibility */
    --color-primary-dark: #FF3D9E;
    --color-accent: #9B7FD9;
    /* Deeper Lavender */
    --color-mint: #5FD9A8;
    /* Deeper Mint */
    --color-peach: #FFB380;
    /* Deeper Peach */
    --color-text: #2D2D40;
    /* Darker text for better contrast */
    --color-text-secondary: #5A5A6E;
    /* Secondary text color */
    --color-surface: #FFFFFF;

    --font-display: 'Outfit', 'Rounded Mplus 1c', sans-serif;
    --font-body: 'Space Grotesk', 'Quicksand', sans-serif;

    /* Dreamy Blobs - Pastel */
    --blob-1: #FFD4E5;
    /* Light Pink */
    --blob-2: #E0D4FF;
    /* Light Lavender */
    --blob-3: #D4FFF0;
    /* Light Mint */
    --blob-4: #FFE7D4;
    /* Light Peach */

    /* Soft Neon Colors - Less Harsh */
    --neon-pink: #FFB3E6;
    --neon-blue: #B3E6FF;
    --neon-purple: #D4B3FF;
    --neon-lavender: #E6CCFF;
    --neon-glow: 0 0 15px var(--neon-pink), 0 0 30px rgba(255, 179, 230, 0.5);
    --neon-glow-blue: 0 0 15px var(--neon-blue), 0 0 30px rgba(179, 230, 255, 0.5);

    /* Kawaii Gradients */
    --gradient-primary: linear-gradient(135deg, #FFB3D9 0%, #FFD4E5 25%, #E6CCFF 50%, #D4B3FF 75%, #FFB3E6 100%);
    --gradient-accent: linear-gradient(135deg, #B3E6FF 0%, #C7B3FF 50%, #E6CCFF 100%);
    --gradient-rainbow: linear-gradient(90deg, #FFB3D9, #FFD4B3, #FFFAB3, #D4FFB3, #B3FFD9, #B3E6FF, #C7B3FF, #FFB3E6);
    --gradient-cute: linear-gradient(135deg, #FFE4F0 0%, #F4E4FF 50%, #E4F5FF 100%);

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(255, 179, 217, 0.15);

    /* Animation Timings */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* CSS Reset - Full Viewport Coverage */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for mobile */
    width: 100%;
    background: var(--color-bg);
    background-attachment: fixed;
    font-family: var(--font-body);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle texture overlay for premium feel */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 179, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 179, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(179, 255, 217, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Dark Mode */
[data-theme="dark"] {
    --color-bg: #0D0D0D;
    --color-primary: #FF69B4;
    --color-accent: #00D4FF;
    --color-text: #ffffff;
    --color-surface: #1a1a2e;
    --blob-1: #9333EA;
    --blob-2: #3B82F6;
    --blob-3: #EC4899;
    --blob-4: #8B5CF6;
}

[data-theme="dark"] .navbar {
    background: rgba(13, 13, 13, 0.9);
}

[data-theme="dark"] .bento-box {
    background: rgba(26, 26, 46, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .bento-box:hover {
    box-shadow:
        0 20px 40px rgba(255, 16, 240, 0.2),
        0 0 40px rgba(255, 16, 240, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .gallery-card {
    background: rgba(26, 26, 46, 0.8);
}

[data-theme="dark"] .gallery-card:hover {
    box-shadow:
        0 25px 50px rgba(255, 16, 240, 0.3),
        0 0 50px rgba(255, 16, 240, 0.2);
}

[data-theme="dark"] .card-meta .date {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .ticker-wrap {
    background: var(--neon-pink);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.4) 40%, rgba(13, 13, 13, 0.0) 100%);
}

[data-theme="dark"] .donate-menu {
    background: rgba(13, 13, 13, 0.95);
}

[data-theme="dark"] .donate-menu a {
    color: white;
}

[data-theme="dark"] .donate-menu a:hover {
    background: var(--neon-pink);
    color: black;
}

[data-theme="dark"] .btn-primary {
    background: var(--neon-pink);
    color: black;
    border: none;
}

[data-theme="dark"] .btn-primary:hover {
    background: white;
    color: black;
}

/* Modern Clock Widget */
.modern-clock-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.clock-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.clock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clock-display {
    display: flex;
    align-items: baseline;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.clock-time {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    letter-spacing: -2px;
}

.clock-seconds {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-pink);
    animation: pulse 1s ease-in-out infinite;
    text-shadow: 0 0 10px var(--neon-pink);
}

.clock-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

[data-theme="dark"] .clock-date {
    color: rgba(255, 255, 255, 0.7);
}

.clock-deco {
    font-size: 1.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
    animation: floatDeco 3s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

.clock-deco-left {
    margin-right: 1rem;
}

.clock-deco-right {
    margin-left: 1rem;
}

[data-theme="dark"] .clock-time {
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .clock-display {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

[data-theme="dark"] .clock-time {
    color: white;
}

.theme-toggle {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--neon-pink);
    background: rgba(0, 0, 0, 0.8);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.5);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

/* Custom Cursor */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 105, 180, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

#cursor-follower.active {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.5);
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatShape 10s infinite alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content but above bg-shapes */
    pointer-events: none;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--blob-3);
    top: 40%;
    left: 20%;
    animation-delay: -2s;
    animation-duration: 15s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: var(--blob-4);
    bottom: 20%;
    left: 10%;
    animation-delay: -7s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 100px) rotate(20deg);
    }
}

/* Navbar - Ultra Glassmorphism */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 30px rgba(255, 179, 217, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--transition-smooth);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 179, 217, 0.05) 25%,
            rgba(199, 179, 255, 0.05) 50%,
            rgba(179, 255, 217, 0.05) 75%,
            transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 10px rgba(255, 179, 217, 0.5));
}

.logo .dot {
    color: var(--color-primary);
    animation: pulse 2s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: transform var(--transition-bounce);
}

.nav-links a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    animation: gradientShift 4s ease infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(255, 16, 240, 0.4),
        0 0 20px rgba(255, 16, 240, 0.3);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Donate Dropdown */
.donate-dropdown {
    position: relative;
    display: inline-block;
}

.donate-btn {
    cursor: pointer;
    border: none;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 16, 240, 0.4), 0 0 10px rgba(255, 16, 240, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 16, 240, 0.8), 0 0 40px rgba(255, 16, 240, 0.4);
    }
}

.donate-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-pink);
    border-radius: 10px;
    min-width: 150px;
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.3);
    z-index: 100;
    overflow: hidden;
    margin-top: 0.5rem;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.donate-dropdown:hover .donate-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.donate-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.donate-menu a:hover {
    background: var(--neon-pink);
    color: black;
}

/* Hero Modern */
.hero-modern {
    min-height: 80vh;
    /* Taller hero */
    padding: 0 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg iframe,
.hero-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 245, 249, 0.70) 0%, rgba(255, 245, 249, 0.2) 40%, rgba(255, 245, 249, 0.0) 100%);
    z-index: 2;
}

.sound-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, #00D4FF, #3B82F6);
    color: white;
    border: 3px solid white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.sound-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.7);
}

@media (max-width: 768px) {
    .sound-btn {
        bottom: 100px;
        right: 50%;
        transform: translateX(50%);
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .sound-btn:hover {
        transform: translateX(50%) scale(1.05);
    }
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.subtitle {
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.6), 0 0 30px rgba(255, 105, 180, 0.4);
}

.description {
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 2.5rem;
    max-width: 400px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Dark Mode Description Text */
[data-theme="dark"] .description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Social Buttons - Cute Glassmorphism Style */
.social-btn {
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    border-radius: 20px;
    transition: all var(--transition-bounce);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    border: 2px solid var(--glass-border);
    box-shadow:
        0 4px 20px rgba(255, 179, 217, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    display: inline-block;
    z-index: 1;
    overflow: hidden;
}

/* Cute gradient overlay that appears on hover */
.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-cute);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--transition-bounce), height 0.6s var(--transition-bounce);
    opacity: 0.8;
    z-index: -1;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(255, 179, 217, 0.3),
        0 5px 15px rgba(199, 179, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 179, 217, 0.6);
}

.social-btn:hover::before {
    width: 300px;
    height: 300px;
}

.social-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Individual Platform Colors on Hover */
.social-btn.yt:hover {
    background: linear-gradient(135deg, #FF0000 0%, #FF5555 100%);
    color: white;
    border-color: #FF0000;
}

.social-btn.tw:hover {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border-color: #000000;
}

.social-btn.dc:hover {
    background: #5865F2;
    color: white;
    border-color: #5865F2;
}

.social-btn.tt:hover {
    background: #000000;
    color: #00F2EA;
    border-color: #FF0050;
}

.social-btn.tch:hover {
    background: #9146FF;
    color: white;
    border-color: #9146FF;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 500px;
    max-width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    transform: rotate(-3deg);
    transition: transform 0.3s;
    z-index: 2;
    position: relative;
    max-width: 100%;
}

.image-wrapper:hover img {
    transform: rotate(0deg) scale(1.02);
}

.circle-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 2px dashed var(--color-accent);
    border-radius: 50%;
    z-index: 1;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--color-text);
    color: white;
    padding: 1rem 0;
    transform: rotate(-2deg) scale(1.1);
    margin: 4rem 0;
}

.ticker {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bento Grid */
.section-heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 3rem;
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary-dark) 25%,
            var(--color-accent) 50%,
            var(--color-primary) 75%,
            var(--color-primary-dark) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
    position: relative;
    filter: saturate(1.5) brightness(0.9);
    /* Makes colors more vibrant and slightly darker */
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    border-radius: 2px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15%;
}

/* Bento Grid - Enhanced Glassmorphism */
.bento-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 2rem;
    transition: all var(--transition-bounce);
    box-shadow:
        0 10px 40px rgba(255, 179, 217, 0.1),
        0 5px 15px rgba(199, 179, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 50%,
            background transparent 100%);
    opacity: 0.6;
}

.bento-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-bounce);
    transform: translateX(-50%);
}

.bento-box:hover {
    transform: translateY(-10px) scale(1.03) rotate(-1deg);
    box-shadow:
        0 25px 60px rgba(255, 179, 217, 0.25),
        0 15px 30px rgba(199, 179, 255, 0.15),
        0 0 40px rgba(179, 255, 217, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 179, 217, 0.8);
}

.bento-box:hover::after {
    width: 100%;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid var(--color-text);
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: .15em solid orange;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-primary);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.float-icon {
    position: absolute;
    opacity: 0.6;
    animation: floatIcon 6s ease-in-out infinite;
}

.float-icon.star {
    width: 40px;
    height: 40px;
    filter: invert(1);
    /* Make it white/bright */
}

.float-icon.star-mini {
    width: 20px;
    height: 20px;
    filter: invert(1);
    animation-delay: 2s;
}

.float-icon.diamond {
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    transform: rotate(45deg);
    animation-duration: 8s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-box {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 800;
}

.info-box p {
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
}

.stat-box {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Default stat-box text color for visibility */
.stat-box .label {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-box .value {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Only override text color for gradient backgrounds */
.stat-box.pink,
.stat-box.blue {
    color: white;
}

.stat-box.pink .label,
.stat-box.pink .value,
.stat-box.blue .label,
.stat-box.blue .value {
    color: white !important;
}

.stat-box.pink {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--neon-pink) 100%);
}

.stat-box.blue {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--neon-blue) 100%);
}

.image-box {
    grid-column: span 2;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-weight: 700;
    text-align: center;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 5%;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-modern {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 3rem;
        padding: 6rem 5% 2rem 5%;
        /* Adjusted padding */
    }

    .hero-text {
        padding: 0;
        z-index: 5;
    }

    .hero-visual {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        flex: none;
    }

    .image-wrapper {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 4/5;
    }

    .image-wrapper img {
        transform: rotate(0deg);
        border-radius: 30px;
    }

    .holo-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .holo-status {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 0 5%;
    }

    .image-box {
        height: 300px;
    }

    .bento-box {
        min-height: 200px;
    }

    .glitch-text {
        font-size: 4rem;
        /* Smaller font for mobile */
    }

    .social-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-section {
        padding: 5rem 5%;
    }

    .section-heading {
        font-size: 3rem;
    }
}

/* Tablet Breakpoint */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 3%;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .hero-modern {
        min-height: auto;
        padding: 4rem 3% 2rem 3%;
    }

    .glitch-text {
        font-size: 3rem;
    }

    .description {
        font-size: 1rem;
    }

    .social-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }

    .ticker__item {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 2.5rem;
    }

    .schedule-section {
        padding: 3rem 5%;
    }

    .holo-terminal {
        padding: 1rem;
    }

    .holo-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .donate-menu {
        min-width: 120px;
    }

    .donate-menu a {
        padding: 0.8rem 1rem;
    }

    .social-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        width: 100%;
    }

    .social-btn {
        text-align: center;
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 2%;
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .hero-modern {
        padding: 2rem 3% 1rem;
        min-height: auto;
    }

    .hero-visual {
        max-width: 280px;
        margin: 1rem auto;
    }

    .image-wrapper {
        max-width: 280px;
        height: 350px;
    }

    .image-wrapper img {
        border-radius: 20px;
    }

    .circle-decor {
        display: none;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .social-btn {
        padding: 0.5rem 0.3rem;
        font-size: 0.7rem;
    }

    .social-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .btn-primary,
    .donate-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .info-box h3 {
        font-size: 1.5rem;
    }

    .stat-box .value {
        font-size: 2rem;
    }

    .gallery-card {
        padding: 0.5rem;
    }

    .gallery-grid {
        gap: 1.5rem;
    }

    .holo-day {
        font-size: 1rem;
    }

    .holo-event {
        font-size: 0.9rem;
    }

    .holo-time {
        font-size: 0.8rem;
    }
}

/* Schedule Section (Holographic) */
/* Timeline Section */
.timeline-section {
    padding: 5rem 10%;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central Neon Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink), 0 0 30px var(--neon-pink);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 0;
}

/* Light Mode Line Color */
html:not([data-theme="dark"]) .timeline-line {
    background: #FF69B4;
    box-shadow: 0 0 15px #FF69B4;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Timeline Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: #fff;
    border: 4px solid var(--neon-blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: 0 0 10px var(--neon-blue);
    transition: all 0.3s;
}

.timeline-item.right::after {
    left: -10px;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.timeline-item:hover::after {
    transform: translateY(-50%) scale(1.3);
    background: var(--neon-blue);
}

.timeline-item.right:hover::after {
    background: var(--neon-pink);
}

/* Timeline Content Card */
.timeline-content {
    padding: 1.5rem 2rem;
    border-radius: 15px;
    /* Styles handled by .tilt-card class mostly */
    display: inline-block;
    min-width: 300px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

.timeline-date {
    display: block;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 20px;
        /* Adjust dot position */
        right: auto;
    }

    .timeline-item.right::after {
        left: 20px;
    }

    .timeline-content {
        min-width: auto;
        width: 100%;
    }
}

.status-live {
    color: #FF0000;
    border-color: #FF0000;
    text-shadow: 0 0 5px #FF0000;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 15%;
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 1.2rem;
    position: relative;
    transition: all var(--transition-bounce);
    box-shadow:
        0 10px 40px rgba(255, 179, 217, 0.12),
        0 5px 15px rgba(199, 179, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Cute gradient border effect */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: var(--gradient-primary);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-15px) scale(1.03) rotate(-1deg);
    box-shadow:
        0 30px 60px rgba(255, 179, 217, 0.25),
        0 15px 30px rgba(199, 179, 255, 0.2),
        0 0 50px rgba(179, 255, 217, 0.15);
    border-color: rgba(255, 179, 217, 0.7);
}

.gallery-card:hover::before {
    opacity: 0.8;
}

.gallery-card:nth-child(even):hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    box-shadow:
        0 30px 60px rgba(179, 230, 255, 0.25),
        0 15px 30px rgba(199, 179, 255, 0.2),
        0 0 50px rgba(255, 179, 217, 0.15);
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square cards */
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 179, 217, 0.3);
    position: relative;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.gallery-card:hover .card-image img {
    transform: scale(1.15) rotate(2deg);
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 179, 217, 0.2) 0%,
            transparent 50%,
            rgba(199, 179, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.gallery-card:hover .card-image::after {
    opacity: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.card-meta .date {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.card-meta .tag {
    background: var(--color-text);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Dark Mode Tag Visibility */
[data-theme="dark"] .card-meta .tag {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-meta .date {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Gallery Responsiveness */
@media (max-width: 768px) {
    .gallery-section {
        padding: 3rem 3%;
        margin-bottom: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .gallery-card {
        padding: 0.8rem;
    }

    .card-image {
        margin-bottom: 0.8rem;
    }

    .card-meta {
        padding: 0 0.5rem;
    }

    .card-meta .date {
        font-size: 0.8rem;
    }

    .card-meta .tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }
}

.sticker {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffeb3b;
    border: 2px solid #000;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-weight: 900;
    transform: rotate(15deg);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f3d 100%);
    color: white;
    padding: 4rem 15% 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-pink));
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Timeline Section Decorations */
.timeline-section {
    position: relative;
    overflow: hidden;
}

.timeline-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.timeline-deco {
    position: absolute;
    font-size: 1.5rem;
    color: var(--neon-pink);
    opacity: 0.6;
    animation: floatDeco 6s ease-in-out infinite;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.timeline-deco:nth-child(even) {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    animation-duration: 8s;
    animation-delay: -2s;
}

.timeline-deco:nth-child(3n) {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    animation-duration: 7s;
    animation-delay: -4s;
}

.timeline-deco.sparkle-deco {
    animation: sparklePulse 2s ease-in-out infinite;
    font-size: 1.2rem;
}

@keyframes floatDeco {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

@keyframes sparklePulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Hide decorations on mobile for cleaner look */
@media (max-width: 768px) {
    .timeline-decorations {
        display: none;
    }
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.footer-logo .dot {
    color: var(--neon-pink);
}

.footer-tagline {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-socials-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-socials a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 16, 240, 0.5);
}

/* Mobile Clock Centering */
@media (max-width: 1200px) {
    .modern-clock-widget {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .clock-content {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer-socials-row {
        gap: 1rem;
    }

    .footer-socials a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

.dev-name {
    color: var(--neon-pink);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 16, 240, 0.5);
}

/* Cursor Trail Effect */
#cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FF69B4 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-fade 0.8s ease-out forwards;
}

.sparkle::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
}

/* Enhanced Sparkle Variations */
.sparkle.pink {
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
}

.sparkle.pink::before {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.sparkle.blue {
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
}

.sparkle.blue::before {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.sparkle.purple {
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}

.sparkle.purple::before {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.sparkle.yellow {
    background: radial-gradient(circle, var(--color-peach) 0%, transparent 70%);
}

.sparkle.yellow::before {
    content: '★';
    color: var(--color-peach);
    text-shadow: 0 0 10px var(--color-peach);
}

.sparkle.heart::before {
    content: '♥';
    font-size: 14px;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
}

/* Page Section Transitions */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for children */
.section.visible .bento-box,
.section.visible .gallery-card,
.section.visible .holo-item {
    animation: slideUp 0.6s ease-out forwards;
}

.section.visible .bento-box:nth-child(1) {
    animation-delay: 0.1s;
}

.section.visible .bento-box:nth-child(2) {
    animation-delay: 0.2s;
}

.section.visible .bento-box:nth-child(3) {
    animation-delay: 0.3s;
}

.section.visible .bento-box:nth-child(4) {
    animation-delay: 0.4s;
}

.section.visible .gallery-card:nth-child(1) {
    animation-delay: 0.1s;
}

.section.visible .gallery-card:nth-child(2) {
    animation-delay: 0.2s;
}

.section.visible .gallery-card:nth-child(3) {
    animation-delay: 0.3s;
}

.section.visible .holo-item:nth-child(1) {
    animation-delay: 0.1s;
}

.section.visible .holo-item:nth-child(2) {
    animation-delay: 0.2s;
}

.section.visible .holo-item:nth-child(3) {
    animation-delay: 0.3s;
}

.section.visible .holo-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Decorative Elements */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.deco {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: floatDeco 6s ease-in-out infinite;
}

.deco-star {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    animation-duration: 5s;
}

.deco-diamond {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    animation-duration: 7s;
    font-size: 1.2rem;
}

.deco-heart {
    color: #FF69B4;
    text-shadow: 0 0 8px #FF69B4;
    animation-duration: 6s;
    font-size: 1.3rem;
}

.deco-plus {
    color: #FEF08A;
    text-shadow: 0 0 10px #FEF08A;
    animation-duration: 8s;
    font-size: 1.8rem;
    font-weight: 300;
}

.deco-circle {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
    animation-duration: 9s;
    font-size: 1rem;
}

/* Light Mode Decorations Overrides */
html:not([data-theme="dark"]) .deco-star {
    color: #FF5E78;
    /* Vivid Pink */
    text-shadow: 0 0 5px rgba(255, 94, 120, 0.4);
}

html:not([data-theme="dark"]) .deco-diamond {
    color: #4FAEFF;
    /* Vivid Blue */
    text-shadow: 0 0 5px rgba(79, 174, 255, 0.4);
}

html:not([data-theme="dark"]) .deco-heart {
    color: #FF4785;
    /* Stronger Pink for hearts */
    text-shadow: 0 0 5px rgba(255, 71, 133, 0.4);
}

html:not([data-theme="dark"]) .deco-plus {
    color: #FBBF24;
    /* Warm Yellow */
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
}

html:not([data-theme="dark"]) .deco-circle {
    color: #60A5FA;
    /* Sky Blue */
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.4);
}

html:not([data-theme="dark"]) .deco-square {
    color: #A78BFA;
    /* Purple */
    text-shadow: 0 0 5px rgba(167, 139, 250, 0.4);
}

/* Pop In Animation for Theme Switch */
/* Smoother Pop In Animation */
@keyframes popIn {
    0% {
        transform: translateY(100px) scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) scale(1.4) rotate(10deg);
        opacity: 1;
    }

    70% {
        transform: translateY(10px) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0.4;
        /* Matches floatDeco start opacity */
    }
}

.animate-pop .deco {
    animation: none !important;
}

/* Staggered Pop Animation */
.animate-pop .deco {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.animate-pop .deco:nth-child(2n) {
    animation-delay: 0.1s !important;
}

.animate-pop .deco:nth-child(3n) {
    animation-delay: 0.2s !important;
}

.animate-pop .deco:nth-child(4n) {
    animation-delay: 0.3s !important;
}

.animate-pop .deco:nth-child(5n) {
    animation-delay: 0.4s !important;
}

.deco-square {
    color: #DDD6FE;
    text-shadow: 0 0 10px #DDD6FE;
    animation-duration: 7s;
    font-size: 1rem;
}

.deco:nth-child(odd) {
    animation-direction: alternate-reverse;
}

.deco:nth-child(3n) {
    animation-delay: 1s;
}

.deco:nth-child(4n) {
    animation-delay: 2s;
}

@keyframes floatDeco {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-20px) rotate(10deg) scale(1.1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) rotate(-5deg) scale(1);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-15px) rotate(5deg) scale(1.15);
        opacity: 0.7;
    }
}

/* Glow pulse effect for decorations */
.deco-star {
    animation: floatDeco 5s ease-in-out infinite, glowPulse 2s ease-in-out infinite;
}

.deco-heart {
    animation: floatDeco 6s ease-in-out infinite, heartbeat 1.5s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 10px var(--neon-pink);
    }

    50% {
        text-shadow: 0 0 20px var(--neon-pink), 0 0 30px var(--neon-pink);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

/* --- VISUAL ENHANCEMENTS --- */

/* 1. Rainbow Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg,
            #ff0000, #ff7f00, #ffff00, #00ff00, #00ffbd, #0019ff, #d900ff, #ff0000);
    background-size: 200% 100%;
    animation: rainbowMove 5s linear infinite;
    z-index: 10002;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 0 5px 5px 0;
}

@keyframes rainbowMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* 2. Glassmorphism & Gradient Borders */
.tilt-card {
    background: rgba(255, 255, 255, 0.7) !important;
    /* Light mode default */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* overflow: hidden; Removed to allow 3D effect overlap if needed, but mainly checking conflict with transform */
    position: relative;
    z-index: 1;
}

/* Gradient Border using Pseudo-element */
.tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    /* Thickness of the gradient border */
    border-radius: inherit;
    background: linear-gradient(60deg, #ff0000, #00ff00, #0000ff, #ff0000);
    background-size: 300% 300%;
    animation: borderGradient 4s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Dark Mode overrides for cards */
[data-theme="dark"] .tilt-card {
    background: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .tilt-card::after {
    opacity: 0.8;
}

/* Increase contrast for text inside glass cards */
.tilt-card h3,
.tilt-card p,
.tilt-card span {
    position: relative;
    z-index: 3;
}

/* Hide decorations on mobile for performance */
@media (max-width: 768px) {
    .floating-decorations {
        display: none;
    }
}