@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --darkblue: #242a56;
  --lightblue: #2f66ff;

  /* NEW brighter base */
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-2: #f0f4ff;

  --text: #0f172a;
  --muted: #475569;

  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

  --container-width-lg: 88%;
  --container-width-md: 92%;
  --transition: all 300ms ease;

  /* Hero images (use local files for speed) */
  --hero-img: url("images/hero.jpg");
  --stats-img: url("images/19.jpg");
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.container {
  width: var(--container-width-lg);
  margin: 0 auto;
  max-width: 2160px;
}

a {
  color: var(--text);
  transition: var(--transition);
}

a:hover {
  color: var(--lightblue);
}

::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-thumb {
  width: 100%;
  background: var(--darkblue);
  border-radius: 0.25rem;
}

/* ==================== TO TOP ====================== */
.to-top {
  background: var(--lightblue);
  position: fixed;
  bottom: 20px;
  right: 20px;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  pointer-events: none;
  opacity: 0;
  transition: 0.35s ease;
  padding: 0.8rem;
  z-index: 1000;
}

.to-top.active {
  pointer-events: auto;
  opacity: 0.75;
}

.to-top:hover {
  transform: translateY(-0.5rem);
  opacity: 1;
}

/* ==================== NAV ====================== */
nav {
  height: 6rem;
  width: 100vw;
  display: grid;
  place-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: transparent;
}

.window-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.nav__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__toggle-btn {
  display: none;
  font-size: 2rem;
  background: transparent;
  cursor: pointer;
  color: var(--darkblue);
}

.nav__logo {
  width: 12rem;
}

.nav__links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav__links li {
  transition: var(--transition);
}

.nav__links li:hover {
  transform: translateY(-0.15rem);
}

.nav__links a {
  color: var(--darkblue);
  font-weight: 600;
}

.nav__links a:hover {
  text-decoration: underline;
}

/* Promo */
.promo {
  width: 8rem;
  height: 2.4rem;
  background-color: #fff;
  border: 1px solid var(--border);
  color: var(--darkblue);
  letter-spacing: 2px;
  font-family: Poppins;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 0.7rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.promo:hover {
  transform: translateY(-0.15rem);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.nav__promo {
  display: none;
  text-decoration: underline;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  z-index: 1001;
  width: 700px;
  max-width: 92%;
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal__header {
  padding: 10px 15px;
  display: flex;
  justify-content: right;
}

.modal__header .close__button {
  cursor: pointer;
  background: none;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}

.modal__body {
  padding: 10px 15px;
}

#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(2, 6, 23, 0.6);
  pointer-events: none;
  z-index: 1000;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ==================== HERO ====================== */
.header__container {
  width: 100vw;
  height: 90vh;
  margin-top: 6rem;
  background-image: var(--hero-img);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.header_slides {
  width: 100vw;
  height: 90vh;
  position: relative;
}

.header_slides::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 90vh;

  /* lighter overlay than before */
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.72),
    rgba(2, 6, 23, 0.45),
    rgba(2, 6, 23, 0.20)
  );
}

.img_overlay {
  color: #fff;
  text-shadow: 0 5px 10px #0004;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(1rem, 6vw, 6rem);
  padding-right: 1rem;
  max-width: 1200px;
}

.img_overlay .author {
  letter-spacing: 6px;
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 600;
}

.img_overlay .title {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin-top: 0.6rem;
}

.img_overlay .topic {
  color: #ff3b5c;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-top: 0.4rem;
}

.img_overlay .des {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
}

.img_overlay .buttons {
  display: flex;
  gap: 14px;
  margin-top: 1.2rem;
}

.img_overlay .buttons a {
  border: none;
  background-color: #fff;
  letter-spacing: 2px;
  font-family: Poppins;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 0.9rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.img_overlay .buttons a:nth-child(2) {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  box-shadow: none;
}

.img_overlay .buttons a:hover {
  transform: translateY(-0.15rem);
}

/* ==================== SECTION TITLES ====================== */
.section__subtitle {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--lightblue);
  font-weight: 800;
  margin-block-end: 16px;
  letter-spacing: 1px;
}

.services__title,
.section__subtitle {
  width: min(900px, 95%);
  margin: auto;
}

.services__title h2 {
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  color: var(--text);
  text-shadow: none;
  margin-top: 12px;
}

/* ==================== SERVICES ====================== */
#services {
  margin-top: 2.5rem;
}

.cards-container {
  display: flex;
  width: 90vw;
  margin-top: 2.5rem;
}

.service__card {
  height: 60vh;
  cursor: pointer;
  border-radius: 18px;
  margin: 10px;
  position: relative;
  transition: var(--transition);
  flex: 0.5;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.35),
    rgba(2, 6, 23, 0.75)
  );
}

