/* ZoraTechLabs — premium, professional design with vibrant sky blue & white */
:root {
  --brand: #0066ff; /* vibrant sky blue */
  --brand-light: #4d9eff; /* lighter sky blue */
  --brand-strong: #0052cc; /* darker sky blue */
  --brand-dark: #003d99; /* deep sky blue */
  --bg: #ffffff;
  --panel: #f0f7ff;
  --panel-light: #f8fbff;
  --text: #0a1428;
  --text-secondary: #4a5f7f;
  --line: #d0e3f5;
  --line-light: #e8f1f9;
  --shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
  --shadow-lg: 0 20px 48px rgba(0, 102, 255, 0.16);
  --radius: 0px; /* remove rounding globally */
  --container: 1280px;
  /* Professional background image (tech/apps desk scene) */
  --site-bg-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=2000&q=60");
  /* Motion tokens */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 320ms;
  --motion-medium: 560ms;
  --motion-slow: 1200ms;
  --reveal-duration: var(--motion-medium);
  --reveal-distance: 16px;
}

* {
  box-sizing: border-box;
}
/* Global radius reset */
*, *::before, *::after {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-smooth);
}
body.loaded {
  opacity: 1;
}

/* Site-wide background image overlay (gaming/apps collection) */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(120deg, rgba(0, 102, 255, 0.10), rgba(77, 158, 255, 0.05)), var(--site-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  filter: blur(5px) saturate(104%) brightness(0.98);
  opacity: 0.16; /* subtle, keeps text readable */
}

@media (max-width: 768px) {
  html::before {
    filter: blur(7px) saturate(108%) brightness(0.97);
    opacity: 0.18; /* slightly stronger on mobile for visual depth */
    background-position: center top;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header - Premium and Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-light);
  box-shadow: 0 2px 12px rgba(0, 102, 255, 0.06);
  transition: all 200ms ease;
}

.site-header:hover {
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  position: relative;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 200ms ease;
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  height: 36px;
  display: block;
}

/* Improved navigation styling with better spacing and hover effects */
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 200ms ease;
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  transition: width 220ms ease;
  border-radius: 2px;
}

.nav a:hover {
  color: var(--brand);
  background: rgba(0, 102, 255, 0.05);
}

.nav a:hover::after {
  width: calc(100% - 24px);
}

/* Enhanced CTA button with premium styling */
.site-header .btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 280ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.site-header .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  opacity: 0;
  transition: opacity 280ms ease;
  border-radius: 10px;
  z-index: -1;
}

.site-header .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.site-header .btn-primary:active {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
}

/* Buttons - Premium with gradients */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 200ms var(--ease-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--line);
  transition: all 200ms ease;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--panel-light);
}

/* Hero Section - Bold and Engaging */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 40%, #f0f7ff 100%);
  border-bottom: 1px solid var(--line-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -40px auto auto;
  height: 400px;
  width: 400px;
  background: radial-gradient(closest-side, rgba(0, 102, 255, 0.2), rgba(0, 102, 255, 0));
  filter: blur(12px);
  will-change: transform, opacity;
  animation: blobFloat 16s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 100px 0;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 13px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.1;
  margin: 12px 0 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.hero-trust {
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

/* Hero Visual Cards */
.hero-visual {
  position: relative;
  min-height: 380px;
}

.visual-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(8px);
}

.vc1 {
  right: 12%;
  top: 2%;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 247, 255, 0.8) 100%);
  animation: cardFloat 9s ease-in-out infinite;
}

.vc2 {
  right: 2%;
  top: 36%;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 243, 255, 0.9) 100%);
  animation: cardFloat 11s ease-in-out infinite;
  animation-delay: 0.4s;
}

.vc3 {
  right: 24%;
  top: 60%;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(235, 245, 255, 0.8) 100%);
  animation: cardFloat 10s ease-in-out infinite;
  animation-delay: 0.2s;
}

.visual-grid {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 75%;
}

.visual-grid div {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: rgba(240, 247, 255, 0.5);
  animation: gridPulse 8s ease-in-out infinite;
}

.visual-grid div:nth-child(3n) {
  animation-delay: 0.6s;
}
.visual-grid div:nth-child(4n) {
  animation-delay: 1.2s;
}
.visual-grid div:nth-child(5n) {
  animation-delay: 1.8s;
}

/* Keyframes */
@keyframes heroGradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 60% 40%;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 12px) scale(1.08);
    opacity: 0.65;
  }
  100% {
    transform: translate(10px, -16px) scale(1);
    opacity: 0.5;
  }
}

@keyframes cardFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    box-shadow: none;
    background-color: rgba(240, 247, 255, 0.5);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.6);
  }
}

