:root {
  --bg-color: #000000;
  --card-color: #13151a;
  --card-border: #22252d;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --btn-primary: #f97316;
  --btn-secondary: #f59e0b;
  --oranye: #ea580c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

header {
  top: 0;
  left: 0;
  width: 100%;
  position: fixed;
  z-index: 1000;
}

/* ===== NAVBAR CONTAINER====== */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(15px);
  background: rgba(19, 21, 26, 0.6);
  width: 100%;
  max-width: 1140px;
  border-radius: 15px;
  margin: 1.5rem auto;
  padding: 8px 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.logo span {
  color: var(--oranye);
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  z-index: 1;
  padding: 10px;
  gap: 24px;
  position: relative;
  margin: 0;
}

.nav-menu ul li {
  width: 110px;
  text-align: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
}

.nav-menu ul li.active a {
  color: var(--text-main);
}

.liquid {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 120px;
  border-radius: 100vh;
  pointer-events: none;
  background: linear-gradient(120deg, var(--btn-primary));
  box-shadow:
    0 10px 25px -5px rgba(249, 115, 22, 0.3),
    0 10px 10px -6px rgba(249, 115, 22, 0.3);
  transform: translateX(calc(var(--active-index, 0) * (110px + 24px)));
  transition:
    transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    filter 0.3s ease;
}

.header-btn {
  display: flex;
  align-items: center;
}

.header-btn a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--text-main);
}

.header-btn a img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.header-btn a:hover {
  border: 1px solid var(--btn-primary);
  transform: translateY(-4px);
  box-shadow:
    0 10px 25px -5px rgba(249, 115, 22, 0.3),
    0 10px 10px -6px rgba(249, 115, 22, 0.3);
  background: linear-gradient(90deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================================
   HOME / BERANDA
   ========================================= */

#home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #0a0a0a;
  overflow: hidden;
}

.home-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
  grid-template-areas:
    "hero side"
    "highlights highlights";
  column-gap: 70px;
  align-items: center;
  width: 100%;
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 120px 60px 32px;
  box-sizing: border-box;
}
/* =========================================
   BACKGROUND FOTO DAN GRADIENT
   ========================================= */
.home-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 18%;
  transform: scale(1.08);
  transform-origin: center;
  z-index: 0;
}
/* Gradient berada di atas foto, tetapi di bawah teks */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.92) 25%,
      rgba(10, 10, 10, 0.65) 43%,
      rgba(10, 10, 10, 0.08) 75%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.75) 12%,
      transparent 42%
    );
  pointer-events: none;
}

/* =========================================
   KONTEN UTAMA
   ========================================= */
.home-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  left: auto;
  top: auto;
  transform: none;
  padding: 0;
  pointer-events: auto;
}

.home-content h1 {
  color: var(--text-main);
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
}

.home-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 18px 0 24px;
}

/* =========================================
   TOMBOL DAN SOSIAL MEDIA
   ========================================= */

.home-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.home-content .btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.home-content .btn:hover {
  background-color: var(--oranye);
  border-color: var(--oranye);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.3);
}

.git-icon,
.ig-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.git-icon:hover,
.ig-icon:hover {
  color: var(--oranye);
  transform: translateY(-4px);
}

.git-icon svg,
.ig-icon svg {
  width: 25px;
  height: 25px;
}

/* =========================================
   PENDEKATAN SAYA
   ========================================= */
.home-side-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  grid-area: side;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.side-label {
  color: var(--oranye);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.home-side-content h2 {
  color: var(--text-main);
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 12px 0 14px;
}

.home-side-content h2 span {
  color: var(--btn-primary);
}

.home-side-content > p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
}

