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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    --text-primary: #00ff41;
    --text-secondary: #7ee787;
    --text-muted: #8b949e;
    --accent: #00d9ff;
    --accent-alt: #ff6b6b;
    --border: #30363d;
    --glow: rgba(0, 255, 65, 0.3);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 65, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 3px
        );
    pointer-events: none;
    z-index: 1;
}

/* Navigation */
.nav-terminal {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.prompt-user {
    color: var(--text-secondary);
}

.prompt-symbol {
    color: var(--accent);
    margin-left: 0.25rem;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '()';
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 2rem 4rem;
    position: relative;
    gap: 0;
}

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 30px var(--glow);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

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

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

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 2rem;
    min-height: 400px;
}

.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt {
    color: var(--accent);
    font-weight: bold;
}

.command {
    color: var(--text-primary);
}

.typing::after {
    content: '▊';
    animation: blink 1s infinite;
    color: var(--text-primary);
}

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

.terminal-output {
    margin-top: 2rem;
}

.ascii-art {
    color: var(--text-secondary);
    font-size: 0.6rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--text-primary);
    box-shadow: 0 0 20px var(--glow), 0 0 40px rgba(0, 255, 65, 0.2);
    object-fit: cover;
    object-position: 60% center;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.profile-image:hover {
    box-shadow: 0 0 30px var(--glow), 0 0 60px rgba(0, 255, 65, 0.4);
    transform: scale(1.4);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.glitch {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-alt);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(54px, 9999px, 66px, 0); }
    40% { clip: rect(28px, 9999px, 100px, 0); }
    60% { clip: rect(67px, 9999px, 85px, 0); }
    80% { clip: rect(9px, 9999px, 97px, 0); }
    100% { clip: rect(73px, 9999px, 61px, 0); }
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--text-primary);
}

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

.status-text {
    color: var(--text-primary);
    font-weight: bold;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-number {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
}

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    text-transform: lowercase;
}

/* Terminal Box */
.terminal-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.code-block {
    position: relative;
}

.code-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-lang {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.8;
}

.keyword {
    color: #c792ea;
}

.variable {
    color: #82aaff;
}

.property {
    color: #7fdbca;
}

.string {
    color: #c3e88d;
}

.comment {
    color: var(--text-muted);
    font-style: italic;
}

.command {
    color: var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow);
}

.job-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-title {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.job-company {
    color: var(--accent);
}

.job-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job-list {
    list-style: none;
    padding-left: 1.5rem;
}

.job-list li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
}

.job-list li::before {
    content: '> ';
    color: var(--accent);
    position: absolute;
    left: -1.5rem;
}

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

.project-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.project-title {
    color: var(--text-primary);
    font-size: 1.2rem;
}

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

.project-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    width: 32px;
    height: 32px;
}

.project-link:hover {
    color: var(--text-primary);
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.github-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

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

.hackathon-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.hackathon-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.hackathon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.hackathon-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hackathon-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hackathon-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hackathon-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px var(--glow);
    transform: translateX(10px);
}

.link-prefix {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 6rem 1rem 2rem;
    }

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

    .profile-image-container {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
        transform: scale(1.1);
    }

    .profile-image:hover {
        transform: scale(1.2);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .glitch {
        font-size: 1.2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

