﻿:root {
  --font-geist-sans: "GeistSans";
  --font-geist-mono: "GeistMono";
}

@font-face {
  font-family: "GeistSans";
  src: url("./assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistSans";
  src: url("./assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("./assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("./assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f3f5f8;
  --foreground: #0f172a;
  --surface: #ffffff;
  --muted: #64748b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #eef2f7;
    --foreground: #0f172a;
    --surface: #ffffff;
    --muted: #475569;
  }
}

html {
  scroll-behavior: smooth;
}

/* Video overlay for text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(15, 23, 42, 0.35) 100%
  );
  z-index: 1;
}

#hero > .absolute.inset-0.flex {
  z-index: 2;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .avatar-ring, .avatar-ring-2 { animation: none; }
  .cap-bubble { animation: none; }
  .hero-tag, .hero-name, .hero-title, .hero-bio, .hero-actions, .hero-avatar-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }
  #heroVideo, #avatarVideo { display: none !important; }
  #avatarFallback { opacity: 1 !important; }
}

body {
  background:
    radial-gradient(circle at 14% 12%, rgba(148, 163, 184, 0.16), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(203, 213, 225, 0.2), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, var(--background) 40%, #eef2f7 100%);
  color: var(--foreground);
  font-family: var(--font-geist-sans), "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .site-logo {
    height: 28px;
  }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-tag {
  display: inline-block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #f97316;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-family: "AaJiaoTangTi", "JiaoTangTi", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(15, 23, 42, 0.45);
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name span {
  color: #f97316;
  text-shadow: 0 0 30px rgba(120, 245, 255, 0.45);
}

.hero-title {
  font-size: 18px;
  color: #e2e8f0;
  margin: 16px 0 28px;
  letter-spacing: 3px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.85;
  color: #f3f4f6;
  max-width: 480px;
  border-left: 2px solid #f97316;
  padding-left: 20px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #ffffff;
  border: none;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Noto Sans SC", sans-serif;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(120, 245, 255, 0.45);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: "Noto Sans SC", sans-serif;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: #f97316;
  color: #f97316;
}

.hero-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  animation: fadeUp 0.8s 0.2s ease both;
}

.avatar-frame {
  width: 260px;
  height: 260px;
  position: relative;
  border-radius: 50%;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #fb923c;
  border-right-color: #f97316;
  animation: spin 8s linear infinite;
}

.avatar-ring-2 {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(249, 115, 22, 0.45);
  animation: spin 12s linear infinite reverse;
}

.avatar-img {
  width: 240px;
  height: 240px;
  margin: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(249, 115, 22, 0.45);
  display: block;
}

.avatar-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #f97316;
  border-style: solid;
}

.avatar-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.avatar-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.avatar-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.avatar-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.stat-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  font-size: 12px;
  color: #ffffff;
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.stat-badge .num {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: #f97316;
  display: block;
}

.stat-badge.left { left: -80px; top: 40%; }
.stat-badge.bottom { bottom: -20px; right: 0; }

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

/* card effect calibration to match yara-agency sections */
#services article,
#cases article,
#process article {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#services article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.service-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: auto;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 0;
  border: 1px solid #d4d4d8;
  background: #f5f5f5;
  color: #52525b;
  font-size: clamp(11px, 0.85vw, 13px) !important;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

main .service-tag {
  font-size: 13px !important;
}

.service-card-title {
  letter-spacing: 0.01em;
  user-select: text;
  -webkit-user-select: text;
}

.service-card-desc {
  color: #52525b;
  user-select: text;
  -webkit-user-select: text;
}

#services {
  position: relative;
}

/* enforce content font size */
main p,
main li {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  #desktopNav {
    display: none !important;
  }

  #menuBtn {
    display: flex !important;
  }

  #mobileNav.hidden {
    display: none !important;
  }

  #mobileNav:not(.hidden) {
    display: block !important;
  }

  #mobileNav #mobileNavBackdrop {
    opacity: 1;
    background: rgba(15, 23, 42, 0.42);
  }

  #mobileNav aside {
    width: min(84vw, 330px);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.16);
    padding: 14px;
  }

  #mobileMenuTitle {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #334155;
  }

  #mobileNavLinks {
    margin-top: 10px;
    gap: 8px;
  }

  #mobileNavLinks a {
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a !important;
    background: #ffffff;
  }

  #mobileNavLinks a:active {
    background: #f8fafc;
  }

  footer .max-w-6xl {
    padding-top: 32px !important;
    padding-bottom: 20px !important;
  }

  main section {
    margin-top: 20px !important;
    border-radius: 20px !important;
    padding: 20px !important;
  }

  #hero {
    margin-top: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    height: 86vh !important;
    min-height: 760px !important;
    overflow: hidden !important;
  }

  #hero > .absolute.inset-0.flex {
    position: absolute !important;
    inset: 0 !important;
    display: flex;
    align-items: flex-start;
    padding-top: 26px;
    z-index: 2;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.65) 0%,
      rgba(15, 23, 42, 0.55) 50%,
      rgba(15, 23, 42, 0.7) 100%
    ) !important;
  }

  #hero h1 {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  #hero p {
    max-width: 100% !important;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 18px;
    text-align: center;
  }

  .hero-avatar-wrap {
    margin-top: 4px;
  }

  .avatar-frame {
    width: 210px;
    height: 210px;
  }

  .avatar-img {
    width: 194px;
    height: 194px;
    margin: 8px;
  }

  .hero-bio {
    margin: 0 auto;
    border-left: none;
    border-top: 2px solid #f97316;
    padding-left: 0;
    padding-top: 14px;
  }

  .hero-actions {
    justify-content: center;
  }

  .stat-badge {
    display: none;
  }

  #hero .mt-5.flex a {
    width: 100%;
    justify-content: center;
  }

  #services .md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  #services article {
    padding: 18px !important;
  }

  main h2 {
    font-size: 34px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 30px !important;
  }

  main h2 {
    font-size: 30px !important;
  }
}




