:root {
    --bg-color: #F8FAFC;
    --card-bg: #F8FAFC;
    --text-main: #0F172A;
    --shadow-light: #FFFFFF;
    --shadow-dark: #cbd5e1; /* slate-300 */
}

.dark {
    --bg-color: #0F172A;
    --card-bg: #1E293B; /* slate-800 */
    --text-main: #F8FAFC;
    --shadow-light: #334155; /* slate-700 */
    --shadow-dark: #020617; /* slate-950 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- NEUMORPHIC SYSTEM --- */
.neu-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 9px 9px 16px var(--shadow-dark), 
               -9px -9px 16px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.1); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.neu-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 20px var(--shadow-dark), 
               -12px -12px 20px var(--shadow-light);
}

.neu-card-active {
    box-shadow: inset 8px 8px 12px var(--shadow-dark), 
               inset -8px -8px 12px var(--shadow-light);
}

/* --- BUTTONS --- */
.btn-neu {
    background: var(--card-bg);
    color: #0D9488;
    font-weight: 700;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 6px 6px 10px var(--shadow-dark), 
               -6px -6px 10px var(--shadow-light);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-neu:active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), 
               inset -4px -4px 8px var(--shadow-light);
    transform: translateY(2px);
}

.filter-btn {
    box-shadow: 3px 3px 6px var(--shadow-dark), 
                -3px -3px 6px var(--shadow-light);
    border-radius: 8px; /* Slightly less rounded */
    color: var(--text-main); /* Default to main text color */
}
.filter-btn:active {
    box-shadow: inset 2px 2px 4px var(--shadow-dark), 
                inset -2px -2px 4px var(--shadow-light);
}
.filter-btn.active {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), 
               inset -4px -4px 8px var(--shadow-light);
    color: var(--text-main);
    font-weight: 800;
}

.btn-primary-neu {
    background: #0D9488;
    color: white;
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 6px 6px 14px rgba(13,148,136,0.3), 
               -6px -6px 14px var(--shadow-light);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.dark .btn-primary-neu {
    box-shadow: 6px 6px 14px rgba(0,0,0,0.5), 
               -6px -6px 14px rgba(255,255,255,0.05);
}
.btn-primary-neu:hover {
    background: #0f766e;
    transform: translateY(-2px);
}
.btn-primary-neu:active {
    transform: translateY(1px);
}

/* --- TOGGLE SWITCH --- */
.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: 5px 5px 10px var(--shadow-dark), 
               -5px -5px 10px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: var(--text-main);
}
.theme-toggle-btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), 
               inset -3px -3px 6px var(--shadow-light);
}

/* --- SOFT SPOTLIGHT --- */
.soft-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.dark .soft-spotlight {
    mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
}

/* Subtle Background Animation */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -2; /* Lower z-index to be behind particles */
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

/* Particles.js Background Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Shimmer for AI */
.ai-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.dark .ai-shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- JOY LOG SHOWCASE --- */
.phone-mockup {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    border: 1px solid var(--shadow-dark);
    box-shadow: 10px 10px 20px var(--shadow-dark), 
               -10px -10px 20px var(--shadow-light);
}
.hero-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slider-image.active {
    opacity: 1;
    z-index: 2;
}
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACoCAMAAABt9SM9AAAAA1BMVEW9yP/4S53SAAAAR0lEQVR4nO3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPBgxUwAAU+a3ZEAAAAASUVORK5CYII=");
    background-blend-mode: overlay;
    background-color: rgba(220, 235, 220, 0.8);
}
.dark .phone-screen {
    background-color: rgba(10, 20, 15, 0.8);
}

.whatsapp-header {
    display: flex;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dark .whatsapp-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.whatsapp-chat-area {
    flex-grow: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-bubble {
    background: white;
    padding: 12px;
    border-radius: 16px;
    max-width: 85%;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}
.dark .chat-bubble {
    background: #1f2c34; /* WhatsApp Dark Green */
}
.chat-bubble .time {
    font-size: 11px;
    color: #888;
    text-align: right;
    margin-top: 4px;
}
.dark .chat-bubble .time {
    color: #aaa;
}
.image-placeholder {
    background-color: #e2e8f0; /* slate-200 */
    border-radius: 8px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: #64748b; /* slate-500 */
    margin-bottom: 8px;
}
.dark .image-placeholder {
    background-color: #334155; /* slate-700 */
    color: #94a3b8; /* slate-400 */
}

.slider-btn:hover {
    background-color: rgba(0,0,0,0.5);
}

/* Floating Badge */
.floating-badge {
    z-index: 10;
}

/* --- CADET MODAL --- */
#cadet-modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#cadet-modal.active #cadet-modal-content {
    transform: scale(1);
    opacity: 1;
}