html {
  scroll-padding-top: 100px;
  overflow-x: hidden;
}
body {
  background-color: #fff;
  color: #333;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 64px;
  overflow-x: hidden;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(42, 140, 138, 0.98);
  padding: 0 24px;
  margin-bottom: 0;
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.nav-title {
  color: #fff;
  font-size: 1.7em;
  font-weight: bold;
  letter-spacing: 1px;
  transition: transform 0.3s, font-size 0.3s;
}
.nav-title:hover {
  opacity: 1;
  transform: scale(1.15);
}
.nav-title a {
  color: #fff;
  text-decoration: none;
}

.menu-bar {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  background: none;
}

.menu-bar li {
  margin: 0;
}

.menu-bar a {
  display: block;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.menu-bar a:hover {
  background: #226b6a;
  border-radius: 6px;
}
.menu-bar a.active {
  background: #1bcdca;
  border-radius: 6px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6.25px, 6.25px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6.25px, -6.25px);
}
/* Slideshow styles */
.slideshow {
  position: relative;
  height: 800px;
  margin-bottom: 32px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.slide-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.7s;
  /* Remove display:none from JS, use opacity instead */
  z-index: 0;
}
.slide-img.active {
  opacity: 1;
  z-index: 1;
}
/* Hero section styles */
.hero {
  display: flex;
  align-items: center;
  background: #2a8c8a;
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 32px;
  color: #fff;
  gap: 32px;
}
.hero-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.hero-img:hover {
  transform: scale(1.07);
}
.hero-content h1 {
  margin: 0 0 8px 0;
  font-size: 2.2em;
}
.hero-content p {
  margin: 0 0 16px 0;
  font-size: 1.1em;
}
.social-links a img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.social-links a img:hover {
  transform: scale(1.15);
}
/* About Me Section */
.about-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
  margin-right: 20px;
  margin-left: 20px;
  background: #fff; /* Very light gray */
  box-sizing: border-box;
}

.about-text {
  flex: 1;
  font-size: 1.1em;
}
.language-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  transition: transform 0.3s, opacity 0.3s;
}
.language-icons:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Experience Section */
.experience-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  max-height: 400px;
  background: #003366; /* dark blue */
  border-radius: 12px;
  flex-wrap: wrap;
}

.experience-img {
  width: 320px;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: opacity 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.experience-desc {
  min-width: 0;
  width: 600px; /* Fixed width instead of flex: 1 */
  max-width: 600px;
  height: 100%;
  background: #fff; 
  padding: 24px;
  margin-right: 20px !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: opacity 0.3s, transform 0.3s;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.experience-img,
.experience-desc {
  max-height: 400px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.experience-img:hover {
  opacity: 1;
  transform: scale(1.07); /* Slight zoom on hover */
  pointer-events: auto;
  z-index: 1;
}
.experience-desc:hover {
  border: 2px solid #000000;
  box-shadow: 0 4px 24px rgba(42,140,138,0.18);
  transform: none;
}
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* Projects Section */
#projects-list {
  list-style: none;
  padding-left: 0;
  background: #fff; /* Light yellow */
  border-radius: 12px;
  padding: 32px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
#projects-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.projects-list img {
  width: 500px; /* optional: scale image */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* optional: subtle shadow */
}
.img-hover-container {
  position: relative;
  display: inline-block;
  max-width: 400px;
  width: 400px;
  margin-right: 24px; /* Add space between project images */
  margin-bottom: 24px; /* Optional: space below each image */
}
.img-hover-container:last-child {
  margin-right: 0; /* Remove right margin from last image */
}
.img-hover-container img {
  display: block;
  width: 100%;
  height: 320px;         /* Increased height for larger images */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.img-hover-container a {
  position: relative;
  display: block;
  text-decoration: none;
}

.hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  border-radius: 12px;
  background: rgba(42, 140, 138, 0.92);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 0.95em;
  font-family: 'Segoe UI', Arial, sans-serif;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: opacity 0.3s, transform 0.3s;
  transform: scale(1);
  letter-spacing: 0.5px;
  box-sizing: border-box;
  overflow-y: auto;
}

.img-hover-container:hover .hover-text {
  opacity: 1;
  transform: scale(1.03);
}
.hover-text .project-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.hover-text .project-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75em;
  display: inline-block;
  font-weight: 500;
}
.projects-img,
.projects-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
/* Awards Section */
.awards-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  align-items: flex-start;
}

.award-icon img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.award-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
  flex: 0 0 200px;
  width: 200px;
  max-width: 200px;
}
.award-icon:hover {
  transform: scale(1.05);
}

