.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 98px);
  height: calc(100svh - 98px);
  min-height: calc(100vh - 98px);
  min-height: calc(100svh - 98px);
  overflow: hidden;
}

.hero-content {
  height: calc(100vh - 98px);
  height: calc(100svh - 98px);
  min-height: calc(100vh - 98px);
  min-height: calc(100svh - 98px);
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-section .nav-bar {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}

.hero-content p {
  font-family: "Fira Code";
  font-weight: 400;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 0;
  color: #d9d9d9;
}

.hero-content h1 {
  font-size: 112px;
  font-weight: 700;
  font-family: "Karla";
  margin: 0;
  color: #d9d9d9;
}

.button-div {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.button-div button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 153px;
  height: 48px;
  gap: 10px;
  padding: 0 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  opacity: 1;
  font-family: "Karla", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  transition:
    color 0.2s ease-out,
    border-color 0.2s ease-out;
}

.button-div .btn-slide {
  position: relative;
  display: block;
  width: max-content;
  overflow: visible;
  white-space: nowrap;
  animation: none;
  will-change: transform;
  transform: translateZ(0);
}

.button-div .btn-label {
  display: inline-block;
  white-space: nowrap;
}

.button-div .btn-label--primary {
  padding-right: 0;
}

.button-div .btn-label--clone {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}

.button-div button:hover,
.button-div button:focus-visible {
  color: #3dcfb6;
  border-color: #3dcfb6;
}

.hero-floating-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-floating-group {
  width: 100%;
}

.hero-floating-group .content {
  position: relative;
  height: 100%;
}

.scroll-indicator {
  position: absolute;
  left: calc(clamp(32px, 8vw, 110px) - 14px);
  bottom: 220px;
  width: 30px;
  height: 48px;
  border: 1px solid #3dcfb6;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* Restores link clicks on transparent absolute overlays */
} 

.scroll-indicator span {
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-indicator:hover {
  box-shadow: 0 0 16px rgba(61, 207, 182, 0.45);
}

.divider-left {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 210px;
  border: 0;
  margin: 0;
  background-color: #3dcfb6;
  opacity: 0.7;
  left: clamp(32px, 8vw, 110px);
  z-index:-1;
}

.carousel {
  position: absolute;
  bottom: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #ffffff1f;
  backdrop-filter: blur(5.300000190734863px);
  padding: 18px 24px;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  transform: rotate(-3deg);
}

.group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: max-content;
  animation: marquee 12s linear infinite;
}

.card {
  flex: 0 0 auto;
  color: #3dcfb6;
  font-family: "Karla", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 0 32px;
}

.card::before {
  content: "•";
  margin-right: 32px;
  color: rgba(255, 255, 255, 0.6);
}

.side-contact {
  position: absolute;
  right: calc(clamp(32px, 8vw, 110px) - 12px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  pointer-events: auto; /* Restores links clicks on transparent absolute overlays */
}

.side-email {
  color: #ffffff;
  text-decoration: none;
  font-family: "Karla", sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.9;
}

.side-email:hover {
  color: #3dcfb6;
}

.side-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dcfb6;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.social-link:hover::after {
  opacity: 1;
}

.social-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.social-link.mail {
  display: none;
}

.social-link.mail svg {
  width: 32px;
  height: 32px;
}

.social-link.github img {
  content: url("../assets/icon/github.svg");
}

.social-link.github:hover img {
  content: url("../assets/icon/github_hover.svg");
}

.social-link.linkedin img {
  content: url("../assets/icon/linkedin.svg");
}

.social-link.linkedin:hover img {
  content: url("../assets/icon/linkedin_hover.svg");
}

.divider-right {
  width: 1px;
  height: 186px;
  flex-grow: 1;
  border: 0;
  margin: 0;
  background-color: #3dcfb6;
  z-index:-1;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateY(-6px);
    opacity: 1;
  }

  50% {
    transform: translateY(8px);
    opacity: 0.65;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1200px) {
  .hero-content p {
    font-size: 32px;
  }

  .hero-content h1 {
    font-size: 72px;
  }

  .button-div {
    gap: 18px;
  }

  .side-email {
    font-size: 16px;
  }

  .card {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .hero-section-inner {
    height: calc(100vh - 98px);
    height: calc(100svh - 98px);
    min-height: calc(100vh - 98px);
    min-height: calc(100svh - 98px);
    padding: 116px 20px 104px;
    box-sizing: border-box;
    justify-content: center;
    overflow-x: hidden;
    isolation: auto;
  }

  .hero-content p {
    font-size: 28px;
  }

  .hero-content h1 {
    font-size: 64px;
    line-height: 1.05;
  }

  .button-div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }

  .side-contact {
    position: absolute;
    right: 20px;
    bottom: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .side-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .side-email {
    display: none;
  }

  .social-link.mail {
    display: inline-flex;
  }

  .carousel {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    transform: rotate(-2deg);
  }

  .card {
    font-size: 22px;
    padding: 0 18px;
  }
}

@media (max-width: 700px) {
  .hero-section-inner {
    height: calc(100vh - 98px);
    height: calc(100svh - 98px);
    min-height: calc(100vh - 98px);
    min-height: calc(100svh - 98px);
    padding: 32px 16px 0;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    isolation: auto;
  }

  .scroll-indicator {
    display: flex ;
    left: 16px;
    bottom: 210px;
    width: 30px;
    height: 48px;
    border-radius: 32px;
  }

  .scroll-indicator span {
    font-size: 16px;
  }

  .divider-left {
    display: block ;
    left: 30px;
    bottom: 0;
    height: 188px;
  }

  .divider-right {
    display: block ;
    height: 132px;
    background-color: #ffffff;
  }

  .side-contact {
    right: 16px;
    top: auto;
    bottom: 0;
    gap: 14px;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .side-email {
    display: none ;
  }

  .side-social {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .social-link,
  .social-link img {
    width: 32px;
    height: 32px;
  }

  .social-link.mail {
    display: inline-flex;
  }

  .hero-content {
    gap: 12px;
    margin-top: -72px;
  }

  .hero-content p {
    font-size: 24px;
    line-height: 1;
  }

  .hero-content h1 {
    font-size: clamp(34px, 10.5vw, 62px);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .button-div {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
  }

  .button-div button {
    justify-content: flex-start;
    width: 136px;
    height: 42px;
    padding: 0 18px;
    font-size: 18px;
  }

  .button-div .btn-slide {
    width: max-content;
    animation: marquee 3s linear infinite;
  }

  .button-div .btn-label--primary {
    padding-right: 128px;
  }

  .button-div .btn-label--clone {
    display: inline-block;
  }

  .carousel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;
    width: 100%;
    max-width: 100%;
    height: 53px;
    transform: rotate(-3deg);
    margin-top: 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2.65px);
  }

  .card {
    font-size: 24px;
    line-height: 1.2;
    padding: 0 20px;
  }

  .card::before {
    margin-right: 20px;
  }
}

@media (max-width: 420px) {
  .hero-section-inner {
    height: calc(100vh - 98px);
    height: calc(100svh - 98px);
    min-height: calc(100vh - 98px);
    min-height: calc(100svh - 98px);
    padding: 20px 16px 0;
    justify-content: center;
    overflow: hidden;
  }

  .hero-content {
    gap: 10px;
    margin-top: -56px;
    padding: 0 10px;
  }

  .hero-content p {
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .hero-content h1 {
    font-size: clamp(54px, 13vw, 62px);
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
  }

  .button-div {
    margin-top: 22px;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .button-div button {
    flex: 0 0 auto;
    min-width: 0;
    width: 124px;
    height: 38px;
    padding: 0 14px;
    font-size: 18px;
  }

  .button-div .btn-slide {
    width: max-content;
  }

  .scroll-indicator {
    display: flex ;
    left: 16px;
    bottom: 198px;
    width: 30px;
    height: 48px;
  }

  .divider-left {
    display: block ;
    left: 30px;
    height: 176px;
  }

  .side-contact {
    right: 16px;
    bottom: 0;
    gap: 12px;
  }

  .side-social {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .divider-right {
    display: block ;
    height: 116px;
  }

  .carousel {
    width: 100%;
    max-width: 100%;
    height: 53px;
    left: 0;
    right: 0;
    bottom: 34px;
    transform: rotate(-3deg);
    padding: 10px 16px;
  }

  .card {
    font-size: 18px;
    line-height: 1.1;
    padding: 0 14px;
  }

  .card::before {
    margin-right: 14px;
  }
}

@media (max-width: 360px) {
  .carousel {
    width: 100%;
    max-width: 100%;
    height: 50px;
    left: 0;
    right: 0;
    bottom: 32px;
    padding: 8px 12px;
    transform: rotate(-3deg);
  }

  .card {
    font-size: 14px;
    padding: 0 10px;
  }

  .card::before {
    margin-right: 10px;
    font-size: 12px;
  }
}

