/* ==========================================================================
   Academia Humania - Design System & Stylesheet (Cyber-Light Theme)
   ========================================================================== */

/* Variables & Theme Setup */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(37, 99, 235, 0.12);
    --card-border-hover: rgba(6, 182, 212, 0.3);
    
    /* Colors */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-accent-blue: #2563eb;
    --color-accent-cyan: #06b6d4;
    --color-accent-dark-cyan: #0891b2;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-blue) 100%);
    --gradient-text: linear-gradient(90deg, #1e40af 0%, #0891b2 50%, #2563eb 100%);
    --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(37, 99, 235, 0.03) 60%, transparent 100%);
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Shadows & Glows */
    --glow-light-blue: 0 10px 30px rgba(37, 99, 235, 0.1);
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.06), 
                   inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background-color: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Interactive Particle Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: all;
}

/* Main Container Layout */
.container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Glassmorphic Main Card */
.glass-card {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 56px 48px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow), 0 15px 35px rgba(37, 99, 235, 0.05);
}

/* Decorative Glow Elements */
.card-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.card-glow.top-left {
    top: -120px;
    left: -120px;
    background: var(--color-accent-blue);
}

.card-glow.bottom-right {
    bottom: -120px;
    right: -120px;
    background: var(--color-accent-cyan);
}

/* Logo Section - Centered, Responsive & Stacked */
.logo-container {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    width: 100%;
}

.logo-symbol {
    height: 140px; /* Highly visible symbol */
    width: auto;
    max-width: 90%;
    object-fit: contain;
    z-index: 2;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.12));
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-text {
    height: 48px; /* Perfectly scaled typographic brand text */
    width: auto;
    max-width: 90%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.08));
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-symbol:hover, .logo-text:hover {
    transform: scale(1.03);
}

.logo-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--gradient-glow);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 5s infinite alternate ease-in-out;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 32px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-blue);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--color-accent-blue);
    animation: blinkDot 1.5s infinite alternate;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1e3a8a;
}

/* Typography Details */
.main-heading {
    font-family: var(--font-body);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 40px;
}

.description strong {
    color: #1e293b;
    font-weight: 600;
}

/* Futuristic Progress Bar */
.progress-section {
    width: 100%;
    max-width: 520px;
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.progress-status {
    color: var(--color-text-secondary);
}

.progress-percentage {
    color: var(--color-accent-blue);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-cyan));
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

.progress-bar-scanner {
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    animation: scannerMotion 3s infinite linear;
}

/* Footer & Social Connections */
.footer-links {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: #94a3b8;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 28px;
    width: 100%;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.social-link:hover {
    color: var(--color-accent-blue);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}

.social-icon {
    width: 15px;
    height: 15px;
}

.footer-separator {
    color: #e2e8f0;
    user-select: none;
}

.copyright {
    letter-spacing: 0.02em;
}

/* Animations Keyframes */
@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes blinkDot {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 4px var(--color-accent-blue);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px var(--color-accent-blue), 0 0 20px var(--color-accent-blue);
    }
}

@keyframes scannerMotion {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Media Queries */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px;
    }

    .glass-card {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .logo-symbol {
        height: 85px;
    }

    .logo-text {
        height: 28px;
    }

    .status-badge {
        margin-bottom: 24px;
    }

    .main-heading {
        font-size: 1.45rem;
    }

    .description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .progress-section {
        margin-bottom: 12px;
    }

    .footer-links {
        margin-top: 24px;
        padding-top: 20px;
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }
}
