@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

/* css/style.css */

/* 1. Reset dasar dan box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

/* 2. Variabel warna */
:root {
  --black: #ffffff;
  --white: #000000;
  --gray-light: #000000;
}

/* 3. Font default */

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* 4. Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-40px);
  animation: navbarFadeIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes navbarFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.navbar .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  position: fixed; top: 3px; left: 150px;
}
.logo img {
  height: 90px;
  position: fixed; top: -7px; left: 2rem;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar .nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  transition: background 0.3s;
}

.navbar .nav-links a:hover {
  background: white;
  color: black;
}

/* Responsive Navbar */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 1rem;
  }
  .navbar .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-top: 29px;
    margin-left: -29px;
  }
  .logo img {
    height: 50px;
    position: static;
    margin-bottom: 0px;
  }
  .navbar .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
  }
}

/* 5. Hero Section */
.hero {
  text-align: left;
  padding: 10rem 9rem;
}

.hero-hello {
  font-size: 6rem;
  font-weight: 700;
  position: relative; top: 1rem; left: 0px;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: heroPopUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-name {
  font-size: 4rem;
  position: relative; top: -26px; left: 0px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: heroPopUp 0.9s 0.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes heroPopUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-name span {
  color: var(--gray-light);
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 400;
  position: relative; top: -3rem; left: 0px;
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInRight 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Hero Section */
@media (max-width: 900px) {
  .hero {
    padding: 12rem 1.5rem 2rem 1.5rem;
    text-align: center;
  }
  .hero-hello {
    font-size: 4rem;
    top: 0rem;
  }
  .hero-name {
    font-size: 2.2rem;
    top: px;
  }
  .hero-role {
    font-size: 1rem;
    top: -2rem;
  }

}

/* 6. About Section */

.deskripsi p{
  font-size: 22px;
  width: 850px;
  margin-left: 145px;
  position: relative; top: -200px; left: 0px;
  text-align: justify;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: popupDeskripsi 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes popupDeskripsi {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive About Section */
@media (max-width: 900px) {
  .deskripsi p {
    font-size: 1rem;
    width: 95vw;
    margin-left: 0;
    text-align: center;
    position: static;
    padding: 0 1rem;
    top: 0;
  }
}

/* Responsive About Container */
@media (max-width: 900px) {
  .about {
    max-width: 98vw;
    margin: 2rem auto;
    padding: 1rem;
    text-align: left;
  }
}
.about {
  max-width: 850px;
  margin: -10rem auto;
  padding: 2 2rem;
  text-align: justify
}

.moreinfo {
  text-align: center;
}

.btn-more {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 5px;
}

/* Garis custom */
.custom-line {
  width: 100%;
  height: 4px;
  background-color: #555;
  border: none;
  margin: 2rem auto;
}

/* 7. Quick Links */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.quick-links a {
  color: black;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.quick-links a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.quick-links a:hover {
  color: black;
  border-color: var(--black);
}

.quick-links a:hover::after {
  transform: scaleX(1);
}

.quick-links a:hover {
  border-color: var(--black);
}

/* Responsive Quick Links & Moreinfo */
@media (max-width: 900px) {
  .quick-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  .quick-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
  .moreinfo {
    text-align: center;
    margin: 1rem 0;
  }
  .custom-line {
    width: 90%;
    margin: 1.5rem auto;
  }
}

/* 8. Footer */
footer {
    background-color: var(--gray-light);
    text-align: left;
    padding: 5rem 6rem;
    font-size: 0.9rem;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.profile-image {
  width: 380px; 
  height: 380px; 
  object-fit: cover; 
  border-radius: 50%; 
  border: 3px solid #000000;
  float: right;
  margin-right: 20rem;
  margin-top: -23rem;
  opacity: 0;
  transform: scale(0.7);
  animation: popupFadeIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  /* Tambahan untuk menghindari tumpang tindih */
  z-index: 10
}

/* Responsive fix: Atur ulang posisi gambar saat zoom/layar kecil */
@media (max-width: 1600px) {
  .profile-image {
    margin-right: 8rem;
    width: 250px;
    height: 250px;
  }
}
@media (max-width: 1200px) {
  .profile-image {
    float: none;
    display: block;
    margin: 0rem auto 0 auto;
    position: relative; top: -35px;
  }
}

@keyframes popupFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.arahover {
  width: 300px; 
  height: 270px; 
  float: left;
  margin-left: -87px;
  margin-top: -35rem;
  opacity: 0;
  transform: translateX(-40px);
  animation: fadeInRight 0.8s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}
