* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #07131d;
  color: white;
  line-height: 1.6;
}

.white-text {
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.blue-text {
  color: #16c8ff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.logo h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

header {
  background: rgba(6, 19, 29, 0.35);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 0.3s;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(5, 16, 26, 0.85);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  transition: 0.3s;
}

nav a.active {
  color: #16c8ff;
  border-bottom: 2px solid #16c8ff;
  padding-bottom: 4px;
  text-shadow: 0 0 10px rgba(22, 200, 255, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 60px;
}

.logo h1 {
  font-size: 36px;
  color: #16c8ff;
}

.logo p {
  font-size: 12px;
  letter-spacing: 6px;
  color: #ccc;
  margin-top: -1px 0 0 0;
  line-height: 1;
}

.logo:hover {
  transform: scale(1.03);
  transition: 0.2s;
}

html {
  scroll-behavior: smooth;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 14px;
  font-size: 15px;
}

.btn-talk {
  background: #1aa8ff;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-talk:hover {
  transform: translateY(-2px);
  transition: 0.3s;
}

/* BASE (hidden dulu) */
.hero-title,
.hero-desc,
.hero-buttons,
.hero-features div,
.hero-image {
  opacity: 0;
}

/* TITLE */
.hero-title {
  transform: translateX(-40px);
}

/* DESC */
.hero-desc {
  transform: translateY(20px);
}

/* BUTTON */
.hero-buttons {
  transform: translateY(20px);
}

/* FEATURE BOX */
.hero-features div {
  transform: translateY(30px) scale(0.95);
}

/* IMAGE */
.hero-image {
  transform: translateX(50px) scale(0.95);
}

/* SHOW STATE */
.hero.show .hero-title {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.hero.show .hero-desc {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.2s;
}

.hero.show .hero-buttons {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.4s;
}

/* STAGGER FEATURE */
.hero.show .hero-features div:nth-child(1) {
  transition: all 0.5s ease 0.6s;
}
.hero.show .hero-features div:nth-child(2) {
  transition: all 0.5s ease 0.7s;
}
.hero.show .hero-features div:nth-child(3) {
  transition: all 0.5s ease 0.8s;
}
.hero.show .hero-features div:nth-child(4) {
  transition: all 0.5s ease 0.9s;
}

.hero.show .hero-features div {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* IMAGE MASUK */
.hero.show .hero-image {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: all 1s ease 0.3s;
}

.hero-left {
  margin-top: 20px;
}

.hero {
  background:
    linear-gradient(rgba(5, 15, 30, 0.75), rgba(5, 15, 30, 0.85)),
    url("images/server-room.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 20px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h2 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 25px;
  color: #ffffff;
}

.hero span {
  color: #16c8ff;
}

.hero p {
  font-size: 18px;
  color: #c8d3dc;
  margin-bottom: 30px;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 15px;
  font-weight: 600;
}

.hero-buttons a:hover {
  transform: translateY(-2px);
  transition: 0.3s;
}

.btn-primary {
  background: #18bfff;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

html {
  scroll-behavior: smooth;
}

.hero-features {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-features div {
  width: 115px;
  min-height: 100px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 15px;

  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-features div:hover i {
  animation-duration: 1s;
  transform: scale(1.2);
}

.hero-features i {
  font-size: 28px;
  color: #16c8ff;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  animation: breathingGlow 2.5s ease-in-out infinite;
  animation: pulse 2s infinite;
}

@keyframes breathingGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
    text-shadow: 0 0 5px rgba(22, 200, 255, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    text-shadow:
      0 0 10px rgba(22, 200, 255, 0.8),
      0 0 20px rgba(22, 200, 255, 0.5);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
    text-shadow: 0 0 5px rgba(22, 200, 255, 0.3);
  }
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 0px #16c8ff);
  }
  50% {
    filter: drop-shadow(0 0 10px #16c8ff);
  }
  100% {
    filter: drop-shadow(0 0 0px #16c8ff);
  }
}

.hero-features div:nth-child(1) i {
  animation-delay: 0s;
}
.hero-features div:nth-child(2) i {
  animation-delay: 0.3s;
}
.hero-features div:nth-child(3) i {
  animation-delay: 0.6s;
}
.hero-features div:nth-child(4) i {
  animation-delay: 0.9s;
}

.hero-features span {
  color: white;
}

.hero-right img {
  width: 100%;
  border-radius: 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(22, 200, 255, 0.1),
    transparent
  );
  pointer-events: none;
}

* {
  scroll-behavior: smooth;
}

.services h3 {
  margin-bottom: 30px; /* bisa 30–60px sesuai selera */
}

.services {
  background: rgb(255, 255, 255);
  color: black;
  font-size: 28px;
  padding: 30px 0;
  text-align: center;
  scroll-margin-top: 100px;
  overflow: hidden;
  position: relative;
}

.section-subtitle {
  color: #1aa8ff;
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  position: relative;
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  text-align: center;
  margin: 0;
  padding: 0 25px;
  border-radius: 12px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(0);
  border: 2px solid transparent;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition:
    max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.7s ease,
    opacity 0.9s ease,
    transform 0.8s ease;
  will-change: max-height;
}

.service-detail.show {
  max-height: 900px; /* penting */
  padding: 50px 50px;
  margin-top: 75px;
  margin-bottom: 25px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  border: 2px solid #16c8ff;
  box-shadow:
    0 0 10px rgba(22, 200, 255, 0.4),
    0 0 15px rgba(22, 200, 255, 0.2);
}

.service-detail p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: -10px;
}

.service-detail h4 {
  font-size: 22px;
  margin-bottom: 5px;
  margin: 8px 0 6px;
}

.service-line {
  position: absolute; /* 🔥 ini kunci utama */
  top: 100%; /* selalu dari bawah card area */
  left: 0;
  width: 2px;
  height: 50px;
  background: #16c8ff;
  transform: translateX(-50%);
  pointer-events: none;
}

.service-detail img {
  width: 100%;
  max-width: 1920px;
  max-height: 800px;
  object-fit: cover;
  border-radius: 5px;
  margin: 0 auto 12px;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(22, 200, 255, 0.3);
  opacity: 0;
  transition: all 1s ease;
}

.service-detail.show img {
  opacity: 1;
  transform: scale(1);
}

.card.active {
  border: 2px solid #16c8ff;
  background: rgba(22, 200, 255, 0.1);
  transform: translateY(-5px);
  position: relative;
}

.card.active::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  width: 2px;
  height: 70px;
  background: linear-gradient(
    to bottom,
    #16c8ff,
    rgba(22, 200, 255, 0.6),
    transparent
  );

  box-shadow: 0 0 8px #16c8ff;
  animation: dropLine 0.5s ease forwards;
}

@keyframes dropLine {
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

.card.active::after::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  background: #16c8ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #16c8ff;
}

.card {
  background: white;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 15px 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.card i {
  font-size: 34px;
  color: #16c8ff;
}

.card span {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.card:hover {
  transform: translateY(-6px);
  transition: 0.3s;
}

.projects {
  padding: 40px 0;
  scroll-margin-top: 101px;
}

.projects h3 {
  font-size: 28px;
  margin-top: -15px;
  margin-bottom: 10px;
}

.project-wrapper {
  display: block;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: right;
  width: 100%;
  justify-content: end;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.project-left {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 100%;
  margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 100px;
}

.project-card p {
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover {
  transform: translateY(-50px);
  box-shadow: 0 0 50px rgba(22, 200, 255, 0.2);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stats div,
.project-card {
  will-change: transform, opacity;
}

.about .stats {
  margin-top: 100px;
}

.about {
  position: relative;
  padding: 200px 0;
}

.about::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(circle, rgba(22, 200, 255, 0.25), transparent);
  filter: blur(50px);
  animation: glowMove 6s ease-in-out infinite;
}

.about .project-right {
  max-width: 900px;
}

.about h3 {
  margin: 20px 0 25px;
  margin-bottom: 5px;
  font-size: 30px;
}

.about p {
  margin-bottom: -10px;
  line-height: 1.6;
  font-size: 20px;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) {
  transition-delay: 0.5s;
}
.fade-up:nth-child(2) {
  transition-delay: 0.6s;
}
.fade-up:nth-child(3) {
  transition-delay: 0.7s;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 20px 60px;
  margin-top: 40px;
}

/* ITEM */
.stats > div {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s ease;
}

.stats strong {
  position: relative;
  text-shadow: 0 0 8px rgba(22, 200, 255, 0.6);
}

/* ICON FIX (INI YANG PENTING) */
.stats i {
  font-size: 40px;
  color: #09ff00;
  min-width: 28px;
  flex-shrink: 0; /* 🔥 biar gak mengecil */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: iconGlow 2s ease-in-out infinite;
}

@keyframes iconGlow {
  0% {
    filter: drop-shadow(0 0 2px #09ff00);
  }
  50% {
    filter: drop-shadow(0 0 10px #09ff00);
  }
  100% {
    filter: drop-shadow(0 0 2px #09ff00);
  }
}

/* TEXT */
.stat-content strong {
  font-size: 32px;
  color: #16c8ff;
  line-height: 1;
}

.stat-content span {
  font-size: 20px;
  color: #c8d3dc;
}

/* DIAGONAL */
.stats > div:nth-child(1) {
  margin-left: 0;
}
.stats > div:nth-child(2) {
  margin-left: 80px;
}
.stats > div:nth-child(3) {
  margin-left: 120px;
}
.stats > div:nth-child(4) {
  margin-left: 200px;
}

.stats.show > div:nth-child(1) {
  transition-delay: 0.1s;
}
.stats.show > div:nth-child(2) {
  transition-delay: 0.2s;
}
.stats.show > div:nth-child(3) {
  transition-delay: 0.3s;
}
.stats.show > div:nth-child(4) {
  transition-delay: 0.4s;
}

/* SHOW */
.stats.show > div {
  opacity: 1;
  transform: translateY(0);
}

/* HOVER (AMAN, gak ganggu animasi awal) */
.stats > div:hover {
  transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stats > div {
    margin-left: 0 !important;
  }
}

footer {
  background: #05101a;
  padding: 70px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-content > div:first-child {
  max-width: 320px;
}

footer h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-info p,
.contact-info a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-links a {
  margin: 4px 0;
  color: #b7c2cc;
  text-decoration: none;
}

.quick-links a:hover {
  color: #16c8ff;
}

.quick-links p:hover {
  color: #16c8ff;
  transition: 0.3s;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #b7c2cc;
}

.contact-info i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: #16c8ff;
}

footer p {
  color: #b7c2cc;
  margin-bottom: 10px;
}

footer {
  margin-top: -20px;
  background: #05101a;
  padding: 50px 0 30px;
  position: relative;
}

/* garis atas footer */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(to right, transparent, #16c8ff, transparent);

  opacity: 0.6;
}

footer:hover::after {
  opacity: 0.8;
  transition: 0.5s;
}

.projects {
  padding-bottom: 40px;
  position: relative;
}

.projects::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 80px;

  background: linear-gradient(to bottom, transparent, #05101a);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #aaa;

  font-size: 13px;
  letter-spacing: 1px;
}
