/* Retro-Futuristic Lab Style - 1980s Terminal + Voxel Art */

:root {
    /* Dark Base Colors - Match Logo's Dark Blue Background */
    --bg-dark: #0a1628;
    --bg-secondary: #0d1b2a;
    --bg-grid: #0f1d30;
    --grid-line: #1e3a5f;
    
    /* Bright Neon Accents - Match Logo's Cyan/Turquoise */
    --neon-cyan: #00d4ff;
    --neon-green: #00ff88;
    --neon-lime: #00ffd4;
    --neon-yellow: #00fff0;
    
    /* Retro Terminal - Slightly Dimmer for Better Contrast with Background */
    --terminal-beige: #d4e4f7;
    --terminal-beige-bright: #e8f2ff;
    --terminal-dark: #0a1628;
    
    /* Text Colors - Good Contrast with Logo Background */
    --text-primary: #d4e4f7;
    --text-secondary: #b0c4de;
    --text-muted: #8fa7c4;
    --text-dim: #6b88a5;
    
    /* UI Elements - Semi-transparent to show logo */
    --card-bg: rgba(10, 22, 40, 0.85);
    --card-border: rgba(0, 212, 255, 0.3);
    --glow-subtle: rgba(0, 212, 255, 0.25);
    --glow-minimal: rgba(0, 255, 212, 0.2);
}

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

body {
    font-family: 'IBM Plex Mono', 'Source Code Pro', monospace;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* CRT Scanline Effect */
.crt-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Grid Background - Pixelated Style */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-color: var(--bg-grid);
    opacity: 0.15;
    z-index: 0;
    animation: gridMove 25s linear infinite;
    image-rendering: pixelated;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Lab Ambient Glow - Very Subtle */
.vortex-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 204, 221, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(0, 221, 136, 0.02) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
    animation: ambientPulse 12s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes vortexRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.2); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* Server Rack Lights - Pixelated Neon Style */
.server-lights {
    position: fixed;
    top: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 1;
}

.left-server {
    left: 30px;
}

.right-server {
    right: 30px;
}

.server-lights .light {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    image-rendering: pixelated;
    animation: lightPulse 1.5s ease-in-out infinite;
    filter: brightness(1.2);
}

.server-lights .light.red {
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red), 0 0 30px var(--accent-red);
    animation-delay: 0s;
}

.server-lights .light.green {
    background: var(--neon-green);
    box-shadow: 
        0 0 15px var(--neon-green), 
        0 0 30px var(--neon-green), 
        0 0 45px var(--neon-green),
        0 0 60px var(--neon-green);
    animation-delay: 0.3s;
}

.server-lights .light.blue {
    background: var(--neon-cyan);
    box-shadow: 
        0 0 15px var(--neon-cyan), 
        0 0 30px var(--neon-cyan), 
        0 0 45px var(--neon-cyan),
        0 0 60px var(--neon-cyan);
    animation-delay: 0.6s;
}

.server-lights .light.yellow {
    background: var(--accent-yellow);
    box-shadow: 0 0 15px var(--accent-yellow), 0 0 30px var(--accent-yellow);
    animation-delay: 0.9s;
}

.server-lights .light.orange {
    background: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange), 0 0 30px var(--accent-orange);
    animation-delay: 1.2s;
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); filter: brightness(0.9); }
    50% { opacity: 1; transform: scale(1.1); filter: brightness(1.5); }
}

/* Header */
.main-header {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    border-bottom: 2px solid var(--card-border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Press Start 2P', 'VT323', 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--terminal-beige-bright);
    text-shadow: 
        0 0 10px rgba(255, 255, 240, 0.7),
        0 0 20px rgba(255, 255, 240, 0.5);
    letter-spacing: 2px;
    image-rendering: pixelated;
}

.terminal-prompt {
    color: var(--neon-green);
    margin-right: 10px;
    text-shadow: 0 0 8px var(--neon-green), 0 0 16px var(--neon-green);
}

.main-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    font-family: 'VT323', 'Orbitron', monospace;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover {
    color: var(--terminal-beige-bright);
    text-shadow: 0 0 8px rgba(240, 240, 216, 0.6);
}

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

/* Container */
.container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Logo Background */
.container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('logo_transparentSmall.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    z-index: -1;
    filter: saturate(1.5) contrast(1.2);
    pointer-events: none;
    animation: logoFloat 15s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -48%) scale(1.05); }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
    margin-bottom: 100px;
}

