@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  --icons: #ffffff;
  --line: #ffffff;
  --transition-speed: 0.4s;
  --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  font-family: "Josefin Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: #ccc;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #222;
  color: white;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#backToTop:hover {
  transform: translateY(-3px);
  background-color: #333;
  border-color: rgba(255, 255, 255, 0.3);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

body {
  background-color: #000000;
  min-height: 100vh;
}

/* ==================== iPHONE NOTIFICATION ==================== */
.ios-notif {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate3d(-50%, -120%, 0);
  z-index: 9999;
  width: 92%;
  max-width: 400px;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.ios-notif.show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.ios-notif-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
}

.ios-notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c2c2e, #3a3a3c);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ios-notif-body {
  flex: 1;
  min-width: 0;
}

.ios-notif-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.ios-notif-msg {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin: 2px 0 0 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== HEADER & NAV ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
  overflow: visible;
}

.menu-icon {
  display: none;
}

/* Logo N — NOT CHANGED per user request */
.logo {
  font-size: 45px;
  font-weight: 900;
  background: linear-gradient(to left,
      #888888,
      #ffffff,
      #222222,
      #444444,
      #666666,
      #000000,
      #888888,
      #ffffff,
      #888888,
      #ffffff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 900%;
  transition: transform 0.3s ease;
  animation: animated 10s linear infinite, fade 5s;
  text-decoration: none;
  display: inline-block;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

nav a {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  font-weight: 400;
  margin-left: 30px;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  animation: fade 5.5s;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: visible;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #fff;
  letter-spacing: 2px;
}

html {
  scroll-behavior: smooth;
}

/* ==================== KEYFRAMES ==================== */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes fade-down {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes animated {
  0% {
    background-position-x: 0%;
  }

  100% {
    background-position-x: 100%;
  }
}

@keyframes animasi {

  0%,
  10% {
    width: 0;
  }

  30% {
    width: 0;
  }

  60%,
  90% {
    width: 145px;
  }

  100% {
    width: 0;
  }
}

@keyframes subtle-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-img-enter {
  0% {
    opacity: 0;
    transform: translateY(-30%) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* ==================== HERO SECTION ==================== */
.opening {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  line-height: 1.6em;
  position: relative;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
  overflow: visible;
  font-size: 21px;
  display: flex;
  align-items: center;
}

.opening img {
  width: 320px;
  height: 320px;
  max-width: 30vw;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  right: 12vw;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.04),
    0 0 0 8px rgba(255, 255, 255, 0.02),
    0 0 60px rgba(255, 255, 255, 0.06);
  animation: hero-img-enter 1.2s var(--ease-out-back) forwards;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* Hero Content Wrapper */
.hero-content {
  position: absolute;
  left: 10vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 45%;
}

/* Decorative Accent Line */
.hero-accent {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.2));
  border-radius: 3px;
  margin-bottom: 20px;
  animation: accent-grow 1s var(--ease-out-back) 0.3s backwards;
}

@keyframes accent-grow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 50px;
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Tagline */
.hero-tagline {
  color: #777;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: fade-down 1s var(--ease-out-back) 0.4s backwards;
}

/* Code Typing Container */
.code-typing-container {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  margin-bottom: 16px;
  min-height: 28px;
  display: flex;
  align-items: center;
  animation: fade-down 1s var(--ease-out-back) 0.5s backwards;
  position: relative;
}

.code-typing {
  display: inline;
  white-space: nowrap;
}

/* Syntax Highlighting Colors + Glow */
.syn-keyword {
  color: #c678dd;
  text-shadow: 0 0 10px rgba(198, 120, 221, 0.4);
}

.syn-bracket {
  color: #e5c07b;
  text-shadow: 0 0 8px rgba(229, 192, 123, 0.3);
}

.syn-variable {
  color: #98c379;
  text-shadow: 0 0 10px rgba(152, 195, 121, 0.4);
}

.syn-function {
  color: #61afef;
  text-shadow: 0 0 10px rgba(97, 175, 239, 0.4);
}

.syn-operator {
  color: #abb2bf;
  text-shadow: 0 0 6px rgba(171, 178, 191, 0.2);
}

.syn-space {
  color: transparent;
}

/* Blinking Cursor */
.typing-cursor {
  color: #528bff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 100;
  animation: blink-cursor 0.8s step-end infinite;
  text-shadow: 0 0 8px rgba(82, 139, 255, 0.5);
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Typing Particle Effect */
.typing-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
  animation: particle-burst 0.6s ease-out forwards;
}

@keyframes particle-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0);
  }
}

