:root {
    --primary-color: #00ff00;
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --border-color: #00ff00;
    --red: #ff5f56;
    --yellow: #ffbd2e;
    --green: #27c93f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 -200px; }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: text-shadow 0.3s;
}

.nav-link:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

main {
    padding: 8rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before,
.section-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    overflow: hidden;
}

.section-title::before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitch-1 2s linear infinite reverse;
}

.section-title::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    animation: glitch-2 2s linear infinite reverse;
}

@keyframes glitch-1 {
    0%, 20%, 60%, 100% { clip-path: inset(0 0 0 0); }
    20.1% { clip-path: inset(80% 0 0 0); }
    40% { clip-path: inset(20% 0 60% 0); }
    60.1% { clip-path: inset(40% 0 20% 0); }
    80% { clip-path: inset(90% 0 0 0); }
}

@keyframes glitch-2 {
    0%, 20%, 60%, 100% { clip-path: inset(0 0 0 0); }
    20.1% { clip-path: inset(0 0 80% 0); }
    40% { clip-path: inset(60% 0 20% 0); }
    60.1% { clip-path: inset(20% 0 40% 0); }
    80% { clip-path: inset(0 0 90% 0); }
}


#intro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.terminal-window {
    width: 100%;
    max-width: 600px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background-color: #333;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background-color: var(--red); }
.yellow { background-color: var(--yellow); }
.green { background-color: var(--green); }

.terminal-title {
    color: #ccc;
    margin: 0 auto;
}

.terminal-body {
    padding: 1.5rem;
}

.terminal-body h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--green);
    font-weight: 700;
}

#typing-text {
    font-weight: 700;
}
#typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.card h3 {
    margin-bottom: 0.5rem;
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline li {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--background-color);
    margin-left: -4px;
}

.list p, .list a {
    background-color: var(--surface-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.list a:hover {
    background-color: #2a2a2a;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 1rem;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    nav {
        gap: 1rem;
        justify-content: center;
    }
    main {
        padding-top: 10rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .terminal-body h1 {
        font-size: 2rem;
    }
}
