:root {
  --color-charcoal: #374151;
  --color-near-black: #0f172a;
  --color-body: #1e293b;
  --color-muted: #475569;
  --color-subtle: #64748b;
  --color-border: #cbd5e1;
  --color-surface: #f1f5f9;
  --color-white: #ffffff;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --overlay-dark: rgba(15, 23, 42, 0.87);
  --overlay-light: rgba(255, 255, 255, 0.94);
  --overlay-medium: rgba(248, 250, 252, 0.92);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

.font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Typography — dark, readable */
.text-heading {
  color: var(--color-near-black) !important;
  font-weight: 700;
}

.text-body {
  color: var(--color-body) !important;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.75;
}

.text-muted {
  color: var(--color-muted) !important;
  font-weight: 500;
}

.text-subtle {
  color: var(--color-subtle) !important;
  font-weight: 500;
}

.text-on-dark {
  color: #f8fafc !important;
  font-weight: 500;
}

.text-on-dark-muted {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.text-on-dark-heading {
  color: #ffffff !important;
  font-weight: 700;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.section-label-light {
  color: #94a3b8;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-near-black);
  line-height: 1.12;
}

.section-title-light {
  color: #ffffff;
}

/* Background sections */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg > .section-inner,
.section-bg > .max-w-6xl,
.section-bg > .max-w-3xl {
  position: relative;
  z-index: 1;
}

.section-bg-hero {
  background-image: url("../assets/images/hero-bg.jpg");
}

.section-bg-hero::before {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 41, 59, 0.85) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
}

.section-bg-about {
  background-image: url("../assets/images/team.jpg");
}

.section-bg-about::before {
  background: var(--overlay-light);
}

.section-bg-services {
  background-image: url("../assets/images/coding.jpg");
}

.section-bg-services::before {
  background: var(--overlay-medium);
}

.section-bg-work {
  background-image: url("../assets/images/office.jpg");
}

.section-bg-work::before {
  background: var(--overlay-light);
}

.section-bg-results {
  background-image: url("../assets/images/office.jpg");
}

.section-bg-results::before {
  background: var(--overlay-dark);
}

.section-bg-process {
  background-image: url("../assets/images/technology.jpg");
}

.section-bg-process::before {
  background: var(--overlay-medium);
}

.section-bg-contact {
  background-image: url("../assets/images/contact-bg.jpg");
}

.section-bg-contact::before {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.93) 0%,
    rgba(30, 41, 59, 0.88) 100%
  );
}

.section-bg-faq {
  background-image: url("../assets/images/laptop-code.jpg");
}

.section-bg-faq::before {
  background: rgba(255, 255, 255, 0.96);
}

/* Always scroll — fixed backgrounds cause jank */
.section-bg {
  background-attachment: scroll;
}

/* Photo credit */
.photo-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}

noscript + style + *,
.no-js .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 400ms; }

.header-blur:not(.header-dark) {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--color-border) !important;
}

.header-blur:not(.header-dark) .nav-link {
  color: var(--color-body);
  font-weight: 600;
}

.header-blur:not(.header-dark) .hamburger span {
  background: var(--color-near-black);
}


.header-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-dark {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.header-dark .nav-link {
  color: #e2e8f0;
}

.header-dark .nav-link:hover,
.header-dark .nav-link.active {
  color: #ffffff;
}

.header-dark .nav-link::after {
  background: #ffffff;
}

.header-dark .hamburger span {
  background: #ffffff;
}

.header-dark .logo-light {
  filter: brightness(0) invert(1);
}

.nav-link {
  position: relative;
  color: var(--color-charcoal);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-near-black);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-near-black);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero-image-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-image-panel img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Project card banner */
.project-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 50%);
}

.domains-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.domain-pill {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-body);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #ffffff;
  color: var(--color-near-black);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-dark {
  background: var(--color-near-black);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary-dark:hover {
  background: #1e293b;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  border: 2px solid var(--color-border);
  color: var(--color-near-black);
}

.btn-outline-dark:hover {
  border-color: var(--color-near-black);
  background: var(--color-surface);
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.card:hover {
  border-color: #94a3b8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-solid {
  background: #ffffff;
}

.stat-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-value-dark {
  color: var(--color-near-black);
}

.stat-label {
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.stat-label-dark {
  color: var(--color-muted);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-near-black);
  background: var(--color-surface);
  border-radius: 9999px;
}

.tech-chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-body);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--color-near-black);
  margin: 1.5rem 0;
}

.section-divider-light {
  background: #ffffff;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.logo-strip-item {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.logo-strip-item:hover {
  color: var(--color-near-black);
}

.process-step {
  text-align: center;
  padding: 0 1rem;
}

.process-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--color-near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-near-black);
  background: #ffffff;
}

.project-mockup {
  height: 180px;
  margin: 0;
  display: block;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.project-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 55%);
}

.project-mockup-inner,
.project-mockup-screen {
  display: none;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.2s;
  margin-top: 0;
}

.project-link:hover {
  gap: 0.5rem;
  text-decoration: underline;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-border);
}

.team-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-near-black);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-near-black);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-body);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--color-body);
  font-weight: 500;
  line-height: 1.75;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-near-black);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid var(--color-border);
  border-radius: 0.375rem;
  background: var(--color-white);
  color: var(--color-near-black);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-near-black);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #dc2626;
  margin-top: 0.25rem;
  display: none;
}

.form-group.invalid .form-error {
  display: block;
}

.form-group.invalid .form-input,
.form-group.invalid .form-textarea {
  border-color: #dc2626;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.375rem;
  color: #166534;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.form-success.show {
  display: block;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #86efac;
  font-weight: 600;
}

.response-badge-dark {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.response-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(8px);
}

.testimonial-quote {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #f1f5f9;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

.testimonial-quote::before {
  content: "\201C";
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 0.25rem;
}

.trusted-bar {
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trusted-bar .logo-strip-item {
  color: #64748b;
}

.trusted-bar .logo-strip-item:hover {
  color: #e2e8f0;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
}

.stat-box-dark {
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-near-black);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hero-image-panel {
    max-width: 100%;
    margin-top: 2rem;
  }
}
