/* ============================================
   Pansro Tech — Custom Styles
   ============================================ */

/* Root Variables */
:root {
  --bg:            #080808;
  --bg-alt:        #0d0d0d;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-h:     rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.08);
  --border-h:      rgba(249,115,22,0.35);
  --orange:        #f97316;
  --orange-l:      #fb923c;
  --orange-d:      #ea580c;
  --text:          #f8fafc;
  --text-2:        #94a3b8;
  --text-3:        #475569;
  --glow:          0 0 40px rgba(249,115,22,0.14);
  --shadow:        0 10px 40px rgba(0,0,0,0.55);
  --r:             16px;
  --ease:          cubic-bezier(0.4,0,0.2,1);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.5); }
::selection { background: rgba(249,115,22,0.22); color: var(--text); }

/* === ANIMATIONS === */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(4deg)} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@keyframes pulse-ring { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.65);opacity:0} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}
@keyframes orbit-r {
  from { transform: rotate(0deg) translateX(55px) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(55px) rotate(360deg); }
}
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fade-up { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll Reveal */
.reveal, .reveal-l, .reveal-r, .reveal-s {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal   { opacity:0; transform:translateY(34px); }
.reveal-l { opacity:0; transform:translateX(-34px); }
.reveal-r { opacity:0; transform:translateX(34px); }
.reveal-s { opacity:0; transform:scale(.88); }
.reveal.on, .reveal-l.on, .reveal-r.on, .reveal-s.on { opacity:1; transform:none; }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}

/* === TYPOGRAPHY === */
.gradient-text {
  background: linear-gradient(135deg,#f97316 0%,#fb923c 45%,#fbbf24 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.text-muted { color: var(--text-2); }

/* === LAYOUT === */
.container { max-width:1248px; margin:0 auto; padding:0 24px; }
@media(min-width:640px){ .container{padding:0 32px} }
@media(min-width:1024px){ .container{padding:0 48px} }
.section { padding:96px 0; }
@media(max-width:768px){ .section{padding:64px 0} }

/* === PROGRESS BAR === */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, #f97316, #fb923c);
  width: 0; transition: width .1s;
}

/* === NAVBAR === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
}
#navbar.scrolled {
  padding: 11px 0;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: var(--border);
  box-shadow: 0 4px 28px rgba(0,0,0,0.65);
}

.nav-link {
  position: relative; color: var(--text-2);
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .25s; padding: 4px 0;
}
.nav-link::after {
  content:''; position:absolute; bottom:-3px; left:0; right:0;
  height:1.5px; background: var(--orange);
  transform:scaleX(0); transition:transform .25s var(--ease); transform-origin:left;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform:scaleX(1); }
.nav-link.active { color: var(--orange); }
.nav-link.active::after { transform: scaleX(1); }

/* Mobile Menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.175,1);
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu a {
  color: var(--text); font-size: 26px; font-weight: 700;
  text-decoration: none; transition: color .25s; letter-spacing: -.02em;
}
#mobile-menu a:hover { color: var(--orange); }

/* === LOGO === */
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg,#f97316,#ea580c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  box-shadow: 0 0 16px rgba(249,115,22,.35); flex-shrink: 0;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: white; font-weight: 600; font-size: 14.5px;
  padding: 13px 26px; border-radius: 10px; border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s;
  position: relative; overflow: hidden;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 32px rgba(249,115,22,.42); }
.btn-primary:active { transform:translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 600;
  font-size: 14.5px; padding: 13px 26px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.btn-ghost:hover {
  border-color: rgba(249,115,22,.4);
  background: rgba(249,115,22,.06);
  transform: translateY(-2px);
}

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2);
  border-radius: 100px; padding: 5px 14px;
  font-size: 12.5px; font-weight: 500; color: var(--orange-l);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); animation: blink 2s ease infinite;
}

/* === SECTION LABEL === */
.section-label {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}

