/* ================= VARIABLES ================= */
:root {
  --bg: #0d0d0b;
  --bg2: #141412;
  --surface: #1a1a18;
  --line: #2a2a28;
  --text: #f0f0ee;
  --muted: #888880;
  --accent: #f0f0ee;
  --orange: #ff6600;
  --speed: 0.35s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================= GLOBAL & RESET ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  cursor: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

/* ================= CURSOR ================= */
#cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background var(--speed) var(--ease), transform 0.1s;
}

#cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
  opacity: 0.6;
}

#cursor-ring.hovering {
  width: 50px;
  height: 50px;
  opacity: 1;
  border-color: var(--orange);
}

#cursor-dot.hovering {
  background: var(--orange);
  transform: translate(-50%, -50%) scale(0.5);
}

/* ================= PARTICLES CANVAS ================= */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ================= SCROLL PROGRESS ================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--orange);
  z-index: 500;
}

/* ================= LAYOUT ================= */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 100px 24px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
  transition: cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.hero-name span {
  display: block;
  font-style: italic;
  color: var(--orange);
}

.hero-name:hover {
  color: var(--orange);
  text-shadow: 
    0 0 8px rgba(255, 102, 0, 0.6),
    0 0 16px rgba(255, 102, 0, 0.4),
    0 0 24px rgba(255, 255, 255, 0.2);
}

.hero-role {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.75s forwards;
  min-height: 1.4em;
}

.hero-bio {
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.8;
  color: #c0c0bc;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.9s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1s forwards;
}

/* ================= BUTTONS ================= */
.cta-primary {
  padding: 12px 32px;
  background: var(--text);
  color: var(--bg);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1.5px solid var(--text);
  transition: all 0.3s var(--ease);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  z-index: -1;
}

.cta-primary:hover {
  color: var(--bg);
  border-color: var(--orange);
}

.cta-primary:hover::after {
  transform: scaleX(1);
}

.cta-ghost {
  padding: 12px 32px;
  background: transparent;
  color: var(--text);
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1.5px solid var(--line);
  transition: all 0.3s var(--ease);
  cursor: none;
}

.cta-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
  border-color: var(--orange);
}

/* ================= SCROLL HINT ================= */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.5s forwards;
}

.scroll-hint span {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 5.6s ease infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

/* ================= CAROUSEL SECTION ================= */
.carousel-section {
  padding: 40px 24px 80px;
  max-width: 1400px;      
  margin: 0 auto;
  position: relative;
}

.carousel-slide {
  flex: 0 0 100%;
  min-height: 70vh;         
  max-height: 80vh;
  overflow: hidden;
}

.carousel-slide {
  aspect-ratio: 16 / 9;   
}

@media (min-width: 1600px) {
  .carousel-slide {
    min-height: 85vh;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  width: 100%;           
  border-radius: 10px;         
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.6s ease, transform 0.7s cubic-bezier(0.2,0.9,0.3,1);
  display: block;
}

.carousel-slide:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Tombol navigasi */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s var(--ease);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Dots / indikator */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(45deg);
}

.dot.active {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(45deg) scale(1.2);
}

/* Status teks */
.carousel-status {
  text-align: center;
  margin-top: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--muted);
}

/* Responsif */
@media (max-width: 768px) {
  .carousel-section {
    padding: 20px 16px 60px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .prev { left: 12px; }
  .next { right: 12px; }
  .dot {
    width: 8px;
    height: 8px;
  }
}

.photo-card {
  width: 340px;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= SECTION HEADERS ================= */
.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--orange);
}

.section-title:hover {
color: var(--orange);
text-shadow: 
0 0 8px rgba(255, 102, 0, 0.6),
0 0 10px rgba(255, 102, 0, 0.13),
0 0 60px rgba(255, 255, 255, 0.2);
}

.section-label:hover {
  color: var(--accent);
  }

/* ================= LINKS GRID ================= */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  cursor: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.link-card:hover {
  border-color: rgba(255, 102, 0, 0.35);
  transform: translateY(-3px);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:hover .card-arrow {
  transform: translate(3px, -3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--orange);
  transition: all 0.3s var(--ease);
}

.link-card:hover .card-icon {
  background: rgba(255, 102, 0, 0.12);
  border-color: rgba(255, 102, 0, 0.3);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.card-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
  flex-shrink: 0;
}

.link-card:hover .card-arrow {
  color: var(--orange);
}

/* ================= PROJECT CARDS ================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.proj-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  cursor: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.proj-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.proj-card:hover {
  border-color: rgba(255, 102, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.proj-card:hover::after {
  transform: scaleX(1);
}

.proj-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
}

.proj-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.proj-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a0a09a;
  flex: 1;
}

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.proj-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.proj-tech span {
  font-family: 'Fira Code', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--line);
  letter-spacing: 0.5px;
}

.proj-link {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj-card:hover .proj-link {
  color: var(--orange);
}

/* ================= SKILLS ================= */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sk-item {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.sk-item:hover {
  border-color: var(--orange);
}

.sk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sk-name {
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk-name i {
  color: var(--orange);
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.2s;
}

.sk-item:hover .sk-name i {
  transform: scale(1.15);
  color: var(--orange);
}

.sk-pct {
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--muted);
}

.sk-track {
  width: 100%;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.sk-fill {
  height: 100%;
  background: var(--text);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.areas-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.area-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s var(--ease);
  cursor: none;
}

.area-tag:hover {
  border-color: rgba(255, 102, 0, 0.4);
  color: var(--orange);
  background: rgba(255, 102, 0, 0.05);
  transform: translateY(-2px) scale(1.02);
}

/* ================= FOOTER ================= */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-name:hover {
  color: var(--orange);
}

.footer-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.social-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  cursor: none;
}

.social-btn:hover {
  border-color: rgba(255, 102, 0, 0.4);
  color: var(--orange);
  transform: translateY(-3px);
}

.footer-copy {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  color: #555550;
  letter-spacing: 1px;
}

/* ================= LOADING & ERROR ================= */
.loading-spinner {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-fetch {
  color: var(--orange);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ================= ANIMATIONS & REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.typing-cursor::after {
  content: '|';
  animation: blink 0.7s steps(1) infinite;
  color: var(--orange);
  margin-left: 1px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.scroll-arrow {
  animation: gentleFloat 5.2s infinite ease-in-out;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .proj-grid {
    grid-template-columns: 1fr;
  }

  .skills-wrap {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .section {
    padding: 72px 20px;
  }

  .photo-card {
    width: 260px;
    height: 170px;
  }

  .photo-marquee {
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 72px 20px 48px;
  }

  .hero-ctas {
    gap: 12px;
  }

  .cta-primary,
  .cta-ghost {
    padding: 11px 24px;
    font-size: 0.72rem;
  }

  .section {
    padding: 56px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}