/********** Template CSS **********/
body {
  background-color: #ffffff;
  color: var(--secondary);
  font-family: "Roboto", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
:root {
  --primary: #00d2be; /* Bright Teal */
  --secondary: #0a192f; /* Deep Navy */
  --light: #f0f4f8; /* Light Blue/Gray */
  --dark: #0a192f; /* Deep Navy for text/headings */
  --accent: #ff9f1c; /* Minimal Orange */
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.fw-medium {
  font-weight: 150;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 150;
}

.btn-primary,
.btn-outline-primary:hover {
  color: #ffffff;
  background: linear-gradient(to right, var(--primary), #00a896);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 210, 190, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(to right, #00a896, var(--primary));
  box-shadow: 0 8px 25px rgba(0, 210, 190, 0.5);
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline-secondary:hover {
  color: var(--dark);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar-light .navbar-toggler {
  border-color: rgba(10, 25, 47, 0.2) !important;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/1500/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230A192F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
}

.navbar .navbar-brand img {
  max-height: 85px; /* Increased size as requested */
  margin-right: 15px;
}

.navbar .navbar-brand h1 {
  font-size: 24px;
  margin: 0;
  line-height: 1;
  color: var(--dark); /* Default color */
}

@media (min-width: 992px) {
  .navbar .navbar-brand h1 {
    font-size: 30px;
  }
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 25px 0;
  color: var(--dark);
  font-size: 18px;
  font-weight: 150;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 3.5rem;
  background-color: var(--primary);
  border: 15px solid var(--primary);
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  background:
    linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--light);
}

/*** Features ***/
.feature-row {
  box-shadow: none; /* Remove old shadow container */
  margin-bottom: 2rem;
}

.feature-item {
  background: #ffffff;
  border: none !important;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.15); /* Soft Teal Glow */
}

/*** About ***/
.about {
  background:
    linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url(../img/about.jpg) left center no-repeat;
  background-size: cover;
}

.btn-play {
  position: relative;
  display: block;
  box-sizing: content-box;
  width: 36px;
  height: 46px;
  border-radius: 100%;
  border: none;
  outline: none !important;
  padding: 18px 20px 20px 28px;
  background: var(--primary);
}

.btn-play:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 90px;
  height: 90px;
  background: var(--primary);
  border-radius: 100%;
  animation: pulse-border 1150ms ease-out infinite;
}

.btn-play:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 90px;
  height: 90px;
  background: var(--primary);
  border-radius: 100%;
  transition: all 150ms;
}

.btn-play span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  left: 3px;
  border-left: 30px solid #ffffff;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
    opacity: 0;
  }
}

.modal-video .modal-dialog {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
}

.modal-video .modal-body {
  position: relative;
  padding: 0px;
}

.modal-video .close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0px;
  top: -30px;
  z-index: 999;
  font-size: 30px;
  font-weight: normal;
  color: #ffffff;
  background: #000000;
  transition: 0.5s;
  z-index: 2;
}

.service-item:hover .service-text {
  top: -10px;
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.15);
}

.service-item .service-text h5 {
  transition: 0.5s;
  color: var(--secondary);
  font-weight: 700;
}

.service-item:hover .service-text h5 {
  color: var(--primary);
}

.service-item .service-btn {
  position: absolute;
  width: 80%;
  height: 3rem;
  left: 10%;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: 0.5s;
  z-index: 1;
  opacity: 0; /* Hide initially for cleaner look, animate in */
}

.service-item:hover .service-btn {
  bottom: -1.5rem;
  opacity: 1;
}

/*** Project ***/
.project-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.15);
}

.project-item .project-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 47, 0.85); /* Navy Overlay */
  opacity: 0;
  padding-top: 60px;
  transition: 0.5s;
}

.project-item:hover .project-overlay {
  opacity: 1;
  padding-top: 0;
}