.hero-title {
    font-family: 'Press Start 2P', 'VT323', 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 3px;
    image-rendering: pixelated;
}

.glitch {
    position: relative;
    color: var(--terminal-beige-bright);
    text-shadow: 
        0 0 15px rgba(255, 255, 240, 0.8),
        0 0 30px rgba(255, 255, 240, 0.6);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 40px;
}

/* Terminal Window - Retro CRT Style */
.terminal-window {
    max-width: 700px;
    margin: 40px auto;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
    text-align: left;
}


.terminal-header {
    background: rgba(200, 200, 160, 0.1);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(200, 200, 160, 0.2);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 5px var(--accent-red);
}

.terminal-title {
    font-family: 'VT323', monospace;
    color: var(--terminal-beige);
    font-size: 1rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    font-family: 'IBM Plex Mono', 'Source Code Pro', monospace;
    font-size: 0.9rem;
    line-height: 2;
    background: var(--terminal-dark);
    color: var(--terminal-beige-bright);
    text-shadow: 0 0 3px rgba(240, 240, 216, 0.3);
    text-align: left;
    min-height: 150px;
}

.terminal-line {
    margin-bottom: 5px;
    text-align: left;
}

.prompt {
    color: var(--neon-green);
    margin-right: 15px;
    text-shadow: 0 0 8px var(--neon-green), 0 0 16px var(--neon-green);
    display: inline-block;
}

.command {
    color: var(--terminal-beige-bright);
    text-shadow: 0 0 3px rgba(240, 240, 216, 0.4);
}

.output {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 16px var(--neon-cyan);
}

.blinking-cursor::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--terminal-beige-bright);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Posts Section */
.posts-section {
    margin-bottom: 100px;
}

.section-title {
    font-family: 'Press Start 2P', 'VT323', 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 3px;
    color: var(--terminal-beige-bright);
    text-shadow: 
        0 0 12px rgba(255, 255, 240, 0.7),
        0 0 24px rgba(255, 255, 240, 0.5);
    image-rendering: pixelated;
}

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

.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 204, 221, 0.08),
        transparent
    );
    transition: left 0.5s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 25px var(--glow-subtle),
        0 0 50px rgba(0, 255, 255, 0.3);
    border-color: var(--neon-cyan);
}

.post-card:hover::before {
    left: 100%;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.post-date {
    color: var(--text-muted);
}

.post-category {
    font-family: 'VT323', monospace;
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.15);
    padding: 3px 10px;
    border: 1px solid var(--neon-cyan);
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 8px var(--neon-cyan);
    font-size: 1.1rem;
}

.pixel-icon {
    image-rendering: pixelated;
    font-size: 1.2rem;
}

.post-title {
    font-family: 'VT323', 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--terminal-beige-bright);
    letter-spacing: 1px;
    text-shadow: 0 0 3px rgba(240, 240, 216, 0.3);
}

.post-excerpt {
    color: var(--terminal-beige);
    margin-bottom: 20px;
    line-height: 1.8;
    text-shadow: 0 0 2px rgba(232, 232, 200, 0.2);
}

.post-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.post-link:hover {
    color: var(--terminal-beige-bright);
    text-shadow: 0 0 8px rgba(240, 240, 216, 0.6);
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    margin-bottom: 50px;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    font-family: 'VT323', monospace;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.contact-link:hover {
    border-color: rgba(0, 204, 221, 0.4);
    box-shadow: 0 0 10px var(--glow-subtle);
    transform: scale(1.02);
    color: var(--terminal-beige);
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 10;
    padding: 30px 0;
    border-top: 2px solid var(--card-border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-status {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green), 0 0 16px var(--neon-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        gap: 15px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }


    .contact-links {
        flex-direction: column;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}
