
:root {
  --primary-color: #345150; 
  --bg-color: #f9f9f9;
  --text-color: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  scroll-behavior: smooth;
}
header {
  position: sticky;
  top: 0;
  background: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
}
.pg_img img {
  max-width: 40px;
  max-height: 40px;
  border-radius: 4px; /* optional: remove or style differently */
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo and text */
}

nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-links a:hover {
  background: rgba(34,139,34,0.1);
}
.nav-links .blog-btn {
  background: var(--primary-color);
  color: #fff;
}
section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
  scroll-margin-top: 100px; /* adjust based on your header height */
}
.scroll-anchor {
  position: relative;
  top: -80px; /* Equal to or slightly more than header height */
  height: 0;
  visibility: hidden;
}

h2 {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
p {
  text-align: justify;
  margin-bottom: 1rem;
}
.heading-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 0;
}
.heading-section {
  padding: 2rem 1rem;
  margin-top: 0 !important;
}
.heading-section h2 {
  margin-top: 0;
  border-bottom: 3px solid #333;
}
  /* About section layout */
.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.profile {
  flex: 0 0 210px;
  text-align: flex-start;
}
.profile-photo {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 0px solid var(--primary-color);
}
.contact-info {
  margin-top: 1rem;
  margin-bottom: 0rem; !important;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}
.about-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}
.about-text ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

  /* CV section layout */
.cv-container {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.left {
  flex: 0 0 210px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
}

.middle {
  margin-top: 0rem;
  flex: 0 0 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.middle img {
  max-width: 130px;
  max-height: 55px;
  border-radius: 4px; /* optional: remove or style differently */
}
.left-text {
  margin-top: 0rem;
  font-size: 1rem;
  line-height: 1.6;
}

.right-text {
  margin-top: 1rem;
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.right-text ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

#blog {
    padding: 0rem;
    width: 60%;
    text-align: center;
    padding: 2rem;
    margin-bottom: 0rem;
  }

  .blog-head {
  background-color: #f3f4f6;
  color: var(--primary-color);
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 400;
  transition: background-color 0.3s;
}

.blog-head:hover {
  background-color: #e0e0e0 ;
}


.blog-post {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #ffffff;
  border-left: 3px solid var(--primary-color);
  margin-bottom: 0.5rem;
}

.site-footer {
  width: 100vw; /* full viewport width */
  background-color: #345150;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.site-footer p {
  margin: 0.3rem 0;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.dark-section {
  background-color: #345150;
  color: #ffffff;
  padding: 4rem 1rem;
}

.dark-section h2 {
  color: #ffffff;
  border-bottom: 3px solid #ffffff;
}

  #comments {
    text-align: center;
    padding: 2rem;
  }
  #comments p {
  text-align: center;
  }

  #comments form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  #comments input,
  #comments textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }

  #comments textarea {
    height: 150px; /* Bigger message box */
    resize: vertical;
  }

  #comments button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #comments button:hover {
    background-color: #005fa3;
  }
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-container {
    flex-direction: column;
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
a:hover {
  color: #1d7874;
  text-decoration: underline;
}

.nav-links a:hover {
  background-color: #e0e0e0;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}


