/* ================= ROOT COLOR ================= */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #2563eb;
  --light: #f1f5f9;
  --white: #ffffff;
}

/* Dark Mode */
body.dark {
  --primary: #f1f5f9;
  --secondary: #e2e8f0;
  --light: #0f172a;
  --white: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--light);
  color: var(--primary);
}

/* ============= button sendiri ================ */
/* Custom Bootstrap-like Button */
.btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 9999; /* tambahkan ini */
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.theme-toggle {
  cursor: pointer;
  font-size: 20px;
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--secondary);
  color: white;
  text-align: center;
}

.hero .btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* ================= SECTION ================= */
.section {
  padding: 100px 10%;
  text-align: center;
}

.skills-container,
.portfolio-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.skill i {
  font-size: 40px;
  color: var(--accent);
}

.card {
  background: var(--white);
  padding: 20px;
  width: 250px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ================= FOOTER ================= */
footer {
  padding: 30px;
  background: var(--secondary);
  color: white;
  text-align: center;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
}

/* ================= FLOATING BUTTON ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 15px;
  border-radius: 50%;
  font-size: 22px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  padding: 10px 15px;
  display: none;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}


/* ================= RESPONSIVE ================= */

/* Mobile */

/* Default: sembunyikan di SEMUA ukuran */
.hamburger {
  display: none !important;
}

@media screen and (max-width: 768px) {

  /* Nav link jadi menu dropdown */
  .nav-links {
    position: absolute;
    top: 60px;
    right: -100%;
    flex-direction: column;
    background: var(--white);
    width: 200px;
    padding: 20px;
    transition: 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  /* Hamburger MUNCUL hanya di mobile */
  .hamburger {
    display: block !important;
  }

}

/* Wrapper icon kanan */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px; /* jarak antar icon */
}

/* Default (desktop) */
.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.theme-toggle {
  font-size: 20px;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media screen and (max-width: 768px) {

  .nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .hamburger {
    display: block;
  }

}

/* ================= SLIDER ================= */

/* =========================
   SLIDER CONTAINER
========================= */

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Wrapper semua slide */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 1 slide */
.slide {
    min-width: 100%;
    height: 260px; /* tinggi seragam */
    overflow: hidden;
}

/* GAMBAR */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* supaya tidak gepeng */
    display: block;
}

/* Tombol next prev */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  display: none; /* default disembunyikan */
}

.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.dots {
  text-align: center;
  margin-top: 10px;
  display: none; /* default disembunyikan */
}

.dots span {
  height: 8px;
  width: 8px;
  margin: 5px;
  background: #ccc;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dots .active {
  background: #2563eb;
}

/* ===============================
   PROJECT IMAGE SIZE STANDARD
================================== */

.project-image {
    width: 100%;
    height: 250px; /* tinggi seragam */
    overflow: hidden;
    border-radius: 10px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* penting agar tidak gepeng */
    display: block;
}

/* ===============================
   RESPONSIVE IMAGE HEIGHT
================================== */

/* Tablet */
/* Tablet */
@media (max-width: 992px) {
    .slide {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .slide {
        height: 200px;
    }
}