/*
 * Portfolio - Clean & Personal
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --bg: #fafafa;
    --bg-alt: #f4f4f5;
    --text: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e4e4e7;
    --card: #ffffff;
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav - Simple */
.navbar {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
}

/* Hero - Personal */
.hero {
    padding: 80px 24px 60px;
    max-width: 720px;
    margin: 0 auto;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 500px;
    flex: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: #27272a;
    text-decoration: none;
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.scroll-indicator {
    display: none;
}

.hero-bg {
    display: none;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    display: none;
}

/* About */
.about-content {
    max-width: 100%;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.7;
}

.skills-container h3 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 12px;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Experience */
.experience {
    background: var(--bg);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline::before {
    display: none;
}

.timeline-item {
    padding: 0;
}

.timeline-item::before {
    display: none;
}

.timeline-content {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.timeline-content:hover {
    transform: none;
    border-color: var(--border);
}

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

.timeline-role {
    font-size: 15px;
    font-weight: 600;
}

.timeline-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.project-card:hover {
    border-color: #d4d4d8;
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

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

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

.project-icon {
    color: var(--text-muted);
    width: 16px;
    height: 16px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-language {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.project-stats {
    display: flex;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Language colors */
.lang-javascript { background: #f7df1e; }
.lang-typescript { background: #3178c6; }
.lang-python { background: #3572A5; }
.lang-java { background: #b07219; }
.lang-html { background: #e34c26; }
.lang-css { background: #563d7c; }
.lang-default { background: #6b7280; }

/* Loading */
.loading-spinner {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--text-muted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Education */
.education {
    background: var(--bg);
}

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.education-card {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.education-card::before {
    display: none;
}

.education-card:hover {
    transform: none;
}

.education-school {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.education-degree {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.education-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Contact */
.contact-text {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--bg-alt);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

.contact-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.contact-btn span {
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    max-width: 720px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 640px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
    }

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

    .hero-name {
        font-size: 26px;
    }

    .hero-links {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 20px;
    }

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

    .contact-btn {
        justify-content: center;
    }
}

/* Animations - subtle */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Error */
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}
