/* Reset default margin dan padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Gaya untuk header */
header {
  background: #6682a1;
  padding: 0 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  min-height: 65px; /* biar header tidak kepotong */
  display: flex;
  align-items: center;
}

/* Main container untuk header */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Navbar container */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo a {
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: white;
  line-height: 65px; /* memastikan teks FR PORTOFOLIO tidak turun */
}

/* Menu */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: yellow;
}


/* Burger menu untuk mobile */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 30px;
  height: 4px;
  background: white;
  margin: 5px;
}

/* Responsif untuk mobile */
@media screen and (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #6682a1;
    text-align: center;
  }

  nav ul li {
    padding: 10px 0;
  }

  .burger {
    display: flex;
  }

  nav ul.active {
    display: flex;
  }
}

/* Styling untuk halaman Home */
#home {
  padding: 100px 20px;
  background-color: #b0cae2;
  color: white;
  text-align: center;
}

.home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: wrap;
}

.home-image {
  width: 300px;
  height: auto;
}

.home-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-text {
  max-width: 600px;
  text-align: left;
}

.home-text h1 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Efek teks meloncat-loncat */
.moving-text-container {
  display: inline-block;
  width: auto;
  text-align: left;
  overflow: hidden;
}

.moving-text {
  display: inline-block;
  color: #ff4081;
  font-weight: bold;
  white-space: nowrap;
  animation: bounceText 2.5s ease-in-out infinite;
}

/* Animasi teks naik turun */
@keyframes bounceText {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsif untuk perangkat mobile */
@media screen and (max-width: 768px) {
  .home-container {
    flex-direction: column;
    text-align: center;
  }

  .home-image {
    width: 80%;
    max-width: 250px;
  }

  .home-image img {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .home-text {
    text-align: center;
  }

  .moving-text-container {
    width: 100%;
  }
}

.description {
  color: black;
}

@keyframes typing {
  from {
      width: 0;
  }
  to {
      width: 100%;
  }
}

@keyframes blink-cursor {
  50% {
      border-color: transparent;
  }
}

.description {
  color: black;
  font-size: 18px;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden; /* Pastikan teks tidak terpotong */
  display: block; /* Ubah dari inline-block ke block */
  width: fit-content; /* Supaya lebar mengikuti teks */
  max-width: 600px; /* Tambahkan batas agar tidak terlalu panjang */
  text-align: left; /* Membuat teks rata kiri */
  animation: typing 3s steps(40, end) forwards, 
             fadeIn 2s ease-in forwards;
}

@keyframes typing {
  from {
    max-width: 0;
  }
  to {
    max-width: 600px; /* Sesuaikan dengan batas teks */
  }
}

@keyframes blink-cursor {
  50% {
    border-color: transparent;
  }
}
.description {
  opacity: 0; /* Mulai dari transparan */
  animation: fadeIn 2s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Styling untuk container skills agar latar belakang biru */
.skills-container {
    background-color: #6682a1; /* Warna biru untuk latar belakang */
    padding: 40px 0; /* Memberikan ruang pada bagian atas dan bawah */
    text-align: center; /* Agar judul berada di tengah */
    width: 100%;
  }
  
/* Styling untuk judul */
.skills-title {
    text-align: center; /* Mengatur teks agar berada di tengah secara horizontal */
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
  }
  
  .home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Beri jarak antara gambar & teks */
    flex-wrap: wrap; /* Jika terlalu kecil, tetap rapi */
  }

  .home-text {
    max-width: 600px; /* Batasi lebar teks agar tidak melebar ke bawah */
  }


  html {
    scroll-behavior: smooth;
  }
  
/* Styling untuk skills */
.skills {
    width: 80%;
    margin: 0 auto;
    background-color: #b0cae2;
    padding: 20px;
    border-radius: 10px;

  }
  
  .skill {
    margin: 15px 0;
  }
  
  input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 5px;
  }
  
  input[type="range"]::-webkit-slider-runnable-track {
    height: 5px;
    background: #6682a1;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #6682a1;
    cursor: pointer;
  }
  
  span {
    margin-left: 10px;
    font-weight: bold;
  }

  /* Styling untuk halaman body */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #b0cae2;
}

/* Membatasi lebar container agar map & form tidak terlalu melebar */
#contact .container {
  max-width: 900px; /* Bisa disesuaikan */
  margin: auto;
}

/* Mengatur row agar map dan form berada di tengah */
#contact .row {
  display: flex;
  align-items: center;
  justify-content: center; /* Memastikan konten tetap di tengah */
  gap: 30px; /* Memberikan jarak yang pas */
}

