:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --max-width: 900px;
}

[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #f5f5f5;
    --text-light: #a0a0a0;
    --accent-color: #60a5fa;
    --accent-hover: #93c5fd;
    --card-bg: #1a1a1a;
    --border-color: #333333;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: 120px 0 40px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    flex-shrink: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Page Content (for separate section pages) */
.page-content {
    padding: 100px 0 40px;
    min-height: 60vh;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* About */
.about p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
}

.experience-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.experience-content .role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Resume Page */
.resume-page {
    padding: 100px 0 40px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.resume-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resume-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.resume-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    width: 100%;
}

.resume-info {
    text-align: left;
}

.resume-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.resume-section {
    margin-bottom: 2rem;
}

.resume-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.resume-section p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .nav-right {
        gap: 0.75rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .btn {
        text-align: center;
    }
}
