/* Root Variables */
:root {
    --primary-color: #001f3f;
    --secondary-color: #0074d9;
    --accent-color: #ff4136;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ecf0f1;
    --background-color: #ffffff;
    --light-background: #f8f9fa;
    --spacing-unit: 1rem;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Profile Section */
.profile-container {
    margin-bottom: 4rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.profile-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile-bio {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.about-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-section p {
    color: var(--light-text);
    line-height: 1.8;
}

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

.blog-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.blog-intro {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.blog-list {
    display: grid;
    gap: 2rem;
}

.blog-post-item {
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.blog-post-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.blog-post-header {
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-post-title a:hover {
    color: var(--secondary-color);
}

.blog-post-date {
    font-size: 0.9rem;
    color: var(--light-text);
}

.blog-post-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

}

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

    .profile-bio {
        font-size: 1rem;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }
}
