/* ═══════════════════════════════════════════
   Portfolio — Ahmad Syahrul Zeini
   style.css
═══════════════════════════════════════════ */

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

/* ── Variables ── */
:root {
  --pink:   #FF3CAC;
  --orange: #FF6B35;
  --yellow: #FFD23F;
  --cyan:   #00D4FF;
  --purple: #784BA0;
  --dark:   #0D0D0D;
  --dark2:  #161616;
  --dark3:  #1F1F1F;
  --white:  #FFFFFF;
  --muted:  rgba(255, 255, 255, 0.5);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --transition: 0.3s ease;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

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

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--cyan));
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   NOISE TEXTURE OVERLAY
═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 60, 172, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(13, 13, 13, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--pink);
  transition: right 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { right: 0; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated mesh background */
.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255, 60, 172, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(0, 212, 255, 0.20) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(120, 75, 160, 0.15) 0%, transparent 70%);
  animation: meshPulse 8s ease-in-out infinite alternate;
}

@keyframes meshPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1.0; transform: scale(1.05); }
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
  animation: floatBlob 10s ease-in-out infinite;
}

.blob-1 { width: 400px; height: 400px; background: var(--pink);   top: -100px; right: -80px;  animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: var(--cyan);   bottom: -80px; left: -60px; animation-delay: 3s; }
.blob-3 { width: 200px; height: 200px; background: var(--yellow); top: 50%; left: 40%;        animation-delay: 6s; }

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Hero badge */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 60, 172, 0.12);
  border: 1px solid rgba(255, 60, 172, 0.3);
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  width: fit-content;
  animation: fadeUp 0.8s ease both;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Hero name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name .line-1 {
  display: block;
  color: var(--white);
}

.hero-name .line-2 {
  display: block;
  background: linear-gradient(90deg, var(--pink) 0%, var(--orange) 40%, var(--yellow) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: shimmer 3s linear infinite, fadeUp 0.8s 0.2s ease both;
}

@keyframes shimmer {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}

/* Hero subtitle */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
  margin: 1.5rem 0 2.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Hero CTA buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 30px rgba(255, 60, 172, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255, 60, 172, 0.5);
}

.btn-outline {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: none;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-3px);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp 1s 0.8s ease both;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { width: 40px; }
  50%       { width: 60px; }
}

/* Hero stats */
.hero-stats {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  gap: 2rem;
  animation: fadeUp 1s 0.9s ease both;
}

.stat { text-align: right; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════ */
section {
  padding: 6rem 2.5rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 2px;
  background: var(--pink);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Gradient text helpers */
.gradient-text-warm {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cool {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-fire {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
#about {
  background: var(--dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Profile Card */
.about-visual { position: relative; }

.about-card {
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(255, 60, 172, 0.4);
}

.about-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-role {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.about-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

/* Floating badges */
.badge {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  animation: floatBlob 4s ease-in-out infinite;
}

.badge-1 {
  top: -20px; right: -10px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(255, 210, 63, 0.4);
  animation-delay: 0s;
}

.badge-2 {
  bottom: -18px; left: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4);
  animation-delay: 2s;
}

/* About text */
.about-body {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

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

/* Chips */
.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid;
}

.chip-pink   { color: var(--pink);   border-color: rgba(255,  60, 172, 0.4); background: rgba(255,  60, 172, 0.08); }
.chip-cyan   { color: var(--cyan);   border-color: rgba(  0, 212, 255, 0.4); background: rgba(  0, 212, 255, 0.08); }
.chip-yellow { color: var(--yellow); border-color: rgba(255, 210,  63, 0.4); background: rgba(255, 210,  63, 0.08); }
.chip-orange { color: var(--orange); border-color: rgba(255, 107,  53, 0.4); background: rgba(255, 107,  53, 0.08); }

/* ═══════════════════════════════════════════
   LAYANAN
═══════════════════════════════════════════ */
#layanan {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.layanan-header {
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.layanan-card {
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.layanan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--glow-color), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.layanan-card:hover { transform: translateY(-8px); }
.layanan-card:hover::after { opacity: 1; }

.layanan-card.c1 { --glow-color: rgba(255, 60,  172, 0.12); }
.layanan-card.c1:hover { border-color: rgba(255,  60, 172, 0.3); box-shadow: 0 20px 50px rgba(255,  60, 172, 0.1); }

.layanan-card.c2 { --glow-color: rgba(0,  212, 255, 0.12); }
.layanan-card.c2:hover { border-color: rgba(  0, 212, 255, 0.3); box-shadow: 0 20px 50px rgba(  0, 212, 255, 0.1); }

.layanan-card.c3 { --glow-color: rgba(255, 210,  63, 0.12); }
.layanan-card.c3:hover { border-color: rgba(255, 210,  63, 0.3); box-shadow: 0 20px 50px rgba(255, 210,  63, 0.1); }

.layanan-card.c4 { --glow-color: rgba(255, 107,  53, 0.12); }
.layanan-card.c4:hover { border-color: rgba(255, 107,  53, 0.3); box-shadow: 0 20px 50px rgba(255, 107,  53, 0.1); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-pink   { background: rgba(255,  60, 172, 0.15); }
.icon-cyan   { background: rgba(  0, 212, 255, 0.15); }
.icon-yellow { background: rgba(255, 210,  63, 0.15); }
.icon-orange { background: rgba(255, 107,  53, 0.15); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   KONTAK
═══════════════════════════════════════════ */
#kontak {
  background: var(--dark2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kontak-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.kontak-inner .section-tag {
  display: block;
  text-align: center;
  padding-left: 0;
}

.kontak-inner .section-tag::before { display: none; }

.kontak-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-card {
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2rem 1.25rem;
  text-decoration: none;
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: none;
}

.contact-card:hover { transform: translateY(-6px); }

.contact-card.wa:hover { border-color: rgba(37, 211, 102, 0.5); box-shadow: 0 20px 40px rgba(37, 211, 102, 0.15); }
.contact-card.ig:hover { border-color: rgba(255,  60, 172, 0.5); box-shadow: 0 20px 40px rgba(255,  60, 172, 0.15); }
.contact-card.em:hover { border-color: rgba(  0, 212, 255, 0.5); box-shadow: 0 20px 40px rgba(  0, 212, 255, 0.15); }

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.wa .contact-icon { background: rgba(37,  211, 102, 0.15); }
.ig .contact-icon { background: rgba(255,  60, 172, 0.15); }
.em .contact-icon { background: rgba(  0, 212, 255, 0.15); }

.contact-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-value {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-heart {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }

  section { padding: 4rem 1.25rem; }
  #hero   { padding: 7rem 1.25rem 3rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .hero-stats { display: none; }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 0.75rem; }
  .hero-cta    { flex-direction: column; }
  .btn-primary,
  .btn-outline { text-align: center; }
}
