/* =============================================================
   TechYatra Business Solutions — Main Stylesheet
   Structure:
     1.  Design Tokens (CSS variables)
     2.  Reset & Base
     3.  Navigation
     4.  Hero
     5.  Process Section
     6.  Section — General
     7.  Services Grid
     8.  Approach / Stats
     9.  Projects Grid
    10.  Contact
    11.  Footer
    12.  Reveal Animations
    13.  Responsive (1024 → 900 → 640 px)
   ============================================================= */


/* ─── 1. Design Tokens ──────────────────────────────────────── */
:root {
  --grey-light: #F2F2F0;
  --grey-mid: #6B6E76;
  --graphite: #2B2D31;
  --ink: #1A1B1E;
  --yellow: #F4C430;
  --white: #FFFFFF;
}


/* ─── 2. Reset & Base ───────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--grey-light);
  color: var(--graphite);
  line-height: 1.6;
  background-image:
    linear-gradient(rgba(43, 45, 49, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 45, 49, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}


/* ─── 3. Navigation ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6%;
  background: rgba(212, 212, 211, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(43, 45, 49, 0.08);
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img,
.logo-mark svg {
  width: 100%;
  height: 100%;
}

.footer-logo .logo-mark {
  width: 50px;
  height: 50px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width .25s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--graphite);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s;
}

.nav-cta:hover {
  background: var(--ink);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--graphite);
}


/* ─── 4. Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6% 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative SVG layer */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-decor svg {
  position: absolute;
}

.hero-decor .circle-ring {
  top: 8%;
  right: 6%;
  width: 340px;
  height: 340px;
  opacity: .15;
}

.hero-decor .circle-ring circle {
  fill: none;
  stroke: var(--graphite);
  stroke-opacity: .1;
  stroke-width: 1;
}

.hero-decor .circle-ring .dash {
  stroke: var(--yellow);
  stroke-opacity: .8;
  stroke-width: 2;
  stroke-dasharray: 6 10;
  animation: spin 40s linear infinite;
  transform-origin: 170px 170px;
}

.hero-decor .crosshair {
  bottom: 10%;
  right: 18%;
  width: 120px;
  height: 120px;
  opacity: .12;
}

.hero-decor .crosshair line {
  stroke: var(--graphite);
  stroke-width: 1;
}

.hero-decor .crosshair circle {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
}

.hero-decor .plus-grid {
  top: 18%;
  left: 2%;
  width: 140px;
  height: 140px;
  opacity: .25;
}

.hero-decor .plus-grid path {
  stroke: var(--graphite);
  stroke-width: 1;
}

.hero-decor .corner-bracket {
  width: 60px;
  height: 60px;
  opacity: .3;
}

.hero-decor .corner-bracket path {
  stroke: var(--graphite);
  stroke-width: 1.5;
  fill: none;
}

.hero-decor .bracket-tl {
  top: 90px;
  left: 2%;
}

.hero-decor .bracket-br {
  bottom: 6%;
  right: 2%;
  transform: rotate(180deg);
}

.hero-decor .db-stack {
  bottom: 8%;
  right: 8%;
  width: 70px;
  height: 90px;
  opacity: .12;
}

.hero-decor .db-stack ellipse,
.hero-decor .db-stack path {
  stroke: var(--graphite);
  stroke-width: 1.5;
  fill: none;
}

.hero-decor .flowchart {
  top: 6%;
  right: 2%;
  width: 78%;
  height: 88%;
  opacity: .35;
}

.hero-decor .flowchart rect,
.hero-decor .flowchart path,
.hero-decor .flowchart polygon {
  stroke: var(--graphite);
  stroke-width: 1.2;
  fill: none;
}

.hero-decor .flowchart .node-fill {
  fill: var(--yellow);
  fill-opacity: .5;
  stroke: none;
}

.hero-decor .flowchart .flow-line {
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-opacity: .9;
  stroke-dasharray: 6 10;
  animation: flowmove 2.2s linear infinite;
}

.hero-decor .flowchart .flow-line.rev {
  animation-direction: reverse;
}

.hero-decor .flowchart .flow-dot {
  fill: var(--yellow);
}

.hero-decor .system-nodes {
  top: 6%;
  right: 6%;
  width: 110px;
  height: 110px;
  opacity: .12;
}

.hero-decor .system-nodes circle,
.hero-decor .system-nodes rect {
  stroke: var(--graphite);
  stroke-width: 1.2;
  fill: none;
}

.hero-decor .system-nodes line {
  stroke: var(--graphite);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

/* Hero text */
.hero-eyebrow,
.hero h1,
.hero p,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-mid);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .7s ease forwards;
  animation-delay: .1s;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 1100px;
  opacity: 0;
  animation: fadeUp .8s ease forwards;
  animation-delay: .25s;
}

.hero h1 .accent {
  color: var(--yellow);
  -webkit-text-stroke: 0;
}

.hero p {
  margin-top: 28px;
  font-size: 1.15rem;
  color: var(--grey-mid);
  max-width: 560px;
  opacity: 0;
  animation: fadeUp .8s ease forwards;
  animation-delay: .4s;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease forwards;
  animation-delay: .55s;
}

