/* Header section styling */
header.nav {
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center; 
  padding: 0.5em 2em 0.5em;
  background: #ffffff;
  border-bottom: none;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header.nav img.Banner {
  height: 100px;
  width: auto;
  margin: 0;
}

.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: #1b4f72;
  font-weight: 500;
  font-size: 1rem;
}

.nav a.active {
  color: #2e9cca;
}

/* index.html carousel cover styling */
.cover {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin-top: 150px;
}

.cover-track {
  display: flex;
  width: max-content;
  height: calc(100vh - 140px);
  transition: transform 0.8s ease-in-out;
  overflow: hidden;
}

.cover-track img {
  width: 100vw;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  flex-grow: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  font-size: 3rem;
  padding: 0.5em 1em;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cover:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.cover-track::-webkit-scrollbar {
  display: none;
}
.cover-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cover-text{
  flex: 1 1 45%;
}

@media (max-aspect-ratio: 3/4) {
  .cover {
    height: 60vh !important; /* or adjust to a comfortable height */
  }

  .cover-track {
    height: 60vh !important;
  }
}


/* index.html general styling */
body {
  margin: 0;
  font-family: 'Poppins-Light';
  background: #ffffff;
  color: #234;
  line-height: 1.6;
}

body.resume-page {
  padding-top: 140px;
}

.about, .gallery, .contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding: clamp(2em, 5vw, 5em);
  margin: 2em auto;
  max-width: 100vw;
  width: 100%;
  background-color: #f0faff;
  font-size: clamp(1rem, 1.2vw, 5rem);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 150px;
  box-sizing: border-box;
}

.about h2, .courses-table h2, .skills-boxes h2, .portfolio h2, .contact h2, .portfolio2 h2{ 
  font-family: 'Zenkaku';
  font-size: 3em;
  margin-bottom: 0.2em;
  color: #2e9cca;
}

.contact{
  padding-top: 0px;
}

.contact-details a {
  text-decoration: none;
}

.social-strip {
  margin-top: 2em;
  display: flex;
  align-items: center;
  gap: 1em;
}

/* index.html about me styling */
.about-text{
  flex: 1 1 50%;
  min-width: 280px;
  max-width: 1600px;
}

.about img {
  flex: 1 1 35%;
  width: 70%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

/* Index.html - My skillset styling */
.skills-boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
}

.skills-box {
  padding: 2em 2em;
  border-radius: 1px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.skills-box h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  width: 100%;
  margin-bottom: 1em;
}

.skills-box img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 1em 2em 0 0;
  position: relative;
  transition: transform 0.3s ease;
}

.skills-box img:hover::after {
  content: attr(alt);
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1;
}

.skills-box p {
  display: none;
}

/* Skills images animation upon hover */
@keyframes pulse-once {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.skills-box img:hover {
  animation: pulse-once 0.6s ease-in-out;
}

.contact-details img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 1em 0.5em 0 0;
  position: relative;
  transition: transform 0.3s ease;  
}


/* Index.html Portfolio Section */
.portfolio {
  padding: clamp(2em, 5vw, 5em);
  background-color: #ffffff;
  text-align: center;
  scroll-margin-top: 150px;
}

.portfolio2 {
  padding: clamp(2em, 5vw, 5em);
  background-color: #f0faff;
  text-align: center;
  scroll-margin-top: 150px;
}

.portfolio-grid , .portfolio2-grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 400px), 1fr));
  gap: 3em;
  margin-top: 1em;
}

.portfolio-entry , .portfolio2-entry {
  background-color: transparent;
  padding: 1em;
  text-align: center;
}

.portfolio-entry img,
.portfolio2-entry img {
  width: 100%;
  max-height: 250px; /* ✅ Cap height for consistent sizing */
  object-fit: cover;  /* ✅ Fill area more uniformly */
  display: block;
  margin-bottom: 1em;
  /*border-radius: 4px;*/
}

.portfolio-entry:hover img, .portfolio2-entry:hover img {
  transform: scale(1.05);
  cursor: pointer;
  transition: transform 0.5s ease;
}

.portfolio-entry h3, .portfolio2-entry h3 {
  margin: 0.5em 0;
  font-size: 1.2rem;
  color: #2e9cca;
}

.portfolio-entry p, .portfolio2-entry p {
  font-size: 1rem;
  color: #234;
}

@media screen and (max-width: 768px) {
  .portfolio-grid, .portfolio2-grid{
    flex-direction: column;
    gap: 2em;
  }

  .portfolio-entry img, .portfolio2-entry img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
