/* Base */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #e7ecf5;
}

body {
  background: transparent;
  overflow: hidden; /* main handles scrolling */
}

/* Fixed background inspired by Dhauladhar */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 0%, #4f8dfd 0, #19223a 35%, #070a12 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(4, 8, 20, 0.9) 0, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(131, 177, 255, 0.35), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(137, 255, 219, 0.25), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* Layout */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(4, 7, 18, 0.88),
    rgba(4, 7, 18, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(136, 180, 255, 0.18);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo span {
  color: #8bf6ff;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: #d6e0ff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.menu-toggle-line:nth-child(1) {
  top: 3px;
}

.menu-toggle-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle-line:nth-child(3) {
  bottom: 3px;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.site-nav .nav-link {
  color: #d0daf0;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #8bf6ff, #4f8dfd);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.site-nav .nav-link:hover {
  color: #ffffff;
}

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

.site-nav .nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 214, 255, 0.7);
  background: radial-gradient(circle at 0 0, rgba(144, 214, 255, 0.4), transparent 60%),
    rgba(7, 14, 35, 0.9);
  box-shadow: 0 0 0 1px rgba(91, 160, 255, 0.2);
}

/* Scroll snap container */

.snap-container {
  position: relative;
  height: 100vh;
  margin-top: 64px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-section {
  min-height: calc(100vh - 64px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 3rem 3.5rem 4rem;
  display: flex;
  align-items: center;
}

/* Generic section content */

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.section h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.02rem;
  max-width: 32rem;
  color: #c4d0eb;
  margin-bottom: 1.5rem;
}

p {
  line-height: 1.6;
}

/* Hero */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: #9cb6ff;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #cfd9f2;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.hero-bullets {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #b5c5ea;
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(79, 141, 253, 0.15);
  border: 1px solid rgba(79, 141, 253, 0.3);
  border-radius: 0.4rem;
  color: #8bf6ff;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(79, 141, 253, 0.25);
  border-color: rgba(79, 141, 253, 0.5);
  transform: translateY(-1px);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.hero-badge {
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: rgba(10, 18, 38, 0.9);
  border: 1px solid rgba(149, 207, 255, 0.45);
  box-shadow: 0 18px 40px rgba(9, 19, 47, 0.6);
}

.badge-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9cb6ff;
  margin-bottom: 0.35rem;
}

.badge-value {
  font-size: 0.9rem;
}

.hero-metric-card {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(74, 130, 255, 0.22), rgba(7, 14, 35, 0.97));
  border: 1px solid rgba(116, 181, 255, 0.7);
}

.metric-label {
  font-size: 0.8rem;
  color: #c6d5ff;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.metric-note {
  font-size: 0.78rem;
  color: #b3c4ef;
}

/* Scroll next button */

.scroll-next {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  background: transparent;
  color: #a9bfee;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-next.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-icon {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(4px);
  }
}

/* Cards / grids */

.cards-grid {
  display: grid;
  gap: 1.8rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  padding: 1.4rem 1.3rem;
  border-radius: 1rem;
  background: rgba(8, 16, 37, 0.94);
  border: 1px solid rgba(143, 196, 255, 0.35);
  box-shadow: 0 16px 40px rgba(4, 8, 24, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 246, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(4, 10, 30, 0.9);
  border-color: rgba(159, 216, 255, 0.8);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  filter: grayscale(0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
  filter: grayscale(0);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card-icon + h3 {
  margin-top: 0.3rem;
}

.card p {
  font-size: 0.93rem;
}

.card ul {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #c0cfee;
}

/* Code snippet */
.code-snippet {
  margin-top: 1.5rem;
  border-radius: 0.6rem;
  background: rgba(4, 8, 20, 0.95);
  border: 1px solid rgba(79, 141, 253, 0.3);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(7, 14, 35, 0.8);
  border-bottom: 1px solid rgba(79, 141, 253, 0.2);
}

.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 246, 255, 0.6);
}

.code-dot:nth-child(2) {
  background: rgba(79, 141, 253, 0.6);
}

.code-dot:nth-child(3) {
  background: rgba(137, 255, 219, 0.6);
}

.code-title {
  font-size: 0.75rem;
  color: #9cb6ff;
  margin-left: 0.3rem;
}

.code-snippet pre {
  margin: 0;
  padding: 1rem 1.2rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e7ecf5;
  overflow-x: auto;
}

.code-snippet code {
  color: inherit;
}

.code-keyword {
  color: #8bf6ff;
}

.code-variable {
  color: #89ffdb;
}

.code-property {
  color: #9cb6ff;
}

.code-string {
  color: #ffd89b;
}

/* About stats */

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

.stat {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(6, 13, 32, 0.9);
  border: 1px solid rgba(126, 182, 255, 0.4);
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: #b8c7ea;
}

/* Process */

.process-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}

