/* EVA Technical Manual Theme for Burmese.AI Landing Page */
/* Inspired by Neon Genesis Evangelion UI, Technical Schematics, and Retro Terminal */

/* Color Variables - Tactical Paper with Alert Red */
:root {
    --background: #F2F0E9;
    --surface: #E8E6DF;
    --foreground: #1A1A1A;
    --muted: #5A5A5A;
    --primary: #FFC400;
    --secondary: #1A1A1A;
    --tech-line: #D1CFC7;
    --grid-color: rgba(26, 26, 26, 0.03);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Martian Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Text selection - Alert Red */
::selection {
    background: var(--primary);
    color: var(--background);
}

/* CRT Scanline Effect */
.scanline::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.03) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    z-index: 9998;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Paper Grain Texture */
.paper-grain::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.04;
    z-index: 9997;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Vignette Effect */
.vignette::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    background: radial-gradient(circle at center, transparent 50%, rgba(26, 26, 26, 0.05) 100%);
}

/* Typography - Technical Manual */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--foreground);
    text-transform: uppercase;
}

p, li {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--muted);
}

/* Technical Labels - EVA Style */
.tech-label {
    font-family: 'Martian Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

/* Status Indicator with Alert Pulse */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Martian Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    background: var(--primary);
    padding: 6px 12px;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
}

.status-dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Technical Cards - HUD Style */
.tech-card {
    background: var(--surface);
    border: 1px solid rgba(26, 26, 26, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--primary);
    box-shadow: 8px 8px 0px 0px rgba(255, 196, 0, 1);
}

/* HUD Corner Brackets - Red Alert */
.hud-corners::before,
.hud-corners::after,
.hud-corners > .corner-tl,
.hud-corners > .corner-br {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: rgba(255, 196, 0, 0.6);
    border-style: solid;
    transition: all 0.3s ease;
}

.hud-corners::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.hud-corners::after {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.hud-corners > .corner-tl {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
}

.hud-corners > .corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 1px 1px 0;
}

.hud-corners:hover::before,
.hud-corners:hover::after {
    width: 24px;
    height: 24px;
    border-color: var(--primary);
}

/* Card Corner Brackets - Expandable */
.corner-brackets {
    position: relative;
}

.corner-brackets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    border-left: 1px solid rgba(26, 26, 26, 0.2);
    transition: all 0.3s ease;
}

.corner-brackets::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.2);
    border-right: 1px solid rgba(26, 26, 26, 0.2);
    transition: all 0.3s ease;
}

.corner-brackets:hover::before,
.corner-brackets:hover::after {
    width: 32px;
    height: 32px;
    border-color: var(--primary);
}

/* EVA-Style Buttons */
.btn-eva {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid var(--secondary);
    background: var(--primary);
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 4px 4px 0px 0px rgba(26, 26, 26, 1);
}

.btn-eva:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 4px 4px 0px 0px rgba(255, 196, 0, 1);
    transform: translate(-2px, -2px);
}

.btn-eva-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: 1px solid rgba(26, 26, 26, 0.3);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-eva-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--primary);
}

/* Grid Pattern Background */
.grid-bg {
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Sections with Guide Lines */
.section-guides {
    position: relative;
}

.section-guides::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(26, 26, 26, 0.05);
    pointer-events: none;
}

.section-guides::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(26, 26, 26, 0.05);
    pointer-events: none;
}

@media (min-width: 768px) {
    .section-guides::before { left: 48px; }
    .section-guides::after { right: 48px; }
}

/* Data Decorator - Section Code */
.data-decorator {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(26, 26, 26, 0.4);
}

/* Progress Bar - Technical Style */
.progress-tech {
    height: 8px;
    background: var(--surface);
    border: 1px solid rgba(26, 26, 26, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-tech-grid {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.05);
    display: grid;
    grid-template-columns: repeat(20, 1fr);
}

.progress-tech-grid > div {
    border-right: 1px solid var(--background);
    opacity: 0.2;
}

.progress-tech-fill {
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        #FFC400,
        #FFC400 5px,
        #E0AC00 5px,
        #E0AC00 10px
    );
    transition: width 2s ease-out;
    position: relative;
    z-index: 1;
}

/* Timeline - Diamond Markers */
.timeline-eva {
    position: relative;
    border-left: 1px solid rgba(26, 26, 26, 0.2);
    margin-left: 16px;
}

.timeline-eva::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary), rgba(255, 196, 0, 0.5), transparent);
}

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

.timeline-item-eva::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: var(--background);
    border: 1px solid var(--secondary);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.timeline-item-eva:hover::before {
    background: var(--primary);
    border-color: var(--secondary);
}

.timeline-item-eva:last-child::before {
    background: var(--primary);
    border-color: var(--secondary);
    animation: pulse-diamond 2s infinite;
}

@keyframes pulse-diamond {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 196, 0, 0); }
}

/* Navbar - Technical Header */
.navbar-eva {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(242, 240, 233, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    transition: all 0.3s ease;
}

.navbar-eva.scrolled {
    background: rgba(242, 240, 233, 0.95);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.05);
}

/* Nav Links with Slash Prefix */
.nav-link-eva {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-eva::before {
    content: '/';
    position: absolute;
    left: -12px;
    opacity: 0;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.nav-link-eva::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--foreground);
    transition: width 0.3s ease;
}

.nav-link-eva:hover {
    color: var(--foreground);
}

.nav-link-eva:hover::before {
    opacity: 1;
    left: -8px;
}

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

/* Status Badges */
.badge-eva {
    display: inline-block;
    padding: 4px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid currentColor;
}

.badge-available {
    color: var(--secondary);
    background: var(--background);
    border-color: var(--secondary);
}

.badge-development {
    color: var(--secondary);
    background: var(--primary);
    border-color: var(--secondary);
}

.badge-research {
    color: var(--secondary);
    background: rgba(26, 26, 26, 0.1);
    border-color: var(--secondary);
}

/* Icon Box - Technical */
.icon-box-eva {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(26, 26, 26, 0.2);
    background: var(--background);
    color: var(--secondary);
    transition: all 0.3s ease;
}

.icon-box-eva:hover,
.tech-card:hover .icon-box-eva {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

/* Scanning Line Animation */
.scan-line {
    position: absolute;
    left: 0;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: scan-move 10s linear infinite;
}

@keyframes scan-move {
    0% { top: 0; }
    50% { top: calc(100% - 40px); }
    100% { top: 0; }
}

/* Radar/Scanning Animation */
.radar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.radar-ring-dashed {
    border: 1px dashed rgba(26, 26, 26, 0.4);
    border-radius: 50%;
    animation: spin 15s linear infinite reverse;
}

.radar-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
}

.radar-sweep {
    position: absolute;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
    transform-origin: left center;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Callout Box - Technical Quote */
.callout-eva {
    border-left: 4px solid var(--secondary);
    padding: 16px;
    font-style: italic;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--secondary);
    background: var(--primary);
}

/* Bar Chart - Technical Style */
.chart-bar {
    height: 30px;
    background: rgba(26, 26, 26, 0.1);
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.chart-bar-fill.ink { background: var(--secondary); }
.chart-bar-fill.alert { background: var(--primary); }

/* Footer - Dark Terminal */
.footer-eva {
    background: #151515;
    color: white;
    border-top: 1px solid rgba(26, 26, 26, 0.3);
}

.footer-eva a {
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.footer-eva a:hover {
    color: #FFC400;
    padding-left: 8px;
}

/* Matrix/Digital Rain Background */
.matrix-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Noto Sans Myanmar', 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    from { transform: translateY(-100%); }
    to { transform: translateY(100vh); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Surface Section - Darker Paper */
.surface-section {
    background: rgba(232, 230, 223, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-eva,
    .btn-eva-outline {
        padding: 12px 24px;
        font-size: 10px;
    }
}

/* 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 states */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Comparison Table */
.comparison-table {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.comparison-table th {
    font-family: 'Martian Mono', monospace;
}

.comparison-table td {
    transition: all 0.3s ease;
}

.comparison-table tr:hover td {
    background-color: rgba(255, 196, 0, 0.05);
}

/* Print */
@media print {
    .navbar-eva,
    .matrix-bg,
    .scanline::before,
    .paper-grain::after {
        display: none;
    }
}