/* Ukuran map lebih pas */
.map-container {
  flex: 1;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Form agar proporsional */
.contact-form {
  flex: 1;
  max-width: 450px; /* Agar tidak terlalu melebar */
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form input agar lebih rapi */
.contact-form .form-control {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Tambahkan jarak antar elemen form */
.contact-form .mb-3 {
  margin-bottom: 15px;
}

/* Tombol submit lebih besar */
.contact-form .btn {
  padding: 12px;
  border-radius: 5px;
  font-size: 16px;
}

/* Background Section */
#contact {
  padding: 50px 0;
  background-color: #d0e2f2;
}

/* Responsif: Map & Form Stack di Mobile */
@media (max-width: 768px) {
  #contact .row {
    flex-direction: column;
    gap: 20px; /* Jarak lebih kecil di layar kecil */
  }

  .map-container, .contact-form {
    width: 100%;
    max-width: 100%;
  }
}
/* Mengubah warna formulir menjadi biru */
.contact-form {
  flex: 1;
  max-width: 450px;
  padding: 25px;
  background: #6682a1; /* Warna biru */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white; /* Agar teks lebih kontras */
}

/* Warna input agar tetap terlihat */
.contact-form .form-control {
  background: white; 
  color: black;
  border: 1px solid #ccc;
}

/* Warna label */
.contact-form .form-label {
  color: white;
}

/* Warna tombol submit */
.contact-form .btn {
  background: #4da9fa; /* Biru Muda */
  color: white;
  border: none;
}

.contact-form .btn:hover {
  background: #358edb; /* Biru lebih gelap saat dihover */
}


/* Background halaman utama */
body {
  background-color: #6682a1 !important; /* Biru tua */
  color: white;
}

html {
  scroll-behavior: smooth;
}

/* Gaya untuk judul gallery */
h2 {
  text-align: center;
  padding: 20px 0; /* Tambah jarak atas-bawah */
  color: white;
}

/* Card Styling */
.card {
  background-color: #b0cae2 !important; /* Biru muda */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Efek hover */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(255, 255, 255, 0.3);
}

/* Gambar di dalam card */
.card img {
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

/* Efek hover pada gambar */
.card:hover img {
  transform: scale(1.1);
}

/* Title & Deskripsi dalam Card */
.card-title {
  color: #6682a1!important; /* Biru gelap */
  font-weight: bold;
  margin-top: 10px; /* Beri jarak ke atas */
}

.card-text {
  color: #6682a1 !important; /* Biru tua lebih terang */
}

.gallery-section {
  margin-bottom: 50px; /* Tambahkan ruang di bawah gallery */
}

.footer-container {
  display: flex;
  align-items: center; /* Menyelaraskan elemen secara vertikal */
  justify-content: center; /* Memastikan elemen ada di tengah */
  background-color: #002147; /* Warna biru tua */
  padding: 20px 40px; /* Padding biar gak terlalu mepet */
  color: white;
}

footer {
  margin-top: 80px; /* Dorong footer lebih ke bawah */
}

.footer-photo {
  width: 120px; /* Ukuran foto lebih besar */
  height: auto;
  margin-right: 30px; /* Beri jarak antara foto dan teks */
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Memastikan teks dan ikon ada di tengah */
}

.footer-icons {
  display: flex;
  gap: 20px; /* Jarak antar ikon diperbesar */
  margin-bottom: 10px; /* Jarak ke copyright */
}

.footer-icons a {
  text-decoration: none;
  color: white;
}

.footer-icons img {
  width: 40px; /* Ukuran ikon lebih besar */
  height: 40px;
}

.copyright {
  font-size: 14px;
}


.edu-box {
  background: linear-gradient(135deg, #ffffff, #eef6ff);
  padding: 25px;
  border-radius: 18px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid transparent;
}

.edu-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 140, 255, 0.25);
  border-color: #4da3ff;
}

.edu-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #005bb5;
}

.edu-year {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 12px;
}

.edu-link {
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: 0.2s;
}

.edu-link:hover {
  text-decoration: underline;
}

/* Star Background Effect */
#home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #3b4a61, #2c3a4d);
}

/* Container untuk bintang */
.star-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

/* Bintang-bintang */
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Animasi jatuh */
@keyframes fall {
  0% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Supaya konten home di atas bintang */
#home .home-container {
  position: relative;
  z-index: 10;
}

#home .home-text h1,
#home .moving-text {
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #fff;
}

/* Warna putih untuk seluruh teks di bagian Home */
#home .home-text h1,
#home .home-text p,
#home .moving-text,
#home .description {
  color: #ffffff !important;
}

#home .home-text h1,
#home .moving-text {
  text-shadow: 0 0 8px rgba(255,255,255,0.7);
}

/* SECTION SKILLS */
#skills {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a, #111111);
  position: relative;
  overflow: hidden;
}

