/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --tertiary-bg: #21262d;
    --accent-color: #00d9ff;
    --secondary-accent: #ff6b6b;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-accent: #00d9ff;
    --border-color: #30363d;
    --terminal-green: #7ce38b;
    --terminal-yellow: #f0883e;
    --terminal-red: #ff6b6b;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --retro-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

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

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-accent);
    font-size: 1.2rem;
}

.terminal-prompt {
    color: var(--terminal-green);
    margin-right: 0.5rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-accent);
    border-color: var(--accent-color);
    box-shadow: var(--glow);
}

.secret-trigger {
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.secret-trigger:hover {
    transform: scale(1.1);
}

.glitch-text {
    font-family: var(--font-mono);
    color: var(--secondary-accent);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    margin-bottom: 4rem;
}

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

.terminal-window.small {
    max-width: 400px;
}

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

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: var(--terminal-red); }
.btn-minimize { background: var(--terminal-yellow); }
.btn-maximize { background: var(--terminal-green); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    background: var(--primary-bg);
}

.terminal-line {
    margin-bottom: 1rem;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 1rem;
}

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

.terminal-output {
    margin-top: 1rem;
    padding-left: 0;
}

.name-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(240, 246, 252, 0.3);
}

.role-display {
    font-size: 1.2rem;
    color: var(--text-accent);
    font-weight: 300;
}

/* Resume Grid */
.resume-section {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.resume-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--retro-shadow);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    font-size: 1.5rem;
}

.experience-item,
.project-item,
.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child,
.project-item:last-child,
.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-item h4,
.project-item h4,
.education-item h4 {
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company,
.institution {
    color: var(--text-secondary);
    font-weight: 500;
}

.duration,
.degree {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--tertiary-bg);
    color: var(--text-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.05);
}

/* About Page Styles */
.about-hero {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.retro-frame {
    position: relative;
    display: inline-block;
    padding: 2rem 4rem;
    border: 2px solid var(--accent-color);
    background: linear-gradient(45deg, transparent, rgba(0, 217, 255, 0.1));
}

.retro-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--secondary-accent);
    z-index: -1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 217, 255, 0.1) 2px,
        rgba(0, 217, 255, 0.1) 4px
    );
    pointer-events: none;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.hobby-item,
.aspiration-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hobby-item:last-child,
.aspiration-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.hobby-item h4,
.aspiration-item h4 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.philosophy-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.philosophy-points p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.contact-section {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

/* Journey Page Styles */
.journey-page {
    background: radial-gradient(circle at 50% 50%, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.journey-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.journey-intro {
    text-align: center;
    margin: 4rem 0;
    position: relative;
}

.glitch-container {
    position: relative;
}

.journey-title {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.journey-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--secondary-accent);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

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

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    30% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
}

.journey-story {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.story-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 3rem;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.story-step:nth-child(even) {
    flex-direction: row-reverse;
}

.story-step[data-step="1"] { animation-delay: 0.2s; }
.story-step[data-step="2"] { animation-delay: 0.4s; }
.story-step[data-step="3"] { animation-delay: 0.6s; }
.story-step[data-step="4"] { animation-delay: 0.8s; }
.story-step[data-step="5"] { animation-delay: 1.0s; }
.story-step[data-step="6"] { animation-delay: 1.2s; }
.story-step[data-step="7"] { animation-delay: 1.4s; }

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

.step-illustration {
    flex: 1;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pixel-art {
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pixel-character {
    width: 40px;
    height: 40px;
    background: var(--text-accent);
    border-radius: 2px;
    position: relative;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.step-content {
    flex: 2;
    padding: 2rem;
}

.step-content h2 {
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.code-snippet {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.code-snippet code {
    font-family: var(--font-mono);
    color: var(--terminal-green);
    font-size: 0.9rem;
}

.journey-cta {
    display: flex;
    justify-content: center;
    margin: 4rem 0;
}

.cta-terminal {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--retro-shadow);
    max-width: 500px;
    width: 100%;
}

.easter-egg {
    color: var(--secondary-accent);
    font-weight: bold;
    animation: pulse 2s infinite;
}

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

/* Animations */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--text-accent);
    white-space: nowrap;
    animation: typing 2s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--text-accent); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .resume-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .story-step {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    
    .journey-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .retro-frame {
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1rem;
    }
    
    .name-display {
        font-size: 2rem;
    }
    
    .journey-title {
        font-size: 2rem;
    }
    
    .terminal-window {
        margin: 0 1rem;
    }
}