* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin-block-start: 2px;
  margin-inline: 100px;
  font-family: 'Helvetica Neue', sans-serif;
  background: #f4f4f4;
  color: #1b281b;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f2f2;
  padding: 10px 60px;
  margin: 0;                 /* remove any margin */
  box-sizing: border-box;    /* prevent padding from causing overflow */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* soft shadow */
}

/* Right side: hamburger menu */
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.name-title {
  display: flex;
  align-items: baseline;
  gap: 10px; /* spacing between name and title */


}


.name-title .name {
  font-size: 2.125rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;

}

.name-title .title {
  font-size: 1.250rem;
  font-family: Cursive, sans-serif;
  font-weight: 300;
  color: #4676a9;
  
  padding-top: 4px; /* optional fine-tuning */


}


/* Hamburger Icon */
.hamburger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cccccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* soft shadow */
  text-align: center;
  line-height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Slide-out Navigation Menu */
#sideMenu {
  position: fixed;
  top:  65px;
  right: -220px;
  width: 200px;
  background: #053970;
  color: #eef1f4;
  transition: right 0.3s ease;
  padding: 1rem 0;
  border-radius: 10px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.35);
  z-index: 999;
}


#sideMenu.open {
  right: 0;
}

#sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
}

#sideMenu li {
  padding: 15px 20px;
  
}

#sideMenu a {
  color: white;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  font-family: 'Open Sans', sans-serif;

}


#sideMenu a:hover {
  background: #13bce61a;
}


/* Prevent content from hiding behind fixed header */
main {
  padding: 40px 40px 20px; 

}


.profile-carousel {
  text-align: center;
  padding: 40px 20px;
}

#carousel-img {
  transition: opacity 0.6s ease-in-out;
}

.profile-carousel h2 {
  margin: 5px 0 1px; /* Less space below name */
  font-size: 2.125rem;
  font-family: 'Cormorant Garamond', serif; /* Elegant serif font */
  font-weight: 700;

}

.profile-carousel h3 {
  margin: 0 0 2px; /* Less space above tagline */
  font-size: 1.250rem;
  font-family: cursive, sans-serif; /* Thin, modern font */
  font-weight: 300; /* Light weight */
  color: #4676a9;
}

.profile-carousel .tagline {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Professional, readable, and elegant */
  font-weight: 400;
  font-style: italic;
}




.circle {
  width: 180px;
  height: 180px;
   border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 6px;
  border: 4px solid #007acc;
  box-shadow: 0 0 10px rgba(0, 0.9, 0.5, 0.9);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
}

.cert-section {
  max-width: 500px;       /* same width as gallery */
  margin: 0 auto;         /* center the whole block */
  text-align: start;     /* center the heading text */
}



.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;


}

/* underline effect */
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0078d7, #00b4d8); /* Microsoft blue → teal */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

/* animate on hover */
.section-title:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}



h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.gallery {
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem; 
  margin: 2rem auto;
  max-width: 550px;
  padding: 1rem;
  justify-content: center; /* center thumbnails in each cell */
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.gallery:hover {
  transform: translateY(-4px); /* slight lift */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Thumbnail container */
.thumb {
  text-align: center;
}



.gallery img {
  width: 150px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 8px rgba(88, 42, 188, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);

}

.caption {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}









footer {
  background: #22466c;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  margin-block-end: 15px;
  border-radius: 8px;
  justify-content: center;

  
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 90%;
  padding-inline: 5px;
  padding-block-end: 25px;;
  gap: 14px;
  margin: 0 auto;
  color: #cccccc;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.8rem;
}

.footer-section {
  flex: 1 1  calc(25% - 14px);
  margin-bottom: 5px;
  padding-inline: 10px;
  box-sizing: border-box;
  line-height: 1.5rem;
  

}


.footer-section h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}



.footer-section p,
.footer-section a {
  
  color: inherit;
  text-decoration: none;
  margin: 2px 0;
  transition: color 0.3s ease;
 
}

@media (max-width: 768px) {
  .footer-section {
    flex: 1 1 100%;
    margin-bottom: 14px;
  }
}



.social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}
.social-icons a {
  transition: transform 0.3s ease, 
  color 0.3s ease;
}

.social-icons a:hover {
  
  transform: scale(1.3) rotate(5deg);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


.social-icons a:hover i {
  animation: bounce 0.4s ease;
 
}