/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    line-height: 1.7;
    color: #00ff00;
    background-color: #000;
    background-image: 
        radial-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.3);
    cursor: text;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Terminal Header */
.terminal-header {
    background-color: #222;
    padding: 8px 12px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.close { background-color: #ff5f57; }
.minimize { background-color: #febc2e; }
.maximize { background-color: #28c840; }

.terminal-title {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 10px;
    font-weight: normal;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #00ff00;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00; }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #000 0%, #001a00 100%);
    color: #00ff00;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #004400;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00; }
    to { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation Styles */
nav {
    background-color: rgba(0, 10, 0, 0.95);
    border-bottom: 1px solid #004400;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #00cc00;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    font-size: 0.9rem;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00ff00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a:focus::after {
    width: 80%;
}

nav a:hover, nav a:focus {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    background-color: rgba(0, 50, 0, 0.3);
    transform: translateY(-2px);
}

nav a.active {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    background-color: rgba(0, 50, 0, 0.5);
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background: rgba(0, 15, 0, 0.8);
    padding: 0;
    border-radius: 5px;
    border: 1px solid #004400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

section:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

section.animated {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    background-color: rgba(0, 30, 0, 0.7);
    padding: 1rem 2rem;
    border-bottom: 1px solid #004400;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    transition: left 0.5s;
}

.section-header:hover::before {
    left: 100%;
}

section h2 {
    color: #00ff00;
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px #00ff00; }
    to { text-shadow: 0 0 10px #00ff00, 0 0 15px #00ff00; }
}

.section-content {
    padding: 2rem;
}

section h3 {
    color: #00cc00;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

section h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00cc00;
    transition: width 0.5s ease;
}

section h3:hover::after {
    width: 100%;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

section li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 20px;
}

section li::before {
    content: "$";
    color: #00ff00;
    margin-right: 10px;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
    position: absolute;
    left: 0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

section li:hover {
    transform: translateX(5px);
    color: #00ff00;
}

/* Links styling */
section a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted #00cc00;
    position: relative;
}

section a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00ff00;
    transition: width 0.3s ease;
}

section a:hover::after {
    width: 100%;
}

section a:hover {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

/* Footer Styles */
footer {
    background: rgba(0, 10, 0, 0.95);
    color: #00cc00;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid #004400;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: footerGlow 3s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

footer p {
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    text-decoration: underline;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #00ff00;
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
    }
    
    nav ul.mobile-active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    nav a {
        padding: 0.75rem 1rem;
    }
    
    .section-header {
        padding: 0.8rem 1.5rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    section h3 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section p {
        font-size: 1rem;
    }
    
    section li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.7rem;
    }
    
    .section-header {
        padding: 0.7rem 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    section h3 {
        font-size: 1.1rem;
    }
}

/* Scroll animations */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

section.animated {
    animation: slideInUp 0.6s ease forwards;
}