.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header + main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

.hero {
  position: relative;
  padding: 3rem 0 6rem;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.3), transparent);
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 1rem;
  margin: 0 0 1rem;
}

.btn,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 1rem 1.5rem;
}

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

.stat {
  min-width: 0;
  padding: 1.2rem 1.25rem;
}

.hero-card {
  padding: 1.15rem;
}

.card-image {
  display: flex;
  align-items: flex-end;
  height: 480px;
  padding: 1.75rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  animation: heroImageZoom 9s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes heroImageZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.about,
.services,
.projects,
.contact {
  padding: 0 0 5rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.section-heading .section-tag {
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card,
.project-card {
  min-height: 100%;
  padding: 2.2rem;
  display: grid;
  gap: 1rem;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  object-fit: cover;
  display: block;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.contact {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.contact-top-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.3rem;
}

.contact-info-panel {
  display: grid;
  gap: 0.95rem;
}

.contact-card,
.contact-form {
  padding: 1rem;
}

.map-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  padding: 1.5rem;
}

.contact-form-wrap {
  padding: 0.85rem;
}

.contact-trust {
  margin-bottom: 0.55rem;
}

.about-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.story-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  border: 1px solid rgba(13, 59, 102, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
}

.story-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--blue-950);
}

.story-card p {
  color: var(--muted);
  line-height: 1.8;
}

.testimonials {
  padding: 4rem 0 5rem;
}

.testimonials .section-heading {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 42%);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0;
  scroll-behavior: smooth;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  scroll-snap-align: center;
  min-height: 280px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 59, 102, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card.active {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.testimonial-top {
  display: grid;
  gap: 1rem;
}

.testimonial-rating {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--yellow-300);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.testimonial-client {
  display: grid;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.testimonial-client strong {
  color: var(--blue-950);
}

.testimonial-client span {
  color: var(--muted);
}

.testimonial-card p {
  color: var(--text);
  line-height: 1.9;
}

.slider-arrow {
  border: none;
  background: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  transform: translateY(-2px);
  background: var(--blue-50);
}

.slider-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--blue-900);
}

@media (max-width: 960px) {
  .testimonial-slider {
    grid-template-columns: 1fr auto auto;
  }

  .testimonial-track {
    grid-auto-columns: minmax(280px, 76vw);
  }
}

@media (max-width: 720px) {
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    grid-auto-columns: minmax(80vw, 80vw);
  }

  .slider-arrow {
    width: 3.4rem;
    height: 3.4rem;
  }

  .testimonial-card {
    min-height: 260px;
  }
}

.why-varma {
  margin-top: 3rem;
}

.section-subtitle {
  margin-bottom: 1.6rem;
}

.section-subtitle .section-tag {
  margin-bottom: 0;
}

.why-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.why-tile {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
}

.why-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.52), rgba(13, 59, 102, 0.84));
}

.tile-overlay {
  position: relative;
  z-index: 1;
  padding: 1.7rem 1rem;
}

.tile-overlay h4 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.tile-overlay p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 20rem;
  margin: 0 auto;
}

.tile-epc {
  background-image: linear-gradient(180deg, rgba(13, 59, 102, 0.34), rgba(13, 59, 102, 0.74)), url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80");
}

.tile-generation {
  background-image: linear-gradient(180deg, rgba(13, 59, 102, 0.34), rgba(13, 59, 102, 0.74)), url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80");
}

.tile-sales {
  background-image: linear-gradient(180deg, rgba(13, 59, 102, 0.34), rgba(13, 59, 102, 0.74)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80");
}

.tile-integration {
  background-image: linear-gradient(180deg, rgba(13, 59, 102, 0.34), rgba(13, 59, 102, 0.74)), url("../images/gallery/project3.jpeg");
}

.why-copy {
  margin-top: 1.6rem;
  max-width: 56rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .about-panels,
  .why-tiles {
    grid-template-columns: 1fr;
  }

  .why-tile {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .about-panels {
    gap: 1rem;
  }

  .why-copy {
    margin-top: 1rem;
  }
}

.gallery {
  padding-bottom: 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery-actions {
  text-align: center;
  margin-top: 2rem;
}

.gallery-actions .btn {
  min-width: 210px;
}

.gallery-tile {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(13, 59, 102, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  transform-origin: center center;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.12), rgba(13, 59, 102, 0.48));
  transition: background 0.35s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  background: rgba(13, 59, 102, 0.52);
  transition: opacity 0.35s ease;
  text-align: center;
}

.gallery-overlay h3 {
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}

.gallery-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 28px 60px rgba(13, 59, 102, 0.18);
}

.gallery-tile:hover::before {
  background: linear-gradient(180deg, rgba(13, 59, 102, 0.32), rgba(13, 59, 102, 0.72));
}

.gallery-tile:hover .gallery-overlay {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 25, 56, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 2000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-content {
  position: relative;
  max-width: min(95vw, 1100px);
  width: 100%;
  max-height: min(95vh, 820px);
  border-radius: 26px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 1;
}

.lightbox.active .lightbox-content {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: calc(95vh - 3rem);
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-950);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(13, 59, 102, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.05);
  background: #ffffff;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.8rem 0.95rem;
}

.form-note {
  margin-top: 0.35rem;
}

.service-modal {
  padding: 1.5rem;
}

.service-modal-content {
  padding: 2rem;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 12px;
  z-index: 999;
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.floating-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.floating-icon.back-to-top {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.floating-icon.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-icon.back-to-top:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
}

.site-footer {
  padding: 2.5rem 0 7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 1.2rem;
}

.footer-copy {
  max-width: 34rem;
  line-height: 1.9;
}

.footer-details {
  display: grid;
  gap: 1.2rem;
}

.footer-details div {
  display: grid;
  gap: 0.25rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #ff9f43;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  transform: translateY(-2px) scale(1.05);
  background: #fff3e0;
  color: #e67e22;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@media (max-width: 640px) {
  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

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

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-height: auto;
    padding: 1rem 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
  }

  .hero,
  .about,
  .services,
  .projects,
  .contact {
    padding-bottom: 5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-grid,
  .section-heading-split,
  .contact-top-grid,
  .footer-grid,
  .hero-stats,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

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

  .card-image {
    height: 380px;
  }

  .map-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 1120px);
  }

  .site-header {
    position: static;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .gallery-actions {
    margin-top: 1.5rem;
  }

  .gallery-actions .btn {
    width: min(100%, 100%);
    max-width: 100%;
  }

  .service-card,
  .project-card,
  .contact-card,
  .contact-form,
  .contact-form-wrap,
  .service-modal-content {
    padding: 1.35rem;
  }

  .card-image {
    height: 300px;
    padding: 1rem;
  }

  .map-placeholder {
    min-height: 220px;
    padding: 1.5rem;
  }

  .floating-actions {
    right: 1rem;
    bottom: 1rem;
  }
}