.approach-item > span {
  color: var(--btn-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding-top: 3px;
}

.approach-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.approach-item p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   HIGHLIGHTS
   ========================================= */

.home-highlights {
  position: relative;
  z-index: 3;
  grid-area: highlights;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(160deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-item span {
  font-size: 0.8rem;
  font-weight: 600;
}

.highlight-item p {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}

/* ======== ABOUT ======== */

#about {
  padding: 100px 0;
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--card-border);
}

.about-container {
  width: 90%;
  max-width: 85%;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  grid-column: 1 / -1;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1rem 0;
}

.about-content p {
  color: var(--text-main);
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.about-grid {
  grid-column: 1 / -1; /* shorthand kanan dan kiri*/
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* DESAIN CARD */

.about-card {
  border: 2px solid var(--card-border);
  border-radius: 16px;
  align-items: center;
  padding: 1.8rem 1.5rem;
  text-align: center;
  flex-direction: column;
  align-items: center;
  background-color: rgba(19, 21, 26, 0.3);
  backdrop-filter: blur(15px);
}

.about-card:hover {
  border: 2px solid var(--btn-primary);
  transform: 0 -10px;
}

.about-card .remix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border: 2px solid var(--btn-primary);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  transition: 0.3s all ease;
}

.about-card .remix-icon svg {
  font-size: 1.8rem;
  color: var(--btn-primary);
  display: inline-block;
  transition: transform 0.3s ease;
}

.about-card:hover .remix-icon {
  transform: rotate(45deg);
}

.about-card:hover .remix-icon svg {
  transform: rotate(-45deg);
}

.about-card h4 {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card > p {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  margin: 0 !important;
  text-align: center !important;
}

/* home higlights */

.home-highlights {
  grid-area: highlights;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  position: relative;
  z-index: 3;
  padding: 32px 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(160deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-item span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.highlight-item p {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* EDUCATION */
#education {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px;
  border-top: 1px solid var(--card-border);
}

.education-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.education-container h2 {
  font-size: 2.8rem;
  background: linear-gradient(80deg, var(--text-main), var(--oranye));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
}

/* GARIS VERTIKAL */

.education-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--card-border);
}

/* MEMBAGI KARTU ZIG-ZAG */
.education-card {
  position: relative;
  width: 45%;
  border: 2px solid var(--card-border);
  background-color: rgba(19, 21, 26, 0.3);
  backdrop-filter: blur(15px);
  padding: 1.8rem 2rem;
  border-radius: 16px;

  translate: 0 0;
  transition:
    translate 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.6s ease,
    box-shadow 0.6s ease,
    background-color 0.6s ease;
}

.education-card:hover {
  border-color: var(--btn-primary);
  background-color: rgba(249, 115, 22, 0.05);
  translate: 0 -7px;
  box-shadow:
    0 10px 25px -5px rgba(249, 115, 22, 0.3),
    0 10px 10px -36px rgba(249, 115, 22, 0.3);
}

.education-card:nth-child(odd) {
  margin-left: auto;
}

.education-card:nth-child(even) {
  margin-right: auto;
}

.education-card::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 1px solid var(--btn-primary);

  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.education-card:hover::before {
  background-color: var(--btn-primary);
  box-shadow: 0 0 12px var(--btn-primary);
  border: 2px solid rgba(19, 21, 26, 0.3);
  backdrop-filter: blur(15px);
}

.education-card:nth-child(odd)::before {
  left: calc(-11.11% - 3px);
}

.education-card:nth-child(even)::before {
  right: calc(-11.11% - 3px);
}

/* ==== KEAHLIAN ====*/
#skills {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px;
}

.skill-container {
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
}

.skill-container h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.skill-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-box {
  backdrop-filter: blur(15px);
  background-color: rgba(19, 21, 26, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition: 0.3s all ease;
}

.skill-box:hover {
  border: 2px solid var(--btn-primary);
  transform: translateY(-10px);
}

.skill-icon {
  width: 55px;
  height: 55px;
  border: 2px solid var(--btn-primary);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}

.skill-icon svg {
  font-size: 1.8rem;
  color: var(--btn-primary);
  display: inline-block;
  transition: transform 0.3s ease;
}

.skill-box:hover .skill-icon {
  transform: rotate(45deg);
}

.skill-box:hover .skill-icon svg {
  transform: rotate(-45deg);
}

.skill-box h4 {
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.skill-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* PORTFOLIO */
#portfolio {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px;
}

.portfolio-container {
  width: 90%;
  max-width: 1250px;
  margin: 0 auto;
}

.portfolio-container h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  transition: 0.3s all ease;
}

.portfolio-card:hover {
  border-color: var(--btn-primary);
}

.portfolio-image {
  width: 100%;
  height: 240px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: 0.5s ease all;
}
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-info h4 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.portfolio-info a {
  display: inline-block;
  text-decoration: none;
  background-color: var(--btn-primary);
  color: var(--text-main);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(19, 21, 26, 0.5) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* CANVA SLIDER IMAGE */

/* ===== CANVA AUTO SLIDER ===== */

.canva-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f1f1f1;
  border-radius: inherit;
}

.canva-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

.canva-slide.active {
  transform: translateX(0);
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}

.slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.slider-dots span.active {
  width: 20px;
  background-color: var(--btn-primary);
}

.portfolio-card:hover .canva-slide {
  transform: none;
}

/* KONTAK */
#contact {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px;
  border-top: 1px solid var(--card-border);
}

.contact-container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-container h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  align-items: stretch;
  background-color: rgba(19, 21, 26, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(15px);
  background-color: rgba(19, 21, 26, 0.3);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  border-color: var(--btn-primary);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px -5px rgba(249, 115, 22, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border: 2px solid var(--btn-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.contact-icon svg {
  font-size: 1.5rem;
  color: var(--btn-primary);
}

.contact-card:hover .contact-icon {
  background-color: var(--btn-primary);
}

.contact-card:hover .contact-icon svg {
  color: var(--text-main);
}

.contact-card h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.google-maps {
  border: 2px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 350px;
  transition: 0.3s all;
}

.google-maps:hover {
  border-color: var(--btn-primary);
  box-shadow: 0 20px 30px -5px rgba(249, 115, 22, 0.25);
  transform: translateY(-6px);
}

.google-maps iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg) contrast(105%);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.google-maps:hover iframe {
  opacity: 1;
}

/* FOOTER */
footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--card-border);
  padding: 40px 20px;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-socials a {
  text-decoration: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background-color: rgba(19, 21, 26, 0.5);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--btn-primary);
  color: var(--btn-primary);
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.25);
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* scroll effect */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    translate 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.about-card.reveal.show:hover {
  transform: translateY(-10px);
}

.skill-box.reveal.show:hover {
  transform: translateY(-10px);
}

.contact-card.reveal.show:hover {
  transform: translateY(-10px);
}

.google-maps.reveal.show:hover {
  transform: translateY(-10px);
}

.portfolio-card.reveal.show:hover {
  transform: translateY(-8px);
}

section {
  position: relative;
  border-top: none !important;
}

section:not(#home):not(#about):not(#education)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--card-border) 25%,
    var(--btn-primary) 50%,
    var(--card-border) 75%,
    transparent 100%
  );
}