@keyframes workFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--panel-light);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 4px;
  margin-top: 12px;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 240ms var(--ease-smooth);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}

.card .icon img {
  height: 32px;
}
.card h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  font-weight: 700;
}
.card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 12px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--panel-light);
  font-weight: 600;
  color: var(--brand);
}

.list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.list li {
  padding: 10px 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--line-light);
  font-size: 14px;
  line-height: 1.5;
}

.list li:first-child {
  border-top: none;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.work-card {
  display: block;
  color: inherit;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all 240ms var(--ease-smooth);
  position: relative;
  cursor: default;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  z-index: 2;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}

.work-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 280ms var(--ease-smooth);
}

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

.work-meta {
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.work-meta h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.work-meta span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* Work Thumbnails (now using real images) */

.work-grid .work-card {
  animation: workFloat 12s ease-in-out infinite;
}
.work-grid .work-card:nth-child(2) {
  animation-duration: 13s;
  animation-delay: 0.3s;
}
.work-grid .work-card:nth-child(3) {
  animation-duration: 11s;
  animation-delay: 0.6s;
}
.work-grid .work-card:nth-child(4) {
  animation-duration: 12.5s;
  animation-delay: 0.9s;
}
.work-grid .work-card:nth-child(5) {
  animation-duration: 13.5s;
  animation-delay: 1.2s;
}
.work-grid .work-card:nth-child(6) {
  animation-duration: 10.5s;
  animation-delay: 1.5s;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
}

.about-copy h2 {
  font-size: 36px;
  font-weight: 900;
  margin: 0 0 16px;
}
.about-copy p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
}

.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.bullets li {
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  color: var(--text-secondary);
  font-weight: 500;
}

.bullets li:first-child {
  border-top: none;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 240ms var(--ease-smooth);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat .num {
  display: block;
  font-weight: 900;
  font-size: 28px;
  color: var(--brand);
}

.stat .label {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}

/* Process Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.step {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 240ms var(--ease-smooth);
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step .num {
  display: inline-block;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 8px;
  padding: 5px 10px;
}

.step h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Engagement Plans */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.plan {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 240ms var(--ease-smooth);
}

.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.plan p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.plan .note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--brand);
  background: rgba(0, 102, 255, 0.08);
  border: 1.5px solid rgba(0, 102, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.faq details {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: all 240ms var(--ease-smooth);
}

.faq details:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-light);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
}

.faq p {
  padding: 0 18px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 50%, #f0f7ff 100%);
  border-top: 1px solid var(--line-light);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  padding: 32px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.contact-copy h2 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 8px;
}
.contact-copy p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-light);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  padding: 40px 0;
}

.footer-brand img {
  height: 28px;
}
.footer-brand p {
  color: var(--text-secondary);
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 28px;
}