.award-caption {
  font-size: 1em;
  margin-top: 8px;
  color: #fff; /* Make captions white */
  text-align: center;
  max-width: 160px;
}
/* Contact Form Styles */
.contact {
  background-color: #202567;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 10px;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
}

.contact-img {
  height: 455px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.contact form {
  background: #202567;
  padding: 24px 40px;
  margin-left: 12%;
  margin-right: 12%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 500px;
  box-sizing: border-box;
}
.contact label {
  font-weight: bold;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
  align-self: center;
}
.contact input, 
.contact textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  text-align: center;
}
.contact button {
  background: #46486a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  align-self: center;
  width: 100%;
}
.contact button:hover {
  background: #1bcdca;
}
.form-row {
display: flex;
gap: 12px;
width: 100%;
justify-content: center;
}
.form-row > div {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
h2{
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 56px;
  margin-bottom: 56px;
  text-align: center;
  font-size: 2em;
}

h1 {
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 56px;
  margin-bottom: 24px;
}

.header {
  margin-right: 20px;
  margin-bottom: 32px;
  font-size: 1.1em;
}
footer {
  background: #2a8c8a;
  color: #fff;
  text-align: center;
  padding: 16px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 32px;
}
.about-section {
  background: #fff;
  padding: 56px 0 56px 0; /* top and bottom padding */
}
.experience-section {
  background: #003366; /* dark blue */
  padding: 56px 0 56px 0;
}
.projects-section {
  background: #fff;
  padding: 56px 0 56px 0;
}
.awards-section {
  background: #004d00; /* dark green */
  padding: 56px 0 56px 0;
  color: #fff;
}
.contact-section {
  background: #fff; /* dark green */
  padding: 56px 0 56px 0;
}



/* Optional: keep headings and content centered */
.about-section h2,
.experience-section h2,
.projects-section h2,
.awards-section h2,
.about-row,
.experience-row,
#projects-list,
.header {
  margin-left: 20px;
  margin-right: 20px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 990px) {
  .hamburger-menu {
    display: flex;
  }
  
  .menu-bar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(42, 140, 138, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 20px;
    z-index: 999;
  }
  
  .menu-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .menu-bar li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  .menu-bar a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }
  
  .hero-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }
  
  .experience-row {
    flex-direction: column;
    max-height: none;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
    max-width: calc(100% - 20px);
  }
  
  .experience-row:nth-of-type(1) {
    flex-direction: column;
  }
  
  .experience-row:nth-of-type(2) {
    flex-direction: column-reverse;
  }
  
  .experience-img {
    width: 100%;
    max-width: 320px;
    height: 250px;
  }
  
  .experience-row:nth-of-type(1) .experience-img {
    max-width: 600px;
  }
  
  .experience-desc {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
  }
  
  .about-row {
    flex-direction: column;
    gap: 20px;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .about-icons-text > div:first-child {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
  }
  
  .about-icons-text > div:last-child {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
  }
  
  .language-icons {
    min-width: 80px;
  }
  
  .language-icons span {
    font-size: 0.8em !important;
    text-align: center;
  }
  
  .contact-row {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-img {
    width: auto;
    max-width: none;
    height: 300px;
    object-fit: cover;
  }
  
  .contact {
    margin: 10px;
    max-width: none;
    width: calc(100% - 20px);
    height: auto;
  }
  
  .contact form {
    margin-left: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
  }
}

/* Additional mobile styles for very small screens */
@media (max-width: 480px) {
  .about-icons-text > div:first-child {
    gap: 10px !important;
  }
  
  .about-icons-text > div:last-child {
    gap: 10px !important;
  }
  
  .language-icons {
    min-width: 70px;
    margin-bottom: 10px;
  }
  
  .language-icons img {
    width: 30px !important;
    height: 30px !important;
  }
  
  .language-icons span {
    font-size: 0.75em !important;
    margin-top: 4px !important;
  }
  
  .about-text {
    font-size: 1em;
  }
  
  .header {
    font-size: 1em !important;
  }
  
  h2 {
    font-size: 1.5em !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  
  .hero-img {
    width: 100px;
    height: 100px;
  }
  
  .hero {
    padding: 15px;
    gap: 15px;
  }
  
  .contact-img {
    height: 250px;
  }
  
  .contact form {
    padding: 15px;
    max-width: 100%;
  }
  
  .contact {
    margin: 5px;
    width: calc(100% - 10px);
  }
  
  .experience-row {
    margin-left: 5px;
    margin-right: 5px;
    max-width: calc(100% - 10px);
  }
  
  .experience-desc {
    padding: 15px;
  }
}
