@import url("base.css");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: var(--black);
}

header {
  background: url("../assets/images/background.png") no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding-bottom: 200px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
}

.navbar .logo img {
  height: 40px;
}

.navbar nav ul {
  display: flex;
  gap: 40px;
  color: white;
}

.navbar nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  gap: 10px;
}

.navbar nav ul li a:hover {
  color: var(--secondary-color);
}

.hero {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  gap: 40px;
}

.hero img {
  width: 250px;
}

.hero .title {
  display: flex;
  align-items: center;
}

.hero .title h1 {
  font-size: 52px;
  font-weight: 700;
  color: white;
  margin-left: -125px;
  line-height: 70px;
}

.hero p {
  font-size: 20px;
  color: white;
  line-height: 30px;
}

.hero .buttons {
  display: flex;
  gap: 40px;
}

.hero .buttons button,
.expert .content button {
  padding: 20px 30px;
  font-size: 18px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  font-weight: 700;
  border: none;
}

.mobile {
  display: none;
}

main {
  /* max-width: 1400px; */
  width: 100%;
  margin: 0 auto;
  margin-top: -50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

main .about {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 40px;
  align-items: center;
}

main .about .numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  width: fit-content;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

main .about .numbers .years {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  background: var(--primary-color);
  color: white;
  height: 100%;
  width: 100%;
}

main .about .numbers .value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 70px;
  background: white;
  color: var(--primary-color);
  height: 100%;
}

main .about .numbers .value .title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
}

main .about .numbers .value .description {
  font-size: 20px;
  text-align: center;
}

.expert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  width: 950px;
  margin: auto;
}

.expert .content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  line-height: 28px;
}
.expert .content h2 {
  font-size: 32px;
  font-weight: 700;
}

.expert-image img {
  width: 450px;
  border-radius: 12px;
  overflow: hidden;
}

.expert .info {
  border-left: 2px solid var(--secondary-color);
  padding: 5px 10px;
}

main .home-services {
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: column;
  color: white;
  padding: 100px;
}

main .home-services h2 {
  font-size: 36px;
  font-weight: 700;
}

main .home-services ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  list-style: disc;
  list-style-position: inside;
}

.services-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
}

.service-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-images div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.service-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

