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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-link {
    font-weight: 500;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
    background-color: #f8fafc;
}

.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #333 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.column-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
    border-radius: 2px;
}

/* Project Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

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

.project-name {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Goals */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.goal-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-title {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.goal-description {
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Blog Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.blog-post {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

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

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* Blog Post Detail View */
.blog-post-detail {
    animation: fadeIn 0.5s ease-in-out;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-post-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post-detail-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-detail-meta {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.blog-post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.blog-post-detail-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-detail-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.75rem;
}

.blog-post-detail-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.5rem;
}

.blog-post-detail-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.blog-post-detail-content ul,
.blog-post-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-detail-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

.blog-post-detail-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.blog-post-detail-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.blog-post-detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-detail-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Resume Section */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.resume-actions {
    display: flex;
    gap: 1rem;
}

.resume-content {
    max-width: 900px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: 3rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-name {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #666;
}

.resume-section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
    display: inline-block;
}

.resume-summary {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Experience */
.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.job-title {
    color: #333;
    font-size: 1.25rem;
    margin: 0;
}

.job-duration {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
}

.company-name {
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.job-responsibilities li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 0.8rem;
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.degree-title {
    color: #333;
    font-size: 1.25rem;
    margin: 0;
}

.graduation-year {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9rem;
}

.school-name {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-details {
    color: #666;
    font-size: 0.9rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.skill-category-title {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #2563eb;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Print Styles */
@media print {
    .navbar,
    .resume-header .resume-actions {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .resume-content {
        max-width: none;
    }
    
    .contact-details {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card,
    .blog-post,
    .skill-category {
        background: transparent !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .resume-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .resume-actions {
        justify-content: center;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-buttons {
        flex-wrap: wrap;
    }

    .blog-post-detail-title {
        font-size: 2rem;
    }

    .blog-post-detail-content {
        font-size: 1rem;
    }

    .blog-post-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }
    
    .hero {
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .project-card,
    .goal-item,
    .blog-post {
        padding: 1.5rem;
    }
    
    .nav-container {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .blog-post-detail-title {
        font-size: 1.75rem;
    }

    .blog-post-detail-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .blog-post-detail-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .blog-post-detail-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Make links in blog posts and resume look clickable */
.blog-post-detail-content a:not(.btn):not(.btn *),
.blog-content a:not(.btn):not(.btn *),
.resume-content a:not(.btn):not(.btn *),
.contact-details a:not(.btn):not(.btn *) {
    color: #2563eb;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.blog-post-detail-content a:not(.btn):not(.btn *):hover,
.blog-content a:not(.btn):not(.btn *):hover,
.resume-content a:not(.btn):not(.btn *):hover,
.contact-details a:not(.btn):not(.btn *):hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Explicitly preserve button styling everywhere */
.btn,
.btn *,
a.btn,
a.btn *,
.project-buttons a,
.project-buttons a *,
.resume-actions a,
.resume-actions a * {
    text-decoration: none !important;
}

/* Keep button text colors as defined in original styles */
.btn-primary,
.btn-primary * {
    color: white !important;
}

.btn-secondary,
.btn-secondary * {
    color: #2563eb !important;
}