/* ========== SCROLL ANIMASI BERURUTAN ========== */
.animate {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: 0s;
}

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* DELAY BERURUTAN */
header.animate { transition-delay: 0.1s; }
#home.animate { transition-delay: 0.3s; }
#about.animate { transition-delay: 0.5s; }
#projects .photo-stack-wrapper.animate { transition-delay: 0.7s; }
#projects .video-carousel.animate { transition-delay: 0.9s; }
#contact.animate { transition-delay: 0.9s; }
footer.animate { transition-delay: 0.1s; }

/* MOBILE: LEBIH CEPAT */
@media (max-width: 768px) {
  .animate { transition-duration: 0.6s; }
  header.animate { transition-delay: 0.1s; }
  #home.animate { transition-delay: 0.2s; }
  #about.animate { transition-delay: 0.3s; }
  #projects .photo-stack-wrapper.animate { transition-delay: 0.4s; }
  #projects .video-carousel.animate { transition-delay: 0.5s; }
  #contact.animate { transition-delay: 0.6s; }
  footer.animate { transition-delay: 0.7s; }
}

:root {
  --green: #84994F;
  --cream: #f8ebbf;
  --orange: #FCB53B;
  --red: #A72703;
  --white:#faf7f1;
  --text: #2C2C2C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  padding-top: 80px; /* Biar konten gak ketutup header */
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--cream);
}
.container {
  width: 85%;
  margin: auto;
  padding: 3rem 0;
}

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  background: rgba(127, 155, 57, 0.6);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(

12px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 16px 16px;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(132, 153, 79, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Logo */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.logo-text {
  width: 250px;
  object-fit: contain;
  transform: translateY(25px);
}

/* === NAV MENU === */
.nav-menu {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: clamp(70px, 12vw, 140px);
  width: 100%;
}

/* === MENU LINKS === */
.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 4vw, 5rem);
  margin: 0;
  padding: 0;
  justify-content: center;
  max-width: 70%;
}

/* === LINK STYLE === */
.nav-links li a {
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--orange);
}

/* === CONTACT ME (DESKTOP) === */
.nav-contact {
  position: absolute;
  right: clamp(15px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 145, 77, 0.2);
  border: 2px solid var(--orange);
  border-radius: 30px;
  padding: 0.4rem 1rem;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  z-index: 10;
}

.nav-contact:hover {
  background: var(--orange);
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 181, 59, 0.4);
}

/* === CONTACT ME (MOBILE) === */
.mobile-contact {
  display: none;
}

