/* Core brand styling inspired by mtech-ai.com */
:root {
  --accent: #05858d;
  --accent-dark: #046a72;
  --text: #0f172a;
  --muted: #4b5563;
  --light: #f5f7fb;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, #ffffff 0%, #eef7fb 45%, #f7fbff 100%);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Poppins", sans-serif;
  margin: 0 0 0.5rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
}

body.nav-open header {
  background: #ffffff;
  border-bottom: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text);
  position: relative;
  z-index: 35;
  padding-left: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  color: var(--text);
}

.nav-links .pill {
  padding: 0.5rem 1rem;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 35;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 15;
}

.pill {
  background: rgba(5, 133, 141, 0.1);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  width: fit-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--accent);
  box-shadow: 0 14px 30px rgba(5, 133, 141, 0.25);
  transition: all 180ms ease;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero {
  padding: 4.5rem 0 3.6rem;
  background: radial-gradient(circle at 15% 20%, rgba(5, 133, 141, 0.35), rgba(5, 133, 141, 0)) #0c1b2c;
  color: #e2e8f0;
  border-radius: 0;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.4rem);
  line-height: 1.15;
  color: #f8fafc;
}

.hero p {
  font-size: 1.05rem;
  max-width: 540px;
  color: #cbd5e1;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 6% -6% -10% 12%;
  background: linear-gradient(135deg, rgba(5, 133, 141, 0.12), rgba(5, 133, 141, 0.02));
  filter: blur(30px);
  z-index: -1;
  border-radius: 50%;
}

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

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.service-card img {
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.service-body {
  padding: 1.4rem 1.35rem 1.6rem;
}

.service-body h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.services-cta {
  margin-top: 2.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: #f0f7f9;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.services-cta p {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 8% 12% 14% -6%;
  background: rgba(5, 133, 141, 0.15);
  filter: blur(32px);
  z-index: -1;
  border-radius: 40px;
}

.about p + p {
  margin-top: 0.5rem;
}

.testimonials-section {
  background: linear-gradient(145deg, #0b1a2a, #0f2436);
  color: #e2e8f0;
  padding: 4.5rem 0;
}

.testimonials {
  background: transparent;
  border-radius: 0;
  padding: 0 3.5rem;
  box-shadow: none;
  position: relative;
  overflow: visible;
  color: #e2e8f0;
}

.testimonials .section-title {
  color: #f8fafc;
  text-align: center;
}

.testimonials .section-subtitle {
  color: #cbd5e1;
  text-align: center;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.testimonial-meta {
  font-weight: 700;
  color: #8fd9df;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: -3.5rem;
  right: -3.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.slider-btn {
  pointer-events: all;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 150ms ease;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: #f8fafc;
  color: #0b1a2a;
}

.slider-dots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 140ms ease;
}

.slider-dot.active {
  background: #8fd9df;
  border-color: #8fd9df;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.contact-left {
  background: linear-gradient(135deg, rgba(5, 133, 141, 0.15), rgba(5, 133, 141, 0.05)),
    url("../images/hero-bg.jpg") center/cover;
  border-radius: var(--radius);
  color: #fff;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.contact-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.68));
}

.contact-left > * {
  position: relative;
  z-index: 1;
}

.contact-left h3 {
  color: #fff;
  font-size: 1.6rem;
}

.contact-left p {
  color: rgba(255, 255, 255, 0.92);
}

.contact-details {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-right {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: grid;
  gap: 0.4rem;
}

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

label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f9fbff;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 133, 141, 0.18);
}

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

footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .hamburger {
    display: inline-flex;
  }

  .slider-controls {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 2.25rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: calc(100vh - 66px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 20;
    display: none;
    overflow-y: auto;
  }

  .nav-links a {
    width: 100%;
    color: var(--text);
    font-size: 1.05rem;
  }

  .nav-links .pill {
    width: fit-content;
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
  }

  body.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

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

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

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

  .slider-controls {
    position: static;
    margin-bottom: 1rem;
    justify-content: space-between;
    left: 0;
    right: 0;
    transform: none;
  }

  .testimonials {
    padding: 0 1.25rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .service-card img {
    height: 160px;
  }

  .contact-left,
  .contact-right {
    padding: 1.5rem;
  }

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