.footer-links h5 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-meta {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

/* Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(var(--reveal-distance)) scale(0.995);
  filter: saturate(90%);
  will-change: transform, opacity;
  transition: opacity var(--reveal-duration) var(--ease-smooth), transform var(--reveal-duration) var(--ease-smooth),
    filter var(--reveal-duration) ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
}

.modal-panel {
  position: relative;
  width: min(840px, 92vw);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-light);
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.modal-sub {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.close {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 8px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  font-weight: 600;
  transition: all 200ms ease;
}

.close:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--panel-light);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line-light);
}

.modal-tabs .tab {
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 200ms ease;
}

.modal-tabs .tab:hover {
  color: var(--brand);
}
.modal-tabs .tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: var(--panel-light);
}

.modal-body {
  padding: 20px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
select,
textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  transition: all 200ms ease;
  background: var(--bg);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
  background: var(--panel-light);
}

input[type="file"] {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.hint {
  color: var(--text-secondary);
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

html[data-motion="on"] .reveal-on-scroll {
  opacity: 0 !important;
  transform: translateY(var(--reveal-distance)) scale(0.995) !important;
  filter: saturate(90%) !important;
  transition: opacity var(--reveal-duration) var(--ease-smooth), transform var(--reveal-duration) var(--ease-smooth),
    filter var(--reveal-duration) ease !important;
}

html[data-motion="on"] .reveal-on-scroll.revealed {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 80px 0;
  }

  .visual-grid {
    position: static;
    width: 100%;
  }

  .about-grid,
  .contact-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .engagement-grid {
    grid-template-columns: 1fr 1fr;
  }
  .faq {
    grid-template-columns: 1fr;
  }
}

/* Professional mobile header with enhanced UX */
@media (max-width: 768px) {
  /* Slight right offset and cleaner spacing for hero copy */
  .hero-content { padding-left: 12px; }
  .hero-title { margin: 10px 0 12px; }
  .hero-subtitle { line-height: 1.7; }
  /* Adjust header padding for mobile */
  .site-header {
    box-shadow: 0 1px 8px rgba(0, 102, 255, 0.08);
  }

  .container {
    padding: 0 20px;
  }

  .header-inner {
    gap: 12px;
    padding: 16px 0;
  }

  /* Logo sizing for mobile */
  .logo img {
    height: 32px;
  }

  /* Backdrop overlay - dark semi-transparent background when menu is open */
  .header-inner::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms var(--ease-smooth),
                visibility 0s linear 280ms;
  }

  .header-inner.nav-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms var(--ease-smooth),
                visibility 0s linear 0s;
  }

  /* Mobile navigation menu */
  .nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.15);
    z-index: 999;
    gap: 2px;
    max-width: 400px;
    margin: 0 auto;
    animation: slideDown 280ms var(--ease-smooth);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .header-inner.nav-open .nav {
    display: flex;
  }

  /* Mobile navigation links */
  .nav a {
    padding: 14px 16px;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: all 200ms ease;
    position: relative;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:active {
    background: var(--panel-light);
    color: var(--brand);
    transform: translateX(4px);
  }

  /* Add icons to mobile nav items for better visual hierarchy */
  .nav a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--brand-light);
    border-radius: 50%;
    margin-right: 12px;
    opacity: 0;
    transition: opacity 200ms ease;
  }

  .nav a:hover::before {
    opacity: 1;
  }

  /* Hamburger menu toggle button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 220ms ease;
    position: relative;
    overflow: hidden;
  }

  .nav-toggle:hover {
    border-color: var(--brand);
    background: var(--panel-light);
    transform: scale(1.05);
  }

  .nav-toggle:active {
    transform: scale(0.98);
  }

  /* Hamburger icon lines */
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 280ms var(--ease-smooth);
    position: absolute;
  }

  .nav-toggle span:nth-child(1) {
    top: 14px;
  }

  .nav-toggle span:nth-child(2) {
    top: 21px;
  }

  .nav-toggle span:nth-child(3) {
    top: 28px;
  }

  /* Animate hamburger to X when open */
  .header-inner.nav-open .nav-toggle {
    border-color: var(--brand);
    background: var(--brand);
  }

  .header-inner.nav-open .nav-toggle span {
    background: #fff;
  }

  .header-inner.nav-open .nav-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .header-inner.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .header-inner.nav-open .nav-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* CTA button styling for mobile */
  .site-header .btn-primary {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 10px;
  }

  /* Hide CTA text on very small screens, show icon only */
  @media (max-width: 380px) {
    .site-header .btn-primary {
      padding: 0 14px;
      font-size: 0;
    }
    
    .site-header .btn-primary::after {
      content: "→";
      font-size: 18px;
      font-weight: 700;
    }
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 0;
  }

  .hero-title {
    font-size: clamp(32px, 5vw, 56px);
  }

  .visual-grid,
  .vc1,
  .vc2,
  .vc3 {
    display: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
  /* Hide secondary CTA and trust line on mobile for cleaner hero */
  .hero-cta .btn-ghost { display: none; }
  .hero-cta .btn-primary { display: none; }
  .hero-trust { display: none; }

  .cards,
  .work-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .step {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 22px;
  }
  /* Extra offset for very small screens */
  .hero-content { padding-left: 16px; }

  .section {
    padding: 48px 0;
  }

  .hero-grid {
    padding: 36px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header h2::after {
    width: 48px;
  }

  .section-header p {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .header-inner {
    padding: 8px 0;
  }

  .logo img {
    height: 32px;
  }

  .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .modal-panel {
    width: 96vw;
  }

  .modal-tabs .tab {
    font-size: 13px;
    padding: 12px 14px;
  }

  .work-thumb {
    height: 120px;
  }

  .card {
    padding: 20px;
  }

  .plan {
    padding: 20px;
  }

  .stat {
    padding: 18px;
  }

  .step h3 {
    font-size: 15px;
  }

  .step p {
    font-size: 13px;
  }

  .card h3 {
    font-size: 18px;
  }

  .card p {
    font-size: 15px;
  }

  .work-meta {
    padding: 12px 14px;
  }

  .work-meta h4 {
    font-size: 15px;
  }

  .about-copy h2 {
    font-size: 28px;
  }

  .about-copy p {
    font-size: 15px;
  }

  .contact-copy h2 {
    font-size: 24px;
  }

  .contact-copy p {
    font-size: 14px;
  }

  .contact-panel {
    padding: 20px;
    gap: 16px;
  }

  .faq summary {
    padding: 14px 14px;
    font-size: 14px;
  }

  .faq p {
    padding: 0 14px 14px;
    font-size: 14px;
  }
}
