* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #000000, #7c7c7c, #000000);
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #5babfc;
  text-decoration: none;
}

/* ===== HEADER ===== */
header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.hero img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #a9bafa;
  object-fit: cover;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

h1 {
  font-size: 22px;
}

.role {
  font-weight: 400;
  opacity: 0.85;
  margin-top: 8px;
}

.motto {
  font-style: italic;
  color: #a9bafa;
  margin-top: 6px;
}

/* ===== SECTION ===== */
section {
  padding: 80px 10%;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-left: 4px solid #a9bafa;
  padding-left: 12px;
}

/* ===== CARD ===== */
.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(0, 0, 0, 0.15);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project {
  flex: 1 1 300px;
}

footer {
  text-align: center;
  padding: 30px;
  opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== SCROLL ANIMATION (FIXED) ===== */
.animate-left,
.animate-right,
.animate-bottom,
.animate-fade {
  opacity: 0;
  transition: all 0.8s ease;
}

.animate-left {
  transform: translateX(-60px);
}

.animate-right {
  transform: translateX(60px);
}

.animate-bottom {
  transform: translateY(60px);
}

.animate-fade {
  transform: scale(0.9);
}

.show {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  header {
    height: auto;
    padding: 60px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .role {
    font-size: 0.95rem;
  }

  .motto {
    font-size: 0.9rem;
  }

  section {
    padding: 40px 20px;
  }

  .hero img {
    width: 120px;
    height: 120px;
  }

  .cards-container {
    flex-direction: column;
  }

  .project {
    flex: 1 1 100%;
  }
}

/* ===== FILTER BUTTON ===== */
.filter-buttons {
  margin-bottom: 25px;
}

.filter-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  margin-right: 10px;
  cursor: pointer;
  background: #a9bafa;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.filter-buttons button:hover {
  opacity: 0.85;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-content h3 {
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.design-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.modal-image {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 12px;
}

.modal-video {
  width: 100%;
  border-radius: 12px;
}

/* ===== SOCIAL ===== */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.social-icons i {
  font-size: 32px;
  cursor: pointer;
  transition: 0.3s;
}

.social-icons i:hover {
  transform: scale(1.2);
  color: #b11226;
}

/* ===== POPUP ===== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.popup-content {
  background: white;
  width: 250px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin: 150px auto;
}

/* ===== FLOATING MENU ===== */
.floating-menu {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #7b1fa2;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.menu-items {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-items a {
  width: 45px;
  height: 45px;
  background: #7b1fa2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
}

.menu-items a:hover {
  transform: scale(1.1);
}

.floating-menu {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999; /* 🔥 ini penting */
}

.menu-btn {
  z-index: 10000;
}