/* ===========================
   SECTIONS — Velnafa
   Page section styles
   =========================== */

/* ============ HERO ============ */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 0;
  overflow: hidden;
}

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

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(120px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  right: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%);
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  left: -100px;
  bottom: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  background: rgba(255,255,255,0.03);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 7vw, var(--text-8xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
}

.headline-line {
  display: block;
  overflow: hidden;
}

.headline-line--accent {
  display: flex;
  gap: 0.25em;
  overflow: visible;
}

.word-rotate {
  position: relative;
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.word-rotate .word {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--text-secondary);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-elegant),
              opacity 0.6s var(--ease-elegant);
  opacity: 0;
}

.word-rotate .word.active {
  transform: translateY(0);
  opacity: 1;
  position: relative;
}

.word-rotate .word.exit {
  transform: translateY(-110%);
  opacity: 0;
}

.hero-subtext {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* Baris atas: angka + suffix sejajar */
.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  transition: all var(--duration-slow);
  line-height: 1;
}

.stat-suffix {
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-accent-light);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 1;
}

.scroll-text {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gray-600), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============ TRUSTED BY ============ */
.section-trusted {
  padding-block: var(--space-16);
  border-block: 1px solid var(--border-subtle);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.trusted-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-shrink: 0;
  padding-right: var(--space-8);
}

.trusted-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--duration-base);
  letter-spacing: var(--tracking-snug);
}

.trusted-brand:hover {
  color: var(--text-secondary);
}

.trusted-sep {
  color: var(--border-default);
  font-size: var(--text-xl);
}

/* ============ SERVICES ============ */
.section-services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.service-card {
  background: var(--bg-primary);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: background var(--duration-base) var(--ease-smooth);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79,70,229,0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  background: var(--bg-card);
}

.service-number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.service-icon {
  color: var(--text-secondary);
  transition: color var(--duration-base), transform var(--duration-base) var(--ease-bounce);
}

.service-card:hover .service-icon {
  color: var(--text-primary);
  transform: scale(1.1);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

.service-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-2);
  transition: color var(--duration-base), gap var(--duration-base) var(--ease-bounce);
}

.service-link:hover {
  color: var(--text-primary);
  gap: var(--space-3);
}

.service-card--cta {
  background: var(--bg-card);
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
}

.service-card--cta::before {
  display: none;
}

.service-cta-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}

/* ============ WORK ============ */
.section-work {
  background: var(--bg-secondary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration-base), transform var(--duration-slow) var(--ease-smooth);
}

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

.work-card--large {
  grid-column: span 2;
}

.work-card-inner {
  display: flex;
  flex-direction: column;
}

.work-card--large .work-card-inner {
  flex-direction: row;
}

.work-visual {
  position: relative;
  aspect-ratio: 16/9;
  min-height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.work-card--large .work-visual {
  width: 50%;
  aspect-ratio: auto;
}

.work-visual-bg {
  position: absolute;
  inset: 0;
  transition: transform var(--duration-sluggish) var(--ease-smooth);
}

.work-card:hover .work-visual-bg {
  transform: scale(1.04);
}

.work-visual--01 .work-visual-bg {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.work-visual--02 .work-visual-bg {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a, #222222);
}

.work-visual--03 .work-visual-bg {
  background: linear-gradient(135deg, #111827, #1f2937, #374151);
}

.work-visual-element {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visual 01 Elements */
.vis-shape {
  position: absolute;
}

.vis-shape--rect {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%) rotate(-15deg);
  animation: shapeFloat 4s ease-in-out infinite;
}

.vis-shape--circle {
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(79,70,229,0.5);
  border-radius: var(--radius-full);
  top: 35%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation: shapeFloat 4s ease-in-out infinite reverse;
}

.vis-type {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: var(--weight-black);
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.05em;
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-6);
}

/* Visual 02 Elements */
.vis-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.vis-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 100px;
  position: relative;
  z-index: 1;
}

.vis-bar {
  width: 20px;
  height: var(--h);
  background: linear-gradient(to top, rgba(79,70,229,0.6), rgba(79,70,229,0.2));
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  animation: barGrow 2s var(--ease-elegant) forwards;
}

/* Visual 03 Elements */
.vis-rings {
  position: relative;
  width: 120px;
  height: 120px;
}

.vis-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  inset: 0;
  animation: ringPulse 3s ease-in-out infinite;
}

