/* ============================= */
/* GLOBAL RESET */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;

  color: #ffffff;

  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.85)
    ),
    url("../images/3.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Hapus semua background di section agar gambar di body terlihat tembus */
section {
  background: transparent !important;
  position: relative;
  overflow: hidden;
  padding: 100px 10%;
  min-height: 100vh; /* Memastikan setiap section punya ruang cukup */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

/* HAPUS kodingan section::before dan section::after yang lama 
   karena itu yang membuat garis hitam patah-patah */
section::before,
section::after {
  content: none !important;
}

/* Tambahkan sedikit overlay gelap hanya jika teks sulit dibaca di section tertentu */
.summary-section,
.tools-section,
.services {
  background: rgba(0, 0, 0, 0.3) !important; /* Hitam transparan tipis */
  backdrop-filter: blur(4px); /* Efek kaca halus */
  border-radius: 0; /* Biar menyatu */
}

/* Perbaikan khusus teks hitam di summary agar putih (biar terbaca) */
.summary-content p {
  color: #ffffff !important;
}

/* Semua section transparan supaya menyatu */
section {
  background: transparent;
}

/* ============================= */
/* SECTION BASE */
/* ============================= */
section {
  padding: 120px 10%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  position: relative;
}

/* OPTIONAL SOFT TRANSITION BETWEEN SECTIONS */
section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: rgba(76, 48, 92, 0);
  backdrop-filter: blur(10px);
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00eaff;
}

/* ============================= */
/* GLASS SECTION STYLE */
/* ============================= */
.summary-section,
.tools-section,
.services-section,
.testimonial-section {
  background: rgba(48, 47, 47, 0);
  backdrop-filter: blur(0px);
  border-radius: 0px;
  padding: 0px;
}

/* ============================= */
/* BUTTON STYLE */
/* ============================= */
.glow-btn {
  padding: 8px 18px; /* lebih kecil dari 12px 25px */
  font-size: 1rem; /* ukuran font proporsional */
  border-radius: 50px;
  box-shadow: 0 0 15px #00eaff;
  transition: 0.3s;
}

.glow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff00ff;
}

.outline-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.outline-btn:hover {
  background: #00eaff;
  color: #000;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  section {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  color: #030303;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
strong {
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}
/* background start */
/* =============================== */
/* FINAL BACKGROUND FIX */
/* =============================== */

section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ===================================== */
/* SMOOTH BACKGROUND PER SECTION */
/* ===================================== */

section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Background Image */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/sapen.hero2.svg") center/cover no-repeat;
  opacity: 0.35;
  z-index: -2;
}

/* Smooth Fade Top & Bottom */
section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 0%,
    rgb(0, 0, 0) 15%,
    rgb(0, 0, 0) 50%,
    rgb(0, 0, 0) 85%,
    rgb(0, 0, 0) 100%
  );
  z-index: -1;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url("../images/sapen.hero2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* background start */

/* NAVBAR & LOGO ANIMATION */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  position: fixed;
  width: 100%;
  z-index: 10000;
  background: rgba(5, 78, 112, 0);
  backdrop-filter: blur(2px);
}
.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo {
  height: 45px;
  position: relative;
  z-index: 2;
  animation: logoFloat 3s ease-in-out infinite;
}
.logo-glow {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #00eaff;
  filter: blur(20px);
  border-radius: 50%;
  animation: glowPulse 2s infinite alternate;
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #2c83a58c;
}

/* SECTIONS */
section {
  padding: 100px 10%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

/* SUMMARY SECTION */
.summary-section {
  background: #00000000;
  text-align: center;
  flex-direction: column;
}
.summary-content {
  max-width: 800px;
}
.summary-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 20px;
  color: #00000000;
}

/* THUNDER EFFECT */
.thunder-wrapper {
  position: relative;
}
.thunder-wrapper img {
  width: 350px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}
