@font-face {
  font-family: mont;
  src: url(FONTS/1\ Mont/Mont_Trial-SemiBold.otf);
}

@font-face {
  font-family: mont-regular;
  src: url(FONTS/1\ Mont/Mont_Trial-Regular.otf);
}

@font-face {
  font-family: mont-bold;
  src: url(FONTS/1\ Mont/Mont_Trial-Bold.otf);
}

@font-face {
  font-family: transforma;
  src: url(FONTS/1\ Transforma\ Mix/);
}

.bodytext-mont-semibold {
  font-family: mont;
  color: #231f20;
}

#container-about {
  margin-inline: 60px;
}


.main-content {
  position: relative;
  overflow-x: hidden; /* hides any horizontal scroll */
  width: 100%;
}

/* Global Mobile Improvements */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all sections have proper mobile padding */
  section {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Make sure all title images are responsive */
  img[src*="title"],
  img[src*="Title"] {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  /* Typography adjustments for mobile */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: calc(1rem + 1vw);
  }

  p {
    font-size: 13pt;
    line-height: 1.5;
  }

}

/*======================================================================================================================================================================*/

/* Floating Navbar */
.navbar-float {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background-color: #f8f7f3;
  border-radius: 50px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 10px 30px;
  z-index: 9999;
  margin-top: 10px;
}

.nav-logo {
  width: 50px;
  height: 50px;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
  .navbar-float {
    width: 95%;
    padding: 0.5rem 1.25rem;
    border-radius: 1.875rem;
    top: 0.625rem;
    margin-top: 0.3125rem;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 0.875rem;
    margin-left: 0.3125rem;
  }

  .nav-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-size: 0.75rem;
  }

  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Logo */
.nav-logo {
  width: 3.125rem;
  height: 3.125rem;
}

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 0.625rem;
  color: #007afb;
}

/* Nav Links */
.navbar-nav .nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #6c757d;
  margin: 0 0.9375rem;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #3f7cff;
  font-weight: 600;
}

/* Contact button */
.btn-contact {
  background-color: #3f7cff;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #5c8eff;
  color: white;
}

/* 1: HOME/CAROUSEL ---------------------------------------------------------------------------------------------------------------------------------------------------- */

/*carousel hover */

.carousel-container {
  position: relative;
  overflow: hidden; /* keeps overlay confined */
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* stretch over full carousel area */
  object-fit: cover;
  z-index: 1; 
  pointer-events: none;
  opacity: 0.9; 
}

.carousel-inner img {
  z-index: 0;
  position: relative;
}

.carousel-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .carousel-title {
    width: 75%;
  }
}

@media (max-width: 480px) {
  .carousel-title {
    width: 85%;
  }
}

/* 2: ABOUT ME ---------------------------------------------------------------------------------------------------------------------------------------------------- */

#about-me {
  scroll-margin-top: -125px;
}

.blue-divider {
  background-color: #007afb;
  color: #fff;
  height: 9.375rem;
  justify-content: center;
  display: flex;
  align-items: center;
  text-align: center;
}

#typed-text {
  font-family: "mont", sans-serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.0625rem;
  display: inline-block;
}

.typed-cursor {
  display: inline-block;
  font-weight: 500;
  font-size: 1.375rem;
  color: white;
  vertical-align: middle;
  margin-left: 0.1875rem; 
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6.25rem 0;
  height: auto;
  background-color: #fff;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-inline: 40px;
  position: relative;
  max-width: 62.5rem;
  width: 90%;
  height: auto;
  flex-wrap: wrap;
  gap: 2rem;
}

/* --- Photo stack --- */
.photo-stack {
  position: relative;
  width: min(23.75rem, 40%);
  flex-shrink: 0;
  margin-right: -8.75rem; 
}

.photo-stack img {
  position: absolute;
  top: 0;
  left: 0;
  width: 101%;
  margin-left: 1.25rem;
  height: auto;
}

.photo-stack .frame {
  z-index: 1;
}

