@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;0,700;1,400;1,700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
    --primary-color: #187c64;
    --bg-dark: #1a1a1a;
    --text-light: #e5e5e5;
    --card-bg: #2d2d2d;
    --hover-color: #1f967a;
}

header {
  background-color: black;
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 200px;
}

.logo {
  text-decoration: none;
  color: #187c64;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8em;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo {
  color: #187c64;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 700;
}

.navigation {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: #187c64;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding-left: 30px;
}

.nav-links a:hover {
  color: #1d6e46;
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.menu-btn__burger {
  width: 25px;
  height: 3px;
  background-color: #187c64;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #187c64;
  transition: all 0.3s ease-in-out;
}

.menu-btn__burger::before {
  transform: translateY(-8px);
}

.menu-btn__burger::after {
  transform: translateY(8px);
}

/* Hamburger menu animation classes */
.menu-btn.open .menu-btn__burger {
  background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
  transform: rotate(45deg);
}

.menu-btn.open .menu-btn__burger::after {
  transform: rotate(-45deg);
}

section {
  padding: 100px 200px;
  background-color: rgb(29, 29, 29);
}

.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(/static/images/me.jpeg) no-repeat 20%;
  background-size: cover;
  background-attachment: fixed;
}

.main h2 {
  color: white;
}

.main h3 {
  color: #fff;
  font-size: 1.7em;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 30px;
}
.main h4 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 30px;
}

.main-btn {
  color: #fff;
  background-color: #187c64;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  display: inline-block;
  padding: 0.9375em 2.1875em;
  letter-spacing: 1px;
  border-radius: 15px;
  margin-bottom: 40px;
  transition: 0.7s ease;
}

.main-btn:hover {
  background-color: #2e6356;
  transform: scale(1.05);
}

.social-icons a {
  color: white;
  font-size: 1.7em;
  padding-right: 30px;
}
.social-icons a :hover {
  transform: scale(1.2);
}

.title {
  display: flex;
  justify-content: center;
  color: #187c64;
  font-size: 1.7em;
  font-weight: 800;
  margin-bottom: 30px;
}

.textcontent {
  justify-content: center;
}
.content {
  justify-content: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  width: 21.25em;
  box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
  border-radius: 10px;
  padding: 25px;
  margin: 15px;
  transition: 0.7s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card .icon {
  color: #187c64;
  font-size: 8em;
  text-align: center;
}

.info {
  text-align: center;
}

.info a{
    text-decoration: none;

}

.info h3 {
  color: #187c64;
  font-size: 1.2em;
  font-weight: 700;
  margin: 10px;
}



#project {
  background-color: #000;
}

.projects-section {
  margin: 0 auto;
}

.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: #111111;
  color: white;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-description {
  color: var(--secondary-text);
  margin-bottom: 15px;
  line-height: 1.6;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.skill-tag {
  background-color: #187c64;
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.github-link {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #187c64;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.github-link:hover {
  background-color: #187c64;
}

.more-details {
  text-decoration: none;
  color: #187c64;
}

.more-details:hover {
  color: #5162ff;
}
#contact {
  background-color: #000;
}
.contact .icon {
  font-size: 4.5em;
}

.contact .info h3 {
  color: #000;
}

#experience {
  background-color: rgb(29, 29, 29);
}

.experience-section {
  max-width: 1700px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Inter", system-ui, sans-serif;
}

.section-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: #187c64;
}

.experience-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  border-color: #187c64;
}

.company-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.duration {
  display: inline-block;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: #187c64;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.responsibilities {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.responsibilities li {
  color: white;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.responsibilities li::before {
  content: "•";
  color: #187c64;
  font-weight: bold;
  position: absolute;
  left: 0;
}


/* skill */
.skills-section {
    background-color: rgb(22, 22, 22);
    padding: 4rem 1rem;
    color: #e5e7eb;
  }

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

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

  .skill-category {
    background-color: #111111;
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .category-title {
    color: #187c64;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #187c64;
    padding-bottom: 0.75rem;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
  }

  .skill-item {
    background-color: rgba(55, 65, 81, 0.7);
    color: #e5e7eb;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    display: inline-block;
    margin: 0.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;  /* Prevents shrinking */
  }

  .skill-item:hover {
    background-color: #187c64;
    transform: translateY(-2px);
  }

  .additional-tools {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
  }

  .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
  }

  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: 1fr;
    }
  }
/*  */

.skills {
  margin-top: 1rem;
  border-top: 1px solid #333333;
  padding-top: 1rem;
}

.skills-label {
  color: #ffffff;
  font-weight: 600;
  margin-right: 0.5rem;
}

.skills-list {
  color: #a0a0a0;
  display: inline;
}

.footer {
  background-color: rgb(29, 29, 29);
  color: #fff;
  padding: 2em;
  display: flex;
  justify-content: space-between;
}

.footer-title {
  font-size: 1.3em;
  font-weight: 600;
}

.footer-title span {
  color: #187c64;
}

.footer .social-icons a {
  font-size: 1.3em;
  padding: 0 12px 0 0;
}

.project-skills {
  margin-top: 10px;
}

.skill-tag {
  display: inline-block;
  background: #187c64;
  color: #e6f7ff;
  font-size: 0.875rem;
  padding: 5px 10px;
  border-radius: 15px;
  margin: 0 5px 5px 0;
}

#education {
  background-color: #111111;
}

