:root {
    --bg: #0a0a0a;
    --text: #e8e8e8;
    --accent: #00ff41;
    --secondary: #666;
    --border: #1a1a1a;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 14px;
    padding: 20px;
    min-height: 100vh;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.03) 2px, rgba(0, 255, 65, 0.03) 4px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

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

header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.8s ease-out;
}

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

.ascii-art {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -1px;
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.name-row h1 {
    margin-bottom: 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: var(--secondary);
    padding: 4px 8px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    transition: all 0.3s ease;
}

.lang-toggle button:hover {
    color: var(--text);
}

.lang-toggle button.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.subtitle {
    color: var(--secondary);
    font-size: 13px;
    margin-bottom: 25px;
    font-weight: 300;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.3s ease;
    z-index: -1;
}

nav a:hover {
    color: var(--bg);
    border-color: var(--accent);
}

nav a:hover::before {
    left: 0;
}

.separator {
    color: var(--secondary);
    padding: 0 8px;
}

section {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

section:nth-child(2) {
    animation-delay: 0.1s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(4) {
    animation-delay: 0.3s;
}

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

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '_';
    animation: blink 1s infinite;
}

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

.profile-img {
    width: 180px;
    height: 180px;
    border: 2px solid var(--accent);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4);
}

.profile-img:hover {
    box-shadow: 0 0 30px 10px rgba(0, 255, 65, 0.2);
    transform: scale(1.02);
}

.intro {
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-text {
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.9;
    text-align: justify;
}

.about-text:last-of-type {
    margin-bottom: 0;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.timeline-content {
    background: #0d0d0d;
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

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

.timeline-date {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.timeline-tag {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 2px 8px;
    font-size: 10px;
    text-transform: uppercase;
}

.timeline-content:hover .timeline-tag {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'IBM Plex Mono', monospace;
}

.timeline-company {
    color: var(--secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

.timeline-desc {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: #0d0d0d;
    border: 1px solid var(--border);
    padding: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-icon {
    color: var(--accent);
    font-weight: 600;
}

.project-title {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}

.project-desc {
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--secondary);
    padding: 2px 8px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.project-card:hover .tag {
    border-color: var(--accent);
    color: var(--accent);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.project-links a::before {
    content: '> ';
}

.project-links a:hover {
    padding-left: 5px;
}

/* Contact Page */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.contact-center {
    text-align: center;
}

.contact-message {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 30px;
    font-style: italic;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--border);
}

.contact-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    padding-left: 24px;
}

.contact-links .link-icon {
    color: var(--accent);
    margin-right: 8px;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.social-links li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.social-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    padding-left: 8px;
}

.terminal {
    background: #0d0d0d;
    border: 1px solid var(--accent);
    padding: 20px;
    margin-top: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-header {
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-output {
    color: var(--secondary);
}

footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--secondary);
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch:hover {
    animation: glitchAnimation 0.3s ease;
}

@keyframes glitchAnimation {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    margin-top: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.menu-toggle:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
}

.menu-toggle .menu-icon {
    display: inline-block;
    margin-right: 8px;
}

/* Tablet */
@media (max-width: 768px) {
    .ascii-art {
        font-size: 8px;
    }

    h1 {
        font-size: 26px;
    }

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

    .profile-img {
        width: 150px;
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 18px;
        font-size: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 17px;
    }

    .name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ascii-art {
        font-size: 6px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .menu-toggle {
        display: block;
        font-size: 14px;
        padding: 10px 14px;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 15px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 14px 18px;
        border-radius: 0;
        text-align: center;
        border-bottom: none;
        font-size: 15px;
    }

    nav a:first-child {
        border-radius: 4px 4px 0 0;
    }

    nav a:last-child {
        border-radius: 0 0 4px 4px;
    }

    .separator {
        display: none;
    }

    .status {
        font-size: 13px;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .intro {
        font-size: 15px;
    }

    .terminal {
        padding: 18px;
        font-size: 13px;
    }

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

    .contact-links a {
        font-size: 14px;
        padding: 12px 16px;
        width: 100%;
        text-align: center;
    }

    .contact-message {
        font-size: 15px;
        padding: 0 10px;
    }

    .about-text {
        font-size: 15px;
        text-align: left;
    }

    .timeline-title {
        font-size: 15px;
    }

    .timeline-desc {
        font-size: 14px;
    }

    .timeline-date {
        font-size: 13px;
    }

    .project-title {
        font-size: 15px;
    }

    .project-desc {
        font-size: 14px;
    }

    footer {
        margin-top: 50px;
        font-size: 13px;
    }
}
