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

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --text-primary: #333333;
    --text-secondary: #555555;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --border: #E5E7EB;
    --max-width: 800px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

/* === Layout === */
section {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* === Hero Section === */
#hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-secondary);
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.tag {
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
}

/* === About Me === */
#about p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* === Skills === */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
}

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

.timeline-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item .company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-item .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-item ul {
    list-style: none;
    padding-left: 0;
}

.timeline-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.timeline-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.project-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tech span {
    background-color: var(--bg-primary);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-result {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* === Contact === */
#contact {
    text-align: center;
    padding-bottom: 120px;
}

.contact-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--accent-light);
}

/* === Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* === Responsive === */
@media (max-width: 600px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        padding: 60px 20px;
    }
}
