:root {
    --bg-color: #0a0a0a;
    --text-color: #d4a574;
    --text-dim: #9b7e5f;
    --text-bright: #e6c299;
    --border-color: #c29566;
    --scanline-opacity: 0.03;
}

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

body {
    font-family: 'VT323', monospace;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 176, 0, var(--scanline-opacity)) 2px,
        rgba(255, 176, 0, var(--scanline-opacity)) 4px
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-window {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 120px;
    min-height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.floating-nav {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    text-align: right;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    padding: 5px 2px;
    position: relative;
    display: inline-block;
}

.nav-link::before {
    content: '[';
    margin-right: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: ']';
    margin-left: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--text-bright);
}

.nav-link:hover::before {
    transform: translateX(-6px);
}

.nav-link:hover::after {
    transform: translateX(6px);
}

.content {
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 100px;
    padding-top: 60px;
}

.ascii-logo {
    font-size: 72px;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 30px;
    opacity: 0.7;
    position: relative;
}

.ascii-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ascii-char.revealed {
    opacity: 1;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    75% { opacity: 0.9; }
}

.location {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    margin-bottom: 30px;
    height: 24px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.typewriter {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--text-bright);
}

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

.cta {
    color: var(--text-dim);
    font-size: 36px;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    animation-delay: 3s;
    max-width: 800px;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    margin-bottom: 80px;
}

.section.fade-in {
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
    animation-delay: 1s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: var(--text-bright);
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.section-content {
    padding: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 176, 0, 0.02);
}

.section-content p {
    margin-bottom: 15px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 120px;
    margin-bottom: 100px;
}

.project-link {
    text-decoration: none;
    display: block;
    outline: none;
}

.project-link:visited {
    text-decoration: none;
}

.project {
    padding: 0;
    border: none;
    background: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-10px);
}

.project-logo {
    width: 100%;
    height: auto;
    max-width: 110px;
    margin-bottom: 20px;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.project:hover .project-logo {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.project h3 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-dim);
    font-size: 18px;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.05em;
}

.project:hover h3 {
    color: var(--text-color);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
}

.ascii-divider {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.5;
    width: 100%;
    overflow: hidden;
}

.copyright {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 10px;
}

.contact {
    color: var(--text-dim);
    font-size: 16px;
}

.contact:hover {
    color: var(--text-bright);
}

/* New styles for multi-page layout */
.nav-link.active {
    color: var(--text-bright);
}

.nav-link.active::before {
    transform: translateX(-6px);
}

.nav-link.active::after {
    transform: translateX(6px);
}

.hero-centered {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-links {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.home-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 20px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.home-link:hover {
    color: var(--text-bright);
    border-color: var(--text-bright);
    transform: translateY(-2px);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.page-title {
    color: var(--text-bright);
    font-size: 32px;
}

.page-ascii-logo {
    font-size: 28px;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 40px;
    opacity: 0.7;
    text-align: center;
    white-space: pre;
    overflow-x: visible;
    display: block;
    width: 100%;
}

.page-ascii-logo .ascii-char {
    font-size: inherit;
}

.terminal-prompt {
    color: var(--text-bright);
    margin: 30px 0 10px 0;
    font-size: 18px;
}

.terminal-prompt:first-child {
    margin-top: 0;
}

.terminal-response {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    line-height: 1.6;
}

.file-list {
    list-style: none;
    padding-left: 20px;
    color: var(--text-dim);
}

.file-list li {
    margin: 5px 0;
    font-size: 18px;
}

.file-list li::before {
    content: "";
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-status {
    font-size: 12px;
    color: var(--text-dim);
    padding: 1px 6px;
    border: 1px solid var(--border-color);
}

.project-details {
    margin-bottom: 10px;
}

.project-tech {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tech-tag {
    font-size: 11px;
    color: var(--text-dim);
    border: 1px solid var(--border-color);
    padding: 1px 4px;
}

.ascii-art-small {
    font-size: 10px;
    line-height: 1;
    color: var(--text-dim);
    margin-top: 15px;
    text-align: center;
    opacity: 0.6;
}

.project.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@media (max-width: 768px) {
    .floating-nav {
        top: 80px;
        right: 15px;
        gap: 15px;
        flex-direction: column;
    }
    
    .terminal-window {
        padding: 20px 15px;
    }
    
    .ascii-logo {
        font-size: 48px;
    }
    
    
    
    .hero {
        padding-top: 20px;
        margin-bottom: 60px;
    }
    
    .hero-centered {
        min-height: 70vh;
    }
    
    .home-links {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .location {
        font-size: 16px;
        height: 20px;
    }
    
    .cta {
        font-size: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}