/* ===== VARIABEL (ubah warna di sini) ===== */
:root {
  --cyan: #0BCEC4;
  --gradient: linear-gradient(90deg, #0BCEC4, #36D3FE);
  --bg-dark: #13151A;
  --bg-section: #100A0C;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --container: min(1180px, calc(100% - 90px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: 80px; }
.cyan { color: var(--cyan); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ===== BUTTON ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 34px; border: 0; border-radius: 999px;
  background: #fff; color: #000;
  font: 600 0.85rem 'Poppins', sans-serif; cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--gradient); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 206, 196, 0.3);
}
.btn-small { padding: 6px 8px 6px 20px; font-size: 0.75rem; }
.btn-dot {
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--cyan); color: #fff; font-size: 0.5rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border 0.3s ease;
}
.navbar.scrolled {
  background: rgba(19, 21, 26, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner {
  width: var(--container); margin-inline: auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); font-size: 0.8rem; }
.nav-links a:not(.btn):hover { color: var(--cyan); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--bg-dark);
  border-radius: 0 0 48px 48px;
  overflow: hidden; isolation: isolate;
}
/* glow cyan */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 90% 75% at 25% 30%, rgba(11, 206, 196, 0.55), transparent 70%),
    radial-gradient(ellipse 80% 70% at 60% 100%, rgba(11, 206, 196, 0.35), transparent 70%),
    linear-gradient(180deg, #0a8f8a 0%, #0b5a5c 50%, #0c3a3f 100%);
  opacity: 0.85;
}
/* noise halus */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09; mix-blend-mode: overlay;
}
.hero-inner { width: var(--container); margin-inline: auto; padding: 110px 0 60px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-hi { color: var(--cyan); font-size: clamp(0.9rem, 1.3vw, 1.1rem); margin-bottom: 8px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.5rem); font-weight: 600; line-height: 1.05; }
.hero-text { max-width: 340px; }
.hero-tagline { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.5; margin-bottom: 10px; }
.hero-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.skills {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(50px, 12vh, 130px); font-size: 0.85rem; font-weight: 500;
}
.skills .cyan { display: block; font-size: 0.75rem; }

/* ===== TOOLS ===== */
.tools { background: var(--bg-dark); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.tools-inner {
  width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: center; gap: 24px;
}
.tools-label { font-size: 0.8rem; max-width: 220px; }
.tool img { height: clamp(26px, 3vw, 34px); width: auto; max-width: 100%; margin-inline: auto; }

/* ===== WRAPPER ABOUT-CONTACT ===== */
.dark-wrap { background: var(--bg-section); width: var(--container); margin-inline: auto; overflow: hidden; }

/* ===== GLOW OVAL (About, Project, Contact) ===== */
.about, .project, .contact { position: relative; overflow: hidden; isolation: isolate; }
.about::before, .project::before, .contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(45px); opacity: 0.5;
  background: radial-gradient(closest-side, rgba(11, 206, 196, 1) 0%, rgba(5, 115, 146, 0.4) 50%, rgba(13, 13, 13, 0.2) 80%, transparent 100%);
}
.about::before   { width: 60%; height: 85%; left: -30%; top: 8%; }
.project::before { width: 55%; height: 60%; right: -25%; top: -5%; }
.contact::before { width: 75%; height: 80%; left: -20%; bottom: -25%; }
.about-inner, .project-inner, .contact-inner { position: relative; z-index: 1; }

/* ===== ABOUT ===== */
.about {
  position: relative; padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 80px);
}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; max-width: 380px; margin-inline: auto; background: #222; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-hi { font-size: 0.85rem; }
.about h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.about p { font-size: 0.8rem; color: var(--muted); }
.about .btn { margin-top: 26px; }

/* ===== PROJECT ===== */
.project {
  padding: clamp(50px, 7vw, 80px) clamp(20px, 6vw, 80px);
}
.project-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-bottom: 34px; }
.project-small { font-size: 0.95rem; }
.project h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.2; }
.project-desc { font-size: clamp(0.95rem, 1.5vw, 1.15rem); font-weight: 500; line-height: 1.5; }
.project-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 0.75rem; color: var(--muted); }

.carousel-viewport { overflow: hidden; cursor: grab; touch-action: pan-y; padding-top: 12px; margin-top: -12px; }
.carousel-viewport.dragging { cursor: grabbing; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.45s ease; will-change: transform; }
.carousel-track.no-transition { transition: none; }
.slide {
  position: relative; flex: 0 0 calc((100% - 20px) / 2); aspect-ratio: 16 / 10;
  background: #222; overflow: hidden; display: block;
  transition: transform 0.3s ease;
}
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: filter 0.3s ease; }
.slide-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: #fff; font-weight: 600; font-size: clamp(0.85rem, 1.4vw, 1.1rem); white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.slide:hover, .slide:focus-visible { transform: translateY(-6px); }
.slide:hover img, .slide:focus-visible img { filter: brightness(0.65); }
.slide:hover .slide-label, .slide:focus-visible .slide-label { opacity: 1; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent; color: #fff; font-size: 1rem; cursor: pointer; transition: all 0.3s ease;
}
.arrow:hover { background: var(--gradient); border-color: transparent; }
.arrow:disabled { opacity: 0.3; cursor: default; }

/* ===== CONTACT ===== */
.contact {
  padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 80px);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.contact-card {
  max-width: 400px; width: 100%; margin-inline: auto; padding: 28px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-small { font-size: 0.75rem; font-weight: 500; }
.contact-card h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.card-sub { font-size: 0.7rem; color: var(--muted); margin-bottom: 16px; }
.contact-card label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contact-card input, .contact-card textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 10px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); color: #fff; font: 400 0.75rem 'Poppins', sans-serif; resize: none;
}
.contact-card ::placeholder { color: rgba(255, 255, 255, 0.6); }
.form-note { margin-top: 10px; font-size: 0.72rem; color: var(--cyan); min-height: 1em; }
.contact-small { font-size: 0.85rem; font-weight: 500; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 8px; }
.contact-desc { font-size: 0.8rem; color: var(--muted); max-width: 320px; margin-bottom: 26px; }
.contact-list li, .footer-contact li { margin-bottom: 14px; }
.contact-list a, .footer-contact a { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; text-decoration: underline; }
.contact-list img, .footer-contact img {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--cyan); object-fit: contain;
}

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); padding-top: 40px; }
.footer-inner {
  width: var(--container); margin-inline: auto; padding-bottom: 40px;
  display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; }
.footer-brand p:last-child { font-size: 0.72rem; color: var(--muted); max-width: 320px; }
.footer-links li { margin-bottom: 18px; font-size: 0.75rem; }
.footer-links a:hover { color: var(--cyan); }
.copyright { text-align: center; font-size: 0.7rem; color: var(--muted); padding: 14px 20px; background: #0c0b0e; }

/* ===== TABLET ===== */
@media (max-width: 900px) {
  :root { --container: calc(100% - 40px); }
  .slide { flex-basis: calc((100% - 20px) / 2); }
  .project-head, .contact-inner { grid-template-columns: 1fr; }
  .tools-inner { grid-template-columns: repeat(3, 1fr); }
  .tools-label { grid-column: 1 / -1; max-width: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 20px; padding: 24px;
    background: rgba(19, 21, 26, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: 0.3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .hero { border-radius: 0 0 32px 32px; }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .skills { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .slide { flex-basis: 100%; }
  .project-cta { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
