/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000000;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Matrix Canvas Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* 3D Sphere Navigation */
.sphere-container {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    z-index: 1000;
    perspective: 1000px;
}

.sphere {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.sphere-item {
    position: absolute;
    width: 80px;
    height: 30px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
    backdrop-filter: blur(10px);
}

.sphere-item:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 20px #00ff00;
    transform: scale(1.1);
}

.sphere-item:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.sphere-item:nth-child(2) { transform: rotateY(60deg) translateZ(100px); }
.sphere-item:nth-child(3) { transform: rotateY(120deg) translateZ(100px); }
.sphere-item:nth-child(4) { transform: rotateY(180deg) translateZ(100px); }
.sphere-item:nth-child(5) { transform: rotateY(240deg) translateZ(100px); }
.sphere-item:nth-child(6) { transform: rotateY(300deg) translateZ(100px); }

.link-text {
    font-size: 10px;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
.site-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.site-title {
    font-size: 4rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.site-subtitle {
    font-size: 1.2rem;
    color: #00cc00;
    margin-bottom: 1rem;
    animation: typing 3s steps(30) infinite;
}

.terminal-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    font-size: 1.5rem;
    color: #00ff00;
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    background: #001100;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #00ff00;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff4444; }
.terminal-button.yellow { background: #ffff44; }
.terminal-button.green { background: #44ff44; }

.terminal-title {
    margin-left: auto;
    font-size: 0.9rem;
    color: #00ff00;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
}

.typing-text {
    animation: typewriter 2s steps(40) 1s both;
    opacity: 0;
}

.typing-text:nth-child(2) { animation-delay: 0.5s; }
.typing-text:nth-child(3) { animation-delay: 1s; }
.typing-text:nth-child(4) { animation-delay: 1.5s; }
.typing-text:nth-child(5) { animation-delay: 2s; }

.cursor-blink {
    animation: blink 1s infinite;
}

/* Articles Grid */
.section-title {
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px #00ff00;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, #004400, #00ff00);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.article-title {
    font-size: 1.3rem;
    color: #00ff00;
    margin-bottom: 1rem;
    text-decoration: none;
}

.article-title:hover {
    text-shadow: 0 0 10px #00ff00;
}

.article-excerpt {
    color: #00cc00;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #008800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-shadow: 0 0 5px #00ff00;
}

/* Stats Section */
.stats-section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 8px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.stat-label {
    font-size: 0.9rem;
    color: #00cc00;
    letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #00ff00;
    color: #008800;
}

/* Animations */
@keyframes glow {
    from { text-shadow: 0 0 20px #00ff00; }
    to { text-shadow: 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

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

@keyframes typewriter {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sphere-container {
        top: 20px;
        right: 20px;
        width: 150px;
        height: 150px;
    }
    
    .sphere-item {
        width: 60px;
        height: 25px;
    }
    
    .link-text {
        font-size: 8px;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .sphere-container {
        display: none;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
}
