html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
body {
  background: #080808;
  color: white;
}
body.menu-open {
  overflow: hidden;
}

.hidden {
  display: none;
}
.invisible {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.visible {
  opacity: 1;
  position: static;
  pointer-events: auto;
  visibility: visible;
}
/* ---------------header-------------- */
#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/Black\(1\).jpg);
  background-size: cover;
  background-position: center;
}
.container {
  padding: 10px 10px 10% 10%;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.Logo {
  width: 140px;
  opacity: 0;
}
nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}
nav ul li a::after {
  content: "";
  width: 0%;
  height: 3px;
  background: #00b5ffb3;
  position: absolute;
  left: 0px;
  bottom: -6px;
  transition: 0.4s;
}
nav ul li a:hover::after {
  width: 100%;
}
.header-text {
  margin-top: 20%;
  font-size: 4vh;
}
.header-text h1 {
  font-size: 5vw;
  margin-top: 20px;
}
.header-text h1 span {
  color: #00b5ffb3;
}
.header-text p span {
  color: #b9e6f7b3;
}
/* -----------scroll indicator-------- */
.progress-container {
  position: fixed;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0);
}
.progress-bar {
  height: 5px;
  width: 0%;
  background: #00b5ffb3;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* -------- settings tab --------- */
.settings-tab {
  border: unset;
  position: fixed;
  width: 30px;
  height: 25px;
  background: none;
  top: 5px;
  right: 10px;
  animation: shrink 0.5s;
}
.settings-tab:hover,
.settings-tab:focus {
  cursor: pointer;
  animation: expand 0.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

#imgset {
  width: 30px;
  height: 25px;
  position: relative;
  opacity: 0;
}
/* ---------- drop down ----------- */

.dropdown-wrapper {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001; /* higher than dropdown menu */
}

/* Hamburger icon */
.dropdown-toggle {
  background: none;
  border: none;
  font-size: 32px;
  color: #00b5ffb3;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
  position: relative;
  z-index: 1002; /* higher than dropdown menu */
}

.dropdown-toggle:hover {
  transform: scale(1.1);
}

/* Full-width dropdown menu */
.dropdown-menu {
  position: fixed;
  top: 0px; /* start below hamburger */
  left: 0;
  right: 0;
  background: #121212;
  padding: 20px 0 10px 0;
  z-index: 1000;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.dropdown-menu a {
  padding: 16px;
  text-align: center;
  width: 100%;
  display: block;
  color: #ababab;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid #222;
  transition: background 0.3s ease, color 0.3s ease;
}
.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: #1a1a1a;
  color: #00b5ffb3;
}

.dropdown-menu.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Full-width clickable links */
.dropdown-menu a {
  color: #ababab;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid #222;
  width: 100%;
  text-align: center;
}

.dropdown-menu a:hover {
  background: #1a1a1a;
  color: #00b5ffb3;
}
/* ------------ about ------------- */
.about-paragraphs {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.7;
  color: #ddd;
  text-align: left;
  padding: 10px 0px;
}

.about-paragraphs p {
  margin-bottom: 16px;
}
#about {
  min-height: 100vh;
  padding: 80px 0;
  color: #ababab;
  background: linear-gradient(rgba(26, 86, 238, 0.115), rgba(0, 0, 0, 1)),
    url(images/Black\(2\).jpg) no-repeat center center;
  background-size: cover;
}
.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.about-col-1 {
  flex-basis: 35%;
}
.about-col-1 img {
  width: 100%;
  border-radius: 15px;
  border: solid rgb(20, 20, 20);
  box-shadow: 0 5px 10px rgb(0, 0, 0);
}
.about-col-2 {
  flex-basis: 60%;
}
.subtitle {
  font-size: 60px;
  font-weight: 600;
  color: white;
  margin-bottom: 2%;
  text-shadow: 0 5px 10px #000000b3;
}
.tab-titles {
  display: flex;
  margin: 20px 0 40px;
}
.tab-links {
  margin-right: 50px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #00b5ffb3;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}
.tab-links.active-link::after {
  width: 50%;
}
.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}
.tab-contents ul li span {
  color: #00b5ffb3;
  font-size: 18px;
}
.tab-contents {
  display: none;
}
.tab-contents.active-tab {
  display: block;
}

.class-page {
  display: none;
}
.class-page.active {
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 20px;
}

.carousel-btn {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 10px;
  transition: background 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: #027eb1;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.2s ease;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.carousel-dots .dot.active {
  opacity: 1;
  background-color: white;
  box-shadow: 0 2px 5px rgb(0, 0, 0);
}
.learn-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#learn-more-btn {
  background: none;
  border: 1px solid #00b5ffb3;
  color: #00b5ffb3;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

#learn-more-btn:hover {
  background: #00b5ffb3;
  color: #fff;
}
.back-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.back-button {
  background: none;
  border: 1px solid #00b5ffb3;
  color: #00b5ffb3;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.back-button:hover {
  background: #00b5ffb3;
  color: #fff;
}

.tab-titles {
  display: flex;
  justify-content: space-around;
  flex-wrap: nowrap;
  gap: 0;
}

