:root {
  --forest: #0d5c35;
  --forest-deep: #084528;
  --orange: #e03e12;
  --orange-soft: #f0552a;
  --navy: #0a1c36;
  --navy-mid: #1a3358;
  --white: #ffffff;
  --surface: #fafafa;
  --ink: #0a1c36;
  --muted: #5a6577;
  --line: rgba(10, 28, 54, 0.1);
  --line-strong: rgba(10, 28, 54, 0.16);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.75rem);
  --max: 70rem;
  --header-h: 4.5rem;
  --shadow-soft: 0 18px 50px rgba(10, 28, 54, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  background: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 28, 54, 0.04);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.brand-mark img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-mid);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--forest);
}

.nav-cta {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--navy);
  border-radius: 0.25rem;
  color: var(--navy) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 45;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-checkbox:checked + .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-checkbox:checked + .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2.5rem) var(--space) 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(13, 92, 53, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 18%, rgba(224, 62, 18, 0.05), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f7f9f8 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.circuit-field {
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.traces path {
  stroke-dasharray: 10 12;
  animation: dash 32s linear infinite;
}

.traces path:nth-child(2) {
  animation-duration: 40s;
  animation-direction: reverse;
}

.traces path:nth-child(3) {
  animation-duration: 26s;
}

.nodes circle {
  animation: pulse-node 3.8s ease-in-out infinite;
}

.nodes circle:nth-child(2) { animation-delay: 0.4s; }
.nodes circle:nth-child(3) { animation-delay: 0.9s; }
.nodes circle:nth-child(4) { animation-delay: 1.3s; }
.nodes circle:nth-child(5) { animation-delay: 1.8s; }
.nodes circle:nth-child(6) { animation-delay: 2.2s; }

.hero-glow {
  position: absolute;
  width: min(68vw, 38rem);
  height: min(68vw, 38rem);
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(13, 92, 53, 0.1) 0%, rgba(224, 62, 18, 0.04) 45%, transparent 70%);
  filter: blur(6px);
  animation: glow-breathe 8s ease-in-out infinite;
}

.hero-composition {
  position: relative;
  z-index: 1;
  width: min(100%, 38rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.hero-brand {
  margin: 0;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: min(100%, 28rem);
  height: auto;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-support {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 500;
  color: var(--navy-mid);
  line-height: 1.45;
  animation: rise-in 1s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.55rem;
  animation: rise-in 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border-radius: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(224, 62, 18, 0.22);
}

.btn-primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(4.75rem, 11vw, 8rem) var(--space);
  position: relative;
  background: var(--white);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
  max-width: 16ch;
}

.lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--muted);
  max-width: 40rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* About */
.about {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f8faf9 0%, #ffffff 55%);
}

.about-aside {
  margin: 0;
  max-width: 36rem;
  color: var(--navy-mid);
  border-left: 3px solid var(--forest);
  padding-left: 1.35rem;
  font-size: 1.05rem;
}

/* Services */
.service-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) 1.45fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

/* Capabilities */
.capabilities {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.capability-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.capability-list li {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.capability-list li:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.capability-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

.capability-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.gu-block {
  margin-top: 2.75rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  font-family: "Noto Sans Gujarati", var(--font-body), sans-serif;
  color: var(--navy-mid);
}

.gu-lead {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--forest-deep);
  line-height: 1.55;
}

.gu-block p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 48rem;
}

/* Portfolio */
.portfolio {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-list {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.portfolio-link {
  display: grid;
  grid-template-columns: 1.05fr 1.65fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.4rem 1.35rem;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.portfolio-link:hover,
.portfolio-link:focus-visible {
  border-color: var(--forest);
  box-shadow: 0 12px 32px rgba(13, 92, 53, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.portfolio-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.portfolio-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.portfolio-url {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(224, 62, 18, 0.05), transparent 55%),
    radial-gradient(ellipse 50% 55% at 0% 100%, rgba(13, 92, 53, 0.06), transparent 50%),
    var(--white);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-top: 2.1rem;
  max-width: 40rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(13, 92, 53, 0.12);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.text-link {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-bottom-color: var(--forest);
}

.domain-note {
  margin: 2.1rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--navy-mid);
  opacity: 0.65;
}

/* Footer */
.site-footer {
  padding: 2.1rem var(--space) 2.6rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-inner img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid var(--line);
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@media (max-width: 820px) {
  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .portfolio-link {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .portfolio-url {
    margin-top: 0.3rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 41;
    padding: calc(var(--header-h) + 1rem) var(--space) 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .nav-checkbox:checked ~ .site-nav {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .brand-mark {
    position: relative;
    z-index: 45;
  }

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

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
