* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f3fc;
  text-align: justify;
  text-justify: inter-word;
}
/*body home*/
body {
  margin: 0;
  padding: 0;
  padding-top: 50px;
}

/* Hero section */
.hero {
  height: 100vh;
  background: url("../assets/naiteishiki.jpg") center/cover no-repeat;
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #111;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 10px;
  margin-left: 210px;
  line-height: 1.4;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
  font-size: 1, 0rem;
  color: #ffffff;
  margin-left: 210px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-content .jp-text {
  font-size: 1rem;
  margin-bottom: 300px;
  color: #ffffff;
  margin-left: 210px;
  margin-top: 30px;
}

.hero-content .sub-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ffffff;
  margin-left: 500px;
  position: absolute;
  top: 70%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  justify-content: center;
  margin-top: 350px;
}

.internship-section {
  padding: 100px 11%;
  background-color: #fff;
}

.internship-section .container,
.necscat-about-section .container,
.necscat-student-section .container,
.necscat-program-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #111;
  margin-bottom: 16px;
  text-align: left;
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 30px;
}
.divider {
  width: 200px;
  border: none;
  border-top: 2px solid;
  border-image: linear-gradient(
    -90deg,
    #ef6248,
    #828620 20%,
    #22b633 30%,
    #24a7b8 50%,
    #2b19b9 60%,
    #d90dba 80%,
    red
  );
  border-image-slice: 1;
  margin-bottom: 60px;
}
.section-description {
  color: #111;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: none;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
  border-radius: 40px;
  padding: 14px 26px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #111;
  text-decoration: none;
  transition: all 0.3s ease;
}
.learn-more-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #fff;
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.learn-more-btn:hover span {
  background-color: #1e1b1b;
  color: #e2d9d9;
  transform: translateX(2px);
}

.image-content {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.img-main {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: -25px -25px 20px rgba(164, 164, 164, 0.453);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.img-overlay {
  position: absolute;
  bottom: -110px;
  right: -1cm;
  width: 280px;
  border-radius: 18px;
  box-shadow: 25px 25px 20px rgba(164, 164, 164, 0.453);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.image-content:hover .img-main {
  transform: translateY(-4px);
  box-shadow: 0px 0px 0px rgba(164, 164, 164, 0.453);
}

.image-content:hover .img-overlay {
  transform: translate(4px, -4px);
  box-shadow: 0px 0px 0px rgba(164, 164, 164, 0.453);
}

/*  Section: NecScat About */
.necscat-about-section {
  margin-top: 80px;
  padding: 100px 11%;
  background-color: #ffffed;
}

.logo-box {
  width: 250px;
  height: 250px;
  background-color: #fff;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
}

.logo-text {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
}

.text-content .section-title {
  line-height: 60px;
  font-size: 36px;
  letter-spacing: -0.5px;
}

/*  Section: Students & Projects */
.necscat-student-section {
  padding: 100px 11%;
  background-color: #ffffff;
}

.necscat-student-section .section-subtitle {
  font-size: 1.1rem;
  color: #111;
  letter-spacing: 2px;
  margin-top: 10px;
}

.necscat-student-section .img-main {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Section NecScat Program */
.necscat-program-section {
  padding: 120px 12%;
  background-color: #f4fff4;
}

.necscat-program-section .container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 80px;
}

.necscat-program-section .image-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.program-image {
  width: 500px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.necscat-program-section .text-content {
  flex: 1;
  min-width: 455px;
  margin-right: 30px;
}

.necscat-program-section .section-title {
  letter-spacing: 2px;
  font-size: 35px;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.4;
}

.necscat-program-section .section-description {
  font-size: 15.6px;
  line-height: 1.9;
  color: #111;
  margin-bottom: 45px;
}

@media (max-width: 64rem) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0;
    background-position: center center;
    background-size: cover;
  }

  .hero-content {
    margin-top: 200px;
    text-align: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    margin-left: 0;
  }

  .hero-content h2 {
    font-size: 1.2rem;
    margin-left: 0;
  }

  .hero-content .jp-text {
    font-size: 0.95rem;
    margin-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .hero-content .sub-text {
    position: static;
    margin-left: 0;
    margin-top: 20px;
  }

  .text-content,
  .section-title,
  .section-subtitle {
    text-align: center;
  }

  .divider {
    margin: 20px auto 50px;
    width: 200px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .internship-section {
    padding: 80px 8%;
  }

  .image-content {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
  }

  .img-main,
  .img-overlay {
    position: static;
    width: 45%;
    max-width: 320px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .necscat-about-section,
  .necscat-student-section {
    padding: 80px 8%;
  }

  .necscat-about-section .container,
  .necscat-student-section .container {
    flex-direction: column;
    text-align: center;
  }

  .necscat-about-section .text-content,
  .necscat-student-section .text-content {
    margin-top: 40px;
  }

  .necscat-student-section .img-main {
    max-width: 320px;
  }

  .necscat-program-section {
    padding: 90px 8%;
  }

  .necscat-program-section .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 40px;
  }

  .necscat-program-section .image-content {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .necscat-program-section .text-content {
    min-width: unset;
    margin-right: 0;
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .program-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .necscat-program-section .section-title {
    font-size: 36px;
  }

  .necscat-program-section .section-description {
    font-size: 15px;
  }
}

@media (max-width: 48rem) {
  .hero {
    padding: 60px 0;
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
  }

  .hero-content {
    margin-top: 100px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-content .jp-text,
  .hero-content .sub-text {
    font-size: 0.9rem;
    margin: 15px 0;
  }

  .internship-section {
    padding: 60px 6%;
  }

  .divider {
    margin: 20px auto 40px;
  }

  .learn-more-btn {
    padding: 12px 28px;
    max-width: 90%;
    margin: 0 auto;
  }

  .image-content {
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
  }

  .img-main,
  .img-overlay {
    width: 95%;
    max-width: 400px;
  }
}

@media (max-width: 40rem) {
  .hero {
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
  }

  .hero-content {
    margin-top: 50px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 0.9rem;
  }

  .learn-more-btn {
    font-size: 0.9rem;
    padding: 12px 24px;
    max-width: 95%;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .divider {
    width: 150px;
  }

  .img-main,
  .img-overlay {
    width: 100%;
    max-width: 440px;
  }

  .necscat-about-section,
  .necscat-student-section {
    padding: 60px 6%;
  }

  .logo-box {
    width: 80%;
    margin: 0 auto;
  }

  .necscat-student-section .img-main {
    width: 95%;
  }

  .necscat-program-section {
    padding: 70px 6%;
  }

  .necscat-program-section .container {
    align-items: flex-start;
    text-align: left;
    gap: 30px;
  }

  .necscat-program-section .image-content {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .necscat-program-section .text-content {
    min-width: unset;
    width: 100%;
    margin-right: 0;
    text-align: left;
    padding: 0;
  }

  .program-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    margin: 0;
  }

  .necscat-program-section .section-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .necscat-program-section .section-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
  }
}
