/* Basic Reset - Updated November 3, 2025 - Navbar height fix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #10273d;
    background:
      radial-gradient(1200px 800px at 10% -10%, rgba(173,216,255,0.45) 0%, transparent 60%),
      radial-gradient(900px 720px at 120% 0%, rgba(109,181,255,0.35) 0%, transparent 55%),
      linear-gradient(180deg, #f8fbff 0%, #e0f1ff 50%, #c7e4ff 100%);
  }

  .site-header {
    background: linear-gradient(135deg, #8adaff, #0364a5);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .site-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .site-header .logo h1 {
    margin: 0;
  }

  .site-header .logo span {
    color: #FFFBDE;
  }

  .site-header nav {
    display: flex;
    gap: 25px;
  }

  .site-header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
  }

  .site-header nav a:hover {
    background-color: rgba(255, 251, 222, 0.2);
    color: #FFFBDE;
  }

  html.embedded #siteHeader {
    display: none !important;
  }

  .embed-btn {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.35);
    background: rgba(13, 110, 253, 0.45);
    color: #fff;
    z-index: 3200;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.25);
  }

  .embed-btn.embed-back {
    left: 12px;
  }

  .embed-btn.embed-close {
    right: 12px;
  }

  .embed-btn:hover {
    background: rgba(13, 110, 253, 0.65);
  }

  .embed-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
  }

  html.embedded .embed-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  @media (max-width: 768px) {
    .site-header {
      flex-direction: column;
      text-align: center;
      /* Remove height constraints on mobile to allow natural wrapping */
      min-height: auto !important;
      max-height: none !important;
      padding: 8px 20px !important;
    }
    .site-header .logo {
      font-size: 1rem;
    }
    .site-header nav {
      margin-top: 10px;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }
    .site-header nav a {
      font-size: 0.85rem;
      padding: 5px 8px;
    }
  }

  @media (max-width: 600px) {
    html:not(.embedded) body {
      padding-top: 72px;
    }
    html:not(.embedded) .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 2200;
    }
  }

  .intro{
    margin-left: 2%;
    margin-right: 2%;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .grid-item {
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .grid-item img:hover {
    transform: scale(1.05);
  }  

  /* Main Container */
.main-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.main-text {
  flex: 1;
  font-size: 1.5rem;
}

.main-container img {
  flex: 1;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
  
 /* Home page photos */
  .circle-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 600px;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .center-image img {
    width: 250px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .side-image {
    position: absolute;
    z-index: 1;
  }
  
  .side-image img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
  }

  /* Tile */
.tilecontainer {
  display: flex;
  flex-wrap: wrap;    
  gap: 30px;
  justify-content: center;   
  align-items:stretch;
  padding:20px;
  min-height: 400px;
}

.tile {
  flex: 1 1 350px; /* Grows/shrinks but has a minimum width */
  max-width: 500px;
  max-height: 500px;
  height: auto;
  background-color: #0364a5;
  border: 0.2px solid #FFFBDE;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: space-between;
  overflow: hidden;
}

.tilecontainer a{
  text-decoration: none;
  color: inherit;
}

.tile:hover {
  transform: scale(1.05); /* Scale the tile up on hover */
  cursor: pointer; /* Change cursor to a pointer on hover */
}

.tile img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.tile h4 {
  font-size: 1.5rem;
  color: #FFFBDE;
}

.tile p{
  color: white;
}

.tile a{
  color: #FFFBDE;
}

.metrics-section {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.circle {
  width: 140px;
  height: 50px;
  background: #8adaff;
  border-radius: 25px;
  padding: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: #013253;
}

/* Grid */
.gridcontainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 30px;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gridcontainer a{
  text-decoration: none;
  color: inherit;
}

.gridcontainer a:link, a:visited{
  color: none;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.7); /* dimmed background */
  z-index: 999;
  display: none;
}

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

.modal-content {
  background-color: #afdaf7;
  margin: auto;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  max-height: 90%;
  overflow-y: auto; 
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

.modal-content-blog {
  background-color: #afdaf7;
  position: relative;
  width: 75%;
  height: 100vh; /* full viewport height */
  margin: 0 auto; /* center horizontally */
  padding: 20px;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

#pdfViewer {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #129990;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  z-index: 1001;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

/* project slideshow */
.slideshow-container {
  position: relative;    
  max-width: 700px;
  margin: 40px auto;
}

    .slide {
      display: none;
    }

    .slide img {
      width: 100%;
      height: 450px;
      border-radius: 10px;
    }

    .prev, .next {
      cursor: pointer;
      position: absolute;
      top: 50%;
      width: auto;
      padding: 12px;
      color: white;
      font-weight: bold;
      font-size: 20px;
      transition: 0.3s ease;
      user-select: none;
      background-color: rgba(0, 0, 0, 0.5);
      border: none;
      border-radius: 4px;
    }

    .next {
      right: 0;
    }

    .prev {
      left: 0;
    }

    .prev:hover, .next:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }

    .dot-container {
      text-align: center;
      margin-top: 10px;
    }

    .dot {
      cursor: pointer;
      height: 12px;
      width: 12px;
      margin: 0 4px;
      background-color: #bbb;
      border-radius: 50%;
      display: inline-block;
      transition: background-color 0.3s ease;
    }

    .active-dot {
      background-color: #717171;
    }

  .slide-lamp, .slide-name {
    display: none;
  }
    
.dot-lamp, .dot-name {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

  /* Carousel */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  height: 500px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background-color: rgba(0,0,0,0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

  /* Footer */
  footer {
    background: linear-gradient(135deg, #8adaff, #0364a5);
    color: #fff;
    padding: 1em 0;
    margin-top: 40px;
    text-align: center;
  }
  
  footer a {
    color: #FFFBDE
  }

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    text-align: center;
  }

  .main-text, .main-container img {
    width: 100%;
  }
}