.vis-ring:nth-child(1) {
  inset: 0;
  animation-delay: 0s;
}

.vis-ring:nth-child(2) {
  inset: -20px;
  animation-delay: 0.5s;
  border-color: rgba(255,255,255,0.08);
}

.vis-ring:nth-child(3) {
  inset: -40px;
  animation-delay: 1s;
  border-color: rgba(255,255,255,0.04);
}

.work-info {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

.work-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.work-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.work-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.work-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration-base), gap var(--duration-base) var(--ease-bounce);
}

.work-link:hover {
  color: var(--text-primary);
  gap: var(--space-3);
}

.work-footer {
  text-align: center;
  margin-top: var(--space-4);
}

/* ============ PROCESS ============ */
.section-process {
  background: var(--bg-primary);
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-default) 10%, var(--border-default) 90%, transparent);
}

.process-step {
  display: flex;
  gap: var(--space-8);
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  transition: background var(--duration-base);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover {
  background: rgba(255,255,255,0.01);
}

.process-step-num {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  color: var(--text-muted);
  min-width: 72px;
  padding-top: var(--space-1);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.process-step-content {
  padding-left: var(--space-4);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: color var(--duration-base);
}

.process-step:hover .process-step-title {
  color: var(--color-accent-light);
}

.process-step-desc {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 580px;
}

/* ============ TESTIMONIALS ============ */
.section-testimonials {
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-slider {
  overflow: hidden;
  margin-inline: calc(-1 * var(--space-8));
  padding-inline: var(--space-8);
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.6s var(--ease-elegant);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - var(--space-4));
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: border-color var(--duration-base);
}

.testimonial-card:hover {
  border-color: var(--border-default);
}

.testimonial-stars {
  color: var(--color-gray-300);
  font-size: var(--text-base);
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-gray-800);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-secondary);
  flex-shrink: 0;
  letter-spacing: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-style: normal;
}

.author-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-base);
}

.testimonial-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-2);
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-gray-700);
  transition: all var(--duration-base);
  border: none;
  cursor: pointer;
}

.testimonial-dot.active {
  width: 24px;
  background: var(--color-white);
}

/* ============ CTA ============ */
.section-cta {
  background: var(--bg-primary);
  padding-block: var(--space-32);
}

.cta-inner {
  position: relative;
  text-align: center;
  padding: var(--space-24) var(--space-8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--bg-secondary);
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(80px);
}

.cta-orb--1 {
  width: 500px;
  height: 500px;
  left: -100px;
  top: -100px;
  background: radial-gradient(circle, rgba(79,70,229,0.12), transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
}

.cta-orb--2 {
  width: 400px;
  height: 400px;
  right: -80px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.cta-inner .section-label {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  position: relative;
  z-index: 1;
}

.cta-actions {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-8);
}

.cta-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.social-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration-base);
}

.social-link:hover {
  color: var(--text-primary);
}

.cta-social-sep {
  color: var(--border-default);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-20);
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  justify-content: end;
}

.footer-nav-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-base);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link--small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

/* ---- Hero Canvas — 3D Sphere positioning ---- */
.hero-canvas {
  cursor: grab;
}

.hero-canvas:active {
  cursor: grabbing;
}

/* Position sphere to the right on large screens */
@media (min-width: 1024px) {
  .hero-canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Sphere drag hint tooltip */
.hero-drag-hint {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-8);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: fadeInUp 1s var(--ease-elegant) 3s forwards;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-drag-hint svg {
  opacity: 0.5;
}
