/* Smooth Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
.dark ::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* Custom Styles for Transitions & Language */
.hidden-lang { display: none !important; }

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* WhatsApp Pulsing Effect */
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-pulse {
    animation: pulse-ring 2s infinite;
}

/* Modal Animation */
.modal-enter { opacity: 0; transform: scale(0.95); transition: all 0.3s ease-out; }
.modal-enter-active { opacity: 1; transform: scale(1); }

/* Category Buttons Active State */
.category-btn.active {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}
.dark .category-btn.active {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}

/* Dropdown Menu Improvements */
.dropdown:hover > div {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Press Article Typography */
#articleBody p {
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: justify;
    font-size: 1.15rem;
}
#articleBody h1 {
    font-weight: 900;
    margin-bottom: 2.5rem;
}
#articleBody strong {
    color: #059669;
}
.dark #articleBody strong {
    color: #34d399;
}
#articleBody img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1.5rem;
}
.article-image-caption {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 1rem;
    border-right: 4px solid #10b981;
    padding-right: 1rem;
}

/* Video Embed Styling */
#articleBody video {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 2rem 0;
    width: 100%;
}

#videoGrid video {
    max-height: 400px;
    background: #000;
}

#videoGrid video::-webkit-media-controls {
    opacity: 0.8;
}