.photo-stack .photo {
  z-index: 3;
  transition: transform 0.3s ease;
}

.photo-stack .photo:hover {
  transform: translateY(-0.3125rem) rotate(-2deg);
}

/* --- Text area --- */
.text-area {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 56.9375rem;
  z-index: 2; 
}

/* title image */
.title-img {
  position: absolute;
  top: -3.4375rem; 
  left: 18.75rem; 
  width: min(28.75rem, 80%); 
  height: auto;
  z-index: 3;
}

/* text box */
.text-box {
  background-color: #f6fcff;
  border: 0.125rem solid #4281f2;
  border-radius: 1rem;
  padding: 3.125rem 3.75rem;
  padding-right: 5.625rem;
  width: 100%;
  min-height: 26.25rem;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.text-box p {
  font-family: "MONT", sans-serif;
  font-size: 0.8125rem;
  color: #231f20;
  line-height: 1.6;
  margin: 1.25rem;
  margin-top: 3.4375rem;
  margin-left: 6.25rem;
}

.highlight {
  color: #4281f2;
  font-weight: 800;
}

.sparkle-decor {
  position: absolute;
  top: 15.625rem;
  right: -3.75rem; 
  width: 8.125rem; 
  z-index: 3; 
  pointer-events: none;
}

/* ABOUT DETAILS */

/* --- About Details Section --- */
.about-details {
  background-color: #fff;
  padding: 6.25rem 0;
  margin-top: -5rem;
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.about-details .container {
  max-width: 1100px; 
}

/* --- Subtitles (education, skills, etc.) --- */
.about-details .subtitle {
  position: relative;
  display: block;
  width: auto;
  max-width: 250px; 
  margin-bottom: 20px;
  z-index: 3;
}

/* --- Left Section --- */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.education ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.education li {
  margin-bottom: 25px;
  font-family: "MONT", sans-serif;
  color: #231f20;
  line-height: 1.5;
}

.education li strong {
  color: #007afb;
}

/* --- Certification --- */
.certification p {
  font-family: "MONT", sans-serif;
  color: #231f20;
}

.certification .score {
  float: right;
  margin-right: 120px;
  font-weight: 600;
  color: #007afb;
}

/* --- Interests --- */
.interest-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  text-align: center;
  margin-top: 10px;
}

.interest-icons div {
  text-align: center;
  width: 80px;
  align-items: center;
}

.interest-icons img {
  width: 60px;
  height: auto;
  margin-bottom: 8px;
}

.interest-icons p {
  font-size: 12pt;
  color: #231f20;
  margin: 0;
  text-align: center;
  margin-left: 15px;
}

/* --- Right Section --- */
.right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
}

.skills,
.software {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 3;
}

/* Skills box */
.skills-frame {
  position: relative;
  width: 105%;
  max-width: 480px;
  height: auto;
  margin-top: -50px;
  margin-left: -70px;
  z-index: 1;
}

/* Software basket */
.software-frame {
  width: 105%;
  max-width: 4800px;
  height: auto;
  margin-left: -60px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-details {
    padding: 0;
    margin-top: 7em;
    justify-content: start;
  }

  .left-section,
  .right-section {
    align-items: start;
    text-align: start;
  }

  .certification .score {
    float: none;
    display: block;
    margin-top: 5px;
  }
}

