/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 850px;
    --spacing-unit: 1rem;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: #ffffff;
    text-align: center;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #ecf0f1;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff !important;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.3);
}

/* =========================================
   5. Article Section
   ========================================= */
.article-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.article-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

.article-section h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
}

.article-section h2:first-of-type {
    margin-top: 0;
}

.article-section a {
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-color);
}

.article-section a:hover {
    border-bottom-style: solid;
    background-color: rgba(230, 126, 34, 0.05);
}

/* =========================================
   6. Contact Section
   ========================================= */
.contact-section {
    background-color: var(--bg-alt);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-intro {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.contact-item {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.contact-item p, .contact-item a {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-cta {
    margin-top: 2rem;
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: #bdc3c7;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

/* =========================================
   8. Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-alt);
    }

    .hero-section {
        padding: 3.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .article-section h2 {
        font-size: 1.4rem;
    }

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

/* =========================================
   9. Accessibility & Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}