/********** Template CSS **********/
:root {
  --primary: #13c5dd;
  --secondary: #354f8e;
  --light: #eff5f9;
  --dark: #1d2a4d;
}

.btn {
  font-weight: 700;
  transition: 0.5s;
}

.btn:hover {
  -webkit-box-shadow: 0 8px 6px -6px #555555;
  -moz-box-shadow: 0 8px 6px -6px #555555;
  box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
  color: #ffffff;
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 0;
  border-radius: 50% 50% 0 0;
  z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Jost", sans-serif;
  position: relative;
  margin-left: 30px;
  padding: 30px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (min-width: 992px) {
  .navbar-light .navbar-nav .nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: 0;
    left: 50%;
    background: var(--primary);
    transition: 0.5s;
  }

  .navbar-light .navbar-nav .nav-link:hover::before,
  .navbar-light .navbar-nav .nav-link.active::before {
    width: 100%;
    left: 0;
  }
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

.hero-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url(../img/hero.jpg) center center no-repeat;
  background-size: cover;
}

.service-item {
  position: relative;
  height: 350px;
  padding: 0 30px;
  transition: 0.5s;
}

.service-item .service-icon {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.service-item .service-icon i {
  transform: rotate(15deg);
}

.service-item a.btn {
  position: absolute;
  width: 60px;
  bottom: -48px;
  left: 50%;
  margin-left: -30px;
  opacity: 0;
}

.service-item:hover a.btn {
  bottom: -24px;
  opacity: 1;
}

.price-carousel::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background: var(--primary);
  border-radius: 8px 8px 50% 50%;
  z-index: -1;
}

.price-carousel .owl-nav {
  margin-top: 35px;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
  position: relative;
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #ffffff;
  font-size: 22px;
  border-radius: 45px;
  transition: 0.5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

@media (min-width: 576px) {
  .team-item .row {
    height: 350px;
  }
}

.team-carousel .owl-nav {
  position: absolute;
  padding: 0 45px;
  width: 100%;
  height: 45px;
  top: calc(50% - 22.5px);
  left: 0;
  display: flex;
  justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
  background: var(--dark);
}

.testimonial-carousel .owl-dots {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 20px;
  height: 20px;
  background: var(--light);
  border: 2px solid var(--primary);
  border-radius: 20px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  width: 40px;
  height: 40px;
  background: var(--primary);
}

.testimonial-carousel .owl-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center center;
}

/* Team cards: improved responsive layout */
.team-item .row {
  align-items: stretch;
}

