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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* Layout */
.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.expertise-tags .tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.social-links-sidebar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.social-links-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links-sidebar a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Sections */
section {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.project-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: white;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Blog Section */
.blog-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.blog-posts {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post-card {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.blog-post-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: white;
}

.blog-post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-post-card h3 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--text-secondary);
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .sidebar-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .layout {
        padding: 1rem;
        gap: 1.5rem;
    }

    section {
        padding: 2rem 1.5rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }

    .name {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .layout {
        padding: 0.75rem;
    }

    section {
        padding: 1.5rem 1rem;
    }

    .sidebar-content {
        padding: 1.5rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .expertise-tags .tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
}