/* ==========================================================================
   ARCHIVEX DESIGN SYSTEM & STYLESHEET
   Identity: Modern Digital University Library (MVP Licence 1)
   Palette:
     - Primary Brand:  #071A49 (Deep Navy)
     - Secondary Blue: #2563EB (Interactions / Primary Actions)
     - Bright Blue:    #3B82F6 (Electric Accents / Glow)
     - Gold Accent:    #FBBF24 (ArchivEx Pass / Premium / Highlights)
     - Orange Gold:    #F59E0B (Accent Badges)
     - Light Background: #F7F9FC (Clean Modern SaaS Light Background)
     - Text Primary:   #111827 (Dark Neutral)
     - Muted Text:     #6B7280 (Slate Neutral)
     - Border:         #E5E7EB
   Radius: 12px to 18px (rounded-xl / rounded-2xl)
   ========================================================================== */

:root {
    --brand-navy: #071A49;
    --brand-navy-light: #0E2461;
    --brand-blue: #2563EB;
    --brand-blue-hover: #1D4ED8;
    --brand-electric: #3B82F6;
    --brand-gold: #FBBF24;
    --brand-gold-hover: #F59E0B;
    --brand-bg: #F7F9FC;
    --brand-card-bg: #FFFFFF;
    --brand-text: #111827;
    --brand-muted: #6B7280;
    --brand-border: #E5E7EB;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* --------------------------------------------------------------------------
   1. GLOBAL BODY & BASE STYLES
   -------------------------------------------------------------------------- */
html {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

*, ::before, ::after {
    box-sizing: border-box;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
}

.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Top Navigation Dark Navy Background */
.header-navy {
    background-color: var(--brand-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   DYNAMIC 10 SINUSOIDAL WAVES HERO BACKGROUND (FASTER MOVEMENTS)
   -------------------------------------------------------------------------- */
.tech-wave-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #0E2461 0%, #071A49 75%, #030C26 100%);
    pointer-events: none;
    z-index: 0;
}

.tech-wave-svg {
    position: absolute;
    width: 220%;
    height: 100%;
    top: 0;
    left: -60%;
    filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.45));
    will-change: transform;
}

/* 10 Distinct Sinusoidal Wave Layers with Fast Oscillations */
.wave-layer-1  { opacity: 0.35; stroke: #3B82F6; animation: waveSine1 4.5s ease-in-out infinite alternate; }
.wave-layer-2  { opacity: 0.40; stroke: #2563EB; animation: waveSine2 4.0s ease-in-out infinite alternate; }
.wave-layer-3  { opacity: 0.30; stroke: #60A5FA; animation: waveSine3 5.2s ease-in-out infinite alternate; }
.wave-layer-4  { opacity: 0.25; stroke: #FBBF24; animation: waveSine4 3.8s ease-in-out infinite alternate; }
.wave-layer-5  { opacity: 0.50; stroke: #1D4ED8; animation: waveSine5 4.2s ease-in-out infinite alternate; }
.wave-layer-6  { opacity: 0.30; stroke: #93C5FD; animation: waveSine6 5.5s ease-in-out infinite alternate; }
.wave-layer-7  { opacity: 0.35; stroke: #3B82F6; animation: waveSine7 4.8s ease-in-out infinite alternate; }
.wave-layer-8  { opacity: 0.20; stroke: #F59E0B; animation: waveSine8 3.5s ease-in-out infinite alternate; }
.wave-layer-9  { opacity: 0.40; stroke: #2563EB; animation: waveSine9 4.6s ease-in-out infinite alternate; }
.wave-layer-10 { opacity: 0.25; stroke: #3B82F6; animation: waveSine10 5.0s ease-in-out infinite alternate; }

@keyframes waveSine1 {
    0% { transform: translate3d(-6%, 0, 0) scaleY(1); }
    100% { transform: translate3d(6%, -20px, 0) scaleY(1.15); }
}
@keyframes waveSine2 {
    0% { transform: translate3d(8%, -15px, 0) scaleY(1.1); }
    100% { transform: translate3d(-8%, 15px, 0) scaleY(0.9); }
}
@keyframes waveSine3 {
    0% { transform: translate3d(-10%, 10px, 0) scaleY(0.95); }
    100% { transform: translate3d(10%, -25px, 0) scaleY(1.2); }
}
@keyframes waveSine4 {
    0% { transform: translate3d(5%, -20px, 0) scaleY(1.2); }
    100% { transform: translate3d(-5%, 10px, 0) scaleY(0.85); }
}
@keyframes waveSine5 {
    0% { transform: translate3d(-7%, 15px, 0) scaleY(0.9); }
    100% { transform: translate3d(7%, -15px, 0) scaleY(1.1); }
}
@keyframes waveSine6 {
    0% { transform: translate3d(9%, -10px, 0) scaleY(1.15); }
    100% { transform: translate3d(-9%, 20px, 0) scaleY(0.95); }
}
@keyframes waveSine7 {
    0% { transform: translate3d(-4%, -25px, 0) scaleY(1.05); }
    100% { transform: translate3d(4%, 12px, 0) scaleY(0.9); }
}
@keyframes waveSine8 {
    0% { transform: translate3d(6%, 18px, 0) scaleY(0.85); }
    100% { transform: translate3d(-6%, -18px, 0) scaleY(1.25); }
}
@keyframes waveSine9 {
    0% { transform: translate3d(-8%, -12px, 0) scaleY(1.1); }
    100% { transform: translate3d(8%, 16px, 0) scaleY(0.95); }
}
@keyframes waveSine10 {
    0% { transform: translate3d(7%, 22px, 0) scaleY(0.92); }
    100% { transform: translate3d(-7%, -22px, 0) scaleY(1.18); }
}

/* --------------------------------------------------------------------------
   2. BUTTONS & INTERACTION COMPONENTS
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-gold {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    color: #071A49;
    font-weight: 800;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--brand-navy);
    font-weight: 600;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background-color: #F8FAFC;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-1px);
}

.btn-light-blue {
    background-color: #EFF6FF;
    color: var(--brand-blue);
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border: 1px solid #DBEAFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-light-blue:hover {
    background-color: #DBEAFE;
    color: var(--brand-blue-hover);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. BADGES & CHIPS
   -------------------------------------------------------------------------- */
.badge-l1 {
    background-color: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue);
    border: 1px solid rgba(37, 99, 235, 0.25);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-hero-pill {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-free {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}

.badge-premium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #D97706;
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   4. PROFILE HERO & STUDENT IDENTITY CARDS
   -------------------------------------------------------------------------- */
.profile-hero {
    background: linear-gradient(135deg, #071A49 0%, #1D4ED8 65%, #2563EB 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
    color: #FFFFFF;
    position: relative;
    box-shadow: 0 10px 30px rgba(7, 26, 73, 0.25);
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.profile-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 9999px;
    border: 4px solid #FFFFFF;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    background-color: var(--brand-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
}

.profile-camera-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 2.1rem;
    height: 2.1rem;
    background-color: #FFFFFF;
    color: var(--brand-blue);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-camera-badge:hover {
    transform: scale(1.1);
    background-color: #EFF6FF;
}

/* Academic & Account White Cards */
.card-profile-section {
    background-color: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(7, 26, 73, 0.05);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.card-profile-section:hover {
    box-shadow: 0 8px 30px rgba(7, 26, 73, 0.08);
}

/* Key-value Information Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--brand-muted);
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: var(--brand-text);
    font-weight: 700;
    text-align: right;
}

.info-value-accent {
    color: var(--brand-blue);
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   5. ACADEMIC CARDS & MEDIUM FLOATING TINTED CARDS
   -------------------------------------------------------------------------- */
.card-academic {
    background-color: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(7, 26, 73, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-academic:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

/* Medium Floating Tinted Cards */
.card-medium-floating {
    background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 14px rgba(7, 26, 73, 0.04);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
}

.card-medium-floating:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.15), 0 6px 16px -2px rgba(37, 99, 235, 0.08);
}

/* Subtle Color Tint Variants */
.card-tint-blue {
    background: linear-gradient(145deg, #FFFFFF 0%, #F0F5FF 100%);
    border-color: #DBEAFE;
}
.card-tint-blue:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #EFF6FF 100%);
    border-color: #93C5FD;
}

.card-tint-gold {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFBEB 100%);
    border-color: #FEF3C7;
}
.card-tint-gold:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #FEF3C7 100%);
    border-color: #FDE68A;
}

.card-tint-emerald {
    background: linear-gradient(145deg, #FFFFFF 0%, #ECFDF5 100%);
    border-color: #D1FAE5;
}
.card-tint-emerald:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #E6F4EA 100%);
    border-color: #A7F3D0;
}

.card-tint-purple {
    background: linear-gradient(145deg, #FFFFFF 0%, #F5F3FF 100%);
    border-color: #DDD6FE;
}
.card-tint-purple:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #EDE9FE 100%);
    border-color: #C4B5FD;
}

/* --------------------------------------------------------------------------
   6. NAVIGATION & DOCK STYLES
   -------------------------------------------------------------------------- */
.nav-link-navy {
    position: relative;
    color: #94A3B8;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    transition: color 0.25s ease;
}

.nav-link-navy:hover, .nav-link-navy.active {
    color: #FFFFFF;
}

.nav-link-navy::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0%;
    height: 2.5px;
    background: var(--brand-electric);
    border-radius: 9999px;
    transition: width 0.25s ease, left 0.25s ease;
}

.nav-link-navy:hover::after, .nav-link-navy.active::after {
    width: 100%;
    left: 0;
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--brand-border);
    box-shadow: 0 -8px 24px rgba(7, 26, 73, 0.08);
    padding: 0.4rem 0.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748B;
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.2rem 0.5rem;
}

.dock-item-active, .dock-item:hover {
    color: var(--brand-blue);
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. INFINITE MARQUEE TICKER (BANDE PASSANTE STATISTIQUES)
   -------------------------------------------------------------------------- */
.marquee-ticker-container {
    background-color: var(--brand-navy);
    border-y: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 1.5rem;
    animation: marqueeScroll 22s linear infinite;
    will-change: transform;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}

.stat-ticker-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.stat-ticker-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--brand-electric);
}

/* --------------------------------------------------------------------------
   8. SKELETON LOADERS & UTILITIES
   -------------------------------------------------------------------------- */
.skeleton-box {
    background: linear-gradient(90deg, #E2E8F0 25%, #EDF2F7 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   9. HOMEPAGE HERO — LIGHT PREMIUM REDESIGN
   -------------------------------------------------------------------------- */
.hero-light-section {
    background-color: var(--brand-bg);
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 78% 25%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%),
        radial-gradient(45% 45% at 12% 85%, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #FFFFFF;
    border: 1px solid var(--brand-border);
    color: var(--brand-navy);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(7, 26, 73, 0.04);
}

.hero-feature-chip i {
    color: var(--brand-blue);
    font-size: 0.7rem;
}

/* Entrance animation (respects reduced motion) */
.hero-fade-in-up {
    animation: heroFadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-fade-in-up-delay {
    animation-delay: 0.12s;
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Laptop / platform preview mockup */
.laptop-mockup {
    position: relative;
    width: 100%;
    z-index: 1;
}

.laptop-screen {
    background: #0E1B3C;
    border: 3px solid #1B2A52;
    border-radius: 18px 18px 6px 6px;
    padding: 8px;
    box-shadow:
        0 30px 60px -12px rgba(7, 26, 73, 0.35),
        0 0 0 1px rgba(37, 99, 235, 0.08);
}

.laptop-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 8px;
}

.laptop-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.laptop-brand {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.laptop-body {
    background: #F7F9FC;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 84px 1fr;
    min-height: 230px;
    overflow: hidden;
}

.laptop-sidebar {
    background: #FFFFFF;
    border-right: 1px solid var(--brand-border);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.laptop-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--brand-muted);
    padding: 6px 6px;
    border-radius: 8px;
}

.laptop-nav-item i {
    font-size: 0.6rem;
    width: 12px;
    text-align: center;
}

.laptop-nav-item-active {
    background: #EFF6FF;
    color: var(--brand-blue);
}

.laptop-main {
    padding: 14px 16px;
}

.laptop-main-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 2px;
}

.laptop-main-sub {
    font-size: 0.6rem;
    color: var(--brand-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.laptop-resource-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.laptop-resource-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.laptop-resource-card .badge-premium,
.laptop-resource-card .badge-free {
    font-size: 0.5rem;
    padding: 0.12rem 0.4rem;
    align-self: flex-start;
}

.laptop-resource-name {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-top: 2px;
}

.laptop-resource-meta {
    font-size: 0.5rem;
    color: var(--brand-muted);
    font-weight: 600;
}

.laptop-base {
    height: 10px;
    margin: 0 -6px;
    background: linear-gradient(180deg, #C7CFDC 0%, #A9B3C6 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 14px rgba(7, 26, 73, 0.15);
}

/* Floating academic UI cards around the preview */
.hero-float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 10px 24px -6px rgba(7, 26, 73, 0.18);
    animation: heroFloatCard 4.5s ease-in-out infinite;
}

.hero-float-card-top {
    top: -6%;
    left: -4%;
    animation-delay: 0s;
}

.hero-float-card-bottom {
    bottom: -5%;
    right: -4%;
    animation-delay: 0.4s;
}

@keyframes heroFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (max-width: 640px) {
    .hero-float-card { display: none; }
    .laptop-body { grid-template-columns: 64px 1fr; }
    .laptop-resource-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fade-in-up,
    .hero-float-card {
        animation: none !important;
    }
}

/* ==========================================================================
   HIGH-CONTRAST & CRISP TYPOGRAPHY FOR LIGHT & DARK MODES
   ========================================================================== */

/* Anti-blur & Crisp Text Rendering */
html, body, button, input, select, textarea {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Light Mode Legibility */
.light body, body:not(.dark) {
    color: #0F172A;
}

/* Enhanced Dark Mode Contrast & Crystal-Clear Typography */
.dark body {
    color: #F8FAFC;
    background-color: #0B0F19;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #F8FAFC !important;
}

.dark .text-[#071A49],
.dark .text-slate-900,
.dark .text-slate-800 {
    color: #F1F5F9 !important;
}

.dark .text-slate-700 {
    color: #E2E8F0 !important;
}

.dark .text-slate-600 {
    color: #CBD5E1 !important;
}

.dark .text-slate-500 {
    color: #94A3B8 !important;
}

.dark .text-slate-400 {
    color: #94A3B8 !important;
}

/* Crisp Dark Mode Cards & Inputs */
.dark .bg-white {
    background-color: #121826 !important;
    border-color: #1E293B !important;
}

.dark .bg-slate-50 {
    background-color: #0F172A !important;
}

.dark .border-slate-200,
.dark .border-slate-100 {
    border-color: #1E293B !important;
}

/* Dynamic Accent Colors in Dark Mode - Guarantee High Legibility */
.dark .text-ax-accent,
.dark [data-accent-text] {
    color: var(--ax-accent-border) !important;
}

.dark .badge-ax {
    background-color: var(--ax-accent-dark-bg) !important;
    color: var(--ax-accent-border) !important;
    border-color: var(--ax-accent-soft-border) !important;
}

.dark .bg-ax-accent {
    background-color: var(--ax-accent) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   UNIVSERVICES-STYLE HERO & AUTH BACKGROUND SYSTEM
   Cinematic African University Background with Ken Burns & Layered Deep Navy Voile
   ========================================================================== */

@keyframes univKenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.05) translate(-1%, -0.5%);
    }
}

@keyframes univBob {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 7px);
    }
}

.univ-hero-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #071A49;
}

.univ-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 28%;
    animation: univKenburns 28s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(1.04) contrast(1.06);
}

.univ-hero-voile {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 26, 73, 0.84) 0%, rgba(7, 26, 73, 0.45) 45%, rgba(7, 26, 73, 0.05) 100%),
                linear-gradient(0deg, rgba(7, 26, 73, 0.90) 0%, rgba(7, 26, 73, 0.35) 55%, rgba(7, 26, 73, 0) 100%);
}

@media (max-width: 768px) {
    .univ-hero-voile {
        background: linear-gradient(90deg, rgba(7, 26, 73, 0.88) 0%, rgba(7, 26, 73, 0.60) 50%, rgba(7, 26, 73, 0.20) 100%),
                    linear-gradient(0deg, rgba(7, 26, 73, 0.94) 0%, rgba(7, 26, 73, 0.55) 50%, rgba(7, 26, 73, 0.10) 100%) !important;
    }
}

.univ-hero-discover {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 20;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    cursor: pointer;
    animation: univBob 2.2s ease-in-out infinite;
    transition: color 0.2s ease;
}

.univ-hero-discover:hover {
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .univ-hero-bg,
    .univ-hero-discover {
        animation: none !important;
    }
}