/* Import Iosevka Term */
@font-face {
    font-family: 'Iosevka Term';
    src: url('fonts/iosevka-term-regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/@fontsource/iosevka@4.5.4/files/iosevka-latin-400-normal.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iosevka Term';
    src: url('fonts/iosevka-term-bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/@fontsource/iosevka@4.5.4/files/iosevka-latin-700-normal.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Iosevka Term', 'Courier New', monospace;
    background: #000;
    color: #00a8ff;
    line-height: 1.6;
    background-image: linear-gradient(0deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 0, 0, 1) 100%);
    min-height: 100vh;
    position: relative;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 40, 80, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border: 2px solid #00a8ff;
    background: rgba(0, 20, 40, 0.7);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
}

.logo {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 10px #00a8ff);
}

.logo h1 {
    font-size: 2.5rem;
    color: #00a8ff;
    text-shadow: 0 0 10px #00a8ff;
    margin: 10px 0;
    letter-spacing: 2px;
}

.logo h2 {
    font-size: 1.2rem;
    color: #66d9ff;
    font-weight: normal;
    letter-spacing: 3px;
}

/* Navigation */
.nav {
    margin-top: 20px;
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.nav-link {
    color: #66d9ff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #00a8ff;
    background: rgba(0, 40, 80, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(0, 168, 255, 0.3);
    box-shadow: 0 0 10px #00a8ff;
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(0, 168, 255, 0.5);
    box-shadow: 0 0 15px #00a8ff;
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #ff3366;
    background: rgba(20, 0, 20, 0.7);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.hero-text h3 {
    color: #ff3366;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ff3366;
}

.hero-text p {
    color: #ff99cc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgba(0, 168, 255, 0.3);
    color: #00a8ff;
    border-color: #00a8ff;
}

.btn-primary:hover {
    background: rgba(0, 168, 255, 0.6);
    box-shadow: 0 0 15px #00a8ff;
}

.btn-secondary {
    background: rgba(255, 51, 102, 0.3);
    color: #ff3366;
    border-color: #ff3366;
}

.btn-secondary:hover {
    background: rgba(255, 51, 102, 0.6);
    box-shadow: 0 0 15px #ff3366;
}

.character-rotator {
    position: relative;
    height: 300px;
}

.char-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
    filter: drop-shadow(0 0 20px currentColor);
}

.char-icon.active {
    opacity: 1;
}

#char-x { color: #00a8ff; }
#char-zero { color: #ff3366; }
#char-mav { color: #00cc66; }
#char-sigma { color: #ffcc00; }

/* Section Titles */
.section-title {
    color: #00cc66;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00cc66;
    text-shadow: 0 0 10px #00cc66;
    letter-spacing: 2px;
}

/* Quick Links */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    padding: 20px;
    border: 1px solid #00cc66;
    background: rgba(0, 40, 20, 0.5);
    text-decoration: none;
    color: #66ff99;
    transition: all 0.3s ease;
    height: 100%;
}

.link-card:hover {
    background: rgba(0, 204, 102, 0.3);
    box-shadow: 0 0 15px #00cc66;
    transform: translateY(-5px);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.link-card h4 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.link-card p {
    color: #99ffcc;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    padding: 20px;
    border: 1px solid #ffcc00;
    background: rgba(40, 40, 0, 0.5);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffcc00;
}

.feature h4 {
    color: #ffdd44;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: #ffff99;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Updates */
.update-list {
    margin-bottom: 40px;
}

.update {
    padding: 15px;
    border: 1px solid #9966ff;
    background: rgba(20, 0, 40, 0.5);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.update:hover {
    background: rgba(40, 0, 80, 0.7);
    box-shadow: 0 0 10px #9966ff;
}

.update-date {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(153, 102, 255, 0.3);
    color: #cc99ff;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.update h4 {
    color: #cc99ff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.update p {
    color: #e6ccff;
    font-size: 0.95rem;
}

/* Downloads */
.downloads {
    text-align: center;
    padding: 30px;
    border: 2px solid #ff6600;
    background: rgba(40, 20, 0, 0.7);
    margin-bottom: 40px;
}

.download-desc {
    color: #ff9966;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-download {
    padding: 15px 30px;
    background: rgba(255, 102, 0, 0.3);
    color: #ff6600;
    border: 2px solid #ff6600;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download:hover {
    background: rgba(255, 102, 0, 0.6);
    box-shadow: 0 0 15px #ff6600;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 30px;
    border: 2px solid #6666ff;
    background: rgba(0, 0, 40, 0.7);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: #6666ff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #9999ff;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 102, 255, 0.3);
}

.footer-bottom p {
    color: #ccccff;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Content Pages */
.content-container {
    padding: 30px;
    border: 2px solid #00a8ff;
    background: rgba(0, 20, 40, 0.7);
    margin-bottom: 40px;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00a8ff;
}

.content-header h2 {
    color: #00a8ff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00a8ff;
}

.content-header p {
    color: #66d9ff;
    font-size: 1.1rem;
}

.section {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    background: rgba(0, 40, 80, 0.3);
}

.section h3 {
    color: #66d9ff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.section p {
    color: #99e6ff;
    margin-bottom: 15px;
    line-height: 1.7;
}

.section ul, .section ol {
    color: #99e6ff;
    margin-left: 20px;
    margin-bottom: 15px;
}

.section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #99e6ff;
}

th {
    background: rgba(0, 168, 255, 0.3);
    color: #ffffff;
    padding: 12px;
    text-align: left;
    border: 1px solid #00a8ff;
}

td {
    padding: 10px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    background: rgba(0, 40, 80, 0.2);
}

tr:hover td {
    background: rgba(0, 168, 255, 0.1);
}

.code-block {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00cc66;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Iosevka Term', monospace;
    color: #00ff88;
    overflow-x: auto;
    line-height: 1.4;
}

.warning-box {
    background: rgba(255, 51, 102, 0.2);
    border: 2px solid #ff3366;
    padding: 20px;
    margin: 20px 0;
    color: #ff99cc;
}

.tip-box {
    background: rgba(0, 204, 102, 0.2);
    border: 2px solid #00cc66;
    padding: 20px;
    margin: 20px 0;
    color: #99ffcc;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 168, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    border: 2px solid #00a8ff;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top:hover {
    background: rgba(0, 168, 255, 0.8);
    box-shadow: 0 0 15px #00a8ff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .link-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .scanlines,
    .nav,
    .hero-image,
    .link-grid,
    .feature-grid,
    .downloads,
    .footer,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .content-container {
        border: none;
        background: white;
        padding: 0;
    }
    
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}