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

:root {
    --background: 210 11% 8%; /* #0d131c */
    --surface: 210 11% 15%; /* #1a2332 */
    --primary: 217 91% 52%; /* #156af3 */
    --text: 210 11% 98%; /* #f5f7fa */
    --text-muted: 210 11% 75%; /* #a8b3c7 */
    --accent: 210 11% 25%; /* #2d3748 */
    --border: 210 11% 20%; /* #242c3a */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: hsl(var(--surface));
    border-bottom: 1px solid hsl(var(--border));
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--text));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text));
    margin: 3px 0;
    transition: 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--surface)) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: hsl(var(--text-muted));
}

.cta-button {
    display: inline-block;
    background-color: hsl(var(--primary));
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: hsl(217 91% 45%);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.about-card p {
    color: hsl(var(--text-muted));
    line-height: 1.7;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    color: hsl(var(--text-muted));
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.about-card li::before {
    content: "→";
    color: hsl(var(--primary));
    position: absolute;
    left: 0;
}

/* Articles Section */
.articles {
    padding: 4rem 0;
}

.articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: hsl(var(--text));
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: hsl(var(--surface));
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
}

.article-card h3 {
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: hsl(var(--primary));
    text-decoration: none;
    font-size: 1.5rem;
}

.article-card h3 a:hover {
    text-decoration: underline;
}

.article-card p {
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 600;
}

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

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: hsl(var(--surface));
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.contact p {
    color: hsl(var(--text-muted));
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Article Pages */
.article-main {
    padding: 2rem 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: hsl(var(--surface));
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border));
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid hsl(var(--border));
    padding-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.article-meta {
    color: hsl(var(--text-muted));
    font-style: italic;
}

.article-content section {
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: hsl(var(--text));
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.article-content p {
    color: hsl(var(--text-muted));
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    color: hsl(var(--text-muted));
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.author-opinion {
    background-color: hsl(var(--accent));
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid hsl(var(--primary));
    margin-top: 3rem;
}

.author-opinion h2 {
    color: hsl(var(--primary));
    margin-top: 0;
}

/* Footer */
.footer {
    background-color: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.footer-section p {
    color: hsl(var(--text-muted));
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border));
}

.footer-bottom p {
    color: hsl(var(--text-muted));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: hsl(var(--surface));
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid hsl(var(--border));
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about h2,
    .articles h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .about-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 2rem 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .about,
    .articles,
    .contact {
        padding: 2rem 0;
    }
    
    .article-content {
        margin: 0 10px;
    }
}