/* === HAMBURGER === */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  z-index: 3000;
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 40px 2rem 80px; /* atas: 40px saja */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ========== GAMBAR ========== */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-img {
  width: clamp(280px, 50vw, 500px);
  max-width: 100%;
  border-radius: 18px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.hero-img:hover {
  transform: translateY(-10px);
}

/* ========== TEKS ========== */
.hero-text {
  flex: 1;
  text-align: left;
  animation: fadeInLeft 1s ease-out;
}

.hero-text h4 {
  color: var(--red);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--red);
  margin: 0.3rem 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text h1 .highlight {
  color: var(--orange);
}

.hero-text h2 {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 400;
  color: var(--red);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-text p {
  max-width: 550px;
  line-height: 1.8;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ========== TOMBOL ========== */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-explore,
.btn-hire {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-explore {
  background-color: var(--green);
  color: var(--cream);
}

.btn-explore:hover {
  background-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(252, 181, 59, 0.3);
}

.btn-hire {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn-hire:hover {
  background-color: var(--green);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(132, 153, 79, 0.3);
}

/* ========== ABOUT SECTION ========== */
.about {
  background: #7a8c4b;
  padding: 120px 2rem;
  color: #fff3d9;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ========== GAMBAR ========== */
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeInLeft 1s ease-out;
}

.about-image img {
  width: clamp(280px, 50vw, 500px);
  max-width: 100%;
  border-radius: 25px;
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

/* ========== TEKS ========== */
.about-text {
  flex: 1;
  text-align: left;
  animation: fadeInRight 1s ease-out;
}

.about-text h2 {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: #fff3d9;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.about-text h2 .highlight {
  color: var(--orange);
}

.about-text p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: #fff3d9;
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* ========== TOMBOL CV ========== */
.btn-cv {
  background: #fcb53b;
  color: white;
  padding: 14px 36px;
  border-radius: 35px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  width: fit-content;
}

.btn-cv:hover {
  background: #a72703;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(167, 39, 3, 0.3);
}

/* ========== PROJECTS SECTION ========== */
.projects-light {
  background: var(--white);
  color: var(--text);
  padding: 120px 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.projects-light h2 {
  color: var(--red);
  margin-bottom: 3rem;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
}

.projects-light .highlight {
  color: var(--orange);
}

/* ========== PHOTO STACK WRAPPER ========== */
.photo-stack-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 6rem;
}

/* ========== INDIVIDUAL PHOTO STACK ========== */
.photo-stack {
  text-align: center;
  max-width: 460px;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.stack {
  position: relative;
  width: 460px;
  height: 320px;
  margin: 0 auto 1.5rem auto;
  overflow: visible !important; /* PENTING! Biar foto bisa keluar */
  z-index: 1;
}

/* Gambar */
.stack .photo {
  position: absolute;
  width: 230px;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* smooth bounce */
  cursor: pointer;
  transform-origin: center;
}

/* Posisi tumpuk */
.stack .left   { left: 0;    top: 20px; transform: rotate(-6deg);  z-index: 1; }
.stack .center { left: 115px; top: 0;    transform: rotate(0deg);   z-index: 3; }
.stack .right  { left: 230px; top: 20px; transform: rotate(6deg);   z-index: 2; }

/* Hover */
.stack .photo:hover {
  transform: scale(1.15) rotate(0deg) translateY(-20px) !important;
  z-index: 10 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(1.05) !important;
  border: 3px solid var(--orange);
  transform: translateY(-5px);
}

/* Caption */
.photo-stack h3 {
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.photo-stack p {
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== VIDEO CAROUSEL ========== */
.video-carousel {
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track video {
  flex: 0 0 auto;
  width: clamp(280px, 80vw, 480px); /* Mobile: 80vw, Desktop: 480px */
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 20px;
  object-fit: cover;
  scroll-snap-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: grab;
}

.carousel-track video:hover {
  transform: scale(1.05);
}

.video-carousel h3 {
  color: var(--orange);
  font-size: 1.5rem;
  margin-top: 2rem;
}

.video-carousel p {
  color: var(--text);
  font-size: 1rem;
  max-width: 600px;
  margin: 0.5rem auto;
  line-height: 1.6;
}

.sound-btn {
  background: #999;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.sound-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ========== CONTACT SECTION ========== */
.contact {
  background: var(--orange);
  padding: 120px 2rem;
  text-align: center;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-container {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.contact h2 {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact .highlight {
  color: var(--cream);
}

.contact p {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.form-group {
  display: flex;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border: 2px solid var(--cream);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-send {
  background: var(--green);
  color: white;
  padding: 14px 40px;
  border: none;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-send:hover {
  background: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(167, 39, 3, 0.3);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--red);
  padding: 60px 2rem 40px;
  color: var(--cream);
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeInUp 1.2s ease-out;
}

.social-icons {
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--cream);
  font-size: 1.8rem;
  margin: 0 12px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--orange);
  transform: translateY(-4px);
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

.copyright {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.8;
}

/* ========== GLASS MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

/* GLASS CARD */
.modal-content {
  background: rgba(248, 235, 191, 0.25); /* cream transparan */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 20px rgba(252, 181, 59, 0.1);
  animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* FOTO UTUH */
.modal-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ISI */
.modal-body {
  padding: 2rem;
  text-align: center;
  color: white;
  flex-grow: 1;
}

.modal-body h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.modal-body p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 0;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* CLOSE BUTTON – GLASS */
.close-btn {
  position: absolute;
  top: 16px; right: 20px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.6rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(252, 181, 59, 0.5);
}
/* ================================= */
/* ===== RESPONSIVE HEADER ========= */
/* ================================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
  }

  /* MENU HAMBURGER — GLASSMORPHISM */
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(127, 155, 57, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.25);
    transition: right 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    justify-content: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  /* MENU LINKS — GLASSY */
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.35s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .nav-links li a:hover {
    background: rgba(252, 181, 59, 0.25);
    border: 1px solid var(--orange);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(252, 181, 59, 0.3);
  }

  /* CONTACT ME — GLASSY */
  .mobile-contact {
    display: block;
    background: rgba(255, 145, 77, 0.25);
    border: 2px solid var(--orange);
    border-radius: 16px;
    padding: 0.9rem 1.2rem;
    text-align: center;
    font-weight: 600;
    color: white;
    margin: 1.5rem 0 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.35s ease;
  }

  .mobile-contact:hover {
    background: rgba(252, 181, 59, 0.4);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(252, 181, 59, 0.4);
  }

  .nav-contact {
    display: none;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .logo-text {
    width: 300px;
    transform: translateY(30px);
  }

  .logo-area {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-explore,
  .btn-hire {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .image-bg-shape {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .hero-image {
    order: -1; /* Gambar muncul di atas */
    justify-content: center;
    margin-bottom: 2.5rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-explore,
  .btn-hire {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ========== ANIMASI ========== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .about-image {
    order: -1; /* Gambar muncul di atas */
    justify-content: center;
  }

  .about-text {
    text-align: center;
  }

  .about-text p {
    margin: 0 auto 2.5rem;
  }

  .btn-cv {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 100px 1.5rem;
  }

  .btn-cv {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ========== ANIMASI ========== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .contact {
    padding: 100px 1.5rem;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    max-width: 100%;
  }

  .btn-send {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .contact h2 {
    font-size: 2rem;
  }

  .contact p {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1.6rem;
    margin: 0 10px;
  }

  .footer-links {
    gap: 1.2rem;
    font-size: 0.95rem;
  }

  .footer {
    padding: 50px 1.5rem 30px;
  }
}

/* ========== ANIMASI ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .modal-content {
    width: 94%;
    border-radius: 20px;
  }
  .modal-img {
    max-height: 50vh;
    padding: 1rem;
  }
  .modal-body {
    padding: 1.8rem 1.5rem;
  }
  .modal-body h3 { font-size: 1.5rem; }
}
@keyframes modalPop {
  from {
    transform: scale(0.7) translateY(50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.video-carousel {
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track video {
  flex: 0 0 auto;
  width: clamp(280px, 80vw, 480px); /* Mobile: 80vw, Desktop: 480px */
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 20px;
  object-fit: cover;
  scroll-snap-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: grab;
}

#success-message {
  background: var(--green);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(132, 153, 79, 0.3);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}