.project-carousel .owl-nav {
  position: absolute;
  top: -100px;
  right: 0;
  display: flex;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
  margin-left: 15px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border-radius: 55px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.15);
  font-size: 25px;
  transition: 0.5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 768px) {
  .project-carousel .owl-nav {
    top: -70px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .project-carousel .owl-nav .owl-prev,
  .project-carousel .owl-nav .owl-next {
    margin: 0 7px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/*** Team ***/
.team-item {
  position: relative;
  text-align: center;
  background: #ffffff;
  border-radius: 15px;
  padding: 2px; /* slight padding if needed, or remove */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.15);
}

.team-item .team-social {
  position: absolute;
  padding: 0;
  top: 15px;
  left: 0;
  overflow: hidden;
}

.team-item .team-social li {
  list-style-type: none;
  margin-bottom: 10px;
  margin-left: -50px;
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-social li {
  margin-left: 15px;
  opacity: 1;
}

.team-item .team-social li .btn {
  background: #ffffff;
  color: var(--primary);
  border-radius: 40px;
  transition: 0.5s;
}

.team-item .team-social li .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
  transition-delay: 0.1s;
}

.team-item .team-social li:nth-child(2) {
  transition-delay: 0.2s;
}

.team-item .team-social li:nth-child(3) {
  transition-delay: 0.3s;
}

.team-item .team-social li:nth-child(4) {
  transition-delay: 0.4s;
}

.team-item .team-social li:nth-child(5) {
  transition-delay: 0.5s;
}

/*** Testimonial ***/
.testimonial-item {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.15);
}

.owl-item .testimonial-item,
.testimonial-item * {
  transition: 0.5s;
}

.owl-item.center .testimonial-item {
  background: var(--primary); /* Teal Accent for center item */
  box-shadow: 0 15px 35px rgba(0, 210, 190, 0.3);
}

.owl-item.center .testimonial-item *,
.testimonial-item:hover * {
  color: #ffffff !important;
}

.testimonial-item img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-carousel .owl-nav {
  position: absolute;
  top: -100px;
  right: 0;
  display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-left: 15px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border-radius: 55px;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.15);
  font-size: 25px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-nav {
    top: -70px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .testimonial-carousel .owl-nav .owl-prev,
  .testimonial-carousel .owl-nav .owl-next {
    margin: 0 7px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/*** Footer ***/
.footer {
  color: #b0b9ae;
  background: var(--secondary) !important; /* Deep Navy */
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #b0b9ae;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary); /* Teal Chevron */
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.copyright {
  color: #b0b9ae;
}

.copyright {
  background: #111111;
}

.copyright a:hover {
  color: var(--primary) !important;
}

/* Mobile Scroll Fix */
@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    /* Ensure scrolling is enabled */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/*** Form Status Messages ***/
.form-status {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 500;
  display: none;
  animation: fadeInDown 0.5s ease;
}

.status-success {
  display: block;
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid #28a745;
}

.status-error {
  display: block;
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Button Loading State */
.btn-primary:disabled {
  background: linear-gradient(to right, #ccc, #999);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.hidden {
  display: none !important;
}

/*** Phone Input Group ***/
.phone-input-group {
  position: relative;
}

.phone-input-group .d-flex {
  align-items: stretch;
}

.phone-input-group .form-floating {
  margin-bottom: 0;
}

.phone-input-group .form-control,
.phone-input-group .form-select {
  height: 58px;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease;
}

.phone-input-group .form-control:focus,
.phone-input-group .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 210, 190, 0.25);
}

.phone-input-group .form-control.is-invalid {
  border-color: #dc3545;
}

.phone-input-group .form-control.is-valid {
  border-color: #28a745;
}

@media (max-width: 576px) {
  .phone-input-group .form-floating[style*="flex: 0 0 120px"] {
    flex: 0 0 100px !important;
  }
  
  .phone-input-group .form-select {
    font-size: 14px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
