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

:root {
    --primary-color: #1285fe;
    --secondary-color: #0e6dd1;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --bg-color: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --border-color: #333333;
    --bluesky-color: #1285fe;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header and Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

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

.hero .lead {
    font-size: 1.5rem;
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* About Preview Section */
.about-preview {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

/* Social Widgets */
.social-widgets {
    margin-top: 3rem;
}

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

.widget-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.widget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.widget-card h3 {
    margin-bottom: 1.5rem;
}

.social-feed-placeholder {
    text-align: center;
    padding: 2rem 0;
}

.social-feed-placeholder p {
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-section {
    margin: 3rem 0;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    margin-top: 1rem;
}

.skills-list li {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    margin: 3rem 0;
}

.social-links-detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

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

.btn-bluesky:hover {
    background-color: #0e6dd1;
}

/* Bluesky Widget */
.bluesky-widget {
    display: flex;
    justify-content: center;
    min-height: 200px;
}

.bluesky-posts-container {
    width: 100%;
    max-width: 600px;
}

/* Responsive adjustments for Bluesky widget */
@media (max-width: 600px) {
    .bluesky-posts-container {
        max-width: 100%;
    }
}

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

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer .social-links {
    display: flex;
    gap: 1.5rem;
}

footer .social-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    .content-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }
}
