/* =========================================
   1. ROOT & MODERN PASTEL THEME
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-light: #FAFCFF;
    --text-dark: #2B3040;
    --text-muted: #6B7280;
    
    /* Pastel Palette */
    --pastel-blue: #A0C4FF;
    --pastel-purple: #BDB2FF;
    --pastel-pink: #FFC6FF;
    --pastel-cyan: #9BF6FF;
    
    --primary-color: #6366F1;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    /* Pastel Mesh Gradient Background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(160, 196, 255, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 198, 255, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(189, 178, 255, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(155, 246, 255, 0.4) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, #6366F1, #BDB2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pastel-text-primary { color: var(--primary-color); }
.pastel-badge {
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tracking-wide { letter-spacing: 1px; }
.z-index-1 { z-index: 1; }

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none;
}

/* =========================================
   3. UI COMPONENTS (LIGHT GLASSMORPHISM)
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(160, 196, 255, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(189, 178, 255, 0.25);
}

.info-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

.clean-list { list-style: none; padding-left: 0; color: var(--text-muted); line-height: 1.8; }
.clean-list li { margin-bottom: 12px; display: flex; align-items: start; }

/* =========================================
   4. BUTTONS & INTERACTIVITY
   ========================================= */
.btn-custom {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 14px 32px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4);
}

.btn-custom:active, .glass-card:active a {
    transform: scale(0.96) !important;
}

/* =========================================
   5. PAGE TRANSITION ANIMATIONS
   ========================================= */
.page-transition {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    animation: smoothIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-transition.fade-out {
    animation: smoothOut 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes smoothOut {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.98); }
}

/* =========================================
   6. MENU HOVER ANIMATION (ORBITING LIGHT)
   ========================================= */
.menu-card {
    position: relative; overflow: hidden; z-index: 1;
    border: none !important;
}

.menu-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--pastel-purple) 80%, var(--primary-color) 100%);
    animation: orbitLight 2.5s linear infinite;
    opacity: 0; transition: opacity 0.4s ease; z-index: -2;
}

.menu-card:hover::before { opacity: 1; }

.menu-card::after {
    content: ''; position: absolute; inset: 2px;
    background: var(--glass-bg); border-radius: 22px; z-index: -1;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}

.menu-card > * { position: relative; z-index: 2; }
@keyframes orbitLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}