/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "relationship";
  src: url(./assets/fonts/relationship-of-melodrame.ttf) format("truetype");
}

/* Base Style */
* {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
}

:root {
  --bg-color: #121212;
  --text-color: #fff;
  cursor: none;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding: var(--scroll-padding);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

/* Cursor */

.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Titik kecil */
.cursor {
  width: 8px;
  height: 8px;
  background: white;
  mix-blend-mode: difference;
}

/* Lingkaran besar */
.cursor-follower {
  width: 30px;
  height: 30px;
  border: 2px solid white;
  opacity: 0.5;
  mix-blend-mode: difference;
  transition:
    transform 0.15s ease-out,
    width 0.3s,
    height 0.3s;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  isolation: isolate;
}

.header .logo a {
  mix-blend-mode: difference;
}

.heading {
  font-family: "relationship", serif;
  font-weight: 100;
  font-size: 17rem;
  color: var(--text-color);
}

h1 {
  font-family: "relationship", serif;
  font-size: 16rem;
  color: var(--text-color);
}

.logo a {
  font-family: "relationship";
  font-size: 5rem;
  text-decoration: underline;
  color: var(--text-color);
  mix-blend-mode: difference;
  position: relative;
  z-index: 10;
}

.nav-button {
  font-size: 2rem;
  padding: 0.5rem 3rem;
  cursor: none;
  color: var(--bg-color);
  background: var(--text-color);
}

#nav-button {
  display: block;
}

.navbar {
  position: absolute;
  text-align: end;
  top: 80%;
  left: 71%;
  width: 20%;
  padding: 1rem 3%;
  display: none;
  background: var(--text-color);
  border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.navbar.active {
  display: block;
}

.navbar a {
  position: relative;
  display: block;
  margin: 2rem 0;
  padding: 10px 20px;
  font-size: 2.5rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  color: #262626;
  transition: 0.5s;
  z-index: 1;
}

/* garis atas bawah */
.navbar a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 2px solid #262626;
  border-bottom: 2px solid #262626;
  transform: scaleY(2);
  opacity: 0;
  transition: 0.3s;
}

/* background fill */
.navbar a::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #262626;
  transform: scaleY(0);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

/* efek hover */
.navbar a:hover {
  color: #fff;
}

.navbar a:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

.navbar a:hover::after {
  transform: scaleY(1);
  opacity: 1;
}

