/* Global Resets and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.7; color: #4A4A4A; background-color: #FFFFFF; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #333333; margin-bottom: 0.75em; }
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 40px; position: relative; }
h2::after { content: ''; display: block; width: 70px; height: 4px; background: #007BFF; margin: 10px auto 0; border-radius: 2px; }
p { margin-bottom: 1rem; font-size: 1rem; }
a { color: #007BFF; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #0056b3; }

/* Header */
#main-header { background-color: #1C1C1E; padding: 1rem 0; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; transition: padding 0.3s ease; }
#main-header nav.container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #FFFFFF; letter-spacing: 1px; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
.logo.logo-stacked { font-size: 1.6rem; line-height: 1.0; padding: 5px 0; }
.logo-stacked span { color: #FFFFFF; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { font-family: 'Montserrat', sans-serif; font-weight: 600; color: #E0E0E0; font-size: 0.95rem; padding-bottom: 5px; position: relative; }
.nav-links a:hover { color: #FFFFFF; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: #FFFFFF; transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #FFFFFF; }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: #FFFFFF; margin: 5px; transition: all 0.3s ease; }

/* Hero Section */
.hero-section-split { display: flex; min-height: 100vh; width: 100%; overflow: hidden; box-sizing: border-box; background-color: #1C1C1E; }
.hero-left-panel { flex-basis: 50%; background-color: #1C1C1E; color: #FFFFFF; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 60px; box-sizing: border-box; padding-top: 70px; }
.hero-right-panel { flex-basis: 50%; background-color: #f0f0f0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 70px; }
.hero-right-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-text-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; color: #FFFFFF; }
.hero-text-content p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px; max-width: 600px; color: #E0E0E0; }
.cta-button { display: inline-block; background-color: #007BFF; color: #fff; padding: 15px 35px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; transition: background-color 0.3s ease, transform 0.3s ease; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); border: none; }
.cta-button:hover { background-color: #0056b3; transform: translateY(-3px); color: #fff; }
.hero-cta { background-color: transparent; border: 2px solid #FFFFFF; padding: 12px 30px; border-radius: 30px; font-weight: 600; text-transform: none; letter-spacing: normal; box-shadow: none; }
.hero-cta:hover { background-color: #FFFFFF; color: #1C1C1E; transform: none; }

/* Sections General */
.section { padding: 80px 0; overflow: hidden; }
#home.hero-section-split { padding: 0; }

/* About, Experience, Skills, Certifications Styles */
/* These sections remain unchanged from previous versions */
#about .about-content { display: flex; align-items: center; gap: 50px; }
#about .about-image-container { flex-basis: 35%; text-align: center; }
#about .profile-image { width: 100%; max-width: 300px; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); object-fit: cover; }
#about .about-text { flex-basis: 65%; text-align: left; }
#about .about-text p { font-size: 1.05rem; color: #555; }
#experience .experience-grid.four-columns { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 40px; }
@media (min-width: 768px) { #experience .experience-grid.four-columns { grid-template-columns: repeat(2, 1fr); } }
.experience-item { background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; text-align: left; }
.experience-image-pair { display: flex; gap: 10px; margin-bottom: 15px; width: 100%; height: 150px; }
.experience-image-pair img { flex: 1; width: 50%; height: 100%; object-fit: cover; object-position: center; border-radius: 6px; background-color: #f0f0f0; }
.experience-text-content h3 { color: #007BFF; margin-bottom: 5px; font-size: 1.2rem; line-height: 1.3; }
.experience-text-content .company-details { font-size: 0.85rem; color: #555; margin-bottom: 10px; font-style: italic; }
.experience-text-content p:not(.company-details) { font-size: 0.9rem; line-height: 1.6; margin-bottom: 8px; }
.experience-text-content strong { display: block; margin-top: 10px; margin-bottom: 5px; font-weight: 600; color: #333; font-size: 0.9rem; }
.experience-text-content ul { list-style-position: outside; padding-left: 18px; margin-bottom: 0; font-size: 0.85rem; }
.experience-text-content ul li { margin-bottom: 5px; line-height: 1.5; }
#skills .skills-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
#skills .skills-list span { background-color: #007BFF; color: #fff; padding: 10px 20px; border-radius: 25px; font-size: 0.95rem; font-weight: 600; box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2); transition: transform 0.2s ease-in-out; }
#skills .skills-list span:hover { transform: translateY(-3px); }
.education-item { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; text-align: left; }
.education-item:last-child { margin-bottom: 0; }
.education-item h3 { color: #333; margin-bottom: 5px; }
.education-item .institution-details { font-size: 1rem; color: #555; font-style: italic; margin-bottom: 0; }
.certifications-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
@media (min-width: 600px) { .certifications-grid { grid-template-columns: repeat(2, 1fr); } }
.certification-image-item { display: block; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: #f9f9f9; }
.certification-image-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.certification-image-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: contain; border-radius: 7px; }

/* Blog Section on Index Page */
#blog { background-color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.blog-card { background-color: #FFFFFF; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.blog-card-image-link { display: block; width: 100%; background-color: #f0f0f0; padding-top: 45%; position: relative; overflow: hidden; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.blog-card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.blog-card-content { padding: 20px 25px 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-meta { font-size: 0.8rem; color: #777; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-title { font-size: 1.3rem; color: #333; margin-bottom: 10px; line-height: 1.4; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: #007BFF; }
.blog-card-excerpt { font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.blog-card-readmore { display: inline-block; font-size: 0.9rem; font-weight: 600; color: #007BFF; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px; align-self: flex-start; transition: color 0.3s ease; }
.blog-card-readmore .arrow { margin-left: 5px; transition: transform 0.3s ease; display: inline-block; }
.blog-card-readmore:hover { color: #0056b3; }
.blog-card-readmore:hover .arrow { transform: translateX(4px); }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .blog-card-title { font-size: 1.2rem; } .blog-card-excerpt { font-size: 0.9rem; } .blog-card-image-link { padding-top: 56.25%; } }

/* === UPDATED/NEW BLOG POST PAGE SPECIFIC STYLES === */
body.blog-post-page {}
header#main-header.blog-post-header { position: static; background-color: #1C1C1E; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
header#main-header.blog-post-header .logo,
header#main-header.blog-post-header .logo.logo-stacked span,
header#main-header.blog-post-header .nav-links a { color: #FFFFFF; }
header#main-header.blog-post-header .burger div { background-color: #FFFFFF; }
header#main-header.blog-post-header .nav-links a:hover { color: #00A0FF; }
header#main-header.blog-post-header .nav-links a.active { color: #FFFFFF; }
header#main-header.blog-post-header .nav-links a.active::after { background-color: #FFFFFF; width: 100%;}

main.blog-post-main-content { padding-top: 40px; padding-bottom: 60px; }
.blog-post-full .container { max-width: 800px; }
.blog-post-featured-image { width: 100%; max-height: 450px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.blog-post-title { font-size: 2.5rem; color: #222; margin-bottom: 10px; line-height: 1.3; text-align: left;}
.blog-post-meta-details { font-size: 0.9rem; color: #666; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; text-align: left;}
.blog-post-content-area { font-size: 1.05rem; line-height: 1.8; color: #333; }
.blog-post-content-area p { margin-bottom: 1.5em; }
.blog-post-content-area h2 { font-size: 1.8rem; margin-top: 2.5em; margin-bottom: 0.8em; color: #333; text-align: left; border-bottom: 2px solid #007BFF; padding-bottom: 5px; display: inline-block; }
.blog-post-content-area h2::after { display: none; }
.blog-post-content-area h3 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 0.6em; color: #444; text-align: left;}
.blog-post-content-area ul, .blog-post-content-area ol { margin-bottom: 1.5em; padding-left: 25px; }
.blog-post-content-area ul li, .blog-post-content-area ol li { margin-bottom: 0.5em; }
.blog-post-content-area blockquote { border-left: 4px solid #007BFF; padding-left: 20px; margin: 2em 0; font-style: italic; color: #555; }

/* NEW styles for images WITHIN blog content */
.blog-post-content-area .blog-content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* NEW styles for side-by-side content */
.content-image-pair { display: flex; flex-direction: row; gap: 30px; align-items: center; margin: 3em 0; }
.content-image-pair.reverse { flex-direction: row-reverse; }
.content-image-container { flex: 1 1 40%; }
.content-text-container { flex: 1 1 60%; }
.blog-post-content-area .content-text-container h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; display: block; font-size: 1.6rem; }
.section-divider { border: 0; height: 1px; background-color: #eee; margin: 4em auto; }
@media (max-width: 768px) {
    .content-image-pair, .content-image-pair.reverse { flex-direction: column; text-align: center; }
    .blog-post-content-area .content-text-container h2 { text-align: center; }
    .content-text-container { margin-top: 20px; }
    .blog-post-title { font-size: 2rem; } .blog-post-content-area { font-size: 1rem; } .blog-post-content-area h2 { font-size: 1.6rem; } .blog-post-content-area h3 { font-size: 1.3rem; } main.blog-post-main-content { padding-top: 20px; }
}
/* END OF NEW BLOG STYLES */


/* Contact Section */
#contact { text-align: center; }
#contact.alt-bg { background-color: #F8F9FA; }
.contact-details p { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-details strong { font-family: 'Montserrat', sans-serif; }
.social-media-links { margin-top: 30px; }
.social-media-links a { margin: 0 15px; display: inline-block; }
.social-media-links img { width: 32px; height: 32px; transition: transform 0.3s ease; filter: grayscale(50%) opacity(0.7); }
.social-media-links img:hover { transform: scale(1.2); filter: grayscale(0%) opacity(1); }

/* Footer */
footer { background-color: #333333; color: #E0E0E0; text-align: center; padding: 30px 0; font-size: 0.9rem; }
footer p { margin-bottom: 0.25rem; }
footer a { color: #00A0FF; }

/* Responsive Styles */
@media (max-width: 992px) { /* Tablet */
    .hero-left-panel, .hero-right-panel { padding-top: 70px; }
    .hero-left-panel { padding-left: 30px; padding-right: 30px; }
    .hero-text-content h1 { font-size: 2.8rem; }
    .hero-text-content p { font-size: 1rem; }
    #about .about-content { gap: 30px; }

    .burger { display: block; }
    .nav-links { position: fixed; right: 0; top: 0; background-color: #1C1C1E; height: 100vh; width: 70%; max-width: 280px; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: calc(var(--mobile-header-height, 60px) + 20px); transform: translateX(100%); transition: transform 0.5s ease-in-out; box-shadow: -2px 0 5px rgba(0,0,0,0.2); z-index: 999; display: flex; }
    .nav-links.nav-active { transform: translateX(0%); }
    .nav-links li { margin: 15px 0; width: 100%; text-align: center; opacity: 0; }
    .nav-links li a { font-size: 1rem; padding: 10px 0; display: block; width: 100%; color: #E0E0E0; }
    .nav-links li a:hover, .nav-links li a.active { color: #FFFFFF; background-color: rgba(255,255,255,0.1); }
    .nav-links a::after { display: none; }
}

@media (max-width: 768px) { /* Mobile */
    :root { --mobile-header-height: 55px; /* <<< ADJUST THIS */ }
    .container { width: 95%; }
    h1 { font-size: 2.5rem; } h2 { font-size: 1.8rem; margin-bottom: 30px;}

    #main-header { padding: 0 15px; height: var(--mobile-header-height); }
    #main-header .container { width: 100%; padding: 0; }
    .logo { font-size: 1.2rem; line-height: var(--mobile-header-height); white-space: nowrap; }

    .nav-links { top: var(--mobile-header-height); height: calc(100vh - var(--mobile-header-height)); padding-top: 30px; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    #home.hero-section-split { padding-top: var(--mobile-header-height); display: flex; flex-direction: column; min-height: calc(100vh - var(--mobile-header-height)); box-sizing: border-box; }
    .hero-left-panel, .hero-right-panel { flex-basis: auto; width: 100%; padding-top: 0; }
    .hero-right-panel { order: 1; height: 50vh; background-color: #e0e0e0; flex-shrink: 0; }
    .hero-right-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
    .hero-left-panel { order: 2; background-color: #1C1C1E; color: #FFFFFF; padding: 20px 20px 25px 20px; text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
    .hero-text-content h1 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 8px; text-align: left; color: #FFFFFF; }
    .hero-text-content p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px; text-align: left; color: #E0E0E0; }
    .hero-cta { display: inline-block; margin-top: auto; background-color: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; padding: 8px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; align-self: flex-start; }
    .hero-cta:hover { background-color: #FFFFFF; color: #1C1C1E; }

    #about .about-content { flex-direction: column; text-align: center; }
    #about .about-image-container { margin-bottom: 30px; }
    #about .about-text { text-align: center; }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}