/* ==========================================
   GENPLEX AI - GLOBAL STYLES
   Shared CSS for all pages
   ========================================== */

:root {
    --primary: #4f46e5;
    --secondary: #3b82f6;
    --bg-700: #0b1020;
    --bg-800: #0a0f1c;
    --bg-900: #070b15;
    --text-300: #c7d2fe;
    --glass: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .12);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    --muted: #94a3b8;
}

/* ========== BASE STYLES ========== */
html,
body {
    min-height: 100%;
    height: auto;
}

html {
    background-color: var(--bg-900);
}

body {
    color: #e5e7eb;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

/* ========== TYPOGRAPHY & SPACING ========== */
:root {
    --step--1: clamp(.9rem, .85rem + .2vw, 1rem);
    --step-0: clamp(1rem, .8rem + 1vw, 1.125rem);
    --step-1: clamp(1.125rem, .9rem + 1.6vw, 1.35rem);
    --step-2: clamp(1.35rem, 1rem + 2.2vw, 1.7rem);
    --step-3: clamp(1.7rem, 1.2rem + 3.2vw, 2.2rem);
    --step-4: clamp(2.1rem, 1.6rem + 4.2vw, 3rem);
    --step-5: clamp(2.6rem, 2rem + 5.2vw, 3.8rem);
}

/* ==========================================
   NAVBAR COMPONENT STYLES
   ========================================== */
.navbar {
    background: transparent;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* State when scrolled (added via JS) */
.navbar.scrolled {
    background: rgba(8, 12, 24, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(9, 15, 29, 0.95);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 1rem;
        backdrop-filter: blur(16px);
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .nav-link:hover,
    .nav-link.text-white {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Full width buttons on mobile */
    .navbar-nav .btn {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* ========== BRAND ELEMENTS ========== */
.brand-badge {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    font-weight: 700;
    letter-spacing: .3px;
}

.brand-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .2);
}

/* ========== BUTTONS ========== */
.btn-gradient {
    color: #fff;
    border: 0;
    border-radius: 14px;
    background-image: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
    transition: all .3s ease;
}

.btn-gradient:hover {
    filter: brightness(1.05);
    color: #fff;
}

.btn-glass {
    color: #e5e7eb;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

/* ========== CARDS & GLASS EFFECT ========== */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .45);
}

.card-glass {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
}

/* ========== ICONS & UTILITIES ========== */
.icon-xl {
    font-size: 2rem;
    line-height: 1;
    color: #a5b4fc;
}

.icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 120% at 0% 0%, rgba(59, 130, 246, .25), transparent 60%);
    border: 1px solid var(--border);
}

.eyebrow {
    display: inline-block;
    padding: .3rem .7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .04);
}

/* ========== FORM ELEMENTS ========== */
.form-control,
.form-select {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    color: #e5e7eb;
    border-radius: 12px;
}

.form-control::placeholder {
    color: var(--muted) !important;
    /* Sets color to light gray (#94a3b8) */
    opacity: 1;
    /* Ensures text is fully opaque */
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(59, 130, 246, .6);
    box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .25);
    color: #fff;
}

.form-floating>label {
    color: var(--muted);
}

.input-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a5b4fc;
}

.toggle-eye {
    cursor: pointer;
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a5b4fc;
    font-size: 1.05rem;
}

/* ========== FOOTER STYLES ========== */
footer {
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 28, 0.3);
    margin-top: auto;
    font-size: 0.95rem;
    color: #9ca3af;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #cbd5e1;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ========== RESPONSIVE UTILITIES ========== */
.muted {
    color: var(--muted);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* ========== ANIMATIONS ========== */
@keyframes swirl {
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Decorative glow used on several pages. Ensure it never blocks pointer events. */
.glow {
    pointer-events: none;
    z-index: 0;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        font-size: var(--step--1);
    }
}