@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --accent-blue: #0ea5e9;
  --accent-blue-dark: #0284c7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

.font-mono-code {
  font-family: 'Fira Code', monospace;
}

/* Linear/SaaS Dot Grid Pattern Background */
.bg-grid-pattern {
  background-size: 28px 28px;
  background-image: 
    linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* Particle Canvas */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* SPOTLIGHT CARD EFFECT (LINEAR STYLE) */
.spotlight-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  will-change: transform;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), rgba(14, 165, 233, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 30px -4px rgba(14, 165, 233, 0.08);
}

/* EDITORIAL BIG NUMBER ACCENT */
.editorial-number-bg {
  position: absolute;
  top: -10px;
  right: 15px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(14, 165, 233, 0.05);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* BRAND BADGE */
.navbar-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* LINEAR NAV MENU CONTAINER */
.linear-nav-menu {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  touch-action: pan-y;
}

.liquid-glass-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width;
}

.nav-link {
  position: relative;
  z-index: 2;
  color: #64748b;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #0284c7;
}

.linear-action-btn {
  background: #0ea5e9;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.linear-action-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

/* Glowing Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* FEATURED PROJECTS MARQUEE ANIMATION */
.projects-marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.projects-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeScrollLeft 22s linear infinite;
  will-change: transform;
}

.projects-marquee-container:hover .projects-marquee-track,
.projects-marquee-container:active .projects-marquee-track,
.projects-marquee-container:focus-within .projects-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInTab 0.3s ease-out forwards;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide Scrollbar for Mobile Swipe Sections */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom Modal Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}
/* TAMBAHKAN INI DI BARIS PALING BAWAH STYLE.CSS */

/* Swiper Styling untuk Experience Section (Smooth & Clickable) */
.exp-swiper {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 20px;
}

.exp-swiper .swiper-slide {
  width: 320px; /* Lebar standar HP */
  height: auto;
  opacity: 0.4; /* Kartu samping diredupkan */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Cegah klik tidak sengaja di kartu samping */
}

/* Hanya kartu yang di tengah yang bisa diklik / scroll full */
.exp-swiper .swiper-slide-active {
  opacity: 1 !important; /* Diterangkan */
  pointer-events: auto; /* Bisa digeser dan diblok */
}

/* Karena swiper butuh bisa di swipe, maka next/prev prev juga diizinkan disentuh sedikit */
.exp-swiper .swiper-slide-next,
.exp-swiper .swiper-slide-prev {
  pointer-events: auto;
  cursor: pointer;
}

@media (min-width: 640px) {
  .exp-swiper .swiper-slide {
    width: 400px; /* Tablet */
  }
}

@media (min-width: 1024px) {
  .exp-swiper .swiper-slide {
    width: 500px; /* Desktop Besar */
  }
}
