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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Navigation */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link:focus {
    background-color: #34495e;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.nav-link.active {
    background-color: #3498db;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content {
    padding: 4rem 0;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.btn:hover, .btn:focus {
    background: #2980b9;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Contact Section */
.contact {
    background: white;
    padding: 3rem 0;
    text-align: center;
}

.contact h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 0.5rem;
}

.contact a {
    color: #3498db;
    text-decoration: none;
}

.contact a:hover, .contact a:focus {
    text-decoration: underline;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover, footer a:focus {
    color: #3498db;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Content Pages Styles */
.page-header {
    background: #34495e;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-content {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1, .page-content h2, .page-content h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.page-content h1 {
    font-size: 2.5rem;
}

.page-content p, .page-content li {
    margin-bottom: 1rem;
    color: #444;
}

.page-content ul, .page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 2rem 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}