/* =========================================
   DESKTOP
   ========================================= */

@media (min-width: 1024px) {
  .home-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
    column-gap: 80px;
    grid-template-areas:
      "hero side empty"
      "highlights highlights highlights";
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0 auto;
    padding: 120px 36px 32px;
    box-sizing: border-box;
  }

  .home-hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .home-content {
    position: absolute;
    z-index: 2;
    left: 60px;
    top: 44%;
    transform: translateY(-50%);
    width: 360px;
    max-width: 360px;
    padding: 0;
    pointer-events: auto;
  }

  .home-side-content {
    grid-area: side;
    max-width: 350px;
    margin-top: 0;
  }

  .home-highlights {
    grid-area: highlights;
    align-self: end;
  }
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  align-items: stretch;
  background-color: rgba(19, 21, 26, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   RESPONSIVE KHUSUS TABLET (768px - 1023px)
   ========================================= */

/* =========================================
   HOME TABLET - REDESIGN
   ========================================= */

@media (min-width: 768px) and (max-width: 1023px) {
  /* CONTAINER */
  .home-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0;
    padding: 120px 48px 32px;
    gap: 0;
    box-sizing: border-box;
  }

  /* =====================================
     HERO / BACKGROUND FOTO
     ===================================== */

  .home-hero {
    position: relative;
    inset: auto;
    width: calc(100% + 96px);
    height: calc(100vh - 120px);
    min-height: 620px;
    margin-left: -48px;
    padding: 0;
    display: block;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 18%;
    transform: scale(1.04);
    z-index: 0;
  }

  /* GRADIENT KEMBALI DI ATAS FOTO */
  .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(
        to right,
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.9) 25%,
        rgba(10, 10, 10, 0.6) 48%,
        rgba(10, 10, 10, 0.12) 78%,
        transparent 100%
      ),
      linear-gradient(
        to top,
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.65) 14%,
        transparent 48%
      );
    pointer-events: none;
  }

  /* =====================================
     TEKS SAPAAN
     ===================================== */

  .home-content {
    position: absolute;
    z-index: 2;
    left: 48px;
    top: 75%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 800px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .home-content h1 {
    font-size: 3.7rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin: 0;
  }

  .home-content h1 span {
    font-size: 5rem;
  }

  .home-content p {
    max-width: 600px;
    font-size: 2rem;
    line-height: 1.7;
    margin: 18px 0 28px;
  }

  /* =====================================
     CTA DAN SOSIAL MEDIA
     ===================================== */

  .home-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: fit-content;
    gap: 20px;
    margin-top: 28px;
  }

  .home-content .btn {
    padding: 14px 28px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .git-icon,
  .ig-icon {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  /* =====================================
     PENDEKATAN SAYA
     ===================================== */

  .home-side-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 740px;
    align-self: center;
    margin: 0 auto;
    padding: 76px 0 64px;
    box-sizing: border-box;
  }

  .home-side-content h2 {
    font-size: 2.3rem;
    line-height: 1.25;
  }

  .home-side-content > p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 28px;
  }

  .approach-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .approach-item {
    gap: 18px;
    padding-bottom: 18px;
  }

  .approach-item > span {
    font-size: 1.1rem;
  }

  .approach-item h3 {
    font-size: 1.2rem;
  }

  .approach-item p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* =====================================
     HIGHLIGHTS
     ===================================== */

  .home-highlights {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 20px;
    margin: 0;
    padding: 32px 0;
    box-sizing: border-box;
  }

  .highlight-item p {
    font-size: 0.95rem;
  }
}