/* Mobile About Me section */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  .about {
    padding: 3.125rem 0;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .text-area {
    z-index: 2;
    flex: none;
    position: relative;
  }

  #container-about {
    margin-inline: 0;
    margin-inline-start: 1em;
    justify-content: start;
  }
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: 0;
    justify-content: start;
    flex-wrap: wrap;
    height: 100%;
    gap: 1.25rem;
  }

  .container {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    margin-inline: 0;
  }

  .photo-stack {
    width: min(17.5rem, 80%);
    margin-right: 0;
    margin-bottom: 1.25rem;
    align-self: center;
    position: relative;
  }

  .photo-stack img {
    position: relative;
    top: 0;
    left: 0;
    width: 101%;
    margin-left: 0; /* Remove margin for mobile to keep frame and photo aligned */
    height: auto;
  }

  .photo-stack .frame {
    z-index: 1;
    position: absolute;
  }

  .photo-stack .photo {
    z-index: 3;
  }

  .title-img {
    position: relative;
    top: 0;
    left: 0;
    width: min(18.75rem, 90%);
    margin-bottom: 1.25rem;
  }

  .text-box {
    min-height: auto;
    padding: 1.875rem 1.25rem;
    margin-top: 0;
  }

  .text-box p {
    margin: 0.9375rem 0;
    margin-left: 0;
    font-size: 0.75rem;
  }

  .about-details .row {
    margin-left: 0;
    margin-right: 0;
    flex-wrap: wrap;
    padding: 0;
    justify-content: start;
  }

  .left-section {
    padding-right: 0;
    margin: 0;
    justify-content: start;
    margin-bottom: 1.875rem;
    flex-wrap: wrap;
  }

  .interest-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .skills-frame,
  .software-frame {
    margin-left: 0;
    width: 100%;
    max-width: 18.75rem;
  }
}

/* contact section --------------------------------------------------------------------------------------------------------------------------------------------- */

.contact-box {
  background-image: url("IMG/2 ABOUT ME/contactme-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 53% center;
  border-radius: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-top: 60px;
  margin-left: -50vw;
  margin-right: -50vw;

  /* position children over the PNG */
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  justify-content: center;
  padding: 100px 150px 80px 230px; 
  box-sizing: border-box;
}

/* Contact links */
.contact-links {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.contact-link {
  color: #fff;
  font-family: "MONT", sans-serif;
  font-size: 14pt;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-link i {
  font-size: 14pt;
}

#contact {
  scroll-margin-top: 200px;
}

/* Mobile contact section */
@media (max-width: 768px) {
  .contact-box {
    background-size: contain;
    padding: 3.75rem 1.25rem;
    background-position: center;
    align-items: center;
    text-align: center;
    width: 95%;
    height: max-content;
  }

  .contact-links {
    flex-direction: column;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-link {
    font-size: 0.5rem;
    justify-content: center;
    height: fit-content;
  }
}

/* 3: PROJECTS --------------------------------------------------------------------------------------------------------------------------------------------- */

#projects {
  scroll-margin-top: 90px;
}

.projects-section {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(169, 208, 241, 0.6) 63%
  );
  min-height: 47.5rem;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 3.75rem 0 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; 
}

/* Keep 3 folders per row always */
.projects-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.projects-section .project-item {
  flex: 0 1 calc(33.333% - 1rem); /* responsive 3-column layout */
  min-width: 10rem;
  max-width: 15rem;
}

.projects-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.projects-title {
  width: min(28.75rem, 80%);
  height: auto;
}

.projects-subtext {
  font-family: "MONT", sans-serif;
  font-size: 0.75rem;
  color: #6d6e71;
  margin-top: 0.3125rem;
}

.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 59.375rem; /* keeps folders centered */
  margin: 0 auto;
}

.projects-container .row {
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.project-item {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem; 
  order: 0;
}

.folder {
  position: relative;
  width: min(11.25rem, 100%); /* responsive folder width */
  height: auto;
}

.folder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease;
}

.folder-back {
  z-index: 1;
}
.folder-items {
  z-index: 2;
}
.folder-front {
  z-index: 3;
}

.folder:hover .folder-items {
  transform: translateY(-15px);
}

/* Mobile Projects section */
@media (max-width: 768px) {
  .projects-section {
    padding: 2.5rem 1.25rem 5rem;
    min-height: auto;
  }

  .projects-title {
    width: min(18.75rem, 90%);
  }

  .projects-subtext {
    font-size: 0.6875rem;
  }

  .projects-container {
    max-width: 100%;
    flex-direction: row;
    flex: 1;
  }

  .projects-section .row {
    flex-wrap: wrap;
    margin-bottom: 3.125rem !important;
    margin-top: 3.125rem !important;
    gap: 5em;
  }

  .projects-section .project-item {
    flex: 0 1 calc(50% - 1rem);
    margin-bottom: 1.875rem;
    min-width: 8rem;
  }

  .folder {
    width: min(7.5rem, 100%);
  }
}

