/* =========================================
   Reset & Variabel Global
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #0f172a;
  --second-bg-color: #1e293b;
  --text-color: #f8fafc;
  --text-color-light: #cbd5e1;
  --main-color: #10b981;
  --main-color-light: #34d399;
}

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

/* Mengurangi padding atas/bawah agar lebih padat */
section {
  padding: 4.5rem 9% 2rem;
}

/* Judul diperkecil & margin bawah dikurangi */
.heading {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.heading span {
  color: var(--main-color-light);
}

/* =========================================
   Header & Navbar
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.header.sticky {
  box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: 700;
}

.logo span {
  color: var(--main-color-light);
}

.navbar a {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-left: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color-light);
}

#menu-icon {
  font-size: 2.5rem;
  color: var(--text-color);
  display: none;
  cursor: pointer;
}

/* =========================================
   Hero / Jumbotron Section
========================================= */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7rem; /* Jarak pas untuk header */
  padding-bottom: 3rem;
  gap: 3rem;
}

.home-content {
  flex: 1;
  z-index: 10;
}

.home-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color-light);
}

.home-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0;
  color: var(--text-color);
}

.home-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.blockquote-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 0.5rem;
}

.home-content p {
  font-size: 1.05rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.home-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.home-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 1.5rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1rem 3rem rgba(16, 185, 129, 0.15);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 4rem rgba(16, 185, 129, 0.3);
  border-color: var(--main-color-light);
}

/* =========================================
   Global Buttons
========================================= */
.btn-group {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--main-color);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  box-shadow: 0 0 1rem var(--main-color);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
}

.btn-outline:hover {
  background: var(--main-color);
  color: #fff;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 2px solid var(--main-color-light);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--main-color-light);
  margin: 0 0.8rem 2rem 0;
  transition: 0.3s;
}

.social-media a:hover {
  background: var(--main-color-light);
  color: var(--bg-color);
  transform: translateY(-3px);
}

/* =========================================
   Global Form Inputs (DITAMBAHKAN)
========================================= */
.input-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--bg-color); /* Menyesuaikan dengan kotak form */
  border-radius: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  border-color: var(--main-color-light);
  background: rgba(15, 23, 42, 0.8);
}

textarea {
  resize: none; /* Mencegah textarea ditarik melebihi batas */
}

.form-msg {
  display: none;
  text-align: center;
  background: rgba(16, 185, 129, 0.1);
  color: var(--main-color-light);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--main-color);
}

/* =========================================
   Skills Section
========================================= */
.skills {
  background: var(--second-bg-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.skill-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1.2rem;
  text-align: center;
  border: 1px solid transparent;
  transition: 0.3s ease-in-out;
}

.skill-card:hover {
  border-color: var(--main-color-light);
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(16, 185, 129, 0.1);
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.skill-card i {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 0.8rem;
}

.skill-bar {
  margin-top: 1.2rem;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--main-color-light);
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
}

/* =========================================
   Portfolio Section
========================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--second-bg-color);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s ease;
}

.portfolio-card:hover {
  border-color: var(--main-color-light);
  transform: translateY(-5px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.3);
}

.portfolio-icon i {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  display: inline-block;
}

.tag {
  font-size: 0.75rem;
  color: var(--main-color-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-weight: 600;
}

.tag-soon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.portfolio-card h4 {
  font-size: 1.5rem;
  margin: 0.8rem 0;
}

.portfolio-card p {
  color: var(--text-color-light);
  line-height: 1.5;
  font-size: 0.95rem;
}

.view-btn {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--text-color);
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.95rem;
}

.view-btn:hover {
  color: var(--main-color-light);
}

.next-project {
  opacity: 0.7;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.progress-info {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 600;
}

/* =========================================
   Testimonial Section & Carousel
   ========================================= */

.testimonial-wrapper {
  max-width: 100%;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem;

  scrollbar-width: thin;
  scrollbar-color: var(--main-color) transparent;
}

.testimonial-container::-webkit-scrollbar {
  height: 8px;
}
.testimonial-container::-webkit-scrollbar-track {
  background: transparent;
}
.testimonial-container::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}

.testimonial-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--bg-color); /* Atau second-bg-color */
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.testimonial-item:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.testimonial-item p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
}

/* Kotak Form Testimoni (DITAMBAHKAN) */
.testimonial-form {
  background: var(--second-bg-color);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-form h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Responsif Layar Besar: Menampilkan 2 kartu dalam 1 baris */
@media (min-width: 768px) {
  .testimonial-item {
    flex: 0 0 calc(50% - 1rem);
  }
}

/* =========================================
   Contact Section
========================================= */
.contact {
  background: var(--second-bg-color);
}

.contact-form-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-color);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   Support & Polling Section
========================================= */
.support {
  background: var(--bg-color);
  padding-bottom: 4rem;
}

.support-container {
  max-width: 750px;
  margin: 0 auto;
  background: linear-gradient(
    145deg,
    var(--second-bg-color),
    rgba(15, 23, 42, 0.8)
  );
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.support-icon {
  font-size: 4rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.support-container h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.support-container p {
  font-size: 1rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

.btn-saweria {
  background: #eab308;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 3rem;
  box-shadow: 0 0.5rem 1rem rgba(234, 179, 8, 0.3);
}

.btn-saweria:hover {
  background: #facc15;
  color: #0f172a;
  box-shadow: 0 0.5rem 1.5rem rgba(234, 179, 8, 0.5);
  transform: translateY(-3px);
}

/* Polling CSS */
.poll-wrapper {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  text-align: left;
}

.poll-title {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-item {
  position: relative;
  background: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.poll-item:hover {
  border-color: var(--main-color-light);
  transform: translateX(3px);
}

.poll-text {
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  z-index: 2;
}

.poll-percent {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--main-color-light);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s;
}

.poll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(16, 185, 129, 0.2);
  z-index: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-options.voted .poll-item {
  cursor: default;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.poll-options.voted .poll-item.selected {
  border-color: var(--main-color);
}

/* =========================================
   Footer
========================================= */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* =========================================
   Responsif (Media Queries)
========================================= */
@media (max-width: 991px) {
  .header {
    padding: 1rem 5%;
  }
  section {
    padding: 5rem 5% 2rem;
  }

  .home {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 6rem;
  }

  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-content h1 {
    font-size: 3.2rem;
  }

  .home-img {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .home-img img {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
    font-size: 2rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }

  .navbar.active {
    left: 0;
  }

  .navbar a {
    display: block;
    font-size: 1.1rem;
    margin: 1.2rem 0;
    text-align: center;
    margin-left: 0;
  }

  .input-row {
    flex-direction: column; /* Mengubah inputan berdampingan menjadi atas-bawah di HP */
    gap: 0;
  }
}