/* CTA NAVBAR TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-btn .contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    height: 42px;
    padding: 0 18px;
    gap: 9px;

    white-space: nowrap;
    z-index: 1002;
  }

  .header-btn .contact-btn span {
    display: inline;
  }

  .header-btn .contact-btn img {
    width: 17px;
    height: 17px;
    margin: 0;
  }
}

/* TAMPILKAN TEKS CTA NAVBAR TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-btn .contact-btn span {
    display: inline !important;
    visibility: visible;
    opacity: 1;
  }

  .header-btn .contact-btn {
    min-width: 145px;
    gap: 9px;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  /* NAVBAR */
  .nav-container {
    width: 92%;
    padding: 12px 20px;
  }

  .hamburger {
    display: flex;
    align-items: center;
  }

  .header-btn a.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .header-btn .contact-btn span {
    display: none;
  }

  .header-btn .contact-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(19, 21, 26, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 0 25px;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: left;
  }

  .nav-menu a {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .nav-menu ul li.active a {
    background-color: var(--btn-primary);
    color: var(--text-main);
  }

  .liquid {
    display: none;
  }

  /* HOME */
  .hero-photo {
    object-position: center top;
  }

  .home-content {
    max-width: 740px;
    padding: 0 36px 48px;
  }

  .home-content h1 {
    font-size: 2.7rem;
    line-height: 1.15;
  }

  .home-content p {
    max-width: 600px;
    margin: 12px 0 20px;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .home-side-content {
    width: 100%;
    padding: 64px 36px 56px;
  }

  .home-side-content h2 {
    font-size: 2.1rem;
  }

  .approach-item > span,
  .approach-item h3 {
    font-size: 1.15rem;
  }

  .approach-item p {
    font-size: 0.95rem;
  }

  .home-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 36px;
  }

  .highlight-item p {
    font-size: 0.9rem;
  }

  .home-content .btn {
    padding: 13px 24px;
    font-size: 0.95rem;
  }

  .git-icon,
  .ig-icon {
    width: 42px;
    height: 42px;
    margin-left: 0;
  }
}

/* ===== ABOUT TABLET ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-container {
    width: 90%;
    max-width: 100%;
  }

  .about-content h2 {
    font-size: 2.3rem;
  }

  .about-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-content p {
    padding: 0 36px;
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ===== ABOUT TABLET ===== */
  @media (min-width: 768px) and (max-width: 1023px) {
    .about-container {
      width: 90%;
      max-width: 100%;
    }

    .about-content h2 {
      font-size: 2.3rem;
    }

    .about-content {
      grid-template-columns: minmax(0, 1fr);
    }

    .about-content p {
      padding: 0 36px;
      font-size: 1.05rem;
      line-height: 1.7;
    }

    .about-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* RAPATKAN JARAK ANTAR SECTION */
    #about {
      min-height: auto;
      padding: 70px 0 60px;
    }

    #education {
      min-height: auto;
      padding: 70px 20px;
    }
  }

  /* PORTOFOLIO TABLET */
  .port-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  /* CONTACT TABLET */
  #contact {
    min-height: auto;
    padding: 65px 20px 50px;
  }

  .contact-subtitle {
    margin-bottom: 30px;
  }

  .contact-wrapper {
    padding: 22px;
    gap: 20px;
  }

  .google-maps {
    min-height: 300px;
  }

  /* FOOTER TABLET */
  footer {
    padding: 25px 20px;
  }

  .footer-container {
    gap: 14px;
  }
}

