* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 15px; 
  background: #fff;
  color: #fff;
}

/* NAVBAR */
nav {
  position: fixed;   /* 🔥 paksa nempel */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;

  background: linear-gradient(135deg, #57acf7, #1e88e5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo img {
  width: 200px;   /* kontrol ukuran dari sini */
  height: auto;
  object-fit: contain;
  
}

.logo img {
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.1);
}

.menu a {
  margin: 0 15px;
  text-decoration: none;
  color: white;
  position: relative;
  transition: 0.3s;
  font-weight: bold;
}

/* underline animasi */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: white;
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px ;
  position: relative;
  min-height: 100vh;

  gap: 20px;
}

/* TEXT */
.hero-text {
  flex: 1;
  max-width: none;
}

.hero-text h1 {
color: #000000;
  font-size: 56px;
  margin-bottom: 0px;
}

.hero-text h2 {
  color: #000000;
  font-size: 30px;
  margin-bottom: 20px;
}

.hero-text h3 {
  color: #1e88e5;
  font-size: 21px;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 16px;
  max-width: 800px;
  color: #000000;
  margin-bottom: 20px;
}

code {
  background: #ffffff;
  color: #1e88e5;
  padding: 3px 5px;
  border-radius: 3px;
  font-family: monospace;

  display: inline-block; /* penting untuk animasi */
  transition: all 0.3s ease;
}

/* 🔥 efek hover */
code:hover {
  transform: translateY(-5px) scale(1.05);
  background: #1e88e5;
  color: white;

  animation: pulse 0.6s ease;
  box-shadow: 0 5px 15px rgba(30,136,229,0.5);
}


@keyframes pulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.08); }
  100% { transform: translateY(-5px) scale(1.05); }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* code {
  background: #ffffff;
  color: #38bdf8;
  padding: 4px 5px;
  border-radius: 6px;
  font-family: monospace;
  border: 1px solid #1e293b;
} */

.terminal {
  color: #1e88e5;
  font-family: monospace;
  position: relative;
}

.terminal::before {
  content: " ";
  color: #1e88e5;
}

.btn {
  background: #1e88e5;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30,136,229,0.4);
}

/* FLOATING BUTTON */
@keyframes float {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
  100% { transform: translate(-50%, 0); }
}

.floating-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  
  background: #1e88e5;
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;

  box-shadow: 0 5px 20px rgba(30,136,229,0.4);
  transition: 0.3s;

  animation: float 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* ANIMASI HILANG */
.floating-btn.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: auto;
}

/* HOVER */
.floating-btn:hover {
  background: #1565c0;
  transform: translateX(-50%) translateY(-3px);
}


/* IMAGE SHAPE */
.hero-img {
  width: 380px;
  height: 430px;
  background: #ddd;
  border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  overflow: hidden;
  transition: 0.3s;

  pointer-events: none;
  user-select: auto;
  -webkit-user-drag: auto;
}

.hero-img:hover {
  transform: scale(1.03);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  pointer-events: none;
  user-select: auto;
  -webkit-user-drag: auto;
  -webkit-touch-callout: auto;
}

/* SOCIAL */
.social {
  position: fixed;
  right: 20px;
  top: 45%;
}

.social a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1e88e5;
  color: white;
  width: 45px;
  height: 45px;
  margin: 8px 0;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social a:hover {
  background: #1e88e5;
  transform: scale(1.15);
box-shadow: 0 0 10px #1e88e5;
}

/* CONTAINER */
.social-container {
  position: fixed;
  right: 30px;        /* 🔥 jarak dari kanan */
  top: 90%;           /* tengah layar */
  transform: translateY(-50%);
  z-index: 999;
}

/* ICON UTAMA */
.social-main {
  width: 54px;
  height: 54px;
  background: #1e88e5;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: 0.3s;
}

/* HOVER MAIN */
.social-main:hover {
  transform: scale(1.1);
}

/* LINK CONTAINER */
.social-links {
  position: absolute;
  bottom: 70px;
  right: 0;

  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 15px;

  opacity: 0;
  pointer-events: auto;
  transform: translateY(20px);
  transition: 0.3s;
}

.social-container:hover .social-links,
.social-links:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ICON SOSIAL */
.social-links a {
  width: 55px;
  height: 55px;
  background: #1e88e5;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(30,136,229,0.7);
}

/* 🔥 TAMBAHAN PENTING */
.social-container::before {
  content: "";
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 60px;
  height: 60px;
}

.social-label {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(255,255,255,0.2);
  color: #1e88e5;
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: 20px;

  border: 2px solid #1e88e5;
  border: 1px solid rgba(255,255,255,0.3);

  font-size: 14px;
  white-space: nowrap;

  display: flex;
  align-items: center;

  box-shadow: 0 5px 15px rgba(0,0,0,0.2);

  opacity: 0;
  animation: fadeSlideIn 0.5s ease forwards;
}

.social-label::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);

  border-left: 8px solid white;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.social-label.hide {
  animation: chatMerge 0.6s ease forwards;
}

@keyframes chatMerge {
  0% {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(60px) scale(0.3);
  }
}

/* SCROLL TEXT */
.scroll {
  position: absolute;
  bottom: 30px;
  left: 80px;
  color: #555;
}

.about-section {
  display: flex;
  align-items: justify;
  justify-content: space-between;
  gap: 20px;

  padding: 100px;
  background: #f9f9f9;
}

