/* ============================================
   HUGIT STUDIO — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,300&display=swap');

:root {
  --bg-primary: #0B0B0B;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --accent: #E8833A;
  --accent-warm: #F28A4B;
  --accent-deep: #C4622A;
  --accent-glow: rgba(232, 131, 58, 0.15);
  --accent-glow-strong: rgba(232, 131, 58, 0.3);
  --text-primary: #F0EDE8;
  --text-secondary: #9A9590;
  --text-muted: #5A5550;
  --border: rgba(232, 131, 58, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-display: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 2px; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Selection ── */
::selection { background: var(--accent-glow-strong); color: var(--accent-warm); }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Grid Lines Background ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(232,131,58,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,131,58,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glow Effects ── */
.glow-accent {
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(232,131,58,0.05);
}

.text-glow {
  text-shadow: 0 0 40px rgba(232,131,58,0.4);
}

/* ── Logo SVG Glow Animation ── */
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(232,131,58,0.6)); }
  50% { filter: drop-shadow(0 0 20px rgba(232,131,58,0.9)) drop-shadow(0 0 40px rgba(232,131,58,0.4)); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes orbit {
  from { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

.animate-fade-up { animation: fade-up 0.8s ease forwards; }
.animate-fade-in { animation: fade-in 0.6s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { transform: scaleX(1); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0B0B0B;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-warm);
  box-shadow: 0 8px 30px rgba(232,131,58,0.4);
  transform: translateY(-1px);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  border: 1px solid rgba(240,237,232,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(232,131,58,0.1);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(232,131,58,0.05);
}

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

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.ring-1 {
  width: 120px; height: 120px;
  border-color: rgba(232,131,58,0.4);
  animation: rotate-slow 8s linear infinite;
}

.ring-2 {
  width: 200px; height: 200px;
  border-color: rgba(232,131,58,0.2);
  animation: rotate-slow 14s linear infinite reverse;
}

.ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(232,131,58,0.1);
  border-style: dashed;
  animation: rotate-slow 20s linear infinite;
}

.ring-4 {
  width: 380px; height: 380px;
  border-color: rgba(232,131,58,0.05);
  animation: rotate-slow 30s linear infinite reverse;
}

.hero-core {
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(232,131,58,0.8), rgba(232,131,58,0.2));
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(232,131,58,0.6),
    0 0 60px rgba(232,131,58,0.3),
    0 0 100px rgba(232,131,58,0.1);
  animation: pulse-glow 2.5s ease-in-out infinite;
  z-index: 2;
}

.orbit-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

/* ── AI Grid ── */
.ai-grid-dots {
  background-image: radial-gradient(circle, rgba(232,131,58,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Scan line effect ── */
.scan-effect::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,131,58,0.6), transparent);
  animation: scan-line 4s linear infinite;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-warm) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--accent-warm) 30%,
    var(--text-primary) 60%,
    var(--accent) 80%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Process Steps ── */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(100% + 0px);
  width: calc(100% - 0px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.process-step:last-child::after { display: none; }

/* ── Tag Pills ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(232,131,58,0.08);
  border: 1px solid rgba(232,131,58,0.2);
  color: var(--accent);
  font-family: var(--font-display);
}

/* ── Mobile Menu ── */
.mobile-menu {
  background: rgba(11,11,11,0.97);
  backdrop-filter: blur(20px);
}

/* ── Footer ── */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* ── Form Inputs ── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(232,131,58,0.03);
  box-shadow: 0 0 20px rgba(232,131,58,0.08);
}

.form-input::placeholder { color: var(--text-muted); }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-error {
  font-size: 12px;
  color: #E85A3A;
  margin-top: 4px;
}

/* ── Accordion ── */
.accordion-content {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* ── Stat Counter ── */
.stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Testimonial ── */
.testimonial-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 16px;
}

/* ── Page Hero ── */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

/* ── Intersection Observer animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Cursor dot ── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(232,131,58,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
}

/* ── Media Queries ── */
@media (max-width: 768px) {
  .hero-visual { width: 280px; height: 280px; }
  .ring-3, .ring-4 { display: none; }
  .stat-value { font-size: 40px; }
  .process-step::after { display: none; }
}

/* ── Extra utilities for vanilla build ── */
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }
.font-600 { font-weight: 600; }
.font-500 { font-weight: 500; }
.accent-warm { color: #F28A4B; }
.bg-accent\/4  { background: rgba(232,131,58,0.04); }
.border-accent\/10 { border-color: rgba(232,131,58,0.1); }

/* Service accordion chevron border */
.service-chevron { transition: border-color 0.3s, background 0.3s; }

/* Form select dark */
select.form-input option { background: #111; color: #F0EDE8; }