/* ========================================
   Global Styles & Reset
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a5568;
    --secondary-color: #2d3748;
    --accent-color: #718096;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --border-light: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(74, 85, 104, 0.08);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.about-hero {
    padding: 3rem 0;
}

/* ========================================
   Articles Grid
   ======================================== */

main {
    flex: 1;
    padding: 3rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.featured .article-image {
    width: 50%;
    height: auto;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.article-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.5rem;
    color: var(--text-dark);
}

/* ========================================
   About Page
   ======================================== */

.about-content {
    max-width: 800px;
    padding: 3rem 20px;
}

.about-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.about-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.profile-image {
    flex-shrink: 0;
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.profile-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.profile-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

.about-text h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h4:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .article-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }

    .featured .article-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
        max-width: none !important;
    }

    .navbar .container {
        padding: 0 15px !important;
        max-width: none !important;
    }

    .hero {
        padding: 3rem 15px !important;
    }

    .hero .container {
        padding: 0 15px !important;
        max-width: none !important;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-brand h1 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .about-section {
        padding: 2rem 1.5rem;
    }

    .about-profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .profile-info h3 {
        font-size: 1.75rem;
    }

    main.container {
        padding: 2rem 15px;
    }

    .article-body {
        padding: 2rem 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px !important;
        max-width: none !important;
    }

    .navbar .container {
        padding: 0 10px !important;
        max-width: none !important;
    }

    .hero {
        padding: 2rem 10px !important;
    }

    .hero .container {
        padding: 0 10px !important;
        max-width: none !important;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

    .about-text h4 {
        font-size: 1.25rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    main.container {
        padding: 1.5rem 10px;
    }

    .article-body {
        padding: 1.5rem 10px;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