.tab-links {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

.tab-links::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: #00b5ffb3;
  transition: width 0.3s ease;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents {
  text-align: center;
}

.tab-contents ul {
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left; /* optional: keeps list items aligned left while centered on page */
}
.tab-contents ul li {
  margin-bottom: 20px; /* space between each course/skill/experience item */
  line-height: 1;
  margin-left: 20px;
  margin-right: 20px;
}

.tab-contents ul li span {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: #00b5ffb3;
  margin-bottom: 15px;
}

.tab-contents ul li > span::after {
  content: "";
  display: block;
}

.class-page ul li > span::after {
  content: "";
  display: block;
  min-height: 10px;
}

/* --------- projects --------- */
#projects .subtitle {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}
#projects {
  background-color: #181818;
  padding: 80px 0;
  min-height: 100vh;
  color: #ababab;
  background: linear-gradient(rgba(56, 59, 63, 0.252), rgba(0, 0, 0, 1)),
    url(images/Black\(3\).jpg) no-repeat center center;
  background-size: cover;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px 10px;
}

.project-card {
  width: 100%;
  max-width: 280px;
  text-align: center;
  color: #ababab;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  padding: 5px;
  margin-bottom: 12px;
}

.project-card:hover img,
.project-card:hover video {
  transform: scale(1.1);
}

.project-card:hover p {
  color: #00b5ffb3;
}

/* ----Modal overlay ------*/
.modal {
  /* Overlay setup */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
/* Base styling for media */
.modal-media {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
  display: block;
  border: 2px solid transparent; /* reserve space for hover border */
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#modal-media a {
  text-decoration: none;
  color: inherit;
  border: none;
}

/* Only apply hover effect when wrapped in a link */
a > .modal-media:hover {
  border: solid 2px rgba(78, 78, 78, 0.162);
  transform: translateY(-5px);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  margin-left: 20px;
}

.modal-close:hover {
  color: #fff;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal box */
.modal-content {
  background: #181818;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}

/* Slide up */
.modal-content.slide-up {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------- contact --------- */
#contact {
  background-color: #0f0f0f;
  padding: 80px 0;
  min-height: 100vh;
  color: #ababab;
  background: linear-gradient(rgba(56, 59, 63, 0.252), rgba(0, 0, 0, 1)),
    url(images/Black\(1\).jpg) no-repeat center center;
  background-size: cover;
}
.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.contact-list li {
  margin-bottom: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.contact-list i {
  color: #00b5ffb3;
  font-size: 30px;
  margin-right: 12px;
  min-width: 24px;
  text-align: center;
}

.contact-list a {
  color: #ababab;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: white;
}

#contact .subtitle {
  text-align: left;
  margin-bottom: 55px;
}

/* --------- footer --------- */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.nav-btn {
  background: none;
  border: 1px solid #00b5ffb3;
  color: #00b5ffb3;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-btn:hover {
  background: #00b5ffb3;
  color: white;
}

/* --------- animations --------- */
@keyframes grow {
  0% {
    scale: initial;
    transform-origin: 50%;
  }
  100% {
    transform: scale(1.25);
    transform-origin: 50%;
    border: #ababab;
    border-width: 10%;
  }
}
@keyframes restore {
  0% {
    transform: scale(1.25);
    transform-origin: 50%;
  }
  100% {
    transform: scaleX(1);
    transform-origin: 50%;
  }
}

@keyframes expand {
  0% {
    scale: initial;
  }
  100% {
    transform: scaleX(1.25);
    transform-origin: 100%;
  }
}
@keyframes shrink {
  0% {
    scale: 1.25 1;
    transform-origin: 100%;
  }
  100% {
    transform: scaleX(1);
    transform-origin: 100%;
  }
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.tab-slide-in {
  animation: tabSlideIn 0.5s ease-out;
}

@keyframes tabSlideIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- mobile --------------------- */

nav .fa-solid {
  display: none;
}

@media only screen and (max-width: 768px) {
  .container {
    padding: 0;
  }
  .header-text {
    text-align: center;
  }
  .header-text h1 {
    margin-top: 50%;
    font-size: 35px;
  }
  .header-text h1 span {
    font-size: 60px;
    margin-bottom: 50px;
  }
  .header-text p span {
    font-size: 25px;
    font-weight: lighter;
    opacity: 70%;
  }
  nav .fa-solid {
    display: block;
    font-size: 25px;
    margin-right: 20px;
  }

  nav ul {
    background-color: rgba(13, 46, 46, 0.992);
    border-radius: 15px;
    position: fixed;
    top: 38px;
    width: 100vw;
    height: 25vh;
    transform: scaleY(0); /* FIXED */
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding-top: 10px;
    z-index: 2;
  }

  nav ul.show {
    transform: scaleY(1);
    opacity: 1;
  }

  nav ul li {
    text-align: center;
    display: block;
    font-weight: bold;
    margin: 25px;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 5px;
    right: 1px;
    cursor: pointer;
  }
  .dropdown-wrapper {
    display: block;
  }

  .container.row {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
    max-width: 100%;
  }

  .about-col-1 {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-col-1 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .tab-titles {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3vh;
  }

  .carousel-controls {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

.fst-italic {
  font-style: italic;
}

.class-page h4 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #00b5ffb3;
  letter-spacing: 0.05em;
}