@media (max-width: 480px) {
  .projects-section .project-item {
    flex: 0 1 100%;
    margin-bottom: 1.25rem;
  }

  .folder {
    width: min(9.375rem, 80%);
  }
}

/* 4: BRANDING --------------------------------------------------------------------------------------------------------------------------------------------- */

.branding-section {
  padding: 6.25rem 0;
  position: relative;
}

.branding-title {
  width: min(30rem, 80%);
  height: auto;
  margin-bottom: 2.5rem;
}

/* Main carousel container */
#brandingCarousel {
  width: 80%;
  margin: 0 auto;
  position: relative;
}

/* Blue box style */
.branding-slide {
  background-color: #f6fcff;
  border: 0.09375rem solid #4281f2;
  border-radius: 0.9375rem;
  padding: 2.1875rem;
  margin-inline: 5.625rem;
  margin-top: 1.875rem;
  margin-bottom: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

/* Image & text layout */
.branding-img {
  flex: 1 1 18.75rem;
  text-align: center;
  min-width: 18.75rem;
}

.branding-img img {
  width: min(21.875rem, 100%);
  height: auto;
}

.branding-text {
  flex: 1 1 20rem;
  padding-top: 5rem;
  padding-left: 1.875rem;
  padding-right: 2.5rem;
  font-size: 0.625rem;
  color: #414042;
}

.branding-title-text {
  font-family: mont-bold;
  color: #007afb;
  margin-bottom: 10px;
}

/* Button */
.branding-btn {
  display: inline-block;
  background: linear-gradient(90deg, #1d8eff, #007bff);
  color: white;
  padding: 0.5rem 1.5rem;
  margin-top: 0.625rem;
  border-radius: 3rem;
  font-family: "MONT", sans-serif;
  font-size: 12pt;
  text-decoration: none;
  transition: 0.3s;
}

.branding-btn:hover {
  background: linear-gradient(90deg, #007bff, #1d8eff);
  transform: translateY(-0.125rem);
}

/* Controls */
#brandingCarousel .carousel-control-prev,
#brandingCarousel .carousel-control-next {
  width: auto;
  top: 50%;
  transform: translateY(-50%);
}

#brandingCarousel .carousel-control-prev {
  left: -0.3125rem;
}

#brandingCarousel .carousel-control-next {
  right: -0.3125rem;
}

#brandingCarousel .carousel-control-prev-icon,
#brandingCarousel .carousel-control-next-icon {
  background-color: #1d8eff;
  border-radius: 50%;
  padding: 0.625rem;
  background-size: 60%;
}

/* Indicators */
.carousel-indicators {
  bottom: -2.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 5.25rem;
  height: 0.25rem;
  border-radius: 0.1875rem;
  background-color: #c7dcf9;
  border: none;
  transition: background-color 0.3s;
}

.carousel-indicators .active {
  background-color: #4281f2;
}

.blue-divider-thin {
  background-color: #0eaaff;
  color: #fff;
  height: 2.5rem;
  justify-content: center;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Mobile Branding section */
@media (max-width: 768px) {
  .branding-section {
    padding: 3.75rem 1.25rem;
  }

  .branding-title {
    width: min(18.75rem, 90%);
  }

  #brandingCarousel {
    width: 95%;
  }

  .branding-slide {
    padding: 1.25rem;
    margin-inline: 0.625rem;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .branding-img {
    min-width: auto;
    margin-bottom: 1.25rem;
    flex: none;
  }

  .branding-img img {
    width: min(15.625rem, 90%);
  }

  .branding-text {
    padding: 0 0.625rem;
    text-align: center;
    flex: none;
  }

  .branding-title-text {
    font-size: 1rem;
  }

  #brandingCarousel .carousel-control-prev,
  #brandingCarousel .carousel-control-next {
    display: none;
  }
}

