/* Custom styles for an "Ultra-Advanced" look */

/* 1. Global Styles & Aurora Background */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Slate 900 */
    color: #f8fafc; /* Slate 50 */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15), transparent 40%);
    animation: aurora 20s infinite linear;
    z-index: -1;
}

.main-header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e293b; /* Slate 800 */
}

/* 2. Entrance Animations */
.hero-section h1, .hero-section p, .ai-search-box {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}
.hero-section p { animation-delay: 0.2s; }
.ai-search-box { animation-delay: 0.4s; }

.feature-card {
    background-color: #1e293b; /* Slate 800 */
    border: 1px solid #334155; /* Slate 700 */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0; /* For load-in animation */
    animation: slideInUp 0.6s ease-out forwards;
}

/* 3. Enhanced Card Hover Effect */
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: #38bdf8; /* Sky 400 */
}

/* --- Magnetic Glow Effect --- */
.feature-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -100%);
    left: var(--mouse-x, -100%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
    pointer-events: none;
}
.feature-card:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.visit-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #e0f2fe; /* Sky 100 */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.9);
}

.feature-card:hover .visit-icon {
    opacity: 1;
    transform: scale(1);
}

/* 4. Micro-interactions */
.pagination-btn {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
    background-color: #334155;
    border-color: #38bdf8;
    transform: translateY(-2px);
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #38bdf8;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}
.nav-link.active { color: #38bdf8; }

/* 5. Featured Glow Animation */
.feature-card.featured-glow {
    border-color: rgba(250, 176, 5, 0.5);
    animation: pulseGlow 3s infinite;
}

/* 6. Keyframe Animations */
@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(250, 176, 5, 0.2); }
    50% { box-shadow: 0 0 25px rgba(250, 176, 5, 0.4); }
    100% { box-shadow: 0 0 15px rgba(250, 176, 5, 0.2); }
}

/* --- Light Mode (Updated) --- */
body.light-mode {
    background-color: #f1f5f9; /* Slate 100 */
    color: #0f172a; /* Slate 900 */
}
body.light-mode::before {
     background: radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.1), transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.1), transparent 40%);
}
body.light-mode .main-header {
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom-color: #e2e8f0;
}
body.light-mode .text-white { color: #1e293b; }
body.light-mode .text-slate-300 { color: #475569; }
body.light-mode .text-slate-400 { color: #64748b; }
body.light-mode .text-slate-500 { color: #475569; }
body.light-mode a.hover\:text-sky-400:hover { color: #0ea5e9; }
body.light-mode .nav-link.active, body.light-mode .nav-link.active::after { color: #0ea5e9; background-color: #0ea5e9; }
body.light-mode .feature-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}
body.light-mode .feature-card:hover { border-color: #38bdf8; }
body.light-mode .bg-slate-700 { background-color: #e2e8f0; }
body.light-mode .border-slate-700\/50 { border-color: rgba(203, 213, 225, 0.5); }
body.light-mode input, body.light-mode select, body.light-mode textarea {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-mode #main-menu, body.light-mode #language-list { background-color: #f8fafc; border-color: #e2e8f0; }
body.light-mode #main-menu .hover\:bg-slate-700:hover { background-color: #e2e8f0; }
body.light-mode #newsletter { background-color: #e2e8f0; }
body.light-mode footer { background-color: #f8fafc; border-color: #e2e8f0;}

/* Card Explosion Effect (No change) */