.education-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Inter", system-ui, sans-serif;
}

.section-title {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: #187c64;
}

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #333333;
  width: 100%;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  border-color: #187c64;
}

.card-header {
  border-bottom: 2px solid #333333;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.school-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.degree {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

.duration {
  display: inline-block;
  font-size: 0.9rem;
  color: #ffffff;
  background-color: #187c64;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.coursework {
  color: #a0a0a0;
  line-height: 1.6;
}

.coursework-title {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

#about {
  background-color: #111111;
}

.about-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Inter", system-ui, sans-serif;
}

.about-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  border-color: #187c64;
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.greeting {
  font-size: 1.25rem;
  color: #187c64;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wave {
  font-size: 1.5rem;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.bio {
  color: white  ;
  line-height: 1.8;
  font-size: 1.1rem;
}

.bio strong {
  color: #187c64;
  font-weight: 500;
  font-weight: bold;

}

.certifications {
    margin: 0 auto;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.cert-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.cert-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cert-info {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cert-date {
    color: white;
    font-size: 0.9rem;
}

.cert-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.cert-badge:hover {
    background-color: var(--hover-color);
}


h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.5; /* Added fixed line height */
}

h2 span {
  display: inline-block;
  min-width: 150px;
  position: relative;
  color: #187c64;
  height: 1.5em; /* Fixed height */
  line-height: 1.5; /* Match line height */
  vertical-align: middle; /* Keep text vertically centered */
}

h2 span::after {
  content: "|";
  position: absolute;
  animation: blink 1s infinite;
  color: #187c64;
  height: 100%;
  line-height: inherit; /* Inherit line height */
}


@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.main-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #187c64;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.main-btn:hover {
  background-color: #156753;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  color: #187c64;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #156753;
  transform: translateY(-2px);
}

/* Base styles to prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  
  * {
    box-sizing: border-box;
  }
  
  .sticky-header {
    position: fixed;
  }
  /* Mobile Menu Styles */
  @media screen and (max-width: 768px) {
    .menu-btn {
      display: block;
      z-index: 10;
      position: fixed;
      right: 32px;
      top: 24px; 
      padding: 8px; 
      margin: 0; 
    }
  
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      background: rgba(255, 255, 255, 0.95);
      height: 100vh;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }
  
    .nav-links.active {
      right: 0;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
  
    .nav-links a {
      margin: 1.5rem 0;
      font-size: 1.4em;
      padding: 10px 20px;
      width: 80%;
      text-align: center;
      transition: background 0.3s ease;
      white-space: nowrap;
    }
  
    .nav-links a:active {
      background: rgba(0, 0, 0, 0.05);
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
      }

      h2 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
        color: #333;
        line-height: 1.5; /* Added fixed line height */
      }
      
      h2 span {
        display: inline-block;
        min-width: 150px;
        position: relative;
        color: #187c64;
        height: 1.5em; /* Fixed height */
        line-height: 1.5; /* Match line height */
        vertical-align: middle; /* Keep text vertically centered */
      }
      

  }
  
  /* Tablet Styles */
  @media (max-width: 1123px) {
    header {
      padding: 12px 20px;
      position: sticky;
      top: 0;
      background: black;
      backdrop-filter: blur(10px);
      z-index: 100;
      width: 100%;
    }
  
    .main {
      width: 100%;
      min-height: 100vh;
      display: flex;
      align-items: center;
      background: url(/static/images/me2.jpeg) no-repeat center center;
      background-size: cover;
      background-attachment: scroll;
      padding: 20px;
    }
  
    .navigation {
      max-width: 100%;
      overflow-x: hidden;
    }
  
    .navigation a {
      padding: 10px;
      white-space: nowrap;
    }
  
    .title {
      font-size: clamp(0.875em, 2vw, 1em);
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    section {
      padding: 60px 20px;
      width: 100%;
      overflow-x: hidden;
    }
  
    .main-content {
      width: 100%;
      padding: 0 20px;
      overflow-x: hidden;
    }
  
    .main-content h2 {
      font-size: clamp(0.875em, 2vw, 1em);
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    .main-content h3 {
      font-size: clamp(1.4em, 3vw, 1.6em);
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  
    .content {
      flex-direction: column;
      align-items: center;
      gap: 30px;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }
  
    img, video, iframe {
      max-width: 100%;
      height: auto;
    }
  }
  
  /* Mobile Styles */
  @media (max-width: 641px) {
    :root {
      --content-padding: 16px;
    }
  
    body {
      font-size: 14px;
      -webkit-text-size-adjust: 100%;
    }
  
    .main {
      background-position: center;
      padding: var(--content-padding);
    }
  
    .main-content {
      width: 100%;
      padding: var(--content-padding);
    }
  
    .main-content h2 {
      font-size: clamp(0.8em, 2vw, 1em);
    }
  
    .main-content h3 {
      font-size: clamp(1.2em, 3vw, 1.4em);
    }
  
    button,
    a,
    input,
    select,
    textarea {
      padding: 12px;
      min-height: 44px;
      max-width: 100%;
    }
  
    /* Ensure tables don't cause horizontal scroll */
    table {
      display: block;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
  }
  
  /* Small Mobile Styles */
  @media (max-width: 300px) {
    body {
      font-size: 12px;
    }
  
    section,
    .main-content {
      padding: 12px;
    }
  }
  
  /* Accessibility Improvements */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }