/* Modern Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefce8; }
::-webkit-scrollbar-thumb { background: #15803d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #14532d; }

body { overflow-x: hidden; background-color: #f8fafc; color: #334155; }

/* Elegant Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(254, 240, 138, 0.3);
    box-shadow: 0 15px 30px -10px rgba(15, 83, 45, 0.03); 
}

.glass-dark {
    background: rgba(20, 83, 45, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(254, 240, 138, 0.2);
}

/* Hero Background (Green Gradient) */
.hero-bg {
    background-color: #14532d;
    background-image: linear-gradient(135deg, #14532d 0%, #15803d 100%);
    transform: translateZ(0); /* হার্ডওয়্যার এক্সিলারেশন চালু করে */
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* বর্ডারে কালো দাগ আসা বন্ধ করে */
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #fef08a, #fde047, #fefce8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Hover */
.smooth-hover { 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.smooth-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(21, 128, 61, 0.15);
    transform: translateY(-5px) translate3d(0,0,0); /* Hardware acceleration ধরে রাখবে */
}

/* Custom Scrollbar for Widgets */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #bbf7d0; border-radius: 5px; }

/* SPA Page Transitions */
.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Underline Effect */
.nav-link { position: relative; color: #14532d; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px;
    bottom: -6px; left: 0; background-color: #15803d;
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Table Styles for Results (Using Noto Sans Bengali for perfect numbers) */
.result-table { font-family: 'Noto Sans Bengali', sans-serif; }
.result-table th { background-color: #15803d; color: white; padding: 12px; border: 1px solid #14532d; text-align: center; font-weight: bold;}
.result-table td { padding: 10px; border: 1px solid #bbf7d0; text-align: center; color: #14532d; font-weight: 600;}
.result-table tr:nth-child(even) { background-color: #fefce8; }
.result-table tr:hover { background-color: #fef08a; transition: 0.3s; }

/* সব শ্যাডোকে একবারে সফট করার জন্য */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(21, 128, 61, 0.08) !important;
}

/* AOS এনিমেশন চলাকালীন যেন কালো বর্ডার না আসে */
[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
    outline: none !important;
}

.animate-float {
    will-change: transform, opacity;
    transform: translateZ(0); /* GPU Acceleration ট্রিগার করে */
    backface-visibility: hidden;
    perspective: 1000;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-15px) translateZ(0); }
    100% { transform: translateY(0px) translateZ(0); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}