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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000000;
    color: #00ff00;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000000 0%, #001100 50%, #000000 100%);
}

/* Terminal Navigation */
.terminal-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 10px;
    min-width: 300px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.5); }
}

.terminal-header {
    background: #00ff00;
    color: #000000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.terminal-title {
    font-size: 14px;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.minimize { background: #ffff00; }
.control.maximize { background: #00ff00; }
.control.close { background: #ff0000; }

.terminal-content {
    padding: 15px;
}

.nav-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.terminal-link {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.terminal-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ff00;
}

.terminal-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: width 0.3s ease;
}

.terminal-link:hover::before {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-left: 340px;
    padding: 20px;
}

/* Page Header */
.page-header {
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    animation: titleFlicker 2s ease-in-out infinite;
}

@keyframes titleFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.terminal-text {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #00ffff;
    margin-bottom: 20px;
}

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

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

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #00ffff;
}

/* Mirrors Section */
.mirrors-section {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.terminal-window {
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.terminal-window .terminal-header {
    background: #00ff00;
    color: #000000;
    padding: 10px 15px;
    font-weight: bold;
}

.terminal-body {
    padding: 20px;
    background: #001100;
}

.mirror-list {
    margin-bottom: 20px;
}

.mirror-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.mirror-item:hover {
    background: rgba(0, 255, 0, 0.1);
    padding-left: 10px;
}

.mirror-status {
    color: #00ff00;
    font-size: 1.2rem;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.mirror-link {
    color: #00ffff;
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    flex: 1;
    transition: all 0.3s ease;
}

.mirror-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
}

.mirror-copy {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mirror-copy:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.2);
}

.mirror-note {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #ffff00;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.mirror-note p {
    color: #ffff00;
    margin: 0;
}

/* Connection Section */
.connection-section {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

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

.step-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.step-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: #ffffff;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff00, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #00ffff;
}

.step-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.image-gallery {
    max-width: 600px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    border: 2px solid #00ff00;
    border-radius: 15px;
    overflow: hidden;
    background: #000000;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: 100%;
    text-align: center;
    padding: 20px;
    display: none;
}

.gallery-item.active {
    display: block;
}

.gallery-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    filter: drop-shadow(0 0 20px #00ff00);
    margin-bottom: 15px;
}

.gallery-caption {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.gallery-btn {
    background: rgba(0, 255, 0, 0.8);
    color: #000000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: #00ff00;
    transform: scale(1.1);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

/* FAQ Section */
.faq-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.faq-terminal {
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command {
    color: #ffff00;
    font-weight: bold;
}

.faq-answer p {
    color: #cccccc;
    line-height: 1.6;
    margin-left: 20px;
}

/* Portal Section */
.portal-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 255, 0.1));
    border-radius: 15px;
    margin-bottom: 40px;
}

.portal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00ff00;
}

.portal-content p {
    font-size: 1.1rem;
    color: #00ffff;
    margin-bottom: 30px;
}

.terminal-btn {
    background: #00ff00;
    color: #000000;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.terminal-btn:hover {
    background: transparent;
    color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #00ff00;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 20px;
}

.terminal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
}

.footer-bottom p {
    color: #888888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-nav {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        padding: 10px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .connection-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .terminal-footer {
        justify-content: center;
    }
}

