:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --container-width: 1100px;
    --transition: all 0.3s ease;
}

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

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-color);
    background-color: var(--bg-color);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

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

.logo:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

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

.section-alt {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.page-header {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.card-body {
    padding: 24px;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 16px;
}

.card-link {
    font-weight: 600;
}

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

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

.project-card:hover {
    box-shadow: var(--shadow);
}

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

.project-card p {
    color: var(--text-light);
    margin-bottom: 16px;
}

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

.project-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    transition: var(--transition);
}

.project-item:hover {
    box-shadow: var(--shadow);
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 16px;
}

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

.project-tags span {
    padding: 4px 12px;
    background-color: var(--bg-alt);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.project-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-text h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.skill-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-tag {
    padding: 8px 16px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Blog */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-post {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

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

.post-category {
    padding: 2px 10px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    flex-direction: column;
}

.contact-list strong {
    color: var(--text-color);
    margin-bottom: 4px;
}

.contact-form {
    background-color: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 16px 0;
    }

    .hero {
        padding: 60px 0;
    }

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

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

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .page-header {
        padding: 48px 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .skill-tags {
        justify-content: center;
    }

    .project-item {
        flex-direction: column;
    }

    .project-actions {
        width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.625rem;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .project-actions {
        flex-direction: column;
    }
}
