/* ── Hero background grid pattern ── */
.hero-grid {
    background-color: #0f172a;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Gradient glow blob ── */
.glow-blob {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.25) 0%, transparent 65%);
}

/* ── Navbar scroll transition ── */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#navbar.nav-scrolled {
    background-color: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
#navbar.nav-solid {
    background-color: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
}

/* ── Flash message auto-dismiss animation ── */
.flash-message {
    animation: slideIn 0.3s ease forwards;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Smooth hover underline for nav links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f59e0b;
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Service / course card hover lift ── */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ── Gradient text utility ── */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section fade-in on scroll (JS adds .visible) ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form field focus ring ── */
.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ── Scrollbar styling (Webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #4338ca; border-radius: 3px; }
