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

body {
  font-family: 'Poppins', sans-serif;
  background: #080c17;
  color: #e0e0ff;
  line-height: 1.6;
  scroll-behavior: smooth; /* <-- ini yang bikin smooth scroll */
}

/* ================= NAVBAR FIXED ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 12, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}


.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  color: #c0c0ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00d4ff;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  padding: 8rem 5% 4rem; /* ruang untuk navbar fixed */
  display: flex;
  align-items: center;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.left-col {
  flex: 1;
}

.right-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
}

.role {
  font-size: 2.2rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.15rem;
  color: #b0b0d0;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: #0f1629;
  color: #00d4ff;
  border: 2px solid #00d4ff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.35s;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
}

.cta-btn:hover {
  background: #00d4ff;
  color: #0a0f1e;
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
  transform: translateY(-3px);
}

.social-icons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  width: 48px;
  height: 48px;
  border: 2px solid #00d4ff33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #00d4ff22;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* Hexagon */
.hexagon-wrapper {
  position: relative;
  width: 380px;
  height: 440px;
}

.hexagon {
  width: 100%;
  height: 100%;
  background: url('../asset_porto/foto_rahadian2.JPG') center/cover no-repeat;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 4px solid #00d4ff33;
  box-shadow: 
    0 0 40px rgba(0, 212, 255, 0.6),
    inset 0 0 30px rgba(0, 212, 255, 0.25);
  transition: transform 0.4s;
}

.hexagon-wrapper:hover .hexagon {
  transform: scale(1.05);
}

.decoration {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 15px #00d4ff;
  opacity: 0.7;
  animation: float 6s infinite ease-in-out;
}

.decoration:nth-child(1) { top: 10%; left: -10%; animation-delay: 0s; }
.decoration:nth-child(2) { bottom: 15%; right: -12%; animation-delay: 2s; }
.decoration:nth-child(3) { top: 60%; right: -8%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-25px) rotate(15deg); }
}

/* ================= SECTION UMUM ================= */
.section {
  padding: 6rem 5%;
  min-height: 60vh;
}

.section-title {
  font-size: 2.8rem;
  color: #00d4ff;
  margin-bottom: 2rem;
  text-align: center;
}

.sub-title {
  font-size: 1.6rem;
  color: white;
  margin: 2.5rem 0 1.5rem;
}

/* About Section */
.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.about-profile {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-photo img {
  width: 220px;
  border-radius: 20px;
  border: 2px solid #00d4ff44;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transition: all 0.4s;
}

.about-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.about-text {
  font-size: 1.1rem;
  color: #c0c0ff;
}

/* Skill Box */
.skill-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-item {
  background: #0f1629;
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid #00d4ff22;
  text-align: center;
  transition: all 0.3s;
}

.skill-item:hover {
  transform: translateY(-8px);
  border-color: #00d4ff88;
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.15);
}

.skill-item i {
  font-size: 2.2rem;
  color: #00d4ff;
  margin-bottom: 1rem;
}

.skill-item h4 {
  margin: 0.8rem 0;
  color: white;
}

/* Journey */
.journey {
  list-style: none;
  margin-top: 1rem;
}

.journey li {
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.05rem;
  color: #d0d0ff;
}

.journey li:before {
  content: "•";
  color: #00d4ff;
  position: absolute;
  left: 0;
  font-size: 1.4rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00d4ff;
  color: #0a0f1e;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  .right-col {
    order: -1;
  }
  h1 { font-size: 3.2rem; }
  .role { font-size: 2rem; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    font-size: 0.95rem;
  }
  .hero {
    padding-top: 10rem;
  }
  .hexagon-wrapper {
    width: 300px;
    height: 350px;
  }
  .about-profile {
    flex-direction: column;
    text-align: center;
  }
  .about-photo img {
    width: 180px;
  }
}

/* Project Section Styling */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #0f1629;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #00d4ff22;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #00d4ff;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #00d4ff22;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: #00d4ff;
  margin-bottom: 0.8rem;
}

.project-info p {
  font-size: 0.95rem;
  color: #c0c0ff;
  margin-bottom: 1.2rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-size: 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.3);
}
 
.project-link {
  text-decoration: none; /* Menghilangkan garis bawah link */
  display: block;        /* Agar link memenuhi area kartu */
  color: inherit;        /* Agar warna teks tidak berubah jadi biru */
}


/* Biodata Styling */
.biodata-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(15, 22, 41, 0.5);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #00d4ff11;
}

.biodata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.bio-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-item .label {
  color: #00d4ff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.bio-item .value {
  color: #e0e0ff;
  font-size: 1.15rem;
}

.bio-quote {
  margin-top: 3rem;
  text-align: center;
  font-style: italic;
  color: #b0b0d0;
  border-top: 1px solid #00d4ff22;
  padding-top: 1.5rem;
}

/* Responsive Biodata */
@media (max-width: 600px) {
  .biodata-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* Contact Styling */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  color: #c0c0ff;
}

.contact-item i {
  font-size: 1.4rem;
  color: #00d4ff;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background: #0f1629;
  border: 1px solid #00d4ff22;
  border-radius: 8px;
  color: white;
  font-family: 'Poppins', sans-serif;
  transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

.contact-form .cta-btn {
  cursor: pointer;
  width: fit-content;
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Footer Styling */
.footer {
  background: #050811;
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-logo p {
  color: #b0b0d0;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: #c0c0ff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #00d4ff;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-social a {
  color: #00d4ff;
  font-size: 1.5rem;
  transition: 0.3s;
}

.footer-social a:hover {
  transform: translateY(-5px);
  text-shadow: 0 0 15px #00d4ff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.05);
  color: #8080a0;
  font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-social {
    justify-content: center;
  }
}

/* cursor style */
#bubble-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none; /* Penting! Agar tombol masih bisa diklik */
  z-index: 9999;
}


/* --- Variasi Efek Reveal --- */
/* Efek Umum (Dasar) */
.reveal {
  opacity: 0;
  transition: all 1s ease-out;
}

/* 1. Muncul dari Bawah */
.reveal-up {
  transform: translateY(60px);
}

/* 2. Muncul dari Kiri */
.reveal-left {
  transform: translateX(-80px);
}

/* 3. Muncul dari Kanan */
.reveal-right {
  transform: translateX(80px);
}

/* Kondisi Aktif (Semua akan kembali ke posisi normal) */
.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* 4. Efek Zoom In (Membesar pelan-pelan) */
.reveal-zoom {
  transform: scale(0.8);
}

/* 5. Efek Zoom Out (Mengecil dari besar) */
.reveal-zoom-out {
  transform: scale(1.2);
}

/* 6. Efek Putar (Rotate) */
.reveal-rotate {
  transform: rotate(-5deg) translateY(30px);
}

/* 7. Efek Blur (Mulai dari kabur ke tajam) */
.reveal-blur {
  filter: blur(10px);
}