/* 5: UI/UX ----------------------------------------------------------------------------------------------------------------------------------------------------------- */

#uiux {
  margin-top: 6.25rem;
  padding-left: 2.5rem;
  padding-right: 3.75rem;
}

.uiux-title {
  width: min(30rem, 80%);
  height: auto;
  padding-top: 1.875rem;
  margin-bottom: 2.5rem;
}

.uiux-phone {
  width: min(21.875rem, 100%);
  height: auto;
  margin-left: 0.625rem;
}

.desc-box {
  border: 0.1125rem solid #007bff;
  background: #f6fcff;
  font-family: mont;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #414042;
  border-radius: 0.9375rem;
  margin-bottom: 1.5625rem;
}

.col-md-6 {
  padding-right: 0;
}

.desc-text {
  font-family: mont;
  font-size: 0.6875rem;
  padding: 1.875rem 3.75rem 1.875rem 1.875rem; /* top right bottom left */
}

.color-title {
  background-color: #007bff;
  color: #fff;
  display: inline-block;
  text-align: center;
  padding: 0.375rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.625rem;
  width: 7.5rem;
  height: 1.875rem;
}

#uiux {
  position: relative;
  z-index: 2;
  padding-bottom: 6.25rem;
}

@media (max-width: 768px) {
  .uiux-phone {
    margin-bottom: 2rem;
  }

  #uiux {
    padding-left: 20px;
    padding-right: 20px;
  }

  .uiux-title {
    width: 100%;
    max-width: 280px;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .col-md-6 {
    margin-left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .uiux-phone {
    width: 100%;
    max-width: 250px;
    margin-left: 0 !important;
  }

  .desc-box {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .desc-text {
    padding: 20px;
    font-size: 10pt;
  }

  .color-title {
    font-size: 12pt;
    width: 100px;
    height: 28px;
    padding: 4px 12px;
  }

  /* Image adjustments for mobile */
  img[src*="trippie-logo.png"] {
    width: 100% !important;
    max-width: 400px !important;
  }

  img[src*="color.png"] {
    width: 100% !important;
    max-width: 350px !important;
  }

  img[src*="icon-system.png"] {
    width: 100% !important;
    max-width: 300px !important;
  }

  img[src*="typography.png"] {
    width: 100% !important;
    max-width: 400px !important;
    margin-left: 0 !important;
  }
}

/* 6: Illustration ----------------------------------------------------------------------------------------------------------------------------------------------------------- */

#illustration {
  margin-top: 100px;
  padding-left: 160px;
  padding-right: 50px;
}

.illustration-title {
  width: 560px;
  height: auto;
  padding-top: 30px;
  margin-bottom: 40px;
}

.illustration-img {
  width: auto;
  max-width: none;
  height: auto;
}

.illust-title-img {
  width: auto;
  max-width: 70%;
}

.desc-box {
  border: 1.8px solid #007bff;
  border-radius: 14px;
  background: #f6fcff;
  font-family: mont;
  font-size: 11pt;
  line-height: 1.6;
  padding: 18px 22px;
  color: #414042;
  width: 85%;
}

.desc-text {
  margin: 0;
  font-size: 10pt;
  font: mont-regular;
  color: #414042;
}

.uiux-title {
  width: 260px;
  height: auto;
}

/* Mobile Illustration section */
@media (max-width: 768px) {
  #illustration {
    padding-left: 20px;
    padding-right: 20px;
  }

  .illustration-title {
    width: 100%;
    max-width: 350px;
  }

  .illustration-img {
    width: 100% !important;
    max-width: 300px !important;
    margin-left: 0 !important;
  }

  .illust-title-img {
    max-width: 80%;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .desc-box {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 20px !important;
    height: auto !important;
  }

  .desc-text {
    padding: 15px !important;
    font-size: 10pt;
  }

  /* Specific item adjustments */
  .col-md-6 {
    margin-top: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Hide decorative images on mobile */
  img[src*="DECOR/"] {
    display: none;
  }

  /* Stack items vertically */
  .row.align-items-center {
    flex-direction: column;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }

  .row.align-items-center .col-md-6:first-child {
    order: 1;
    margin-bottom: 20px;
  }

  .row.align-items-center .col-md-6:last-child {
    order: 2;
  }

  /* Specific image adjustments */
  img[src*="haikyuu-riso.png"],
  img[src*="mural.png"],
  img[src*="f1-stickers.png"],
  img[src*="toba-page.png"],
  img[src*="toba-mockup.png"],
  img[src*="miraputi.png"] {
    width: 100% !important;
    max-width: 280px !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 7: motion ----------------------------------------------------------------------------------------------------------------------------------------------------------- */
#three-dart {
  margin-top: 100px;
  padding-inline: 120px;
  position: relative;
}

.three-dart-title-img {
  width: 360px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden; /* keeps the iframe within the rounded corners */
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 15px;
}

#right-lalat {
  position: absolute;
  right: 80px;
  top: 180px;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

#left-lalat {
  position: absolute;
  left: 80px;
  top: 420px;
  width: 120px;
  z-index: 2;
  pointer-events: none;
  transform: scaleX(-1);
}

#right-frog {
  position: absolute;
  right: 88px;
  bottom: 182px;
  width: 130x;
  z-index: 2;
  pointer-events: none;
}

/* Mobile video sections */
@media (max-width: 768px) {
  section[id="motion"],
  section[id="three-dart"],
  section[id="2dplatformer"] {
    padding-inline: 20px !important;
    margin-top: 60px !important;
  }

  .motion-title-img,
  img[alt*="three-dart Title"],
  img[alt*="2dplatformer Title"] {
    width: 100% !important;
    max-width: 280px !important;
  }

  .video-container {
    margin-top: 30px !important;
  }

  /* Hide decorative images in video sections on mobile */
  #right-lalat,
  #left-lalat,
  #right-frog {
    display: none;
  }
}

