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

:root {
    /* Dark Futuristic Theme Color Palette */
    --bg-dark: #0a0e27;
    --bg-darker: #060913;
    --surface-dark: #141829;
    --surface-elevated: #1a1f3a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --neon-cyan: #00f5ff;
    --neon-blue: #0ea5e9;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --glow-cyan: rgba(0, 245, 255, 0.5);
    --glow-blue: rgba(14, 165, 233, 0.5);
    --glow-purple: rgba(168, 85, 247, 0.5);
    --gradient-neon: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);

    /* Design Tokens */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at top, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--glow-cyan) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--glow-purple) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--glow-blue) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientPulse 8s ease-in-out infinite;
}

@keyframes ambientPulse {

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

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

/* Decorative grid pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Fixed Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 24, 41, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.2rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 255, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 0 0 20px var(--glow-cyan);
}

.nav-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.nav-name:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 30px var(--glow-purple);
    transform: translateY(-1px);
}

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

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '→';
    color: var(--neon-cyan);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
}

.breadcrumb a:hover {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

.breadcrumb span {
    color: var(--text-primary);
    opacity: 0.7;
    padding: 0.3rem 0.8rem;
}

/* Main Content */
.content-wrapper {
    margin-top: 6rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease-in-out infinite;
    background-size: 200% 200%;
    filter: drop-shadow(0 0 40px var(--glow-cyan));
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.page-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.page-author {
    font-size: var(--text-lg);
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 15px var(--glow-cyan);
}

/* Hero SVG Container */
.hero-svg-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
    filter: drop-shadow(0 0 30px var(--glow-cyan));
}

.hero-svg {
    width: 100%;
    height: auto;
}

/* Content Sections */
.content-section {
    background: rgba(20, 24, 41, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 40px var(--glow-cyan),
        inset 0 0 0 1px rgba(0, 245, 255, 0.2);
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 50px var(--glow-purple);
    transform: translateY(-2px);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: var(--space-lg);
    text-shadow: 0 0 20px var(--glow-cyan);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--gradient-neon);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.content-section p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

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

.content-section a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--glow-purple);
}

.content-section a:hover::after {
    width: 100%;
}

/* Journey Timeline */
.journey-list {
    list-style: none;
    padding: 0;
}

.journey-list li {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    position: relative;
}

.journey-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: bold;
    font-size: 1.2em;
}

.journey-list li:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(168, 85, 247, 0.1));
    border-left: 4px solid var(--neon-cyan);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    background: rgba(0, 245, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: var(--space-3xl);
}

.back-link::before {
    content: '←';
}

.back-link:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 0 20px var(--glow-cyan);
}

/* Footer */
.footer {
    background: linear-gradient(135deg,
            rgba(0, 245, 255, 0.05) 0%,
            rgba(168, 85, 247, 0.05) 100%);
    padding: var(--space-3xl) var(--space-xl);
    margin-top: var(--space-4xl);
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .content-wrapper {
        padding: var(--space-2xl) var(--space-md);
    }

    .content-section {
        padding: var(--space-lg);
    }

    .hero-svg-container {
        max-width: 100%;
        margin-bottom: var(--space-2xl);
    }

    .hero-svg {
        height: auto;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: var(--space-md);
    }

    .page-title {
        font-size: var(--text-3xl);
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
a:focus-visible {
    outline: 3px solid var(--neon-cyan);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
