/* =========================================================================
   Unified Public Dark Glassmorphism Theme
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #070b14;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --text: #f1f5f9;
    --muted: #64748b;
    --green: #10b981;
    --indigo: #6366f1;
    --amber: #f59e0b;
    --red: #ef4444;
    --cyan: #0ea5e9;
    --radius-card: 20px;
    --radius-btn: 12px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* ── Ambient Background ───────────────────── */
.orbs {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: .28;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 { width: 700px; height: 700px; background: var(--green); top: -25%; left: -20%; }
.orb-2 { width: 600px; height: 600px; background: var(--indigo); bottom: -25%; right: -20%; animation-delay: -8s; }
.orb-3 { width: 350px; height: 350px; background: var(--cyan); top: 35%; left: 40%; animation-delay: -15s; }

@keyframes drift { 
    0% { transform:translate(0,0) scale(1); } 
    100% { transform:translate(50px,40px) scale(1.1); } 
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ── Typography & Links ───────────────────── */
a { color: var(--text); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--text); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }
.text-muted { color: var(--muted) !important; }

/* ── Glass Components ───────────────────── */
.glass-panel {
    background: rgba(7,11,20,.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* ── Buttons ────────────────────────────── */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-primary-glow {
    background: linear-gradient(135deg, var(--indigo), #4f46e5);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(99,102,241,0.4);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(99,102,241,0.6);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
}

/* ── Navbar Specifics ───────────────────── */
.navbar-glass-dark {
    background: rgba(7,11,20,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar-glass-dark .nav-link {
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-glass-dark .nav-link:hover, .navbar-glass-dark .nav-link.active {
    color: var(--text);
}

.navbar-brand-glow {
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Forms */
.glass-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-btn);
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}
.glass-input:focus {
    background: rgba(0,0,0,0.4);
    border-color: var(--indigo);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
.glass-input::placeholder { color: rgba(255,255,255,0.3); }

/* Main layout wrapper */
.main-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    padding-top: 100px;
}
