/* ============================================
   VIP SAMPAH — Minimalist Dark Portfolio
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --white: #f5f5f5;
  --white2: #e0e0e0;
  --gray: #888888;
  --gray2: #444444;
  --gray3: #222222;
  --accent: #f5f5f5;
  --accent2: #c8c8c8;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.15);
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }

/* --- Noise Overlay --- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* --- Custom Cursor --- */
.cursor {
  width: 10px; height: 10px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.23,1,0.32,1), width 0.3s, height 0.3s;
}

.cursor.hovered { transform: translate(-50%, -50%) scale(2); }
.cursor-follower.hovered { width: 60px; height: 60px; opacity: 0.5; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  z-index: 100;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo .logo-text {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.btn-hire {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--border2);
  border-radius: 50px;
  color: var(--white);
  transition: var(--transition);
}

.btn-hire:hover {
  background: var(--white);
  color: var(--bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mob-link {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray);
  transition: color 0.3s;
}

.mob-link:hover { color: var(--white); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, transparent 50%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.tag-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.title-line { display: block; }
.title-line.highlight { color: transparent; -webkit-text-stroke: 1px var(--white); }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 480px;
  line-height: 1.7;
  margin-top: 24px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.full-w { width: 100%; text-align: center; }

/* Hero Scroll */
.hero-scroll {
  position: absolute;
  bottom: 80px; right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: fadeInUp 0.8s ease 0.9s both;
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: top; }
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray2);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-plus { font-size: 1.5rem; font-weight: 700; }

.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  margin-top: 4px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px; height: 50px;
  background: var(--border2);
}

/* --- Marquee --- */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg2);
}

.marquee-track { display: flex; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-content .dot { color: var(--gray2); font-size: 0.6rem; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* --- Section Labels --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.label-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray2);
  letter-spacing: 0.1em;
}

.label-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Section Titles --- */
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--white2);
}

.section-title.centered { text-align: center; }

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 64px;
}

.section-sub.centered { text-align: center; }

/* --- About --- */
.about {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-frame {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid var(--border);
}

.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.about-img-wrap:hover .about-img { filter: grayscale(0%); }

.about-img-deco {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 60%; height: 60%;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text strong { color: var(--white); }

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 6px 16px;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* --- Work --- */
.work {
  padding: 120px 0;
  background: var(--bg2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  transition: var(--transition);
  cursor: none;
}

.work-card:hover {
  border-color: var(--border2);
  transform: translateY(-8px);
}

.work-card.featured {
  grid-column: span 1;
  grid-row: span 2;
}

.work-card-img {
  overflow: hidden;
  position: relative;
}

.work-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.work-card.featured .work-card-placeholder { height: 504px; }

.p1 { background: linear-gradient(135deg, #111 0%, #222 100%); }
.p2 { background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #111 100%); }
.p3 { background: linear-gradient(135deg, #151515 0%, #202020 100%); }
.p4 { background: linear-gradient(135deg, #0d0d0d 0%, #1c1c1c 100%); }
.p5 { background: linear-gradient(135deg, #121212 0%, #1f1f1f 100%); }
.p6 { background: linear-gradient(135deg, #0e0e0e 0%, #1b1b1b 100%); }

.proj-icon {
  font-size: 3rem;
  color: var(--gray2);
  transition: var(--transition);
}

.work-card:hover .proj-icon {
  color: var(--white);
  transform: scale(1.2) rotate(10deg);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-card:hover .work-overlay { opacity: 1; }

.work-view {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 24px;
  border-radius: 50px;
}

.work-card-info {
  padding: 20px 24px;
}

.work-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 4px;
  color: var(--white2);
}

/* --- Services --- */
.services {
  padding: 120px 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: none;
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-item:hover {
  padding-left: 24px;
  border-bottom-color: var(--border2);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray2);
  min-width: 32px;
  letter-spacing: 0.1em;
}

.service-body { flex: 1; }

.service-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.service-item:hover .service-title { color: var(--white); }

.service-desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 500px;
}

.service-icon {
  font-size: 2rem;
  color: var(--gray2);
  transition: var(--transition);
}

.service-item:hover .service-icon {
  color: var(--white);
  transform: rotate(90deg) scale(1.2);
}

/* --- Testimonials --- */
.testimonials {
  padding: 120px 0;
  background: var(--bg2);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.testi-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}

.testi-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.testi-stars {
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.testi-text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
}

.testi-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testi-role {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
}

/* --- Contact --- */
.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-link:hover { color: var(--white); }
.contact-link-icon { font-size: 1.1rem; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--white2);
}

.form-group select {
  color: var(--gray);
  cursor: none;
}

.form-group select option {
  background: var(--bg3);
}

.form-group textarea { resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-socials { display: flex; gap: 20px; }

.footer-social {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-social:hover { color: var(--white); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card.featured { grid-column: span 1; grid-row: span 1; }
  .work-card.featured .work-card-placeholder { height: 240px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 24px 60px; }
  .hero-scroll { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 24px; margin-top: 48px; }
  .container { padding: 0 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .about { padding: 80px 0; }
  .work { padding: 80px 0; }
  .services { padding: 80px 0; }
  .testimonials { padding: 80px 0; }
  .contact { padding: 80px 0; }
  .service-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .service-icon { display: none; }
}