/* FOOTER ----------------------------------------------------------------------------------------------------------------------------------------------------------- */

.footer-section {
  background-image: url("IMG/FOOTER/footer-background.png");
  background-size: cover;
  background-position: center;
  padding: 60px 80px;
  color: white;
}

.footer-title {
  width: 400px;
  margin-bottom: 20px;
}

.footer-credit {
  font-size: 14px;
  color: white;
  opacity: 0.9;
  margin-bottom: 15px;
}

/* Footer contact styles */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-contact-link {
  color: white;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-contact-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-icon {
  width: 200px;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-section {
    padding: 40px 20px;
  }

  .footer-section .container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-title {
    width: 100%;
    max-width: 250px;
  }

  .footer-icon {
    width: 150px;
  }

  .footer-contact {
    align-items: center;
  }
}

/* POPUP ----------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* Popup background */
.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto; /* Allow scroll */
  padding: 40px 0; 
}

/* Popup box */
.popup-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1050px;
  width: 90%;
  margin: auto;
  color: #333;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: #007bff;
  cursor: pointer;
}

/* Popup content styling */
.popup-title {
  text-align: center;
  color: #007bff;
  margin-bottom: 30px;
}

.popup-section h5 {
  color: #007bff;
  margin-bottom: 10px;
}

.popup-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
}

.popup-video {
  width: 100%;
  height: 400px;
  border-radius: 12px;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Popup */
@media (max-width: 768px) {
  .popup-overlay {
    padding: 20px 0;
  }

  .popup-content {
    width: 95%;
    max-width: none;
    margin: 20px auto;
    border-radius: 15px;
  }

  .close-btn {
    top: 15px;
    right: 20px;
    font-size: 25px;
  }

  .popup-img {
    margin-bottom: 20px;
  }

  .popup-video {
    height: 250px;
  }

  .popup-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 30px !important;
    margin-top: 10px !important;
  }
}
