/* Reset and Base Styles */
* {
    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: #333;
    background-color: #fafafa;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
}

a.btn {
    color: inherit;
}

a.btn:hover {
    color: inherit;
}

/* Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.logo:hover {
    color: #0066cc;
}

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

.nav-links a {
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: #0066cc;
}

.nav-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-social a:hover {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

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

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #0066cc;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.avatar:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 700;
}

.tagline {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: #fff !important;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.about p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Experience Section */
.experience {
    margin-bottom: 3rem;
}

.experience-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0066cc;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
    border-left-color: #0052a3;
}

.experience-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: #000;
}

.company {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.duration {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item ul {
    margin-left: 1.5rem;
    color: #555;
}

.experience-item li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack {
    margin-bottom: 3rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    border-top: 3px solid #0066cc;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #0052a3 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.tech-category p {
    color: #555;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    color: #999;
    font-size: 0.9rem;
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.blog-post-card {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
    border-left-color: #0052a3;
}

.blog-post-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.blog-post-card h3 a {
    color: #000;
}

.blog-post-card h3 a:hover {
    color: #0066cc;
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: #0066cc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0052a3;
}

/* Blog Post Styles */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-info {
    color: #999;
    font-size: 0.95rem;
}

.post-body {
    line-height: 1.8;
    color: #444;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-body pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.post-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.post-body ul,
.post-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #0066cc;
    font-weight: 500;
}

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

    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

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

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .experience-item {
        padding: 1.25rem;
    }

    .experience-item h3 {
        font-size: 1.15rem;
    }

    .experience-item ul {
        margin-left: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .navbar {
        position: relative;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .nav-social {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-social a {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        border-radius: 3px;
    }

    .nav-social {
        gap: 0.5rem;
    }

    .nav-social a {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .tagline {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    main {
        padding: 1.5rem 0;
    }

    section {
        margin-bottom: 2rem;
    }

    section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .about p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .experience-item {
        padding: 1rem;
        margin-bottom: 1rem;
        border-left: 3px solid #0066cc;
    }

    .company {
        font-size: 0.9rem;
    }

    .duration {
        font-size: 0.85rem;
    }

    .experience-item h3 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .experience-item ul {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    .experience-item li {
        margin-bottom: 0.5rem;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tech-category {
        padding: 1rem;
    }

    .tech-category h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tech-category p {
        font-size: 0.9rem;
    }

    .post-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .post-info {
        font-size: 0.85rem;
    }

    .post-body {
        font-size: 0.95rem;
    }

    .post-body h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .post-body h3 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .post-body p {
        margin-bottom: 0.75rem;
    }

    .blog-post-card {
        padding: 1rem;
    }

    .blog-post-card h3 {
        font-size: 1.25rem;
    }

    .blog-post-card h3 a {
        font-size: 1.15rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
}

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

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
    }

    .hero h1 {
        font-size: 1.35rem;
        margin-bottom: 0.4rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .experience-item {
        padding: 0.75rem;
    }

    .experience-item h3 {
        font-size: 1rem;
    }

    .experience-item ul {
        margin-left: 0.8rem;
        font-size: 0.85rem;
    }

    .tech-category {
        padding: 0.75rem;
    }

    .tech-category h3 {
        font-size: 0.95rem;
    }

    .tech-category p {
        font-size: 0.85rem;
    }
}
