/* ---------------------------------------------------------
   1. Core Variables & Global Typography
--------------------------------------------------------- */
:root {
    --raichu-bg: #020a0b;
    /* Deep Dark Cyan/Black Background */
    --raichu-card: #0b1415;
    /* Slightly lighter for cards */
    --raichu-border: rgba(255, 255, 255, 0.1);
    --raichu-text-muted: #a1b1c1;
    --raichu-accent: #fcc419;
    --raichu-accent-light: #ffe066;
    --raichu-accent-dark: #e6b800;
    /* Raichu Yellow */
}

body {
    background-color: var(--raichu-bg);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6, strong, b {
    color: #ffffff;
}

p, span, small, .text-muted {
    color: var(--raichu-text-muted) !important;
}

.text-primary {
    color: var(--raichu-accent) !important;
}

a {
    color: var(--raichu-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--raichu-accent-dark);
}

/* ---------------------------------------------------------
   2. Navbar & Navigation (Glassmorphism)
--------------------------------------------------------- */
.main-navigation {
    transition: all 0.3s ease-in-out;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-navigation.scrolled {
    background-color: rgba(2, 10, 11, 0.95) !important;
    /* Semi-transparent black */
    backdrop-filter: blur(12px);
    /* Glass blur effect */
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Dropdown Menus (Dark Theme) */
.dropdown-menu {
    background-color: var(--raichu-card) !important;
    border: 1px solid var(--raichu-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-header {
    color: var(--raichu-accent) !important;
    opacity: 0.9;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.dropdown-item {
    color: #e2e8f0 !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--raichu-accent) !important;
    padding-left: 1.2rem;
    /* Slight slide effect */
}

.dropdown-item small {
    color: #64748b !important;
}

/* Desktop Hover Animation */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   3. Hero Section (Immersive Video Background)
--------------------------------------------------------- */
#hero-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Pull content up behind the transparent navbar */
    margin-top: -95px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.5;
    /* Lower opacity makes text pop more */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient fade to black at bottom for seamless transition */
    background: linear-gradient(to bottom, rgba(2, 10, 11, 0.3), rgba(2, 10, 11, 1));
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ---------------------------------------------------------
   4. Buttons & Links
--------------------------------------------------------- */

.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 196, 25, 0.2);
}

.btn-white {
    background-color: #ffffff;
    color: #020a0b;
    transition: transform 0.2s ease;
}

.btn-white:hover {
    background-color: #f0f0f0;
    color: #020a0b;
    transform: scale(1.05);
}

.btn-raichu-dark {
    background: var(--raichu-card);
    color: #ffffff;
    border: 1px solid var(--raichu-border);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-raichu-dark:hover {
    background: #1a3a5a;
    border-color: var(--raichu-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 196, 25, 0.2);
}

.btn-transparent {
    background: transparent;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-transparent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 196, 25, 0.2);
}

/* Animated "See Plans" Link */
.see-plans-link {
    transition: 0.3s;
    font-size: 1.1rem;
}

.see-plans-link:hover span {
    color: var(--raichu-accent) !important;
}

.icon-wrapper {
    width: 20px;
    height: 20px;
}

.icon-primary {
    transform: translateX(-25px);
    transition: transform 0.4s ease;
}

.icon-secondary {
    transform: translateX(0);
    transition: transform 0.4s ease;
}

.see-plans-link:hover .icon-primary {
    transform: translateX(0);
}

.see-plans-link:hover .icon-secondary {
    transform: translateX(25px);
}

/* ---------------------------------------------------------
   5. Forms & Inputs (Dark Theme)
--------------------------------------------------------- */
/* General Input Styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--raichu-border);
    color: #ffffff;
    border-radius: 12px;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--raichu-accent);
    box-shadow: 0 0 0 3px rgba(252, 196, 25, 0.15);
    color: #ffffff;
}

/* Hero & Floating Label Overrides */
.form-floating>.form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: white !important;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--raichu-accent) !important;
    transform: scale(.85) translateY(-0.75rem) translateX(0.15rem);
    background: transparent !important;
    /* Ensures no white box appears behind label */
}

.form-floating label {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   6. Cards & Components
--------------------------------------------------------- */
.card, .stat-card {
    background-color: var(--raichu-card);
    border: 1px solid var(--raichu-border);
    color: #ffffff;
    border-radius: 16px;
}

/* ---------------------------------------------------------
   7. Footer
--------------------------------------------------------- */
.footer-main {
    background: #010405;
    /* Darker than body for contrast */
    border-top: 1px solid var(--raichu-border);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer-link {
    color: var(--raichu-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--raichu-accent);
}

/* ---------------------------------------------------------
   8. Authentication Layout
--------------------------------------------------------- */
.auth-card {
    background-color: var(--raichu-card);
    border: 1px solid var(--raichu-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem;
}

.auth-image-side {
    background: #010405;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: #ffffff;
}