.service__card h4,
.service__card p,
.card-icon {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.service__card h4 {
  left: 20px;
  top: 26px;
  font-size: 2.1rem;
  opacity: 0;
}

.service__card p {
  left: 20px;
  bottom: 70px;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 42ch;
  opacity: 0;
}

.card-icon {
  bottom: 18px;
  left: 22px;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.service__card.active {
  flex: 4;
}

.service__card.active h4,
.service__card.active p {
  opacity: 1;
  transition: opacity 0.25s ease-in 0.15s;
}

.service__card.active .card-icon {
  color: #ff3b5c;
}

.service__card:hover {
  transform: translateY(-0.35rem);
}

/* Keep your existing images here OR replace later */
.service__card:nth-child(1) { background: url(images/17.jpg) center/cover no-repeat; }
.service__card:nth-child(2) { background: url(images/14.jpg) center/cover no-repeat; }
.service__card:nth-child(3) { background: url(images/13.jpg) center/cover no-repeat; }
.service__card:nth-child(4) { background: url(images/11.jpg) center/cover no-repeat; }

.mobile-cards-container {
  display: none;
}

/* ==================== ABOUT ====================== */
.about__container {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.about__container img {
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.about__subtitle {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--lightblue);
  font-weight: 800;
  margin-block-end: 16px;
  width: min(900px, 95%);
  margin: auto;
  margin-top: 24px;
}

.about__title h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  color: var(--text);
  margin-top: 12px;
  margin-bottom: 14px;
}

.accordion-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-size: 18px;
  color: var(--text);
}

.accordion {
  cursor: pointer;
}

.accordion.active .accordion-heading {
  color: var(--darkblue);
  text-decoration: underline;
}

.accordion.active .fa-angle-down {
  transform: rotate(180deg);
  color: var(--lightblue);
  transition: transform 0.2s 0.1s;
}

.accordion.active .accordion-content {
  display: block;
}

.accordion-content {
  padding: 12px 14px;
  font-size: 1.05rem;
  color: var(--muted);
  display: none;
  animation: dropdown 0.2s linear backwards;
  transform-origin: top;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

@keyframes dropdown {
  0% { transform: scaleY(0); }
}

.about__banner-below {
  display: none;
}

/* ==================== FEATURES ====================== */
.feature__container {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  align-items: start;
}

.feature__container img {
  height: 88vh;
  width: 100%;
  box-shadow: var(--shadow);
  border-radius: 28px;
  filter: saturate(1) brightness(0.92);
}

.section__description {
  margin-block: 18px 22px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 70ch;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.feature-card p {
  font-size: 1rem;
  color: var(--text);
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--lightblue);
}

/* ==================== STATS ====================== */
.stats__container {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.counters {
  color: #fff;
  background-image: var(--stats-img);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  padding: 3em 2em;
  text-align: center;
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.counters::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.counters > div {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3em 2em;
}

.counter h1 {
  font-size: 2.4em;
  margin-bottom: 0.2em;
}

.counter h3 {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.counter:not(:last-child)::before {
  content: "";
  background: rgba(255, 255, 255, 0.55);
  position: absolute;
  width: 1px;
  height: 3.2em;
  top: 50%;
  transform: translateY(-50%);
  right: -1em;
}

/* ==================== CUSTOMERS (LOGOS FIXED) ====================== */
.customers__container {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.customer-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2rem;
}

.logo-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  min-height: 96px;
  transition: var(--transition);
}

.logo-tile img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  filter: grayscale(0.25);
  opacity: 0.95;
}

.logo-tile:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ==================== PORTFOLIO ====================== */
#portfolio {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.portfolio__container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1100px, 100%);
  margin: auto;
  padding-bottom: 5rem;
}

.project-card {
  background-color: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  height: 100%;
  margin-top: 2rem;
}

.card-banner img {
  background: white;
  padding: 10px;
  width: 92%;
  height: auto;
  display: block;
  margin: 18px auto 8px auto;
  border-radius: 14px;
}

.project-card .card-content {
  padding: 18px 18px 22px 18px;
}

.card-content h3 {
  font-size: 1.2rem;
}

.card-text {
  font-size: 1rem;
  color: var(--muted);
  margin-block: 10px 14px;
}

.card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(71, 85, 105, 0.85);
  font-size: 14px;
}

/* ==================== TESTIMONIALS ====================== */
#testimonials {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}

.owl-carousel {
  overflow: hidden;
  padding: 0 14px;
}

.owl-carousel .owl-stage-outer {
  padding: 22px 20px;
  width: 100%;
}

.testimonial {
  border: 2px solid var(--border);
  background: var(--surface);
  text-align: center;
  border-radius: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.testimonial p {
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  padding: 28px;
  padding-bottom: 18px;
}

.customer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 0 18px 22px 18px;
  gap: 12px;
}

.customer-info .customer-name h6 {
  color: var(--darkblue);
  font-size: 16px;
  font-weight: 800;
}

.customer-info .customer-name span {
  color: var(--muted);
  font-size: 14px;
  display: inline-block;
}

.customer-info .customer-pic img {
  border-radius: 999px;
  border: 3px solid var(--surface-2);
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.owl-dots {
  text-align: center;
  margin-top: 14px;
}

.owl-dots button {
  background: var(--darkblue) !important;
  width: 10px;
  height: 10px;
  border-radius: 26px;
  margin: 0 5px;
  transition: var(--transition);
}

.owl-dots button.active {
  width: 24px;
}

/* ==================== CONTACT ====================== */
#contact {
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.contact__container {
  display: grid;
  grid-template-columns: 43% 53%;
  margin-top: 2rem;
  gap: 4%;
}

.contact__left {
  font-size: 1.05rem;
  color: var(--text);
}

.number__container,
.email__container,
.socials__container {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  padding-bottom: 1rem;
  width: 18rem;
}

.form__title {
  text-align: center;
  margin-bottom: 0.6rem;
}

.form__title h3 {
  text-decoration: underline;
  color: var(--darkblue);
}

.contact__right form {
  max-width: 70rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.contact__right form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.contact__right form .input-box input {
  width: 49%;
  padding: 0.8rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  margin: 0;
}

.contact__right form .text-box textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  margin-top: 10px;
}

.contact__right form textarea {
  resize: none;
}

.contact__socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact__socials a {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--lightblue);
  border-radius: 0.7rem;
  color: #fff;
  place-items: center;
}

.contact__socials a:hover {
  transform: translateY(-0.25rem);
}

.btn {
  margin-top: 12px;
  padding: 0.9rem 2.2rem;
  background: var(--lightblue);
  border-radius: 999px;
  font-size: 1rem;
  color: #fff;
  font-weight: 800;
  transition: var(--transition);
  cursor: pointer;
}

.btn:hover {
  background: var(--darkblue);
  transform: translateY(-0.2rem);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* ==================== FOOTER ====================== */
footer {
  background-color: var(--darkblue);
  color: #fff;
}

.footer__text {
  text-align: center;
  padding: 16px 0;
}

/* ======================= MEDIA (<= 1400px) ============================ */
@media screen and (max-width: 1400px) {
  .container {
    width: var(--container-width-md);
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    gap: 0;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  }

  .promo {
    display: none;
  }

  .nav__promo {
    display: inline;
    letter-spacing: 2px;
  }

  .nav__links li {
    height: 3.8rem;
  }

  .nav__links li a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 3rem 1rem 1.2rem;
    border-top: 1px solid var(--border);
  }

  .nav__toggle-btn {
    display: inline-block;
  }

  #nav__toggle-close {
    display: none;
  }

  .cards-container {
    display: none;
  }

  .mobile-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: 2.5rem auto;
    gap: 1.6rem;
  }

  .mobile-service__card {
    height: 52vh;
    cursor: pointer;
    border-radius: 18px;
    margin: 0;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111;
  }

  .mobile-service__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.78));
  }

  .mobile-service__card h4,
  .mobile-service__card p {
    position: absolute;
    z-index: 2;
    color: #fff;
    left: 18px;
    right: 18px;
  }

  .mobile-service__card h4 {
    top: 18px;
    font-size: 1.8rem;
    font-weight: 900;
  }

  .mobile-service__card p {
    top: 92px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
  }

  .mobile-service__card:nth-child(1) { background: url(images/17.jpg) center/cover no-repeat; }
  .mobile-service__card:nth-child(2) { background: url(images/14.jpg) center/cover no-repeat; }
  .mobile-service__card:nth-child(3) { background: url(images/13.jpg) center/cover no-repeat; }
  .mobile-service__card:nth-child(4) { background: url(images/11.jpg) center/cover no-repeat; }

  .about__container {
    display: block;
  }

  .about__banner {
    display: none;
  }

  .about__banner-below {
    display: block;
    margin-top: 2rem;
  }

  .feature__container {
    grid-template-columns: 1fr;
  }

  .feature__banner {
    display: none;
  }

  .counters > div {
    grid-template-columns: 1fr 1fr;
  }

  .counter:not(:last-child)::before {
    display: none;
  }

  .customer-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio__container {
    grid-template-columns: 1fr;
  }
}

/* ======================= MEDIA (<= 1100px) ============================ */
@media screen and (max-width: 1100px) {
  .header__container,
  .header_slides,
  .header_slides::before {
    height: 70vh;
  }

  .img_overlay {
    padding-left: 1.2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .counters > div {
    grid-template-columns: 1fr;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .number__container,
  .email__container,
  .socials__container {
    width: 100%;
  }

  .contact__right form .input-box input {
    width: 100%;
  }

  .customer-logos {
    grid-template-columns: 1fr;
  }
}
