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

:root {
    --primary-purple: #955189;
    --dark-bg: #0d1117;
    --darker-bg: #010409;
    --card-bg: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --link-color: #955189;
    --link-hover: #b56fa8;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.inline-link {
    border-bottom: 1px solid var(--link-color);
}

.inline-link:hover {
    border-bottom-color: var(--link-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.nav-brand:hover {
    color: var(--primary-purple);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Main Content */
.main {
    flex: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    line-height: 1.7;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple) 0%, transparent 100%);
}

/* About Section */
.about {
    background-color: var(--card-bg);
}

.about-content {
    max-width: 800px;
    font-size: 1.125rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Blog Section */
.blog {
    background-color: var(--dark-bg);
}

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

.blog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-purple);
}

.blog-card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-purple);
    color: var(--text-primary);
    border-radius: 4px;
}

.blog-card-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.blog-card-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-card-link {
    display: inline-block;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-link:hover {
    color: var(--link-hover);
}

.blog-card-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.blog-card-meta time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background-color: var(--card-bg);
}

.contact-content {
    max-width: 800px;
    font-size: 1.125rem;
}

.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-purple);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background-color: var(--primary-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: row;
        gap: 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    section {
        padding: 3rem 0;
    }

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

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-link {
        text-align: center;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .nav,
    .footer {
        display: none;
    }
}
