/* ===== Aurora Design System – Common Styles (Indigo/Cyan theme) ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --aurora-bg: #060a14;
    --aurora-surface: rgba(255,255,255,0.085);
    --aurora-border: rgba(148,163,184,0.28);
    --aurora-border-hover: rgba(99,102,241,0.5);
    --aurora-glow: rgba(99,102,241,0.28);
    --aurora-primary: #6366f1;
    --aurora-primary-light: #a5b4fc;
    --aurora-secondary: #06b6d4;
    --aurora-accent: #818cf8;
    --aurora-success: #10b981;
    --aurora-warning: #f59e0b;
    --aurora-danger: #ef4444;
    --aurora-text: #f1f5f9;
    --aurora-text-muted: #c7d2fe;
    --aurora-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --aurora-gradient-warm: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --aurora-radius: 20px;
    --aurora-radius-sm: 12px;
    --aurora-radius-pill: 50px;
    --aurora-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(99,102,241,0.28), transparent 34%),
        radial-gradient(circle at 88% 14%, rgba(6,182,212,0.2), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(79,70,229,0.18), transparent 35%),
        var(--aurora-bg);
    color: var(--aurora-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #05070f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #06b6d4);
    border-radius: 6px;
    border: 2px solid #05070f;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #22d3ee);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #05070f;
}

/* ===== Text Selection ===== */
::selection {
    background: rgba(99,102,241,0.35);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* ===== Focus Ring (Accessibility) ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(129,140,248,0.6);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
    background: var(--aurora-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--aurora-border);
    border-radius: var(--aurora-radius);
    transition: var(--aurora-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(15,23,42,0.28);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--aurora-radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139,92,246,0), rgba(139,92,246,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--aurora-transition);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--aurora-border-hover);
    box-shadow: 0 20px 60px rgba(99,102,241,0.2), 0 0 40px rgba(6,182,212,0.12);
}

.glass-card:hover::before {
    background: linear-gradient(135deg, rgba(99,102,241,0.55), rgba(6,182,212,0.45));
}

/* ===== Footer ===== */
.footer {
    padding: 20px 0 80px;
    text-align: center;
    border-top: 1px solid var(--aurora-border);
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.08) 100%);
}

.footer p {
    color: var(--aurora-text-muted);
}

.footer a {
    color: var(--aurora-text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-weight: 500;
    transition: var(--aurora-transition);
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aurora-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--aurora-primary-light);
}

.footer a:hover::after {
    width: 100%;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    margin-bottom: 16px;
}

.footer-nav a {
    color: var(--aurora-text-muted);
    text-decoration: none;
    margin: 0 16px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aurora-primary-light);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--aurora-primary-light);
}

.footer-nav a:hover::after {
    width: 100%;
}

/* ===== Page Hero (Subpages) ===== */
.page-hero {
    padding: 130px 0 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(99,102,241,0.22) 0%, rgba(6,182,212,0.12) 40%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--aurora-bg));
    pointer-events: none;
}

.page-hero .back-btn {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 50px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #c7d2fe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.page-hero .lead,
.page-hero p.lead {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: var(--aurora-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Small Caps Badge (section label) ===== */
.small-caps-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--aurora-radius-pill);
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.16));
    border: 1px solid rgba(165,180,252,0.3);
    color: var(--aurora-primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(99,102,241,0.16);
    margin-bottom: 20px;
}

.page-hero .small-caps-badge {
    position: relative;
    z-index: 1;
}

/* ===== Premium Footer ===== */
.footer-premium {
    margin-top: 60px;
    padding: 48px 0 72px;
    border-top: 1px solid var(--aurora-border);
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.1) 100%);
    position: relative;
    overflow: hidden;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), rgba(6,182,212,0.6), transparent);
}

.footer-premium .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-premium .footer-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--aurora-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.footer-premium .footer-brand-icon i {
    font-size: 19px;
    color: #fff;
}

.footer-premium .footer-brand-text {
    text-align: left;
}

.footer-premium .footer-brand-text strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.footer-premium .footer-brand-text span {
    display: block;
    font-size: 11px;
    color: var(--aurora-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-premium .footer-tagline {
    color: var(--aurora-text-muted);
    font-size: 14px;
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.7;
}

.footer-premium .footer-nav {
    margin-bottom: 20px;
}

.footer-premium .footer-copy {
    color: var(--aurora-text-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

/* ===== Back Button ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-bottom: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99,102,241,0.24), rgba(6,182,212,0.18));
    border: 1px solid rgba(165,180,252,0.28);
    box-shadow: 0 12px 28px rgba(99,102,241,0.22);
    color: var(--aurora-primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(6,182,212,0.3));
    border-color: rgba(165,180,252,0.46);
    color: #fff;
    transform: translateX(-4px);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

/* ===== Floating Navigation Widget ===== */
.floating-nav-widget {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--aurora-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--aurora-transition);
}

.nav-btn:hover {
    transform: scale(1.12);
    border-color: var(--aurora-border-hover);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.progress-btn {
    background: rgba(30,30,50,0.8);
}

.top-btn {
    background: linear-gradient(135deg, rgba(99,102,241,0.88), rgba(129,140,248,0.82));
}

.menu-btn {
    background: linear-gradient(135deg, rgba(6,182,212,0.86), rgba(34,211,238,0.8));
}

.bottom-btn {
    background: linear-gradient(135deg, rgba(79,70,229,0.86), rgba(99,102,241,0.82));
}

.nav-btn i {
    font-size: 16px;
    color: white;
}

.progress-text {
    position: absolute;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 113.097;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.25); }
    50% { box-shadow: 0 0 40px rgba(99,102,241,0.45); }
}

.animate-in {
    animation: fadeInUp 0.6s ease both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .floating-nav-widget {
        bottom: 16px;
        right: 12px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}