.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  animation: fade-down 1s var(--ease-out-back) 0.6s backwards;
}

.hero-content h4 {
  font-size: 16px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 300;
  margin-bottom: 12px;
  animation: fade-down 1s var(--ease-out-back) 0.7s backwards;
}

/* ==================== PREMIUM SOCIAL ICONS ==================== */
.social-shortcuts {
  display: flex;
  gap: 12px;
  animation: fade-down 1s var(--ease-out-back) 1s backwards;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #666;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(5px);
}

.social-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.05);
}

.social-pill:nth-child(1) {
  animation: fade-up 0.6s var(--ease-out-back) 1.1s backwards;
}

.social-pill:nth-child(2) {
  animation: fade-up 0.6s var(--ease-out-back) 1.2s backwards;
}

.social-pill:nth-child(3) {
  animation: fade-up 0.6s var(--ease-out-back) 1.3s backwards;
}

.social-pill:nth-child(4) {
  animation: fade-up 0.6s var(--ease-out-back) 1.4s backwards;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-back), transform 0.8s var(--ease-out-back);
}

.scroll-fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

/* ==================== GLOBAL GRAYSCALE ==================== */
img:not(.opening img):not(.skill img):not(.language-logo):not(footer img):not(.menu-icon img) {
  filter: grayscale(100%);
  transition: filter 0.6s ease;
}

img:not(.opening img):not(.skill img):not(.language-logo):not(footer img):not(.menu-icon img):hover,
img.in-view:not(.opening img):not(.skill img):not(.language-logo):not(footer img):not(.menu-icon img) {
  filter: grayscale(0%);
}

/* ==================== ABOUT SECTION ==================== */
.about {
  width: 100%;
  height: 100%;
  margin-top: 80px;
  padding: 0;
  overflow: hidden;
}

.about h2 {
  width: 150px;
  position: relative;
  top: 5vh;
  left: 3.4vw;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  background-clip: text;
  -webkit-background-clip: text;
  animation: fade 1s ease-out;
}

.about h2::before {
  content: attr(data-text);
  position: absolute;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #fff;
  animation: animasi 8s linear infinite;
  filter: drop-shadow(0 0 0 100px #fff);
}

.about img {
  position: relative;
  left: 3vw;
  top: 6vh;
  width: 400px;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  animation: fade-up 1.5s var(--ease-out-back);
}

.click {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.click:hover {
  opacity: 0.7;
}

.about h1 {
  position: relative;
  left: 32vw;
  bottom: 65vh;
  font-size: 89px;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  text-decoration: none;
  background-color: transparent;
  animation: fade 2s ease-out;
}

.about #p1,
.about #p2,
.about #p3 {
  max-width: 60%;
  position: relative;
  left: 32.4vw;
  background-color: transparent;
  font-size: 21px;
  text-align: justify;
  animation: fade 2.5s ease-out;
}

.about #p1 {
  bottom: 63vh;
}

.about #p2 {
  bottom: 61.5vh;
}

.about #p3 {
  bottom: 60vh;
}

