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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #00ff00;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #00ff00;
}

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

.btn-close { background: #ff5f56; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #27c93f; }

.terminal-title {
    margin-left: 10px;
    color: #888;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 2rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00ff00;
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #00ff00;
    font-weight: 700;
    font-size: 1.125rem;
    text-shadow: 0 0 10px #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px #00ff00;
    transform: translateY(-1px);
}

.logo::before {
    content: '$ ';
    color: #00ff00;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.nav-link.active::before {
    opacity: 1;
}

#menu-btn {
    display: none;
    background: none;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}

#mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #00ff00;
    padding: 1rem;
}

#mobile-menu.show {
    display: block;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #00ff00;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

#mobile-menu a::before {
    content: '> ';
}

#mobile-menu a:hover {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
}

/* Main Content */
main {
    padding-top: 4rem;
}

section {
    padding: 5rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 20px #00ff00;
}

h2::before {
    content: '// ';
    color: #888;
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: #00ff00;
    margin: 0 auto 3rem;
    box-shadow: 0 0 10px #00ff00;
}

/* Typing cursor animation */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    animation: blink 1s infinite;
    margin-left: 5px;
}

/* Glitch effect */
@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 8rem 2rem;
}

.hero-content {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    padding: 4rem 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px #00ff00;
    animation: glitch 3s infinite;
}

.hero-content h1 .highlight {
    color: #00ff00;
    text-shadow: 0 0 30px #00ff00;
}

.hero-content .subtitle {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1rem;
}

.hero-content .subtitle::before {
    content: '// ';
}

.hero-content .description {
    font-size: 1rem;
    color: #00ff00;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #00ff00;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.btn-primary {
    background-color: #00ff00;
    color: #000;
}

.btn-primary:hover {
    background-color: transparent;
    color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #00ff00;
}

.btn-secondary:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
    transform: translateY(-2px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 1.5rem;
}

.about-text h3::before {
    content: '$ ';
}

.about-text p {
    color: #00ff00;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #00ff00;
}

.info-item::before {
    content: '> ';
    color: #00ff00;
}

.info-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #00ff00;
    flex-shrink: 0;
}

.info-item a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    text-shadow: 0 0 10px #00ff00;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 0.75rem;
}

.info-card h4::before {
    content: '$ ';
}

.info-card h4 svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #00ff00;
}

.info-card p {
    color: #00ff00;
    margin: 0;
    opacity: 0.8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #00ff00;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff00;
}

.project-card h3::before {
    content: '$ ';
    font-size: 1rem;
}

.project-card p {
    color: #00ff00;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #00ff00;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #00ff00;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

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

.project-link svg {
    width: 1rem;
    height: 1rem;
}

/* Skills Section */
.skill-group {
    margin-bottom: 2.5rem;
}

.skill-group:last-child {
    margin-bottom: 0;
}

.skill-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #00ff00;
    margin-bottom: 1rem;
    text-align: left;
}

.skill-group-title::before {
    content: '// ';
    color: #888;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 4px;
    color: #00ff00;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill:hover {
    background-color: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.interest-card {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.interest-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.interest-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.interest-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #00ff00;
}

.interest-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff00;
}

.interest-card p {
    color: #00ff00;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    opacity: 0.8;
}

.interest-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-highlights span {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #00ff00;
}

/* Contact Section */
#contact .terminal-window {
    max-width: 56rem;
    margin: 0 auto;
}

.contact-description {
    color: #00ff00;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-description::before {
    content: '// ';
    color: #888;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #00ff00;
    padding: 2rem;
    text-align: center;
    color: #00ff00;
    font-size: 0.875rem;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

footer p::before {
    content: '// ';
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    #menu-btn {
        display: block;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .skill-pills {
        gap: 0.5rem;
    }
    
    .skill-pill {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-buttons {
        flex-direction: column;
    }

    section {
        padding: 3rem 1rem;
    }

    #hero {
        padding: 6rem 1rem;
    }

    .terminal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.875rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .skill-pill {
        padding: 0.35rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* 404 Page Specific Styles */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-404 .terminal {
    max-width: 700px;
    width: 100%;
}

.error-code {
    font-size: 4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ff00;
    animation: glitch 3s infinite;
}

.terminal-text {
    margin: 15px 0;
    line-height: 1.6;
    font-size: 1rem;
}

.command {
    color: #00ff00;
}

.error {
    color: #ff6b6b;
}

.comment {
    color: #888;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.terminal-button-action {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.terminal-button-action:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 20px #00ff00;
    transform: translateY(-2px);
}

.ascii-art {
    text-align: center;
    font-size: 0.8rem;
    margin: 20px 0;
    color: #00ff00;
    line-height: 1.2;
}

.terminal-text.spacing-top {
    margin-top: 25px;
}

/* 404 Page Mobile Responsiveness */
@media (max-width: 768px) {
    .error-code {
        font-size: 3rem;
    }

    .terminal-text {
        font-size: 0.9rem;
    }

    .terminal-button-action {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .ascii-art {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 2.5rem;
    }

    .terminal-text {
        font-size: 0.85rem;
    }

    .ascii-art {
        font-size: 0.5rem;
    }
}