.process-steps li h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.process-steps li p {
  font-size: 0.85rem;
  color: #c2d1f0;
}

/* Projects */

.project-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb5ff;
}

.project-results {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #c0cfee;
}

/* Why us / testimonials */

.why-list {
  padding-left: 1.1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #c6d3f0;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(8, 15, 33, 0.96);
  border: 1px solid rgba(153, 197, 255, 0.5);
}

.testimonial-author {
  font-size: 0.78rem;
  color: #a9bae4;
  margin-top: 0.5rem;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.faq-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.faq-item p {
  font-size: 0.86rem;
  color: #c4d3f0;
}

/* Contact */

.contact-section {
  align-items: flex-start;
}

.contact-highlights {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #c5d3f3;
}

.contact-form {
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: 1rem;
  background: rgba(7, 13, 28, 0.97);
  border: 1px solid rgba(140, 199, 255, 0.6);
  box-shadow: 0 20px 60px rgba(3, 7, 19, 0.95);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  color: #cfd9ff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(115, 173, 255, 0.6);
  background: rgba(1, 4, 14, 0.9);
  color: #e7ecff;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #8bf6ff;
  box-shadow: 0 0 0 1px rgba(139, 246, 255, 0.6);
}

.contact-note {
  font-size: 0.8rem;
  color: #b3c5ef;
  margin-top: 0.7rem;
}

.form-message {
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-message-success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.form-message-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: #0b1221;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8bf6ff, #4f8dfd);
  box-shadow: 0 12px 30px rgba(17, 99, 230, 0.7);
}

.btn-outline {
  background: transparent;
  color: #d3ddff;
  border-color: rgba(165, 208, 255, 0.7);
}

.btn-full {
  width: 100%;
}

/* Reveal animations */

.reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(136, 180, 255, 0.18);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 3.5rem;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  color: #93a4d4;
}

/* Responsive */

@media (max-width: 1024px) {
  .site-header {
    padding: 0 1.6rem;
  }

  .snap-section {
    padding: 2.3rem 1.6rem 3.2rem;
  }

  .hero-inner,
  .section-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .site-header {
    height: 56px;
    padding: 0.5rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .snap-container {
    position: static;
    height: auto;
    margin-top: 56px;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    padding: 0.7rem 1rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.86rem;
    background: rgba(5, 10, 25, 0.97);
    border-bottom: 1px solid rgba(136, 180, 255, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .snap-section {
    min-height: auto;
    padding: 1.8rem 1.2rem 2.4rem;
    align-items: flex-start;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .hero-bullets {
    font-size: 0.86rem;
  }

  .services-grid,
  .projects-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .footer-inner {
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
  }

  .tech-badges {
    gap: 0.5rem;
  }

  .tech-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .code-snippet {
    margin-top: 1rem;
  }

  .code-snippet pre {
    font-size: 0.75rem;
    padding: 0.8rem 1rem;
  }

  .card-icon {
    font-size: 1.6rem;
  }

  .scroll-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 0.45rem 0.8rem;
  }

  .logo {
    font-size: 0.88rem;
  }

  .site-nav {
    gap: 0.55rem;
    font-size: 0.72rem;
  }

  .snap-section {
    padding: 1.5rem 1rem 2rem;
  }

  .section h2 {
    font-size: 1.7rem;
  }
}