* {
    font-family: 'Inter', system-ui, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #F5F5F5;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo span {
    color: #2979FF;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    background-color: #F5F5F5;
}

.nav a:hover {
    text-decoration: underline;
}

.nav a.active {
    color: #2a9d8f;
    font-weight: 700;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    background-color: #F5F5F5;
}

.socials {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 0.75rem;
}

.socials a {
    color: #666;
    font-size: 1.6rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: #2979FF;
    transform: translateY(-2px);
}

/* --- Home Page Styles --- */
main.home-page {
    flex: 1;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    min-height: 60vh;
    flex-wrap: wrap;
    padding: 20px;
}

.intro-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.intro-text {
    max-width: 600px;
    text-align: left;
}

.intro-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111111;
}

.intro-text p {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Highlights Section */
.highlights {
    margin-top: 80px;
    text-align: center;
}

.highlights h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.skill-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.skill-card i {
    font-size: 2.5rem;
    color: #2979FF;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #111111;
}

.skill-card p {
    color: #555555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.view-project-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #2979FF;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

.view-project-btn:hover {
    background-color: #1e5fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 121, 255, 0.3);
}

/* --- About Page Styles --- */
main.about-page {
    flex: 1;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills {
    margin-top: 60px;
    text-align: center;
}

.skills h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.experience {
    margin-top: 60px;
    text-align: center;
}

.experience h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 30px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.experience-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.experience-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #111111;
}

.experience-item span {
    font-size: 0.9rem;
    color: #888888;
    display: block;
    margin-bottom: 10px;
}

.experience-item p {
    margin: 0;
    color: #555555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.personal-info {
    margin-top: 60px;
    text-align: center;
}

.personal-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
}

.personal-info p {
    font-size: 1rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Blog Page Styles --- */
main.blog {
    flex: 1;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-intro {
    text-align: center;
    margin-bottom: 40px;
}

.blog-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111111;
}

.blog-intro p {
    font-size: 1.15rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid container for blog posts */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-preview {
    background-color: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-preview .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-preview h2 {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.post-preview h2 a {
    text-decoration: none;
    color: #111111;
}

.post-preview h2 a:hover {
    color: #2979FF;
}

.post-preview .post-date {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 12px;
}

.post-preview p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #444444;
    flex-grow: 1;
}

.post-preview a.read-more {
    color: #2a9d8f;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.post-preview a.read-more:hover {
    text-decoration: underline;
}

/* --- Individual Blog Post Styles --- */
main.blog-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

main.blog-post article {
    background-color: #ffffff;
    padding: 50px 60px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #111111;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #888888;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    object-fit: cover;
    max-height: 500px;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
}

.post-body p {
    margin: 0 0 20px 0;
}

.post-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: #111111;
}

.post-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #111111;
}

.post-body ul, .post-body ol {
    margin: 0 0 20px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body blockquote {
    border-left: 4px solid #2979FF;
    padding: 15px 25px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555555;
}

.post-body code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

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

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.back-to-blog {
    color: #2a9d8f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-to-blog:hover {
    color: #238276;
    text-decoration: underline;
}

/* --- Contact Page Styles --- */
main.contact-page {
    flex: 1;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111111;
}

.contact-intro p {
    font-size: 1.15rem;
    color: #555555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

/* Contact Form Section */
.contact-form-section,
.contact-info-section {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #111111;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2979FF;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group select {
    cursor: pointer;
}

.submit-btn {
    padding: 15px 35px;
    background-color: #2979FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #1e5fd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 121, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Contact Info Section */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.contact-method:hover {
    background-color: #f0f2f5;
}

.contact-method i {
    font-size: 1.3rem;
    color: #2979FF;
    margin-top: 3px;
    width: 25px;
}

.contact-method h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #111111;
}

.contact-method a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.contact-method a:hover {
    color: #2979FF;
}

/* Availability Card */
.availability-card {
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #81c784;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.available {
    background-color: #4caf50;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.availability-card p {
    margin: 0;
    color: #2e7d32;
    font-size: 0.95rem;
    line-height: 1.5;
}

.availability-card strong {
    color: #1b5e20;
    font-size: 1.05rem;
}

.response-time {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2979FF;
}

.response-time p {
    margin: 0;
    color: #555555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-time i {
    color: #2979FF;
}

/* --- Projects Page Styles --- */
main.projects-page {
    flex: 1;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-intro {
    text-align: center;
    margin-bottom: 40px;
}

.projects-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111111;
}

.projects-intro p {
    font-size: 1.15rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background-color: #ffffff;
    color: #555555;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #2979FF;
    color: #2979FF;
}

.filter-btn.active {
    background-color: #2979FF;
    color: white;
    border-color: #2979FF;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Project Image */
.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 121, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Project Content */
.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.project-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: #111111;
    line-height: 1.3;
}

.project-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.in-progress {
    background-color: #fff3e0;
    color: #e65100;
}

.project-description {
    color: #555555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 12px;
    background-color: #f0f2f5;
    color: #2979FF;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #2979FF;
}

.project-link.disabled {
    color: #999999;
    cursor: not-allowed;
}

.project-link.disabled:hover {
    color: #999999;
}

.project-link i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro {
        gap: 50px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    main.blog-post article {
        padding: 30px 25px;
    }

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

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

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.2rem;
    }
    
    .contact-intro h1,
    .projects-intro h1,
    .blog-intro h1 {
        font-size: 2rem;
    }

    .contact-intro p,
    .projects-intro p,
    .blog-intro p {
        font-size: 1rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 25px 20px;
    }
    
    .project-content {
        padding: 20px;
    }

    .project-image {
        height: 200px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .intro-photo {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .intro {
        text-align: center;
    }
    
    .intro-text {
        text-align: center;
    }
}