/* BOKEH GLOW AESTHETIC */
#skills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.1), transparent 60%),
              radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08), transparent 60%);
  z-index: 0;
}

/* GLASSMORPHISM CONTAINER */
.skills-container {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(255,255,255,0.07);
}

/* TITLE */
.skills-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.3rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* EACH SKILL ROW */
.skill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  color: white;
}

/* LABEL */
.skill label {
  width: 120px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* RANGE / PROGRESS BAR */
.skill input[type="range"] {
  width: 60%;
  height: 6px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.skill input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 10px white;
}

/* PERSENTASE */
.skill span {
  width: 60px;
  text-align: right;
  font-weight: 600;
}

/* EDUCATION SECTION - GALAXY AESTHETIC */
#education {
  padding: 70px 20px;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a, #0c0c0c);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
}

/* BOKEH BACKGROUND */
#education::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05), transparent 60%);
  z-index: 0;
}

/* TITLE */
#education h2 {
  color: white;
  letter-spacing: 2px;
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  position: relative;
  z-index: 2;
}

/* BOX */
.edu-box {
  background: rgba(255, 255, 255, 0.07);
  padding: 25px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: 0.35s ease-in-out;
  z-index: 2;
  animation: float 5s infinite ease-in-out;
}

/* FLOATING EFFECT */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* HOVER NEON GLOW */
.edu-box:hover {
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 
    0 0 15px rgba(255,255,255,0.3),
    0 0 40px rgba(255,255,255,0.15);
  transform: translateY(-10px) scale(1.03);
}

/* TITLE TEXT */
.edu-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* YEAR */
.edu-year {
  margin-bottom: 12px;
  color: #cfcfcf;
  font-size: 0.95rem;
}

/* LINK */
.edu-link {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  transition: 0.3s;
  background: rgba(255,255,255,0.1);
}

.edu-link:hover {
  background: white;
  color: black;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}


/* ===========================
   PROJECT SECTION STYLING
   =========================== */
#project-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #001633, #003366);
  padding: 60px 20px 90px 20px;
  border-radius: 20px;
  margin: 50px auto;
  width: 90%;
  box-shadow: 0 0 50px rgba(0, 120, 255, 0.3);
}

/* Title Glow */
#project-section .gallery-title {
  color: white;
  font-weight: 900;
  text-shadow: 0 0 15px #4da6ff, 0 0 30px #1a75ff;
  margin-bottom: 40px;
}

/* Floating bubble animation */
.bubble {
  position: absolute;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: floatUp linear infinite;
  filter: blur(1px);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-900px) scale(1.5);
    opacity: 0;
  }
}

/* Project Cards styling */
#project-section .card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  transition: 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(0, 140, 255, 0.2);
}

#project-section .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(0, 150, 255, 0.7);
}

#project-section .card img {
  border-radius: 15px 15px 0 0;
  transition: 0.3s;
}

#project-section .card:hover img {
  filter: brightness(1.2);
}

#project-section .card-title {
  font-weight: 700;
  color: #66b3ff;
  text-shadow: 0 0 8px rgba(0, 150, 255, 0.7);
}

#project-section .card-text {
  color: #dddddd;
}

/* Contact Section Background */
#contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #001733, #003d7a);
  position: relative;
  overflow: hidden;
}

/* Neon Title */
.contact-title {
  color: white;
  text-shadow: 0 0 12px #4da6ff, 0 0 25px #1a75ff;
  font-size: 32px;
  letter-spacing: 2px;
}

/* Floating particles */
.particle {
  position: absolute;
  bottom: -50px;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: floatUp linear infinite;
  filter: blur(1px);
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0.9; }
  100% { transform: translateY(-450px); opacity: 0; }
}

/* Map Glow */
.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.4);
}

/* Contact Form (Glass Effect + Animated Border) */
.contact-form {
  background: rgba(255, 255, 255, 0.12);
  padding: 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(45deg, #0066ff, #66ccff, #0066ff);
  background-size: 200%;
  z-index: -1;
  animation: glowBorder 5s linear infinite;
}

@keyframes glowBorder {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* Form Inputs */
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  border-radius: 8px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #e8e8e8;
}

/* Send Button */
.send-btn {
  width: 100%;
  padding: 10px;
  background: #4da6ff;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
}

.send-btn:hover {
  background: #1a75ff;
  box-shadow: 0 0 12px #4da6ff;
}

/* Section Background Soft Gradient */
#gallery-section {
  padding: 50px 20px;
  position: relative;
  background: linear-gradient(135deg, #ffe6f7, #e6f0ff);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 170, 220, 0.3);
  overflow: hidden;
}

/* Title Glow */
.gallery-title {
  color: #ff5fa8;
  text-shadow: 0 0 10px #ff99cc;
  letter-spacing: 1px;
}

/* Sub Title */
.sub-title {
  color: #7a4fff;
  text-shadow: 0 0 8px #c9a4ff;
}

/* Cute Floating Bubbles */
.cute-bubble {
  position: absolute;
  bottom: -50px;
  width: 20px;
  height: 20px;
  background: rgba(255, 200, 255, 0.6);
  border-radius: 50%;
  filter: blur(1px);
  animation: floatCute 9s linear infinite;
}

@keyframes floatCute {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-650px) scale(1.4); opacity: 0; }
}

