/* ═══════════════════════════════════════════
   PROJECT BC — Custom Styles
   Animations, glassmorphism, gradients, and
   micro-interactions for the landing page.
   ═══════════════════════════════════════════ */

/* ─── Base ────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* ─── Hero Grid Background ───────────────── */
.hero-grid {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ─── Gradient Text ──────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899, #8b5cf6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Glassmorphism Cards ────────────────── */
.glass-card {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-card:hover {
    background: rgba(18, 18, 26, 0.8);
}

/* ─── CTA Glow Effects ──────────────────── */
.cta-glow {
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.15),
        0 0 60px rgba(6, 182, 212, 0.08);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.cta-glow:hover {
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.25),
        0 0 80px rgba(6, 182, 212, 0.15);
}

.nav-cta-glow {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.submit-glow {
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.12),
        0 0 50px rgba(6, 182, 212, 0.06);
}

.submit-glow:hover {
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.2),
        0 0 70px rgba(6, 182, 212, 0.1);
}

/* ─── Form Input Focus Glow ──────────────── */
.form-input:focus {
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.05);
}

.form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
}

/* ─── Navbar Scroll State ────────────────── */
#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 30, 46, 0.5);
}

/* ─── Floating Animations ────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

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

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.animate-pulse-slow {
    animation: pulse-slow 6s ease-in-out infinite;
}

/* ─── Bounce Scroll Indicator ────────────── */
@keyframes bounce-slow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

.animate-scroll-dot {
    animation: scroll-dot 1.5s ease-in-out infinite;
}

/* ─── Entrance Animations ────────────────── */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-up-delay {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
}

.animate-fade-in-up-delay-2 {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.4s forwards;
}

.animate-fade-in-up-delay-3 {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.6s forwards;
}

/* ─── Scroll-triggered Reveal ────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Success Confetti Particles ─────────── */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(120px) rotateZ(720deg);
        opacity: 0;
    }
}

.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confetti-fall 1.5s ease-out forwards;
    pointer-events: none;
}

/* ─── Success Check Animation ────────────── */
@keyframes check-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-check-bounce {
    animation: check-bounce 0.5s ease-out forwards;
}

/* ─── Loading Shimmer ────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer-bg {
    background: linear-gradient(
        90deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(6, 182, 212, 0.2) 50%,
        rgba(139, 92, 246, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

/* ─── Select Dropdown Styling ────────────── */
select option {
    background: #12121a;
    color: #e2e8f0;
    padding: 8px;
}

/* ─── Responsive Adjustments ─────────────── */
@media (max-width: 768px) {
    .hero-grid {
        background-size: 40px 40px;
    }
}

/* ─── Custom Scrollbar ───────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #06060a;
}

::-webkit-scrollbar-thumb {
    background: #1e1e2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e2e3e;
}