/* About Me — Fun Facts Tags */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.about-tags .tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aaa;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.about-tags .tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ==================== EDUCATION & SKILLS SECTIONS ==================== */
.education-section,
.keahlian {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Consistent Section Headers — Monochrome */
.education-section h2,
.keahlian h2 {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
}

/* Education Card — Monochrome */
.education-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 80px;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.edu-logo img {
  border-radius: 15px;
  width: 120px;
}

.edu-content h3 {
  margin: 0 0 15px 0;
  font-size: 32px;
  color: #fff;
}

.edu-role {
  font-size: 22px;
  color: #aaa;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.edu-date {
  font-size: 18px;
  color: #666;
  margin: 0 0 20px 0;
  font-style: italic;
}

.edu-desc {
  font-size: 18px;
  color: #bbb;
  line-height: 1.8;
}

.edu-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 18px;
  font-size: 14px;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.edu-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ==================== SKILLS SECTION ==================== */
.keahlian {
  text-align: center;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 80px;
}

.skill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  width: 180px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.skill svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.skill p {
  color: #888;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  transition: color 0.4s ease;
}

/* Staggered entrance for skill cards */
.skill:nth-child(1) {
  animation-delay: 0s;
}

.skill:nth-child(2) {
  animation-delay: 0.1s;
}

.skill:nth-child(3) {
  animation-delay: 0.2s;
}

.skill:nth-child(4) {
  animation-delay: 0.3s;
}

.skill:nth-child(5) {
  animation-delay: 0.4s;
}

.skill:nth-child(6) {
  animation-delay: 0.5s;
}

.skill:nth-child(7) {
  animation-delay: 0.6s;
}

.skill:hover,
.skill.in-view {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.skill:hover img,
.skill.in-view img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.skill:hover svg,
.skill.in-view svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.skill:hover p,
.skill.in-view p {
  color: #fff;
}

/* ==================== PROJECTS SECTION ==================== */
.project-section {
  width: 100%;
  text-align: center;
}

.project-heading {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 1px;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: center;
  padding: 20px;
}

.project-card {
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  width: calc(40% - 20px);
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.4s var(--ease-out-back), box-shadow 0.4s ease, border-color 0.4s ease;
  animation: fade-up 1s ease-out backwards;
}

.project-card:nth-child(2) {
  animation-delay: 0.1s;
}

.project-card:nth-child(3) {
  animation-delay: 0.2s;
}

.project-card:nth-child(4) {
  animation-delay: 0.3s;
}

.project-card:nth-child(5) {
  animation-delay: 0.4s;
}

.project-card:hover,
.project-card.in-view {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover img,
.project-card.in-view img {
  filter: grayscale(0%) !important;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card h2 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #fff;
}

.project-card p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
  padding: 0 10px;
  margin-bottom: 15px;
  text-align: center;
}

.project-card p img {
  width: 10%;
  margin-top: 10px;
  display: inline-block;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.contact-email a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email a:hover {
  color: #fff;
}

.contact h1 {
  margin-bottom: 10px;
  color: #fff;
}

.contact p {
  margin-bottom: 20px;
  color: #888;
}

.contact form {
  width: 40%;
  max-width: 500px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.contact button {
  background-color: #222;
  color: white;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  letter-spacing: 1px;
}

.contact button:hover {
  transform: translateY(-3px);
  background-color: #333;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-media {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a img {
  width: 30px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.social-icons a img:hover {
  transform: translateY(-3px);
  opacity: 1;
}

footer p {
  margin: 0;
  font-size: 14px;
  color: #555;
}


/* ==================== RESPONSIVE — 768px (Tablet & Mobile) ==================== */
@media (max-width: 768px) {

  /* --- Menu Icon --- */
  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
  }

  .menu-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    filter: brightness(1);
  }

  .menu-icon:hover img {
    transform: scale(1.1);
    opacity: 0.8;
  }

  /* --- Sidebar Nav --- */
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav a {
    display: block;
    margin: 0;
    padding: 20px 40px;
    font-size: 20px;
    color: #777;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
  }

  nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
  }

  nav a:hover::after {
    width: 60%;
  }

  nav.active a {
    opacity: 1;
    transform: translateX(0);
  }

  nav.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.active a:nth-child(2) {
    transition-delay: 0.2s;
  }

  nav.active a:nth-child(3) {
    transition-delay: 0.3s;
  }

  nav.active a:nth-child(4) {
    transition-delay: 0.4s;
  }

  nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
  }

  /* --- Hero Section (Stacked — Premium Mobile) --- */
  .opening {
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px 40px;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  }

  .opening img {
    width: 200px;
    height: 200px;
    max-width: 55vw;
    position: static;
    margin: 0 0 15px 0;
    transform: none;
    left: auto;
    top: auto;
    object-fit: cover;
    padding: 0;
    border-radius: 50%;
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.06),
      0 0 0 8px rgba(255, 255, 255, 0.03),
      0 15px 50px rgba(0, 0, 0, 0.7),
      0 0 80px rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: fade-up 1s ease backwards;
  }

  .hero-content {
    position: static;
    transform: none;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .hero-accent {
    width: 40px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
  }

  .hero-tagline {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    color: #777;
    text-transform: uppercase;
    animation-delay: 0.1s;
  }

  .code-typing-container {
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 22px;
  }

  .hero-content h2 {
    font-size: 34px;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
    animation-delay: 0.2s;
  }

  .hero-content h4 {
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 12px;
    color: #888;
    animation-delay: 0.3s;
  }

  /* --- Social Icons (Premium Mobile) --- */
  .social-shortcuts {
    justify-content: center;
    gap: 10px;
  }

  .social-pill {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-shortcuts a:hover {
    color: #fff;
  }

  /* --- About Section (Responsive — Premium Mobile) --- */
  .about {
    margin-top: 20px !important;
    padding: 30px 20px !important;
    overflow: hidden !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .about h2 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    font-size: 24px !important;
    text-align: center !important;
    width: auto !important;
    margin: 0 auto 20px !important;
    color: #fff !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #fff !important;
    animation: fadeSlideUp 1s ease forwards !important;
    letter-spacing: 1px !important;
  }

  .about h2::before {
    display: none !important;
  }

  .about img {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 70% !important;
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 25px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.03) !important;
  }

  .about h1 {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    font-size: 28px !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    width: 100% !important;
  }

  .about h1::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    margin: 12px auto 20px !important;
    border-radius: 2px !important;
  }

  .about #p1,
  .about #p2,
  .about #p3 {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
    text-align: left !important;
    line-height: 1.7 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 15px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    color: #aaa !important;
  }

  .about #p1 {
    bottom: auto !important;
  }

  .about #p2 {
    bottom: auto !important;
  }

  .about #p3 {
    bottom: auto !important;
  }

  .about-tags {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 15px !important;
    justify-content: center !important;
  }

  .about-tags .tag {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }

  /* --- Skills SVG Mobile --- */
  .skill svg {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }

  /* --- Education Section (Responsive) --- */
  .education-section {
    width: 100%;
    padding: 0 15px;
    margin-top: 60px;
  }

  .keahlian {
    width: 100%;
    padding: 0 15px;
    margin-top: 60px;
  }

  /* --- Project Card 1-by-1 Slider (Mobile/Tablet) --- */
  .project-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px 16px;
    overflow: hidden;
  }

  .project-card {
    grid-column: 1;
    grid-row: 1;
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.5),
      0 2px 8px rgba(0, 0, 0, 0.2),
      inset 0 0.5px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px) scale(0.97);
    transition: transform 0.55s cubic-bezier(0.22, 1.2, 0.36, 1),
      opacity 0.35s ease;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
  }

  .project-card img,
  .project-card a {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  .project-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    z-index: 2;
  }

  .project-card.slide-out {
    opacity: 0;
    transform: translateX(-40px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.8, 0.4),
      opacity 0.3s ease;
    z-index: 1;
  }

  .project-card img:first-child,
  .project-card a img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .project-card h2 {
    font-size: 18px;
    margin: 8px 0;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .project-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .project-card .language-logo {
    width: 24px !important;
    height: 24px !important;
    margin: 8px 3px 0;
    vertical-align: middle;
    display: inline-block;
  }

  /* Visit Website Button */
  .visit-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .visit-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  /* Carousel Dot Indicators */
  .stack-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
  }

  .stack-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
  }

  .stack-dot.active {
    width: 20px;
    background: rgba(255, 255, 255, 0.85);
  }

  /* Swipe Hint */
  .swipe-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    margin-top: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
  }

  .contact {
    margin-top: 60px;
  }

  .education-section h2,
  .keahlian h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .education-item {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    gap: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .edu-logo img {
    width: 70px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
  }

  .edu-content h3 {
    font-size: 20px;
  }

  .edu-desc {
    font-size: 14px;
  }

  .edu-link {
    font-size: 12px;
  }

  /* --- Skills (Responsive) --- */
  .skills {
    gap: 15px;
    margin-bottom: 20px;
  }

  .skill {
    width: 100px;
    height: auto;
    padding: 20px 15px;
    border-radius: 16px;
  }

  .skill img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .skill p {
    font-size: 11px;
  }

  /* --- Project Cards (Responsive) --- */
  .project-container {
    gap: 30px;
    padding: 20px;
  }

  .project-heading {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .project-card {
    width: 100%;
    max-width: 400px;
  }

  .project-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
    padding: 0 10px;
    margin-bottom: 15px;
    text-align: center;
  }

  .project-card p img {
    width: 10%;
    margin-top: 10px;
    display: inline-block;
  }

  /* --- Contact (Responsive) --- */
  .contact {
    margin-top: 3rem;
    width: 100%;
    height: auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
  }

  .contact form {
    width: 90%;
    max-width: 100%;
  }

  .contact h1 {
    margin-bottom: 10px;
  }

  .contact p {
    margin-bottom: 20px;
  }

  .contact form {
    padding: 20px;
    border-radius: 8px;
  }

  .contact input,
  .contact textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .contact button {
    background-color: #222;
    color: white;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
  }

  /* --- Footer (Responsive) --- */
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .social-media {
    margin-bottom: 10px;
  }

  .social-icons {
    display: flex;
    gap: 15px;
  }

  .social-icons a img {
    width: 30px;
    height: auto;
  }

  footer p {
    margin: 0;
    font-size: 14px;
    color: #555;
  }

  /* ==================== RESPONSIVE — 475px (Phone) ==================== */
  @media (max-width: 475px) {
    header {
      padding: 15px 15px;
    }

    .logo {
      font-size: 36px;
    }

    .project-container {
      max-width: 100%;
      padding: 0 10px;
    }

    .project-card {
      border-radius: 14px;
      padding: 12px;
    }

    .opening img {
      width: 220px;
      height: 220px;
      margin-bottom: 15px;
    }

    .opening h2 {
      font-size: 30px;
      margin: 10px 0 5px;
    }

    .opening h4 {
      font-size: 13px;
      margin-bottom: 15px;
      letter-spacing: 2px;
    }

    .hero-tagline {
      font-size: 11px;
    }

    .code-typing-container {
      font-size: 12px;
    }

    .project-card img {
      width: 100%;
      height: auto;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .project-card h2 {
      font-size: 18px;
      margin: 10px 0 5px;
    }

    .project-card p {
      font-size: 12px;
      line-height: 1.5;
    }

    .social-icons img {
      width: 35px;
      margin-bottom: 10px;
    }

    .contact form {
      width: 95%;
    }

    .contact h1 {
      font-size: 24px;
    }

    .contact p {
      font-size: 14px;
    }

    .contact form {
      padding: 15px;
    }

    .contact input,
    .contact textarea {
      padding: 8px;
    }

    .contact button[type="submit"] {
      padding: 8px;
      font-size: 14px;
    }

    footer {
      width: 100%;
      position: relative;
      align-items: center;
    }
  }
}