/* Gallery Card */
.gallery-card {
  background: white;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 170, 220, 0.4);
  transition: 0.3s ease;
  border: 2px solid #ffd6eb;
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(255, 130, 210, 0.6);
}

/* Image Rounded Cute Style */
.image-wrapper {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(255, 150, 220, 0.5);
}

.cute-img {
  border-radius: 18px;
  transition: 0.3s ease;
}

.gallery-card:hover .cute-img {
  transform: scale(1.05);
}

/* Caption */
.cute-caption {
  margin-top: 12px;
  font-size: 16px;
  color: #ff5fa8;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 150, 200, 0.6);
}

/* Contact map styling */
#contact .map-container iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
}

/* Contact card form */
.contact-form {
  background: white;
  border-radius: 12px;
}

/* --- RESPONSIVE MOBILE FIX --- */
@media (max-width: 768px) {

  /* Biar map ga terlalu gede */
  #contact .map-container iframe {
    height: 220px; /* dikecilin */
  }

  /* Map dan form jadi 1 kolom */
  #contact .col-md-5 {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Biar ga mepet */
  #contact .container {
    padding: 0 15px;
  }
}

/* Center form di mobile */
@media (max-width: 768px) {
  #contact .contact-form {
    max-width: 90%;      /* biar ukurannya pas */
    margin: 0 auto;      /* bikin form tepat di tengah */
  }

  #contact .map-container {
    max-width: 95%;
    margin: 0 auto;
  }
}

/* ========== FRIENDS SECTION 3D PINK-BLUE ========== */
#friends-section {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Title */
#friends-section h3 {
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(90deg, #ff7ad9, #ffd36b, #ff8c42); /* gradient baru: pink - kuning - orange */
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(255, 138, 87, 0.6); /* shadow lebih kontras */
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in-out;
}

/* 3D Card Base */
#friends-section .card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffe6f7, #e1f1ff);
  box-shadow: 
    8px 8px 18px rgba(0,0,0,0.15),
    -4px -4px 15px rgba(255,255,255,0.8);
  transition: transform .4s ease, box-shadow .4s ease;
  transform-style: preserve-3d;
}

/* 3D Hover */
#friends-section .card:hover {
  transform: translateY(-12px) rotateX(6deg) rotateY(4deg);
  box-shadow: 
    0 15px 35px rgba(255, 122, 217, 0.45),
    0 0 20px rgba(106, 184, 255, 0.35);
}

/* Image */
#friends-section .card img {
  height: 330px;
  object-fit: cover;
  transition: transform .5s ease;
}

#friends-section .card:hover img {
  transform: scale(1.1);
}

/* Text */
#friends-section .card-text {
  color: #ff5fc0;
  font-weight: 600;
  font-size: 1.15rem;
  text-shadow: 0 0 6px rgba(255, 95, 192, 0.4);
}

/* Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================== SUPER AESTHETIC BACKGROUND ================== */

/* ✨ 1. Animated Gradient Layer */
#friends-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff7ad9, #6ab8ff, #ffc7ff, #7ed3ff);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  z-index: -3;
  opacity: 0.9;
  filter: blur(30px);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ✨ 2. Glow Waves (rotating soft light) */
#friends-section::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at center,
      rgba(255,111,207,0.35),
      rgba(0,0,0,0) 70%);
  animation: spinGlow 18s linear infinite;
  z-index: -2;
  filter: blur(60px);
}

@keyframes spinGlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ✨ 3. Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: floatUp 7s linear infinite;
  filter: blur(2px);
  opacity: 0.7;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-260px) scale(1.6); opacity: 0; }
}

/* RANDOM particle positions */
.particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 30%; animation-delay: 2s; }
.particles span:nth-child(3) { left: 50%; animation-delay: 4s; }
.particles span:nth-child(4) { left: 70%; animation-delay: 1s; }
.particles span:nth-child(5) { left: 85%; animation-delay: 3s; }
.particles span:nth-child(6) { left: 20%; animation-delay: 5s; }
.particles span:nth-child(7) { left: 60%; animation-delay: 6s; }