.thunder-wrapper::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: linear-gradient(45deg, #00eaff, #00ff4c);
  filter: blur(25px);
  z-index: 1;
  border-radius: 30px;
  animation: thunderFlash 0.3s ease-in-out infinite alternate;
}
@keyframes thunderFlash {
  0% {
    opacity: 0.4;
    filter: blur(20px);
  }
  100% {
    opacity: 0.9;
    filter: blur(40px) brightness(1.5);
  }
}

/* hire me now star */
/* THUNDER EFFECT FIXED */
.thunder-wrapper {
  position: relative;
  padding: 60px;
  border-radius: 30px;
  z-index: 1;
}

.thunder-wrapper::after {
  content: "";
  position: absolute;
  inset: -15px;
  background: linear-gradient(45deg, #00eaff, #ff00ff, #00ff88);
  filter: blur(40px);
  z-index: -1;
  border-radius: 40px;
  animation: thunderFlash 2s ease-in-out infinite alternate;
}

@keyframes thunderFlash {
  0% {
    opacity: 0.4;
    filter: blur(30px);
  }
  100% {
    opacity: 0.9;
    filter: blur(60px) brightness(1.4);
  }
}

/* hire me now end */

/* TESTIMONIALS INFINITE SCROLL */
.testi-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}
.testi-track {
  display: flex;
  width: max-content;
  gap: 30px;
  animation: scrollLeft 25s linear infinite;
}
.testi-track:hover {
  animation-play-state: paused;
} /* Berhenti saat disentuh */

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* WORK SAMPLE GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
}

.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #0505051c;
  text-decoration: none;
  background: #000000;
  transition: 0.4s;
}

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

.work-card span {
  display: block;
  padding: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #0eb6e025, #050505);
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
}

.work-card:hover img {
  transform: scale(1.08);
}

.testi-card {
  background: #07667e;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #77b80e80;
  width: 350px;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* TYPING CURSOR */
/* Container untuk teks agar tidak bergeser */
.typing {
  position: relative;
  display: inline-block;
  color: #ffffff;
  border-right: 3px solid #00eaff; /* Kursor biru neon */
  padding-right: 5px;
  animation: blink-cursor 0.8s step-end infinite;
}

/* Animasi Kursor Berkedip Terus Menerus */
@keyframes blink-cursor {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00eaff;
  }
}
/* BUTTONS */
.buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.glow-btn {
  background: #fff;
  color: #000;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 15px #00eaff;
  transition: 0.3s;
}
.glow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff00ff;
}
.outline-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}
.outline-btn:hover {
  background: #104868;
  color: #000;
}

/* TOOLS & SERVICES star */
/* ========================= */
/* TOOLS SECTION UPGRADE */
/* ========================= */

.tools-section {
  padding: 150px 10% 100px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  width: 100%;
  margin-top: 60px;
}

/* TOOL CARD */
.tool-card {
  position: relative;
  background: #0a0a0a;
  padding: 40px 20px;
  border-radius: 25px;
  border: 1px solid #222;
  transition: 0.4s ease;
  overflow: hidden;
}

/* GLOW TANPA HENTI */
.tool-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(45deg, #00eaff, #ff00ff, #00ff88);
  filter: blur(50px);
  opacity: 0.6;
  animation: toolGlow 4s ease-in-out infinite alternate;
  z-index: 0;
}

/* Supaya isi tetap di atas glow */
.tool-card > * {
  position: relative;
  z-index: 2;
}

/* ANIMASI GLOW */
@keyframes toolGlow {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

/* GAMBAR BESAR & JELAS */
.tool-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: 0.4s ease;
}

/* TEKS */
.tool-card span {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* HOVER EFFECT */
.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px rgba(0, 234, 255, 0.4);
}

.tool-card:hover img {
  transform: scale(1.15);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
}
.service-card {
  background: #0a0a0a;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #222;
}

footer {
  padding: 30px;
  text-align: center;
  color: #122e57;
  border-top: 1px solid #111111d2;
}

@media (max-width: 768px) {
  section {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
  .buttons {
    justify-content: center;
  }
}
