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

:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-purple: #a855f7;
    --accent-teal: #14b8a6;
    --accent-pink: #ec4899;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header and Navigation */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
#hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #fce7f3 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

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

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

/* Experience Section */
.experience-content {
    display: grid;
    gap: 2rem;
    max-width: 800px;
}

.experience-item {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.experience-item:nth-child(2) {
    border-left-color: var(--accent-teal);
}

.experience-item:nth-child(3) {
    border-left-color: var(--accent-purple);
}

section:nth-child(even) .experience-item {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.role, .school {
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.location, .years {
    color: var(--text-light);
    font-size: 0.875rem;
}

.skills {
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 0.5rem;
}

section:nth-child(even) .skills {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skills h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.skills li {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    color: var(--text-medium);
}

section:nth-child(even) .skills li {
    background-color: var(--bg-light);
}

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

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

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-card:nth-child(1):hover {
    border-color: var(--accent-teal);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.2);
}

.project-card:nth-child(2):hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.project-card:nth-child(3):hover {
    border-color: var(--accent-purple);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.2);
}

.project-card:nth-child(4):hover {
    border-color: var(--accent-green);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.2);
}

.project-card:nth-child(5):hover {
    border-color: var(--accent-pink);
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
}

.project-timeline {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 0.5rem;
}

/* Image placeholders */
.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.project-image[src]:not([src=""]) {
    display: block;
}

.project-image-placeholder::before {
    content: 'Image coming soon';
    color: var(--text-light);
    font-size: 0.875rem;
}

.project-image-placeholder:has(img[src]:not([src=""])):before {
    content: '';
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.separator {
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: #9ca3af;
}

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

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 2rem;
    }

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

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

    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    section {
        padding: 3rem 0;
    }
}