/* =========================================
   HAMBURGER & ICON DASAR
   ========================================= */

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1002;
}

.hamburger:hover {
  color: var(--btn-primary);
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

.hamburger .icon-close {
  display: none;
}

.hamburger.active .icon-close {
  display: inline-block;
}

.hamburger.active .icon-bars {
  display: none;
}

/* Hamburger untuk layar tablet dan HP */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
}

/* =========================================
   RESPONSIVE KHUSUS MOBILE (MAX 767px)
   ========================================= */

@media (max-width: 767px) {
  /* -----------------------------------------
     1. NAVBAR
     ----------------------------------------- */

  header {
    width: 100%;
    padding: 0 10px;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    margin: 10px auto;
    padding: 9px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .header-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    pointer-events: none;
    z-index: 1002;
  }

  /* Tombol telepon tepat di tengah navbar */
  .header-btn .contact-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    pointer-events: auto;
    border-radius: 9px;
  }

  .header-btn .contact-btn span {
    display: none;
  }

  .header-btn .contact-btn img {
    width: 16px;
    height: 16px;
    margin: 0;
    filter: brightness(0) invert(1);
  }

  /* Hamburger tetap di kanan */
  .hamburger {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    pointer-events: auto;
    z-index: 1003;
  }

  .hamburger .icon {
    width: 23px;
    height: 23px;
  }

  /* MENU MOBILE */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(78%, 320px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: rgba(19, 21, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: right 0.35s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    padding: 0 22px;
    margin: 0;
  }

  .nav-menu ul li {
    width: 100%;
    text-align: left;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-menu ul li.active a {
    background: var(--btn-primary);
    color: var(--text-main);
  }

  .nav-menu .liquid {
    display: none;
  }

  /* -----------------------------------------
     2. HOME / BERANDA
     ----------------------------------------- */

  #home {
    min-height: auto;
    overflow: hidden;
  }

  .home-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .home-hero {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 680px;
    min-height: 620px;
    margin: 0;
    overflow: hidden;
    justify-content: initial;
  }

  .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 10%;
    transform: none;
  }

  .home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
    /* Glow oranye lembut di sekitar wajah */
      radial-gradient(
        ellipse at 62% 28%,
        rgba(255, 130, 35, 0.13) 0%,
        rgba(255, 130, 35, 0.06) 22%,
        transparent 48%
      ),
      /* Gradasi gelap di pinggiran foto */
        radial-gradient(
          ellipse at 62% 28%,
          transparent 20%,
          rgba(0, 0, 0, 0.18) 55%,
          rgba(0, 0, 0, 0.72) 100%
        ),
      /* Gradasi bawah untuk teks */
        linear-gradient(
          to top,
          #0a0a0a 0%,
          rgba(10, 10, 10, 0.9) 18%,
          rgba(10, 10, 10, 0.35) 48%,
          transparent 75%
        );
  }

  .home-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    z-index: 2;
  }

  .home-content h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .home-content p {
    max-width: 500px;
    margin: 14px 0 20px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .home-content .btn {
    padding: 11px 18px;
    font-size: 0.85rem;
  }

  .git-icon,
  .ig-icon {
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .git-icon svg,
  .ig-icon svg {
    width: 22px;
    height: 22px;
  }

  /* PENDEKATAN SAYA */
  .home-side-content {
    position: relative;
    width: 100%;
    max-width: none;
    margin-top: 3.5rem;
    padding: 48px 20px 35px;
    align-self: stretch;
  }

  .home-side-content h2 {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .home-side-content > p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .approach-list {
    gap: 16px;
  }

  .approach-item {
    gap: 13px;
    padding-bottom: 14px;
  }

  .approach-item h3 {
    font-size: 0.95rem;
  }

  .approach-item p {
    font-size: 0.82rem;
  }

  /* HIGHLIGHTS */
  .home-highlights {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 20px 14px;
    margin: 0;
    padding: 25px 20px 35px;
  }

  .highlight-item {
    min-width: 0;
    white-space: normal;
  }

  .highlight-item span {
    font-size: 0.75rem;
  }

  .highlight-item p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* -----------------------------------------
     3. ABOUT
     ----------------------------------------- */

  #about {
    min-height: auto;
    padding: 65px 0 55px;
  }

  .about-container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* -----------------------------------------
     4. PENDIDIKAN
     ----------------------------------------- */

  #education {
    min-height: auto;
    padding: 65px 15px 55px;
  }

  .education-container {
    width: 100%;
    max-width: 100%;
  }

  .education-container h2 {
    font-size: 2rem;
  }

  .education-grid {
    position: relative;
    padding-left: 28px;
  }

  .education-grid::before {
    left: 8px;
    transform: none;
  }

  .education-card {
    position: relative;
    width: 100%;
    margin: 0 0 20px 0 !important;
    padding: 1.2rem;
  }

  .education-card:nth-child(odd)::before,
  .education-card:nth-child(even)::before {
    left: -25px;
    right: auto;
    width: 10px;
    height: 10px;
  }

  /* -----------------------------------------
     5. KEAHLIAN
     ----------------------------------------- */

  #skills {
    min-height: auto;
    padding: 65px 0 55px;
  }

  .skill-container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }

  .skill-container h2 {
    font-size: 2rem;
  }

  .skill-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* -----------------------------------------
     6. PORTOFOLIO
     ----------------------------------------- */

  #portfolio {
    min-height: auto;
    padding: 65px 0 55px;
  }

  .portfolio-container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }

  .portfolio-container h2 {
    font-size: 2rem;
  }

  .port-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  /* -----------------------------------------
     7. CONTACT
     ----------------------------------------- */

  #contact {
    min-height: auto;
    display: block;
    padding: 65px 0 50px;
  }

  .contact-container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-container h2 {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin: 0 auto 28px;
  }

  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 16px;
    gap: 18px;
    border-radius: 18px;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .contact-card {
    padding: 1.4rem 1rem;
  }

  .google-maps {
    width: 100%;
    min-height: 250px;
  }

  /* -----------------------------------------
     8. FOOTER
     ----------------------------------------- */

  footer {
    padding: 25px 18px;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* =========================================
   MOBILE KECIL (MAX 380px)
   ========================================= */

@media (max-width: 380px) {
  .nav-container {
    padding: 8px 10px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .header-btn {
    gap: 7px;
  }

  .header-btn a.contact-btn,
  .hamburger {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }

  .home-hero {
    height: 640px;
    min-height: 600px;
  }

  .home-content {
    padding: 0 16px;
  }

  .home-content h1 {
    font-size: 1.9rem;
  }

  .home-content p {
    font-size: 0.85rem;
  }

  .home-side-content {
    padding: 40px 16px 30px;
  }

  .home-highlights {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-wrapper {
    padding: 12px;
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
    margin-left: 0;
    font-size: 1.5rem;
  }
}

/* ===== HOVER CTA TELEPON MOBILE ===== */
@media (max-width: 767px) {

  .header-btn .contact-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    transition:
      background 0.3s ease,
      border-color 0.3s ease,
      box-shadow 0.3s ease,
      transform 0.3s ease;
  }

  .header-btn .contact-btn:hover {
    background: var(--btn-primary);
    border-color: var(--btn-primary);

    /* Tetap berada di tengah navbar */
    transform: translateX(-50%) translateY(-2px);

    box-shadow:
      0 0 12px rgba(249, 115, 22, 0.4),
      0 0 25px rgba(249, 115, 22, 0.2);

    -webkit-text-fill-color: initial;
    -webkit-background-clip: border-box;
  }

  .header-btn .contact-btn:hover img {
    filter: brightness(0) invert(1);
  }

  .header-btn .contact-btn:active {
    transform: translateX(-50%) scale(0.94);
  }

  .header-btn .contact-btn:focus-visible {
    outline: 2px solid var(--btn-primary);
    outline-offset: 4px;
  }
}