:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --text: #333;
    --text-light: #666;
    --bg: #f5f7fa;
    --white: #ffffff;
    --success: #2e7d32;
    --border: #e0e0e0;
}

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

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

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Cards */
.section { padding: 4rem 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text);
}

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

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 1rem; color: var(--primary); }
.card p { color: var(--text-light); }

/* Blog */
.blog-list { max-width: 800px; margin: 0 auto; }

.blog-item {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.blog-item:hover { transform: translateY(-3px); }
.blog-item h2 { margin-bottom: 0.5rem; }
.blog-item h2 a { color: var(--text); text-decoration: none; }
.blog-item h2 a:hover { color: var(--primary); }
.blog-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }

/* Article */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article h1 { margin-bottom: 1rem; color: var(--text); }
.article-meta { color: var(--text-light); margin-bottom: 2rem; }
.article p { margin-bottom: 1.5rem; color: var(--text-light); }
.article h2 { margin: 2rem 0 1rem; color: var(--text); }

/* Contact Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: var(--primary-dark); }

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #e8f5e9;
    border-radius: 8px;
    color: var(--success);
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h4 { margin-bottom: 1rem; }
.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.footer-section a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2rem; }
    .cards { grid-template-columns: 1fr; }
}