/* === HERO === */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .12; pointer-events: none;
}
.orb-1 { width:650px; height:650px; background:radial-gradient(circle,#f97316,transparent); top:-200px; right:-80px; animation:float 9s ease-in-out infinite; }
.orb-2 { width:450px; height:450px; background:radial-gradient(circle,#6366f1,transparent); bottom:-100px; left:-80px; animation:float 11s ease-in-out infinite reverse; }
.orb-3 { width:320px; height:320px; background:radial-gradient(circle,#8b5cf6,transparent); top:40%; left:38%; animation:float 14s ease-in-out infinite; }

.grid-dot-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(249,115,22,.1) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}

/* Hero SVG floating groups */
.hero-svg .f1 { animation: float 5s ease-in-out infinite; }
.hero-svg .f2 { animation: float 6.5s ease-in-out infinite; animation-delay: .8s; }
.hero-svg .f3 { animation: float2 7s ease-in-out infinite; animation-delay: 1.4s; }
.hero-svg .f4 { animation: float3 5.5s ease-in-out infinite; animation-delay: .4s; }
.hero-svg .f5 { animation: float 8s ease-in-out infinite; animation-delay: 2s; }
.hero-svg .dash-line { stroke-dasharray: 6 6; animation: dash 0s linear infinite; }

/* === STATS === */
.stat-number {
  font-size: 2.8rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg,#f97316,#fb923c);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* === SERVICE CARDS === */
.service-card {
  position: relative; border-radius: var(--r);
  background: rgba(12,12,12,0.97);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.service-card::before {
  content:''; position:absolute; inset:0; border-radius:var(--r); padding:1px;
  background: linear-gradient(145deg,rgba(249,115,22,.28) 0%,rgba(255,255,255,.04) 50%,rgba(249,115,22,.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: background .35s;
}
.service-card:hover::before {
  background: linear-gradient(145deg,rgba(249,115,22,.65) 0%,rgba(249,115,22,.18) 50%,rgba(249,115,22,.4) 100%);
}
.service-card:hover { transform:translateY(-7px); box-shadow:0 24px 64px rgba(0,0,0,.55),0 0 42px rgba(249,115,22,.09); }
.sc-inner { padding: 30px 26px; border-radius: var(--r); }

.sc-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg,rgba(249,115,22,.15),rgba(249,115,22,.04));
  border: 1px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.service-card:hover .sc-icon {
  background: linear-gradient(135deg,rgba(249,115,22,.28),rgba(249,115,22,.1));
  border-color: rgba(249,115,22,.45);
  box-shadow: 0 0 20px rgba(249,115,22,.2);
  transform: scale(1.1) rotate(-3deg);
}

/* === INDUSTRY CARDS === */
.industry-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
  transition: background .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.industry-card:hover {
  background: rgba(249,115,22,.07); border-color: rgba(249,115,22,.28);
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(0,0,0,.38), 0 0 28px rgba(249,115,22,.1);
}

/* === FEATURE CARDS (Why Choose) === */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px;
  transition: background .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.feature-card:hover {
  background: rgba(249,115,22,.05); border-color: rgba(249,115,22,.22);
  transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.3);
}

/* === PROCESS TIMELINE === */
.timeline-line {
  position: absolute; left: 50%; top: 24px; bottom: 24px;
  width: 1px; transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(249,115,22,.4) 15%, rgba(249,115,22,.4) 85%, transparent);
}
.timeline-dot {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg,#f97316,#ea580c);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 0 22px rgba(249,115,22,.35);
  position: relative; z-index: 1; flex-shrink: 0;
}

/* === PORTFOLIO CARDS === */
.portfolio-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.portfolio-card:hover {
  border-color: rgba(249,115,22,.28);
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 42px rgba(249,115,22,.08);
}
.portfolio-thumb {
  height: 192px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,8,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.tech-tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  font-size: 11.5px; color: var(--text-2);
  transition: background .25s, color .25s, border-color .25s;
}
.portfolio-card:hover .tech-tag {
  background: rgba(249,115,22,.09); border-color: rgba(249,115,22,.16); color: var(--orange-l);
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  transition: border-color .3s, transform .35s var(--ease);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 14px; left: 20px;
  font-size: 70px; line-height: 1;
  color: rgba(249,115,22,.12);
  font-family: Georgia, serif;
  pointer-events: none; user-select: none;
}
.testimonial-card:hover { border-color: rgba(249,115,22,.18); transform: translateY(-4px); }

.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg,rgba(249,115,22,.38),rgba(251,146,60,.18));
  border: 1.5px solid rgba(249,115,22,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--orange-l); flex-shrink: 0;
}
.stars { color: #fbbf24; letter-spacing: 1px; }

/* === FAQ === */
.faq-item {
  border: 1px solid var(--border); border-radius: 13px; overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq-item.active { border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.03); }
.faq-btn {
  width: 100%; padding: 19px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 15.5px; font-weight: 600;
  text-align: left; transition: color .25s;
}
.faq-btn:hover { color: var(--orange-l); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--orange); transition: background .3s, color .3s, transform .35s var(--ease);
}
.faq-item.active .faq-icon { background: var(--orange); color: white; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.faq-item.active .faq-body { max-height: 400px; }
.faq-body-inner { padding: 0 22px 20px; color: var(--text-2); line-height: 1.78; font-size: 14.5px; }

/* === CTA SECTION === */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg,rgba(249,115,22,.09) 0%,rgba(249,115,22,.02) 100%);
  border-top: 1px solid rgba(249,115,22,.1);
  border-bottom: 1px solid rgba(249,115,22,.1);
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 50%,rgba(249,115,22,.1) 0%,transparent 70%);
  pointer-events: none;
}
.cta-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(249,115,22,.04) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(249,115,22,.04) 1px,transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
}
.wa-float a {
  position: relative; width: 60px; height: 60px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,.42); text-decoration: none;
  animation: float 3.5s ease-in-out infinite;
  transition: box-shadow .25s;
}
.wa-float a:hover { animation-play-state:paused; box-shadow: 0 10px 40px rgba(37,211,102,.6); }
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(37,211,102,.45);
  animation: pulse-ring 2.2s ease-out infinite;
}

/* === DIVIDER === */
.divider { height: 1px; background: linear-gradient(90deg,transparent,var(--border),transparent); }

/* === FOOTER === */
.footer-link {
  color: var(--text-2); text-decoration: none; font-size: 14px;
  line-height: 2.2; transition: color .25s; display: block;
}
.footer-link:hover { color: var(--orange); }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
  text-decoration: none; color: var(--text-2);
}
.social-icon:hover {
  background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.3);
  color: var(--orange); transform: translateY(-2px);
}

/* === TAG PILL === */
.tag-pill {
  display: inline-block; background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.15); border-radius: 100px;
  padding: 3px 11px; font-size: 12px; color: var(--orange-l); font-weight: 500;
}

/* === SKIP NAVIGATION (accessibility) === */
.skip-nav {
  position: absolute; left: -9999px; top: -9999px; z-index: 10000;
  background: var(--orange); color: white;
  padding: 10px 20px; border-radius: 0 0 8px 0;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: none;
}
.skip-nav:focus { left: 0; top: 0; }

/* === CONTACT FORM === */
.contact-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .25s, background .25s, box-shadow .25s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.contact-input::placeholder { color: var(--text-3); }
.contact-input:focus {
  border-color: rgba(249,115,22,.45);
  background: rgba(249,115,22,.04);
  box-shadow: 0 0 0 3px rgba(249,115,22,.08);
}
.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