/* IMAGE */
.about-img {
  flex: 1;
  display: flex;
  justify-content: center;

  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.about-img img {
  width: 400px;
  border-radius: 20px;
  object-fit: cover;
}

/* TEXT */
.about-text {
  flex: 1.2;
  max-width: 600px; 
   text-align: justify;
}

.about-text h1 {
  font-size: 40px;
  color: #1e88e5;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 15px;
}

.tools-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tools-container i {
  font-size: 40px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  transition: 0.3s;
}

.tools-container i:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(30,136,229,0.4);
}

/* PROJECT SECTION */
.projects {
  padding: 80px;
  background: rgba(255,255,255,0.1);
}

.projects h1 {
  text-align: center;
  font-size: 40px; 
  margin-bottom: 40px;
  color: #1e88e5;
}

.projects h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1e88e5;
}

.projects .about-text {
  text-align: center;
}

.project-title {
  text-align: center;
  margin-bottom: 40px;
}

.project-title h1 {
  color: #1e88e5;
}

/* CARD CONTAINER */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 30px 80px;
}

/* CARD */
.project-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  transition: 0.3s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  margin: 0;          /* hapus margin default */
  text-indent: 0;     /* pastikan tidak ada indent */
  text-align: left;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 10px;
}

/* IMAGE DI PROJECT */
.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.project-card h3 {
    color: #1e88e5;
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-card p {
  color: #555;
  display: block;
  text-align: justify;
  line-height: 1.6;
  text-indent: 20px;
}

/* HOVER EFFECT */
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* efek hover zoom */
.project-card:hover img {
  transform: scale(1.05);
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* CONTACT SECTION */
.contact-pro {
  margin: 80px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4c84a7, #5a5da9);
  color: white;
  position: relative;
  overflow: hidden;
}

/* TIMELINE SECTION */
.timeline {
  position: relative;
  padding: 100px 20px;
  background: #f9f9f9;
}

.timeline-title {
  text-align: center;
  background: #1e88e5;
  color: white;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 10px;
  margin: 0 auto 60px;
  display: block;
  width: fit-content;
}

/* GARIS TENGAH */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #1e88e5;
  transform: translateX(-50%);
}

/* CONTAINER */
.timeline-container {
  position: relative;
}

/* ITEM */
.timeline-item {
  width: 50%;
  padding: 20px;
  position: relative;
}

/* KIRI */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* KANAN */
.timeline-item.right {
  left: 50%;
}

/* CARD */
.timeline-item .content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* YEAR BULAT */
.timeline-year {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 3px solid #1e88e5;
  color: #1e88e5;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin: 30px 0;
  z-index: 2;
}

/* TEXT */
.journal {
  color: #1e88e5;
  font-weight: bold;
}

/* WAVE EFFECT */
.contact-pro::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 120%;
  height: 200px;
  background: rgba(161, 161, 161, 0.1);
  border-radius: 50%;

  pointer-events: auto; /* 🔥 FIX */
}

/* TITLE */
.contact-pro h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

/* BOX */
.contact-box {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* IMAGE */
.contact-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;

  pointer-events: auto;
  user-select: auto;
  -webkit-user-drag: auto;
}

/* INFO */
.contact-info {
  flex: 1;
  padding-left: 20px;
  margin-left: 10px;
}

/* ITEM */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

/* ICON */
.contact-item i {
  width: 20px;
  font-size: 16px;
}

/* HOVER */
.contact-item:hover {
  transform: translateX(5px);
  opacity: 0.85;
}

@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px;
    align-items: center;
    text-align: center;

    min-height: auto;
    gap: 20px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text h2 {
    font-size: 20px;
  }

  .hero-text h3 {
    font-size: 16px;
  }

  .hero-text p {
    max-width: 100%;
    line-height: 1.8;
  margin-bottom: 18px;
    font-size: 14px;
  }

  .hero-img {
    order: 2; /* 🔥 pindah ke paling atas */
    margin-bottom: 20px;
    width: 250px;
    height: 300px;
  }

}

@media (max-width: 768px) {

  nav {
    flex-direction: column;
    padding: 20px 30px;
  }

  .logo {
    margin-bottom: 5px;
  }

  .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu a {
    font-size: 13px;
    margin: 0 5px;
  }

}

.footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg,  #1e88e5, #57acf7);
  color: white;
}

@media (max-width: 768px) {

  .about-section {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    gap: 25px;

    align-items: center;
    justify-content: center;
  }

  .about-img {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-img img {
    width: 100%;
    max-width: 240px; /* 🔥 lebih ideal */
    height: auto;

    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }

  .about-text {
    width: 100%;
  }

  .about-text h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    padding: 0 8px;
  }

}

@media (max-width: 768px) {

  .project-container {
    grid-template-columns: 1fr; /* 🔥 1 kolom */
    padding: 20px;
  }

}

@media (max-width: 768px) {

  .social {
    bottom: 20px;
    top: auto;
    right: 15px;
  }

}

@media (max-width: 768px) {

  .floating-btn {
    bottom: 10px;
    padding: 10px 20px;
    font-size: 14px;
  }

}

@media (max-width: 768px) {
  .logo img {
    height: 30px;
  }
}

@media (max-width: 768px) {

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-year {
    left: 20px;
    transform: none;
  }

}