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

/* Root Variables */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e5e5e5;
    --accent-color: #1a1a1a;
    --transition: all 0.3s ease;
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 3rem;
}

.profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.greeting {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon.github {
    background-color: #24292e;
    color: white;
}

.social-icon.github:hover {
    background-color: #1a1e22;
}

.social-icon.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-icon.linkedin:hover {
    background-color: #005885;
}

.social-icon.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-icon.twitter:hover {
    background-color: #0d8bd9;
}

.social-icon.email {
    background-color: #ea4335;
    color: white;
}

.social-icon.email:hover {
    background-color: #d33426;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-button {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: white;
}

/* Content Sections */
.content-section {
    display: none;
    margin-top: 2rem;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Prose (About Section) */
.prose p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 1.5rem;
}

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

.project-card:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag-green {
    background-color: #d1fae5;
    color: #065f46;
}

.tag-purple {
    background-color: #e9d5ff;
    color: #6b21a8;
}

.tag-orange {
    background-color: #fed7aa;
    color: #9a3412;
}

.tag-red {
    background-color: #fecaca;
    color: #991b1b;
}

.tag-teal {
    background-color: #ccfbf1;
    color: #115e59;
}

.tag-indigo {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Writing List */
.writing-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.writing-item {
    padding: 1rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.writing-item:hover {
    background-color: var(--bg-secondary);
}

.writing-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.writing-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-text {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .greeting {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 96px;
        height: 96px;
        font-size: 2rem;
    }

    .greeting {
        font-size: 1.75rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
