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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #f8f9fa;
    color: #333;
}

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

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.btn-primary:hover {
    background-color: #555;
    border-color: #555;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border-color: #333;
}

.btn-outline:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Areas Section */
.areas-section {
    padding: 4rem 0;
}

.areas-grid {
    margin-top: 2rem;
}

.area-card {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
}

.area-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.area-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.area-description {
    color: #666;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-learn-more {
    margin-top: 2rem;
}

/* Writings Section */
.writings-section {
    padding: 4rem 0;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-excerpt strong,
.article-excerpt b {
    font-weight: 600;
    color: #333;
}

.article-excerpt em,
.article-excerpt i {
    font-style: italic;
}

.article-excerpt p {
    margin-bottom: 0.5rem;
}

.article-excerpt p:last-child {
    margin-bottom: 0;
}

.article-tags {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.article-link:hover {
    text-decoration: underline;
}

/* Why Write Section */
.why-write-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.why-write-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.why-write-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #555;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background-color: #555;
    color: #fff;
}

.footer-icon {
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.contact-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.btn-send-message {
    width: 100%;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send-message:hover {
    background-color: #555;
}

/* About Page Specific */
.about-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.about-profile-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* What I Do Section */
.what-i-do-section {
    padding: 4rem 0;
}

.what-i-do-card {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.what-i-do-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.what-i-do-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.what-i-do-description {
    color: #666;
}

.what-i-do-conclusion {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* What I Care Section */
.what-i-care-section {
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.what-i-care-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
}

.what-i-care-section .container {
    position: relative;
    z-index: 1;
}

.white-text {
    color: #fff !important;
}

.what-i-care-content p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Why Website Section */
.why-website-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.why-website-content {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Articles Page Specific */
.articles-header {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.articles-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.articles-list {
    padding: 4rem 0;
}

.article-card-large {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card-large:hover {
    transform: translateY(-5px);
}

.article-card-large .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-large .article-content {
    padding: 2rem;
}

.btn-load-more {
    margin-top: 2rem;
}

.no-articles {
    font-size: 1.2rem;
    color: #666;
    padding: 3rem 0;
}

/* Article Detail Page */
.article-header {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* Rich Content Styling */
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.article-body h1 { font-size: 2rem; }
.article-body h2 { font-size: 1.75rem; }
.article-body h3 { font-size: 1.5rem; }

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body ul ul, .article-body ol ol, .article-body ul ol, .article-body ol ul {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-body table th,
.article-body table td {
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    text-align: left;
}

.article-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.article-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-body table tr:hover {
    background-color: #e9ecef;
}

.article-body blockquote {
    border-left: 4px solid #007cba;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 5px 5px 0;
}

.article-body code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-body pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
}

.article-body a {
    color: #007cba;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #007cba;
}

.article-body strong {
    font-weight: 600;
    color: #333;
}

.article-body em {
    font-style: italic;
    color: #555;
}

.article-body u {
    text-decoration: underline;
    text-decoration-color: #007cba;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem 0;
    display: block;
}

/* Responsive table */
@media (max-width: 768px) {
    .article-body table {
        font-size: 0.9rem;
    }
    
    .article-body table th,
    .article-body table td {
        padding: 8px 10px;
    }
    
    .article-body ul, .article-body ol {
        padding-left: 1.5rem;
    }
}

.article-content-section {
    padding: 4rem 0;
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.article-conclusion {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.related-articles {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-card-large .row {
        flex-direction: column;
    }
    
    .article-card-large .article-image img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section,
    .areas-section,
    .about-section,
    .writings-section,
    .why-write-section,
    .what-i-do-section,
    .what-i-care-section,
    .why-website-section,
    .articles-header,
    .articles-list {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
