/* ===============================
   SHARED STYLES (common across site)
   =============================== */
   :root {
    --primary-color: #4169E1;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Navigation Bar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 10px;
    position: relative;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link.active:after, .nav-link:hover:after {
    width: 100%;
}

/* Section Title Styles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Footer Social Links */
.social-links {
    margin-top: 1rem;
}

.social-icon {
    color: var(--secondary-color);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* About Section Styles */
.profile-section {
    padding-top: 40px;
    padding-bottom: 30px;
}

.profile-img {
    margin-right: 40px;
}

.profile-info-col {
    padding-left: 30px;
}

.about-section {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .profile-img {
        margin-right: 0; /* Reset margin on mobile */
    }
    
    .profile-info-col {
        padding-left: 15px; /* Reduced padding on mobile */
    }
}

/* ===============================
   CV PAGE SPECIFIC STYLES
   =============================== */
.cv-section {
    padding: 50px 0;
}

.cv-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.cv-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.download-btn:hover {
    background-color: #3255C7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-btn svg {
    margin-right: 8px;
}

.cv-item {
    margin-bottom: 30px;
}

.cv-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cv-item-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.cv-item-date {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 10px;
}

.cv-item-description {
    margin-bottom: 10px;
}

.cv-item-description a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.cv-item-description a:hover {
    text-decoration: underline;
}

.cv-skills ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.cv-skills li {
    background-color: #f0f4ff;
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Responsive adjustments for CV page */
@media (max-width: 768px) {
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-btn {
        margin-top: 20px;
    }
}


/* ===============================
   CONTACT PAGE STYLES
   =============================== */
   .contact-section {
    padding: 70px 0;
}

.contact-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #dee2e6;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(65, 105, 225, 0.25);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #3255C7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info svg {
    margin-right: 10px;
    color: var(--primary-color);
}

.direct-contact {
    margin-top: 20px;
}


/* ===============================
   PROJECTS PAGE STYLES (ROW LAYOUT)
   =============================== */
   .projects-section {
    padding: 70px 0;
}

.project-row {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image-col {
    padding: 0;
}

.project-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-category {
    display: inline-block;
    background-color: #f0f4ff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.project-tags {
    margin-bottom: 20px;
}

.project-tag {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #3255C7;
    text-decoration: underline;
}

.project-link svg {
    margin-right: 6px;
}

@media (max-width: 767.98px) {
    .project-image {
        min-height: 200px;
        border-bottom: 1px solid #eee;
    }
}

/* ===============================
   BLOG PAGE STYLES
   =============================== */
   .blog-section {
    padding: 70px 0;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Blog list styles */
.blog-post {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.blog-excerpt {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.blog-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #3255C7;
    text-decoration: underline;
}

.blog-link svg {
    margin-left: 5px;
}

.blog-tags {
    margin-top: 15px;
}

.blog-tag {
    display: inline-block;
    background-color: #f0f4ff;
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Single post view styles */
#post-content {
    display: none;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-bottom: 30px;
}

.blog-header {
    margin-bottom: 30px;
}

.full-blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.full-blog-meta {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.full-blog-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 30px;
}

.markdown-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: transparent;
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3, 
.markdown-body h4, 
.markdown-body h5, 
.markdown-body h6 {
    color: var(--dark-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
}

.markdown-body a {
    color: var(--primary-color);
}

.markdown-body pre {
    background-color: #f6f8fa;
    border-radius: 6px;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 15px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
    color: #3255C7;
}

.back-link svg {
    margin-right: 5px;
}

@media (max-width: 767.98px) {
    .blog-image, .full-blog-image {
        height: 200px;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .full-blog-title {
        font-size: 2rem;
    }
    
    #post-content {
        padding: 25px;
        background-color: white;
    }
}