@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('/fonts/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/fonts/CourierPrime-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    background: #000000;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Teletext Bar (Top) */
.teletext-bar {
    background: #0000ff;
    color: #ffff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.teletext-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 100%);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.teletext-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.teletext-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.teletext-page {
    background: #ffff00;
    color: #0000ff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.teletext-site {
    color: #ffffff;
    font-weight: normal;
}

.teletext-datetime {
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ff00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.title {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    to { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff; }
}

.subtitle {
    font-size: 1.2rem;
    color: #ff00ff;
    margin-bottom: 15px;
}

.nav-links {
    margin-top: 15px;
}

.nav-link {
    color: #ffff00;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 10px;
    border: 1px solid #ffff00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #ffff00;
    color: #000000;
    box-shadow: 0 0 10px #ffff00;
}

/* Visitor Counter */
.visitor-counter {
    background: #000;
    color: #00ff00;
    padding: 5px 10px;
    border: 1px solid #00ff00;
    display: inline-block;
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.content-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 0, 255, 0.5);
}

.content-box h2 {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
    color: #ffff00;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 5px #ffff00;
}

.content-box p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: linear-gradient(45deg, #ff6600, #ff9900);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Links Section */
.links-section {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.links-section h2 {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
    color: #00ffff;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.link-button {
    background: linear-gradient(45deg, #cc00ff, #ff00cc);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: block;
    border: 2px solid transparent;
}

.link-button:hover {
    background: linear-gradient(45deg, #ff00cc, #cc00ff);
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.5);
}

/* Under Construction */
.under-construction {
    display: inline-block;
    background: #ffff00;
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    animation: construction 1s infinite;
    margin: 10px 0;
}

@keyframes construction {
    0%, 100% { background: #ffff00; }
    50% { background: #ff0000; color: #fff; }
}

/* Teletext Navigation */
.teletext-navigation {
    margin-bottom: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teletext-nav-blue {
    background: #ffff00;
    color: #0000ff;
    padding: 12px 15px;
    border: 2px solid #ffffff;
    font-size: 1.2rem;
    text-align: center;
}

.teletext-nav-blue a {
    color: #0000ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.teletext-nav-blue a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

/* Blog Styles */
.blog-container {
    display: grid;
    gap: 30px;
}

.blog-post {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 0, 255, 0.5);
}

.blog-post h2 {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
    color: #ffff00;
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-shadow: 0 0 5px #ffff00;
}

.blog-meta {
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.blog-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-content p {
    margin-bottom: 15px;
}

.blog-content h3 {
    color: #00ffff;
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
}

.blog-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.blog-content li {
    margin-bottom: 5px;
}

.blog-content code {
    background: #333;
    color: #00ff00;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.blog-tag {
    background: linear-gradient(45deg, #ff6600, #ff9900);
    color: #000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Video Container (for 342 page) */
.video-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 0, 255, 0.5);
}

.video-container h2 {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
    color: #ffff00;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 0 0 5px #ffff00;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 31.5%; /* 16:9 aspect ratio (9/16 * 56%) */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Teletext Bottom Section */
.teletext-bottom {
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teletext-red {
    background: #ff0000;
    color: #ffffff;
    padding: 8px 15px;
    border: 2px solid #ffffff;
    margin-bottom: 2px;
    font-size: 1.2rem;
}

.teletext-red a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.teletext-red a:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.teletext-purple {
    background: #cc00ff;
    color: #ffff00;
    padding: 8px 15px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.teletext-green {
    background: #00aa00;
    color: #ffff00;
    padding: 8px 15px;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.teletext-yellow {
    background: #ffff00;
    color: #0000ff;
    padding: 8px 15px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.teletext-numbers {
    background: #000000;
    color: #ffffff;
    padding: 5px 15px;
    text-align: center;
    font-size: 1.1rem;
    border-top: 1px solid #666;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #666;
    border-radius: 10px;
    color: #999;
}

.footer h3 {
    font-family: 'Orbitron', Impact, 'Arial Black', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        display: block;
        margin: 5px 0;
    }
    
    .video-container {
        padding: 20px;
    }
    
    .video-wrapper {
        max-width: 100%;
        padding-bottom: 56.25%; /* Full 16:9 on mobile */
    }
}