/* ============================================
   VANPCDOCTOR.COM — style.css
   Theme: Deep Tech / Trusted Professional
   ============================================ */

/* ---- VARIABLES ---- */
:root {
  --bg:        #080c14;
  --bg2:       #0d1421;
  --bg3:       #111827;
  --surface:   #151e2e;
  --surface2:  #1a2540;
  --border:    rgba(56, 139, 253, 0.15);
  --border2:   rgba(56, 139, 253, 0.08);

  --accent:    #38bdf8;
  --accent2:   #0ea5e9;
  --accent3:   #7dd3fc;
  --green:     #34d399;
  --amber:     #fbbf24;

  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
  --glow:      0 0 40px rgba(56, 189, 248, 0.15);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- CANVAS BG ---- */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-phone:hover { opacity: 0.8; }
.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}
.btn-primary.large { font-size: 1.1rem; padding: 18px 36px; border-radius: 14px; }
.btn-primary.full-width { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 520px;
}
.section-header { margin-bottom: 48px; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.45s; }
.hero-line.accent { color: var(--accent); }
.hero-sub {
  color: var(--text2);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.6s;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.75s;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.9s;
}
.trust-item { text-align: center; }
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.trust-label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero visual */
.hero-visual {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.5s;
}
@media (max-width: 768px) { .hero-visual { display: none; } }
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  animation: pulseRing 3s ease-out infinite;
}
.pulse-ring:nth-child(1) { width: 280px; height: 280px; }
.pulse-ring.delay1 { width: 200px; height: 200px; animation-delay: 1s; }
.pulse-ring.delay2 { width: 120px; height: 120px; animation-delay: 2s; }
.center-icon {
  width: 80px; height: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: var(--glow);
  z-index: 1;
}
.center-icon svg { width: 48px; height: 48px; }

/* ---- PAIN SECTION ---- */
.pain {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.pain-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.pain-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.pain-card:hover {
  border-color: var(--border);
  background: var(--surface2);
}
.pain-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.pain-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.5; }
.pain-cta {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
}

/* ---- SERVICES ---- */
.services {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow);
}
.service-card.featured {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(14, 165, 233, 0.08) 100%);
}
.service-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.service-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.service-icon-wrap svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.service-card p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- WHY SECTION ---- */
.why {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .why-inner { grid-template-columns: 1fr; } }
.why-points { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-check {
  width: 28px; height: 28px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-point strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.why-point p { color: var(--text2); font-size: 0.88rem; line-height: 1.6; }

/* Contact Card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}
.contact-card-top {
  background: linear-gradient(135deg, var(--surface2), rgba(14, 165, 233, 0.15));
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.contact-avatar {
  width: 52px; height: 52px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.contact-title { color: var(--accent); font-size: 0.82rem; margin-top: 2px; }
.contact-card-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-phone-big {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: color 0.2s;
  text-align: center;
  display: block;
}
.contact-phone-big:hover { color: var(--accent); }
.contact-note {
  color: var(--text3);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.5;
}
.contact-promise {
  color: var(--text3);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
  padding-top: 4px;
  border-top: 1px solid var(--border2);
}

/* ---- CASES ---- */
.cases {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.case-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.case-card:hover {
  border-color: var(--border);
  background: var(--surface2);
}
.case-icon { font-size: 2rem; margin-bottom: 16px; }
.case-card h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}
.case-card p {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---- FINAL CTA ---- */
.final-cta {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.cta-box {
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(14, 165, 233, 0.12) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--glow);
}
.cta-box h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.cta-box p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-area {
  margin-top: 20px !important;
  font-size: 0.82rem !important;
  color: var(--text3) !important;
  letter-spacing: 0.04em;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border2);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text2);
}
.footer-info a { color: var(--accent); transition: opacity 0.2s; }
.footer-info a:hover { opacity: 0.8; }
.footer-copy { font-size: 0.78rem; color: var(--text3); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseRing {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ---- QR CODE GRID ---- */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .qr-grid { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
}
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(24px);
}
.qr-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.qr-item:hover {
  border-color: var(--border);
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
}
.qr-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .hero { padding: 90px 20px 50px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .hero-trust { gap: 16px; }
  .cta-box { padding: 36px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-phone span:last-child { display: none; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- STICKY PHONE (mobile) ---- */
.sticky-phone {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .sticky-phone { display: block; }
}