.team-item img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-item .p-4 h3 {
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .team-item .row {
    height: auto !important;
  }

  .team-item .col-sm-5,
  .team-item .col-sm-7 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .team-item .col-sm-5 {
    height: 360px !important;
  }

  .team-item .col-sm-5 img {
    height: 100% !important;
  }

  .team-item .col-sm-7 {
    min-height: auto !important;
  }

  .team-item .p-4 {
    padding: 24px !important;
  }

  .team-item .p-4 h3 {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .team-item .p-4 h6 {
    margin-bottom: 18px !important;
  }

  .team-carousel .owl-nav {
    top: 180px;
    padding: 0 18px;
  }

  .team-carousel .owl-nav .owl-prev,
  .team-carousel .owl-nav .owl-next {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .team-item .col-sm-5 {
    height: 310px !important;
  }

  .team-carousel .owl-nav {
    top: 155px;
  }

  .team-item .p-4 {
    padding: 20px !important;
  }

  .team-item .p-4 h3 {
    font-size: 24px;
  }
}

/* =========================================================
   Senior responsive refinement layer for Apex Software LLC
   Keeps the Medinova visual identity while improving mobile UX.
   ========================================================= */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.navbar-brand h1,
.navbar-brand h2 {
  letter-spacing: 0.3px;
  line-height: 1.15;
  white-space: normal;
}

.dropdown-menu {
  border-radius: 0 0 8px 8px;
}

.hero-header {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-header .container {
  width: 100%;
}

.hero-header h1.display-1 {
  max-width: 760px;
  line-height: 1.13;
}

.hero-header .btn {
  min-width: 170px;
}

.container-fluid.py-5,
.container.py-5 {
  position: relative;
}

.service-item h4,
.team-item h3,
.price-carousel h3 {
  overflow-wrap: anywhere;
}

.service-item p,
.team-item p,
.testimonial-carousel p,
.price-carousel p {
  line-height: 1.65;
}

/* About feature circles */
.col-lg-7 .row.g-3.pt-3 .bg-light.rounded-circle {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Project model carousel */
.price-carousel .bg-light.rounded {
  height: 100%;
  overflow: hidden;
}

.price-carousel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
}

/* Forms */
.form-control,
.form-select,
.btn {
  min-height: 44px;
}

textarea.form-control {
  min-height: 140px;
}

/* Footer */
.bg-dark .input-group {
  max-width: 420px;
}

.bg-dark a,
.bg-dark p {
  overflow-wrap: anywhere;
}

/* Large tablets */
@media (max-width: 1199.98px) {
  .hero-header {
    min-height: 560px;
  }

  .hero-header h1.display-1 {
    font-size: 64px;
  }

  .navbar-light .navbar-nav .nav-link {
    margin-left: 22px;
    font-size: 16px;
  }

  .service-item {
    padding: 0 22px;
  }
}

/* Tablets and collapsed navigation */
@media (max-width: 991.98px) {
  .container-fluid.py-5,
  .container.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .navbar {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .navbar-brand h1,
  .navbar-brand h2 {
    font-size: 28px;
    max-width: calc(100vw - 96px);
  }

  .navbar-collapse {
    margin-top: 16px;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(29, 42, 77, 0.08);
  }

  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    padding: 12px 0;
    font-size: 17px;
  }

  .navbar .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 16px;
    margin: 0 !important;
    background: transparent;
  }

  .navbar .dropdown-item {
    padding: 9px 0;
    color: var(--dark);
  }

  .hero-header {
    min-height: 520px;
    background-position: center center;
    text-align: center;
  }

  .hero-header h1.display-1 {
    max-width: 100%;
    font-size: 54px;
  }

  .hero-header .pt-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero-header .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .display-4 {
    font-size: 42px;
    line-height: 1.18;
  }

  .row.gx-5 {
    --bs-gutter-x: 2rem;
  }

  .col-lg-5[style*="min-height"] {
    min-height: 420px !important;
  }

  .service-item {
    height: auto;
    min-height: 330px;
    padding: 42px 24px 54px;
  }

  .service-item a.btn {
    bottom: -24px;
    opacity: 1;
  }

  .price-carousel {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .price-carousel img {
    height: 210px;
  }

  .testimonial-carousel .owl-item img {
    width: 125px;
    height: 125px;
  }

  .bg-dark .row.g-5 {
    --bs-gutter-y: 2.5rem;
  }
}

/* Phones */
@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .container,
  .container-fluid > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .container-fluid.py-5,
  .container.py-5,
  .container-fluid.pt-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .navbar-brand h1,
  .navbar-brand h2 {
    font-size: 24px;
  }

  .hero-header {
    min-height: 500px;
    margin-bottom: 2.5rem !important;
    background-position: center center;
  }

  .hero-header .container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-header h5 {
    font-size: 15px;
    line-height: 1.4;
  }

  .hero-header h1.display-1 {
    font-size: 42px;
    line-height: 1.14;
    margin-bottom: 22px !important;
  }

  .hero-header .btn {
    width: 100%;
    max-width: 280px;
    padding: 13px 22px !important;
  }

  .display-4 {
    font-size: 34px;
    line-height: 1.2;
  }

  h4,
  .h4 {
    line-height: 1.25;
  }

  .col-lg-5[style*="min-height"] {
    min-height: 340px !important;
    margin-bottom: 2rem !important;
  }

  .col-lg-5[style*="min-height"] .position-relative,
  .col-lg-5[style*="min-height"] img.position-absolute {
    position: relative !important;
    height: 340px !important;
  }

  .col-lg-5[style*="min-height"] img.position-absolute {
    display: block;
  }

  .col-lg-7 .row.g-3.pt-3 {
    justify-content: center;
  }

  .col-lg-7 .row.g-3.pt-3 .bg-light.rounded-circle {
    max-width: 145px;
    padding: 22px !important;
  }

  .col-lg-7 .row.g-3.pt-3 .fa-3x {
    font-size: 2.2em;
    margin-bottom: 10px !important;
  }

  .service-item {
    min-height: auto;
    padding: 38px 22px 56px;
  }

  .service-item .service-icon {
    width: 128px;
    height: 88px;
  }

  .price-carousel {
    padding: 0 8px 42px 8px !important;
  }

  .price-carousel::after {
    height: 42%;
    border-radius: 8px 8px 32px 32px;
  }

  .price-carousel img {
    height: 190px;
  }

  .team-item .row {
    height: auto !important;
  }

  .team-item .col-sm-5,
  .team-item .col-sm-7 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .team-item .col-sm-5 {
    height: 360px !important;
  }

  .team-item .col-sm-5 img {
    height: 100% !important;
  }

  .team-item .p-4 {
    padding: 24px !important;
  }

  .team-item .p-4 h3 {
    font-size: 25px;
    margin-bottom: 8px;
  }

  .team-carousel .owl-nav {
    top: 180px;
    padding: 0 18px;
  }

  .team-carousel .owl-nav .owl-prev,
  .team-carousel .owl-nav .owl-next {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .testimonial-carousel p.fs-4 {
    font-size: 19px !important;
    line-height: 1.6;
  }

  .testimonial-carousel .owl-item img {
    width: 108px;
    height: 108px;
  }

  .input-group {
    flex-direction: column;
    gap: 12px;
  }

  .input-group > .form-control,
  .input-group > .form-select,
  .input-group > .btn,
  .input-group > .w-25,
  .input-group > .w-50 {
    width: 100% !important;
    border-radius: 8px !important;
  }

  .bg-light.rounded.p-5 {
    padding: 28px !important;
  }

  .bg-light.rounded.p-5 h1 {
    font-size: 30px;
  }

  .btn.py-3.px-5,
  .btn.rounded-pill.py-3.px-5 {
    width: 100%;
    margin: 0 0 12px 0 !important;
    text-align: center;
  }

  .contact-card,
  .bg-light.rounded.d-flex.flex-column.align-items-center.justify-content-center.text-center {
    min-height: 190px;
  }

  .bg-dark.text-light.mt-5.py-5 {
    margin-top: 2.5rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .bg-dark .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .bg-dark .input-group {
    max-width: 100%;
  }

  .bg-dark.text-light.border-top .row.g-5 {
    --bs-gutter-y: 1rem;
  }

  .back-to-top {
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .container,
  .container-fluid > .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand h1,
  .navbar-brand h2 {
    font-size: 21px;
    letter-spacing: 0;
  }

  .navbar-toggler {
    padding: 6px 9px;
  }

  .hero-header {
    min-height: 470px;
  }

  .hero-header h1.display-1 {
    font-size: 36px;
  }

  .display-4 {
    font-size: 30px;
  }

  .col-lg-5[style*="min-height"],
  .col-lg-5[style*="min-height"] .position-relative,
  .col-lg-5[style*="min-height"] img.position-absolute {
    min-height: 300px !important;
    height: 300px !important;
  }

  .col-lg-7 .row.g-3.pt-3 .bg-light.rounded-circle {
    max-width: 132px;
    padding: 18px !important;
  }

  .col-lg-7 .row.g-3.pt-3 h6 {
    font-size: 14px;
  }

  .service-item {
    padding: 34px 18px 54px;
  }

  .price-carousel img {
    height: 170px;
  }

  .team-item .col-sm-5 {
    height: 315px !important;
  }

  .team-carousel .owl-nav {
    top: 157px;
    padding: 0 14px;
  }

  .team-item .p-4 h3 {
    font-size: 23px;
  }

  .testimonial-carousel p.fs-4 {
    font-size: 18px !important;
  }

  .bg-light.rounded.p-5 {
    padding: 22px !important;
  }

  .bg-light.rounded.p-5 h1 {
    font-size: 27px;
  }

  .footer h4,
  .bg-dark h4 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .hero-header h1.display-1 {
    font-size: 32px;
  }

  .display-4 {
    font-size: 27px;
  }

  .team-item .col-sm-5 {
    height: 285px !important;
  }

  .team-carousel .owl-nav {
    top: 142px;
  }
}

/* Team email links */
.team-email {
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.team-email a {
  text-decoration: none;
}

.team-email a:hover {
  color: var(--primary) !important;
}

@media (max-width: 575.98px) {
  .team-email {
    font-size: 14px;
  }
}

/* Team role typography refinement */
.team-item .team-role {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal !important;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 767.98px) {
  .team-item .team-role {
    font-size: 17px;
    margin-bottom: 16px !important;
  }
}
