/* ========================================
   BASE STYLES & VARIABLES
   ======================================== */
:root {
    --color-primary: #00d9ff;
    --color-secondary: #a855f7;
    --color-accent: #f97316;
    --space-gradient-start: #0a0e1a;
    --space-gradient-mid: #1a1f35;
    --space-gradient-end: #0f0820;
}

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

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--space-gradient-start) 0%, var(--space-gradient-mid) 50%, var(--space-gradient-end) 100%);
    color: #e2e8f0;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-attachment: fixed;
}

/* ========================================
   GLASSMORPHISM UTILITIES
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.15);
}

/* ========================================
   GLOWING EFFECTS
   ======================================== */
.glow-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)) padding-box,
        linear-gradient(135deg, #00d9ff, #a855f7, #00d9ff) border-box;
    border-radius: 24px;
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3);
}

.glow-box {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.2),
        0 0 60px rgba(168, 85, 247, 0.1);
}

/* ========================================
   AURA LOGO & PULSING ANIMATION
   ======================================== */
.aura-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-aura 3s ease-in-out infinite;
}

.aura-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    filter: blur(12px);
    opacity: 0.6;
    animation: pulse-glow 3s ease-in-out infinite;
}

.aura-logo-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0a0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #00d9ff;
    z-index: 1;
}

@keyframes pulse-aura {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.aura-pulse {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #a855f7);
    animation: pulse-aura 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
}

/* ========================================
   SHIMMER EFFECT (for TBD cards)
   ======================================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: shimmer-slide 2.5s infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   TECH BADGES
   ======================================== */
.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #00d9ff;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tech-badge.secondary {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.tech-badge.accent {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: #f97316;
}

/* ========================================
   TIMELINE (Dev Journal)
   ======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00d9ff, #a855f7);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00d9ff;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
    z-index: 1;
}

.timeline-item:nth-child(even)::before {
    background: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

/* ========================================
   BUTTONS & LINKS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d9ff, #0284c7);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 24px;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   ERROR UI
   ======================================== */
#blazor-error-ui {
    background: rgba(220, 38, 38, 0.9);
    backdrop-filter: blur(10px);
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ========================================
   NAVIGATION LINKS
   ======================================== */
.nav-link {
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00d9ff;
}

.nav-link.active {
    color: #00d9ff;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-spacer {
    padding: 80px 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .glow-border {
        border-radius: 16px;
    }

    .glass-card {
        border-radius: 12px;
    }

    .section-spacer {
        padding: 48px 0;
    }
}