/* Home */
.home {
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  top: 5%;
  right: -5%;
  width: 750px;
  height: 750px;
  background: url("./assets/images/star.png") no-repeat center;
  background-size: cover;
  filter: blur(10px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.img-container {
  padding-top: 15rem;
}

.img-container .img-box {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 3rem;
  border-radius: 2rem;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.img-box .img-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  transition: 0.5s ease;
}

.home-description {
  display: flex;
  justify-content: space-between;
  margin-right: 3rem;
}

.home-description p {
  font-size: 2rem;
}

.black-btn {
  display: inline-block;
  position: relative;
  cursor: none;
  background: var(--bg-color);
  padding: 1.5rem 2rem;
  margin-top: 3rem;
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: 600;
  border: 1px solid var(--text-color);
  border-radius: 4rem;
  letter-spacing: 0.1rem;
  transition: 0.3s ease-in-out;
  z-index: 1;
}

.black-btn:hover {
  color: var(--bg-color);
  background: var(--text-color);
}

.role ul li {
  list-style: none;
  font-size: 2rem;
  font-weight: 200;
}

/* About */
.about {
  position: relative;
  overflow: hidden;
  padding: 15rem 9%;
  margin: 0;
  color: var(--text-color);
}

.about::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 45%;
  width: 600px;
  height: 600px;
  background: url("./assets/images/star.png") no-repeat center;
  background-size: cover;
  filter: blur(10px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.marquee-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  padding: 1rem 0;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: 0.5rem 0;
}

.marquee-content {
  display: inline-flex;
  gap: var(--gap, 3rem);
  animation: scroll-left var(--duration, 10s) linear infinite;
}

.marquee.reverse .marquee-content {
  animation: scroll-right var(--duration, 10s) linear infinite;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.marquee-content i {
  font-size: 7rem;
}

.about-content p {
  font-size: 2rem;
}

/* Skills */

.skills {
  position: relative;
  overflow: hidden;
  padding: 8rem 9%;
  color: var(--text-color);
}

.skills::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 10%;
  transform: rotate(20deg);
  width: 600px;
  height: 600px;
  background: url("./assets/images/star.png") no-repeat center;
  background-size: cover;
  filter: blur(10px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.skills h2 {
  margin-bottom: 10rem;
  font-size: 10rem;
  text-align: center;
}

.skills-content {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.skills-content .black-btn {
  margin-top: 10rem;
}

.skills-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  transition: 0.3s ease-in-out;
}

.skills-text img {
  width: 5rem;
  transition: 0.3s ease-in-out;
}

.skills-text:hover img {
  transform: rotate(60deg);
}

.skills-text:hover {
  color: var(--text-color);
  cursor: pointer;
}

.skills-text h3 {
  font-size: 7rem;
  font-weight: 500;
}

/* Projects */

.projects {
  background: var(--text-color);

  text-align: center;
  position: relative;
}

.projects h2 {
  text-align: center;
  color: var(--bg-color);
  position: relative;
  z-index: 1;
}

.projects-content {
  display: flex;
  gap: 2rem;
  margin-top: -6rem;
  position: relative;
  z-index: 2;
  justify-content: center;
}

.glass-card {
  width: 42rem;
  height: 54rem;
  border-radius: 1rem;
  padding: 1rem;
  font-size: 2rem;
  color: var(--bg-color);

  display: flex;
  flex-direction: column;

  background: linear-gradient(
    135deg,
    rgba(58, 33, 108, 0.25),
    rgba(33, 57, 120, 0.25)
  );
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  border: 1px solid rgba(255, 255, 255, 0.3);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:nth-child(1) {
  transform: rotate(-3deg);
}
.glass-card:nth-child(2) {
  transform: rotate(2deg);
}
.glass-card:nth-child(3) {
  transform: rotate(-1.5deg);
}
.glass-card:nth-child(4) {
  transform: rotate(3deg);
}
.glass-card:nth-child(5) {
  transform: rotate(-2deg);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.glass-card div {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: var(--text-color);
  padding: 1rem 0.8rem;
  width: 100%;

  border-radius: 0 0 1rem 1rem;
  margin-top: auto;
}

.glass-card a {
  color: var(--bg-color);
}

.white-btn {
  display: inline-block;
  cursor: none;
  background: var(--text-color);
  padding: 1.5rem 2rem;
  margin: 6rem 0;
  font-size: 1.6rem;
  color: var(--bg-color);
  font-weight: 600;
  border: 1px solid var(--bg-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  transition: color 300ms ease-in-out;
  letter-spacing: 0.1rem;
  transition: 0.5s ease;
}

.white-btn:hover {
  color: var(--text-color);
  background: var(--bg-color);
}

/* Experiences */

.experiences {
  background: var(--text-color);
  margin: 0 auto;
  padding: 10rem 9%;
  color: white;
  display: flex;
  justify-content: center;
}

.experiences-box {
  background: var(--bg-color);
  max-width: 138rem;
  width: 100%;
  border-radius: 2rem;
  padding: 2rem 3rem;
}

/* header: judul + tahun */
.experiences-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.experiences-header .years {
  font-size: 1.8rem;
  color: #ccc;
}

/* list */
.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.experience-list li:last-child {
  border-bottom: none;
}

.experience-list .project {
  font-size: 1.6rem;
}

.experience-list .year {
  font-size: 1.6rem;
  color: #aaa;
}

/* Contact */

.contact {
  text-align: center;
  position: relative;
  margin: 0 auto;
}

.contact::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 50%;
  width: 600px;
  height: 600px;
  background: url("./assets/images/star.png") no-repeat center;
  background-size: cover;
  filter: blur(10px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.contact h2 {
  margin-top: 25rem;
  font-size: 23rem;
}

.contact p {
  font-size: 2rem;
  margin-bottom: 4rem;
}

.social-media {
  gap: 1rem;
}

.social-media a {
  /* display: flex; */
  text-decoration: underline;
  cursor: none;
  color: var(--text-color);
  margin: 2rem;
  padding: 1rem;
  font-size: 2rem;
  transition: 0.3s ease-in-out;
}

.social-media a:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* Footer */

.footer {
  text-align: center;
}

.footer hr {
  border: 0.5px solid var(--text-color);
  width: 80%;
  margin: auto;
}

.footer p {
  font-size: 1.5rem;
  margin: 2rem;
}

/* Media Queries */

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
  .heading {
    font-size: 13rem;
  }
}

@media (max-width: 991px) {
  html {
    font-size: 40%;
  }
  .heading {
    font-size: 17rem;
  }
  section {
    padding: 25rem 9% 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  section {
    padding: 10rem 15%;
  }
  .heading {
    font-size: 10rem;
  }
  .navbar {
    width: 30%;
    left: 61%;
  }
  .navbar a {
    font-size: 2rem;
  }
  .img-container {
    padding-top: 15rem;
  }
  .img-box img {
    height: 40rem;
    object-fit: cover;
    object-position: 65% 30%;
  }
  .skills h3 {
    font-size: 4rem;
    color: var(--text-color);
    margin: 2.5rem;
  }
  .project {
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .projects-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
  }

  .glass-card {
    width: 90%;
    max-width: 42rem;
  }
}

@media (max-width: 617px) {
  html {
    font-size: 50%;
  }
  section {
    padding: 8rem 15%;
  }
  .img-container {
    padding-top: 18rem;
  }
  .img-box img {
    height: 50rem;
    width: 80rem;
    object-fit: cover;
    object-position: 95% 30%;
  }
  .img-box .img-text {
    top: 30%;
    right: 20%;
    margin-left: 2rem;
  }
  .social-media a {
    text-align: center;
    font-size: 1.5rem;
  }
  .skills h3 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin: 4rem 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 45%;
  }
  section {
    padding: 8rem 5%;
  }
  .navbar {
    width: 50%;
    left: 41%;
  }
  .navbar a {
    font-size: 2rem;
  }
  .img-box .img-text {
    top: -25%;
    right: 25%;
    margin-left: 0.5rem;
    text-align: center;
  }

  .img-box .img-text h1 {
    font-size: 14.5rem;
    mix-blend-mode: difference;
  }

  .img-container {
    padding-top: 10rem;
    padding-bottom: 3rem;
  }

  .img-box picture,
  .img-box img {
    display: block;
    width: 99%;
    height: auto;
    object-fit: cover;
    border-radius: 1.5rem;
  }
  .skills h2 {
    padding-top: 14rem;
  }
  .skills h3 {
    font-size: 3rem;
    color: var(--text-color);
    margin: 5rem 1.5rem;
  }
}