.service-projects div {
  display: flex;
  align-self: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.service-projects img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

iframe {
  border-radius: 10px;
  overflow: hidden;
}

.mobile-app-section {
  height: 400px;
  background: linear-gradient(135deg, #0ca8e0 0%, #071f46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  padding-bottom: 100px;
}

.mobile-app-section img {
  height: 600px;
  margin-top: -200px;
}

.mobile-app-section div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-app-section h4 {
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.mobile-app-section p {
  max-width: 700px;
  color: white;
  line-height: 24px;
}

hr {
  border: 1px solid white;
  width: 100%;
  background-color: white;
}

.contacts {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 100px;
}

.contacts h2 {
  font-size: 32px;
  font-weight: 700;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contacts-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-us-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  line-height: 28px;
}

.contact-us-header p {
  color: rgb(107, 109, 117);
  font-size: 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form input,
textarea {
  padding: 20px 50px;
  border: 1px solid var(--grey);
  background-color: rgb(244, 244, 244);
  font-size: 16px;
  border-radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.service-header {
  background: url("../assets/images/service-bg.png") no-repeat center center;
  background-size: cover;
}

.project-header {
  background: url("../assets/images/project-bg.png") no-repeat center center;
  background-size: cover;
}

.services {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 100px;
}

.service {
  border-top: 1px solid #ccc;
  padding-top: 2rem;
}

.service:first-child {
  border-top: none;
  padding-top: 0;
}

.service .text {
  display: flex;
  margin-bottom: 2rem;
}

.service .text h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.service .text p {
  max-width: 300px;
}

.service-image {
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 40px 0px;
}

/* .service .text h3::after {
  content: "";
  height: 20px;
  width: 3px;
  background: orange;
  position: absolute;
  left: -12px;
  top: 0;
} */

.service .text p {
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 3px solid var(--secondary-color);
  padding-left: 1rem;
}

.service img {
  width: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.grid-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.grid-images img {
  flex: 1 1 calc(50% - 0.5rem);
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  gap: 20px;
}

.footer-info p {
  font-size: 16px;
  line-height: 24px;
}

.footer-info img {
  width: 200px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links ul a:hover {
  color: var(--secondary-color);
  font-size: 14px;
}

.footer-links h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 600px) {
  .grid-images img {
    flex: 1 1 100%;
  }

  .service .text h3::after {
    left: -8px;
  }
}

/* ========================= */
/* Animations                */
/* ========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes underline {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Fade-in for main sections */
.hero,
.expert,
.services,
.contacts {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}
.hero {
  animation-delay: 0.1s;
}
.expert {
  animation-delay: 0.3s;
}
.services {
  animation-delay: 0.5s;
}
.contacts {
  animation-delay: 0.7s;
}

/* Button hover scale effect */
.hero .buttons button,
.expert .content button {
  transition: transform 0.2s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.2s;
}
.hero .buttons button:hover,
.expert .content button:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
}

/* Image zoom on hover */
.service-images img,
.service-projects img {
  transition: transform 0.4s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.2s;
}
.service-images img:hover,
.service-projects img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* Navbar underline animation */
.navbar nav ul li a {
  position: relative;
  overflow: hidden;
}
.navbar nav ul li a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--secondary-color);
  transition: width 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}
.navbar nav ul li a:hover::after {
  width: 100%;
  animation: underline 0.3s forwards;
}

.service-button {
  background-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
}

footer {
  padding: 80px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  gap: 15%;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger-menu span {
  height: 3px;
  width: 25px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: 0.3s;
}

/* The video element */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1; /* behind content */
  object-fit: cover; /* crops to fill */
}

/* Optional dark overlay to improve text contrast */
.overlay {
  position: absolute;
  inset: 0; /* top:0;right:0;bottom:0;left:0; */
  background: rgba(1, 0, 12, 0.867);
  z-index: 0;
}

/* Content above the video */
.content {
  position: relative;
  z-index: 9999;
  width: 100%;
}

.gallery-hero {
  position: relative;
  height: 100vh; /* full screen */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-images img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
/* Mobile Styles */
@media (max-width: 768px) {
  .gallery-hero {
    background: url("fallback-poster.jpg") center/cover no-repeat;
  }

  .navbar {
    padding: 20px;
  }

  .navbar nav ul {
    color: white;
  }

  nav {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #00000064;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
  }

  nav ul {
    flex-direction: column;
  }

  .hamburger-menu {
    display: flex;
  }

  .logo {
    order: 2;
  }

  .hero {
    padding: 0 40px;
  }

  .hero img {
    width: 100px;
  }

  .hero .title h1 {
    font-size: 18px;
    margin-left: -50px;
    line-height: 25px;
  }

  .hero p {
    font-size: 16px;
    line-height: 30px;
  }

  .hero .buttons {
    gap: 20px;
  }

  .hero .buttons button,
  .expert .content button {
    padding: 20px 20px;
    font-size: 14px;
  }

  main .about {
    padding: 0 20px;
  }

  main .about .numbers {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .expert {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
    padding: 0 20px;
  }

  .expert-image img {
    width: 100%;
  }

  .expert .content h2 {
    font-size: 30px;
  }

  .services-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
  }

  .service-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  main .home-services {
    padding: 50px 20px;
  }

  .service-images div {
    width: 100%;
    height: 150px;
  }

  .contacts {
    flex-direction: column;
    padding: 30px;
    margin-bottom: 30px;
  }

  .service-projects {
    gap: 10px;
  }

  .service-projects div {
    width: 100%;
    height: 150px;
  }

  .service-projects img {
    height: auto;
  }

  footer {
    flex-direction: column;
    padding: 30px;
    gap: 60px;
    font-size: 14px;
  }

  .footer-info p {
    font-size: 14px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .services {
    padding: 50px 20px;
  }

  .services img {
    width: 100%;
    height: 400px;
  }

  .services .text {
    flex-direction: column;
    gap: 20px;
  }

  .mobile-app-section {
    height: auto;
    flex-direction: column;
    margin-top: 200px;
    padding: 40px 20px;
  }

  .whatsapp-float img {
    height: 60px !important;
  }

  .app-links img {
    height: 50px !important;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
}

.app-links {
  display: flex;
  flex-direction: row !important;
  gap: 10px;
  margin-top: 50px;
}

.app-links img {
  height: 60px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-float img {
  height: 80px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

/* Show nav when active */
nav.active {
  display: flex;
}

.contact-form {
  padding: 20px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.contact-form-button {
  width: fit-content;
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background-color: var(--secondary-color);
  border: 0px;
  border-radius: 10px;
  color: var(--primary-color);
  font-weight: 700;
}

/* Modal styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.image-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.image-modal .prev-image,
.image-modal .next-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.image-modal .prev-image {
  left: 20px;
}

.image-modal .next-image {
  right: 20px;
}

.image-modal .prev-image:hover,
.image-modal .next-image:hover,
.image-modal .close-modal:hover {
  color: var(--secondary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .image-modal img {
    max-width: 100%;
    max-height: 70%;
  }

  .image-modal .prev-image,
  .image-modal .next-image {
    font-size: 24px;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }
}
