/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    --bg-color: #050A0A;
    --card-bg: #0D1117;
    --cyan: #00F2FF;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;

    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --nav-height: 70px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default; /* Changé de crosshair à default pour meilleure UX */
}

body.loading {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 10px;
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    opacity: 0.8;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
    pointer-events: none;
}

/* Scanline Effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: -1;
    position: fixed;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 242, 255, 0) 0%, rgba(0, 242, 255, 0.05) 50%, rgba(0, 242, 255, 0) 100%);
    opacity: 0.3;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

/* Base Grid Effect - Doit être au premier plan des fonds */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -3;
    pointer-events: none;
}


/* ==========================================================================
   Typography & Components
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.cyan {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.glitch {
    position: relative;
    color: white;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--cyan);
    color: #000;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Cards */
.card {
    background: rgba(13, 17, 23, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: var(--cyan);
    background: rgba(13, 17, 23, 0.6);
    box-shadow: 0 5px 25px rgba(0, 242, 255, 0.15);
    transform: translateY(-5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--cyan);
    transition: height 0.3s ease;
}

.card:hover::before {
    height: 100%;
}

/* Container */
.container {
    width: 100%;
    padding: 0 30px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 5vw;
    }
}

.section-padding {
    padding: 100px 20px 20px 20px;
    min-height: auto; /* Supprimé 100vh pour éviter les énormes espaces vides */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

/* ==========================================================================
   Navigation (Glassmorphism & Bottom on Desktop)
   ========================================================================== */
.navbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 0 30px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    /* Rapprocher les boutons */
}

.nav-links li {
    display: flex;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Main Content Padding to account for bottom nav on desktop */
.page-content {
    padding-bottom: calc(var(--nav-height) + 50px);
    position: relative;
    z-index: 1;
    /* Garantit que le contenu est TOUJOURS au-dessus de l'arrière-plan */
}

/* ==========================================================================
   Home Page Specifics
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative;
    padding: 0 5vw;
    overflow: hidden;
}

.hero-coords,
.hero-status {
    position: absolute;
    top: 40px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 10;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.hero-coords {
    right: 5vw;
    top: 40px;
    text-align: right;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.hero-status {
    right: 5vw;
    top: 110px;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
}

.hero-overline {
    font-family: var(--font-heading);
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-overline::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--cyan);
}

.hero-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.cyan-glow {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 0 40px rgba(0, 242, 255, 0.2);
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 700;
    min-height: 1.8em;
    overflow: hidden;
}

.hero p.desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 45px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-footer-stats {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    letter-spacing: 1px;
}

.hero-scroll-link {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    gap: 15px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0% {
        height: 0;
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        height: 50px;
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        height: 0;
        opacity: 0;
        transform: translateY(50px);
    }
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    margin-top: -50px;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-preview {
    margin-top: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.home-cta {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(to top, rgba(0, 242, 255, 0.05), transparent);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   Nouveaux Composants UI/UX (Trust Bar & FAQ Accordion)
   ========================================================================== */

/* Trust Bar / Logos Clients */
.trust-bar {
    padding: 50px 0;
    background: rgba(13, 17, 23, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: -30px;
    margin-bottom: 50px;
    position: relative;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.trust-logo:hover {
    color: var(--cyan);
    opacity: 1;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(13, 17, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-question::after {
    content: '+';
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--cyan);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.1);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px; /* Assez grand pour le contenu */
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--cyan);
    width: 0%;
    box-shadow: 0 0 10px var(--cyan);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        bottom: auto;
        top: 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 15, 20, 0.4);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85vw;
        height: 100vh;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(10, 15, 20, 0.7) 100%) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9), inset 1px 1px 0px rgba(255, 255, 255, 0.1) !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links.active li {
        margin: 8px 0;
        /* Rapproche les boutons */
        width: 85%;
        /* Prendre la largeur avec marge */
    }

    .nav-links.active a {
        font-size: 1.3rem;
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px 20px;
        border-radius: 12px;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .page-content {
        padding-top: var(--nav-height);
        padding-bottom: 0;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        height: auto !important;
        min-height: auto !important;
        padding: 120px 20px 60px 20px !important;
        overflow: visible !important;
    }

    .hero-title,
    .hero h1 {
        font-size: clamp(2rem, 7vw, 3.2rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -1px !important;
    }

    .hero p.desc {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .hero-status,
    .hero-coords {
        display: none;
    }

    .scroll-indicator {
        bottom: 50px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    padding: 80px 30px 40px;
    position: relative;
    z-index: 10;
    font-size: 0.9rem;
    max-width: 1920px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-section-title {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-email-primary {
    display: block;
    font-family: var(--font-heading);
    color: var(--cyan);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 5px;
    transition: var(--transition);
}

.footer-email-primary:hover {
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.footer-email-secondary {
    display: block;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.sitemap-tree {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    line-height: 2;
}

.sitemap-tree ul {
    list-style: none;
    margin-left: 0;
}

.sitemap-tree a {
    transition: var(--transition);
}

.sitemap-tree a:hover {
    color: var(--cyan);
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ==========================================================================
   Contact Modal
   ========================================================================== */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 400px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    z-index: 2001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.contact-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.contact-modal h3 {
    font-family: var(--font-heading);
    color: var(--cyan);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-modal p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.modal-btn.call {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-btn.whatsapp {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-btn.call:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-btn.whatsapp:hover {
    background: var(--cyan);
    color: #000;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}

.footer-sys-info {
    margin-top: 40px;
    font-family: var(--font-heading);
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    gap: 20px;
}

/* ==========================================================================
   Scroll Appear Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Premium Preloader (Cyberpunk HUD Style)
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

#preloader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    animation: preloader-bg-move 20s infinite linear;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.hud-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.hud-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.hud-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.hud-progress {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-dasharray: 565;
    /* 2 * PI * 90 */
    stroke-dashoffset: 565;
    stroke-linecap: round;
    animation: hud-reveal 2s ease-out forwards;
    filter: drop-shadow(0 0 8px var(--cyan));
}

.preloader-logo-wrap {
    width: 120px;
    position: relative;
    z-index: 5;
}

.glitch-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.3));
    animation: logo-float 3s infinite ease-in-out;
}

.preloader-status {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--cyan);
}

.status-text {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    height: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.status-percent {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.8;
}

.preloader-system-info {
    display: flex;
    gap: 20px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.preloader-system-info span::before {
    content: '[';
    margin-right: 5px;
}

.preloader-system-info span::after {
    content: ']';
    margin-left: 5px;
}

/* Animations */
@keyframes hud-reveal {
    from {
        stroke-dashoffset: 565;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes preloader-bg-move {
    0% {
        transform: translate(-25%, -25%) rotate(0deg);
    }

    100% {
        transform: translate(-25%, -25%) rotate(360deg);
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Scanning Line inside preloader */
#preloader::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.1), transparent);
    animation: preloader-scan 4s infinite linear;
    pointer-events: none;
}

@keyframes preloader-scan {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}