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

:root {
    --primary-color: #2d5f5d;
    --secondary-color: #1a3d3b;
    --accent-color: #ff8c42;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --cream: #faf8f5;
    --text: #333;
    --border: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23e8e4df" width="100" height="100"/></svg>');
    background-color: var(--cream);
}

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

/* Navigation */
.navbar {
    background-color: white;
    color: var(--text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
}

.navbar::after {
    content: '';
    position: absolute;
    top: -30px;
    right: 20px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--accent-color);
}

.nav-brand a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

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

.nav-links {
    position: relative;
    z-index: 1;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section - Featured Post */
.hero {
    padding: 3rem 0 1rem 0;
}

.hero .container {
    max-width: 1200px;
}

.featured-post {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(45, 95, 93, 0.2);
    position: relative;
    overflow: hidden;
}

.featured-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

.featured-btn i {
    transition: transform 0.3s;
}

.featured-btn:hover i {
    transform: translateX(5px);
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* About Section */
.about {
    padding: 3rem 0 4rem 0;
    background-color: transparent;
}

.about-container {
    background: var(--primary-color);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(45, 95, 93, 0.2);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 100%;
    opacity: 0.95;
    line-height: 1.7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin-bottom: 3rem;
}

.skill-section {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 1.5rem;
}

.skill-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-section ul {
    list-style: none;
    color: white;
    opacity: 0.9;
    line-height: 1.8;
}

.skill-section li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.skill-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.skill-section p {
    color: white;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.skill-section p strong {
    color: white;
    opacity: 1;
}

.why-blog {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.why-blog h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.why-blog p {
    color: white;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.why-blog ul {
    list-style: none;
    color: white;
    opacity: 0.9;
    line-height: 1.8;
}

.why-blog li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.why-blog li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Posts Section */
.posts {
    padding: 4rem 0;
}

.posts h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 700;
}

.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(45, 95, 93, 0.2);
}

.filter-pill.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--cream);
}

.post-card-header {
    padding: 0;
}

.post-card-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.post-card-body {
    padding: 1.5rem;
    padding-top: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .featured-content h1 {
        font-size: 2rem;
    }

    .featured-content p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

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

    .posts h2 {
        font-size: 2rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-pill {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}
