/* ============================================= */
/* RESPONSIVE PORTFOLIO CSS - MOBILE FIRST */
/* ============================================= */

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #101010;
  color: #ffffff;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================= */
/* NAVBAR - MOBILE FIRST */
/* ============================================= */
.navbar {
  background-color: transparent;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background 0.3s ease-in-out;
}

.navbar.scrolled {
  background: #101010;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

/* MENU LIST (DEFAULT: MOBILE MODE) */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;

  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: #1a1a1a;

  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.navbar ul.active {
  transform: translateX(0);
}

.navbar li {
  width: 100%;
}

.navbar a {
  color: #a4a4a4;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #ebb410;
}

/* HAMBURGER (MOBILE) */
.hamburger {
  display: block;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* ============================================= */
/* HOME SECTION - MOBILE FIRST */
/* ============================================= */
.warna {
  position: relative; /* supaya anak-anak bisa absolute relatif ke sini */
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  position: relative;
  padding: 2rem 1rem;
}

.warna img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%) brightness(40%);
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 100%
  );
  position: relative;
  z-index: 2; /* gambar di tengah */
}

.warna-text {
  position: absolute;
  top: 50%; /* relatif tinggi container */
  left: 0;
  width: 100%;
  overflow: hidden;
}

.warna-text-scroll {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollText 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

/* animasi jalan ke kiri */
@keyframes scrollText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* style dasar semua heading */
.warna h1,
.warna h2,
.warna h3,
.warna h4,
.warna h5,
.warna h6 {
  margin: 0;
  flex-shrink: 0; 
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 12s infinite linear;
  cursor: default;
  padding: 0 1rem;
  position: relative;
}

/* layering khusus */
.warna h1,
.warna h3,
.warna h4,
.warna h5,
.warna h6 {
  z-index: 1; /* di belakang gambar */
}

.warna h2 {
  z-index: 3; /* di depan gambar */
}

/* ukuran font */
.warna h1 {
  font-size: clamp(3rem, 15vw, 11rem);
  font-weight: 900;
  line-height: 1;
}

.warna h2 {
  font-size: clamp(1rem, 10vw, 6.25rem);
  font-weight: 700;
  padding-bottom: 100px;
}

.warna h3 {
  font-size: clamp(2rem, 3vw, 1.5625rem);
  opacity: 0.4;
  padding-top: 60px;
}

.warna h4 {
  font-size: clamp(1.5rem, 7vw, 5rem);
  font-weight: 600;
}

.warna h5 {
  font-size: clamp(5rem, 7vw, 5rem);
  font-weight: 600;
}

.warna h6 {
  font-size: clamp(1.25rem, 5vw, 3.125rem);
  font-weight: 500;
}

.h6-2 h6 {
  font-size: clamp(0.875rem, 3vw, 1.5625rem);
  opacity: 0.5;
    font-weight: 500;

}

/* shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200%;
  }
  100% {
    background-position: 200%;
  }
}

/* hover effect */
.warna h1:hover,
.warna h2:hover,
.warna h3:hover,
.warna h4:hover,
.warna h5:hover,
.warna h6:hover {
  background: linear-gradient(to right, #c49508, #921623, #101010);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.5s ease-in-out;
  animation: shimmer 12s infinite linear;
}

/* ============================================= */
/* ABOUT SECTION - MOBILE FIRST */
/* ============================================= */
.about {
  padding: 3rem 1.25rem;
  text-align: center;
}

.about h1 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  letter-spacing: 1.5px;
  color: #c49508;
  margin-bottom: 1rem;
  text-align: justify;
}

.about h1 span {
  font-weight: 400;
  color: #ffffff;
}

.about p {
  max-width: 900px;
  margin: 0.80rem auto;
  font-size: clamp(0.5rem, 2.5vw, 1rem);
  line-height: 1.8;
  text-align: justify;
}

.btn-about {
  margin-top: 2rem;
  background-color: transparent;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 20px;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-about:hover {
  background-color: #c49508;
  border-color: #c49508;
  transform: scale(1.05);
}

/* ============================================= */
/* SKILLS SECTION - MOBILE FIRST */
/* ============================================= */
.skills {
  padding: 3rem 1.25rem;
  text-align: center;
}

.skills h1 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  margin-bottom: 2rem;
}

.swiper {
  width: 100%;
  height: auto;
  min-height: 250px;
  padding: 2rem 0;
}

.swiper-wrapper {
  align-items: center;
  padding: 2rem 0;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-slide {
  height: auto;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.swiper-slide img {
  max-width: 50px;
  width: 100%;
  height: auto;
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.swiper-slide-active img {
  transform: scale(2);
  opacity: 1;
}



/* ============================================= */
/* WHY HIRE ME SECTION - MOBILE FIRST */
/* ============================================= */
.why {
  padding: 3rem 1.25rem;
  position: relative;
}

.why h1 {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  margin-bottom: 2rem;
}

.content-why {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-kanan,
.why-kiri {
  width: 100%;
  padding: 0;
}

hr {
  display: none; /* Hide divider on mobile */
}

.content-why p {
  margin: 1rem 0;
  padding: 1.25rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  line-height: 1.8;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.content-why p:hover {
  background-color: #816f39;
}

/* ============================================= */
/* PORTFOLIO SECTION - MOBILE FIRST */
/* ============================================= */
.portofolio {
  padding: 3rem 1.25rem;
  text-align: center;
  min-height: auto;
  position: relative;
}

.portofolio h1 {
  font-size: clamp(2rem, 10vw, 7.5rem);
  margin-bottom: 2rem;
  color: #fff;
  opacity: 0.1;
}

.portofolio img {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin: 1rem auto;
}

.content-portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.pemutar-video {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background-color: black;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: rgba(235, 180, 16, 0.9);
}

.pemutar-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* ============================================= */
/* TESTIMONIALS SECTION - MOBILE FIRST */
/* ============================================= */
.testimoni {
  position: relative;
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.testimoni-content-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.testimoni h1 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  margin-bottom: 2rem;
}

.form-testimoni {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 15px;
}

.form-testimoni h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ebb410;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.form-testimoni form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-testimoni input,
.form-testimoni textarea {
  background-color: #2b2b2b;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.form-testimoni textarea {
  resize: vertical;
  min-height: 100px;
}

.form-testimoni input:focus,
.form-testimoni textarea:focus {
  outline: none;
  border-color: #ebb410;
  box-shadow: 0 0 10px rgba(235, 180, 16, 0.3);
}

.form-testimoni button {
  background-color: #ebb410;
  color: #101010;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  padding: 0.75rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-testimoni button:hover {
  background-color: #c49508;
  transform: translateY(-2px);
}

.pemisah-testimoni {
  width: 100%;
  margin: 3rem auto;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #555, transparent);
}

.testimoni-swiper {
  width: 100%;
  padding: 1.25rem 0 3rem;
  overflow: visible !important;
}

.testimoni-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.testimoni-slide {
  background-color: #2D2D2D;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.4s ease;
  padding: 1.25rem;

  width: 90%;          /* lebih lebar di mobile */
  max-width: 350px;    /* batas maksimal biar ga kepanjangan */
  min-height: 160px;   /* sedikit lebih tinggi */
  margin: 0 auto;      /* supaya center */
}

.testimoni-slide p {
  /* Aturan potong teks ini penting untuk mobile */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.testimoni-slide strong {
  display: block;
  margin-top: 1rem;
  text-align: right;
  font-weight: 600;
  color: #ebb410;
  width: 100%;
}

.testimoni-slide strong::before {
  content: "— ";
}

.testimoni-pagination {
  display: none !important;
}

.testimoni-slide .no-testimoni {
  width: 100%;
  text-align: center;
  color: #888;
}

/* ============================================= */
/* FOOTER - MOBILE FIRST */
/* ============================================= */
.footer {
  background-color: #1a1a1a;
  color: #a4a4a4;
  padding: 3rem 0;
  margin-top: 3rem;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.footer-left h1 {
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: #fff;
  margin: 0 0 1rem 0;
}

.social-media {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-media a {
  color: #a4a4a4;
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
  color: #ebb410;
  transform: translateY(-3px);
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  text-align: left;
}

.footer-right a {
  color: #a4a4a4;
  text-decoration: none;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* ============================================= */
/* TABLET BREAKPOINT (768px and up) */
/* ============================================= */
@media (min-width: 768px) {
  .navbar ul {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    gap: 2rem;
    transform: none;
    margin: 0 auto;
  }

  .hamburger {
    display: none;
  }

  .navbar li {
    padding: 0;
  }

  .home {
    min-height: auto;   /* jangan paksa 100vh */
    padding: 2rem 0;    /* kasih jarak secukupnya */
  }

  .warna {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .warna img {
    position: relative; /* jangan absolute di mobile */
    top: unset;
    left: unset;
    transform: none;    /* biar nggak ketarik ke tengah */
    width: 200px;       /* lebih kecil biar pas */
    height: 350px;
    margin: 0 auto;     /* tetap center */
  }

  .warna-text {
    text-align: center;
    padding: 1rem 0;
  }

  .testimoni-slide {
    width: 300px;      /* fix ukuran card biar sejajar */
    min-height: 180px;
  }

  .testimoni-slide p {
    /* Di desktop, mungkin kita ingin menampilkan lebih banyak teks */
    -webkit-line-clamp: 6; /* Tampilkan hingga 6 baris teks */
  }

}

/* ============================================= */
/* DESKTOP BREAKPOINT (1024px and up) */
/* ============================================= */
@media (min-width: 1024px) {
  .navbar {
    padding: 0.5rem 3rem;
  }

  .home {
    padding: 1rem 2rem 4rem;
  }

  .warna {
    gap: 3rem;
  }

  .warna img {
    width: auto;
    height: 1000px;
  }

  .about,
  .skills,
  .why,
  .portofolio {
    padding: 3rem 2rem;
  }

  .btn-about {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }

  .pemutar-video {
    max-width: 500px;
  }

  .testimoni {
    padding: 6rem 0;
  }

  .footer {
    padding: 4rem 0;
  }

  .footer-content {
    padding: 0 3rem;
  }
}

/* ============================================= */
/* LARGE DESKTOP BREAKPOINT (1440px and up) */
/* ============================================= */
@media (min-width: 1440px) {
  body {
    font-size: 18px;
  }

  .home{
    padding: 0;
  }
  .warna{
    padding: 0;
  }

  .about,
  .skills,
  .why,
  .portofolio,
  .testimoni {
    padding: 4rem 3rem;
  }
}
