/* CSS Variables for Easy Theming */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d80;
    --accent-color: #ff9800;
    --accent-hover: #e68900;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; margin-top: 2.5rem; color: var(--primary-color); }
h3 { font-size: 1.35rem; margin-top: 1.5rem; color: #2c3e50; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #1a2a3a 0%, var(--primary-color) 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

#hero h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Article Content */
#content {
    padding: 60px 20px;
    max-width: 900px;
}

#content a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

#content a:hover {
    background-color: rgba(255, 152, 0, 0.1);
    text-decoration: none;
}

/* Contact Section */
#contact {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

#contact h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.contact-item {
    background: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item a {
    word-break: break-all;
}

/* Footer */
footer {
    background-color: #1a2a3a;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}

footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* 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);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 15px;
        font-size: 0.95rem;
    }

    #hero {
        padding: 60px 0;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1.05rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}