/* Buttons */
.btn-primary {
  background: var(--graphite);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s, background .2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1.5px solid var(--graphite);
  padding: 16px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--graphite);
  color: var(--white);
}

/* Hero keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flowmove {
  to {
    stroke-dashoffset: -32;
  }
}

@keyframes dotmove {
  to {
    offset-distance: 100%;
  }
}


/* ─── 5. Process Section ────────────────────────────────────── */
.process-section {
  padding: 80px 6% 100px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.process-section .section-eyebrow {
  color: var(--yellow);
}

.process-section h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.process-sub {
  color: #A9ACB3;
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 560px;
}

/* Subtle animated grid background */
.process-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(244, 196, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 196, 48, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Tab bar */
.process-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}

.process-tabs::-webkit-scrollbar {
  display: none;
}

.process-tab {
  flex: none;
  padding: 14px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #A9ACB3;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}

.process-tab:hover {
  color: var(--white);
}

.process-tab.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* Progress bar */
.process-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.progress-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

.progress-label {
  font-size: 0.8rem;
  color: #A9ACB3;
  font-weight: 600;
  white-space: nowrap;
}

/* Panel content */
.process-content {
  position: relative;
  z-index: 1;
}

.process-panel {
  display: none;
}

.process-panel.active {
  display: block;
  animation: panelIn .4s ease forwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Main phase card */
.process-main-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}

.process-main-card:hover {
  border-color: rgba(244, 196, 48, 0.4);
}

.process-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
}

.process-phase-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(244, 196, 48, 0.12);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.process-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.process-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-main-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.process-main-card .phase-desc {
  color: #A9ACB3;
  font-size: 1rem;
  line-height: 1.7;
}

/* Detail cards column */
.process-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s;
}

.process-detail-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 196, 48, 0.25);
  transform: translateX(4px);
}

.process-detail-card h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-detail-card p {
  color: #A9ACB3;
  font-size: 0.88rem;
  line-height: 1.6;
}


/* ─── 6. Section — General ──────────────────────────────────── */
section {
  padding: 100px 6%;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-mid);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}


/* ─── 7. Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(43, 45, 49, 0.12);
}

.service-card {
  background: var(--grey-light);
  padding: 40px 32px;
  transition: background .3s;
}

.service-card:hover {
  background: var(--white);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  background: var(--graphite);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.service-card:hover .icon {
  background: var(--yellow);
}

.service-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  transition: stroke .3s;
}

.service-card:hover .icon svg {
  stroke: var(--ink);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--grey-mid);
  font-size: 0.95rem;
}


/* ─── 8. Approach / Stats ───────────────────────────────────── */
.approach {
  background: var(--graphite);
  color: var(--white);
}

.approach .section-eyebrow {
  color: var(--yellow);
}

.approach .section-head h2 {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  margin-top: 20px;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  color: #A9ACB3;
  font-size: 0.9rem;
  margin-top: 8px;
}


/* ─── 9. Projects Grid ──────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 8px;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(43, 45, 49, 0.1);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(43, 45, 49, 0.12);
}

.project-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--grey-light) 0%, #e5e5e1 100%);
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.project-card:hover .project-thumb::after {
  transform: scaleX(1);
}

.project-body {
  padding: 28px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  margin-bottom: 10px;
}

.project-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--grey-mid);
  font-size: 0.9rem;
}


/* ─── 10. Contact ───────────────────────────────────────────── */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin: 28px 0 6px;
}

.contact-info p {
  color: var(--grey-mid);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-row>* {
  flex: 1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(43, 45, 49, 0.2);
  background: var(--grey-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color .2s, background .2s;
  border-radius: 2px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--yellow);
  background: var(--white);
  outline: none;
}

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

.submit-btn {
  background: var(--graphite);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
  background: var(--ink);
}

.form-success {
  display: none;
  background: var(--grey-light);
  border-left: 3px solid var(--yellow);
  padding: 16px;
  font-size: 0.9rem;
  margin-top: 14px;
}

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


/* ─── 11. Footer ────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #A9ACB3;
  padding: 60px 6% 30px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}


/* ─── 12. Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ─── 13. Responsive ────────────────────────────────────────── */

/* Tablet: ≤ 1024 px */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-card-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Medium: ≤ 900 px */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .form-row {
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

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

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    gap: 32px;
  }
}

/* Mobile: ≤ 640 px */
@media (max-width: 640px) {
  nav {
    padding: 16px 5%;
  }

  .hero {
    padding: 120px 5% 60px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  section {
    padding: 72px 5%;
  }

  .process-section {
    padding: 64px 5% 80px;
  }

  .section-head {
    margin-bottom: 40px;
  }

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

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

  .process-card-layout {
    grid-template-columns: 1fr;
  }

  .process-tabs {
    gap: 0;
  }

  .process-tab {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .process-main-card {
    padding: 28px 24px;
  }

  .process-phase-num {
    font-size: 2.8rem;
  }

  .process-details-col {
    gap: 14px;
  }

  .process-detail-card {
    padding: 18px 20px;
  }

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

  .stat-num {
    font-size: 2.2rem;
  }

  .contact-grid {
    gap: 36px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-decor .circle-ring {
    width: 220px;
    height: 220px;
    top: 4%;
    right: 2%;
  }

  .hero-decor .flowchart {
    display: none;
  }
}

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