* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;

}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo img {
  height: 50px;
  margin-right: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}


.nav-links a {

  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;
  /* desktop spacing */
}

.hamburger {
  font-size: 24px;
  display: none;
  cursor: pointer;

}

/* Hero Section */
/* Hero Section */
.home {
  background: url('/static/amevapp/images/home.png') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  color: white;

  border-radius: 40px;
  /* Rounded on all sides */
  overflow: hidden;
  margin: 40px auto;
  width: 90%;
}


.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 35%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  z-index: 0;
  border-radius: 40px;
  /* Also round overlay */
}

.home-overlay {
  margin-top: 50px;
  padding-left: 100px;
  padding-top: 40px;
  max-width: 600px;
  z-index: 1;
  position: relative;
}

.home-overlay h1 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;

}

.home-overlay p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 32px;
  color: #e0e0e0;
}


.contact-button {
  display: inline-block;
  background-color: #005b67;
  color: white;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.contact-button:hover {
  background-color: #003f4a;
}

.about {
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  min-height: auto;

}


.about-container {
  display: flex;
  flex-direction: row-reverse;
  /* Image on the right */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 80px;
}

.about-text {
  max-width: 600px;
}

.about-text h3 {
  font-size: 20px;
  color: #0B3558;
  position: relative;
  display: inline-block;
  margin-bottom: 16px;

  text-decoration: underline;
  text-decoration-color: #eec84d;
  text-decoration-thickness: 15px;
}


.about-text h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 6px;
  background: #FDD85D;
  bottom: -4px;
  left: 0;
  z-index: -1;
}

.about-text h2 {
  color: #1C1F4C;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;

}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 32px;
  color: #023047;

}


.read-more-btn {
  background-color: #002C3E;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.read-more-btn:hover {
  background-color: #01465e;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 350px;
  border-radius: 40px 40px 0 0;
  object-fit: cover;
  margin-left: 80px;
}

.services {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  min-height: auto;

}

.services h3 {
  font-size: 20px;
  color: #023047;
  display: inline-block;
  margin-bottom: 10px;
}

.services-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.services-header-line {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;

}

.services-header-line h3 {
  margin: 0;
  font-size: 28px;
  color: #0a2a43;
  line-height: 1.4;
  white-space: nowrap;
  /* Prevent "Our Best Services" from breaking */
}

.services-header-line .highlight {
  display: inline-block;
  margin-right: ;
}

.services h2 {
  font-size: 40px;
  color: #023047;
  font-weight: 500;
  margin: 16px 0 40px;
  text-decoration: underline;
  text-decoration-color: #fdd85d;
  text-decoration-thickness: 6px;
}

.services-header-line p.description {
  flex: 1;
  /* Allow paragraph to take remaining space */
  /* word-break: break-word;    Break long words if needed */
  line-height: 1.6;
  margin: 0;
}


.card-wrapper {
  position: relative;
  /* margin-top: 50px; */
  padding: 60px 30px;
  display: flex;
  justify-content: center;
  min-height: 800px;
  overflow: hidden;
}


.hourglass-bg {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;


}




.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  justify-content: center;
  gap: 40px 60px;
  margin: 0 auto;
  /* overflow: hidden; */
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 450px;
  text-align: left;
}


.card:hover {
  transform: translateY(-5px);
}


.card img.icon {
  width: 40px;
  margin-bottom: 20px;
}

.card h4 {
  font-size: 20px;
  color: #1C1F4C;
  margin-bottom: 16px;
}

.card ul {
  padding-left: 20px;
  list-style-type: disc;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}


.services-header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 60px;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
  /* ensures mobile-friendliness */
}

.services-header-line .left-heading {
  font-size: 24px;
  color: #0B3558;
  font-weight: 400;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideinleft 0.6s ease forwards;
}

.services-header-line .right-text {
  max-width: 60%;
  font-size: 16px;
  color: #333;
  font-weight: 350;
  text-align: right;
  line-height: 1.6;
}


.team {
  padding: 100px 20px;
  background-color: #fff;
  text-align: center;
}


.team-container {
  max-width: 900px;
  margin: 0 auto;
}

.team-text h3 {
  font-size: 20px;
  color: #0B3558;
  position: relative;
  display: inline-block;
  margin-bottom: 16px;

  text-decoration: underline;
  text-decoration-color: #eec84d;
  text-decoration-thickness: 15px;
}



.team-text h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: #C89F2D;
  margin: 8px auto 0;
}

.team-text h2 {
  font-size: 32px;
  font-weight: 600;
  color: #1C1F4C;
  margin-bottom: 30px;
}

.team-text p {
  font-size: 16px;
  color: #1C1F4C;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 20px;
}


.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0px;
  overflow: hidden;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
  margin: 40px auto;
  width: 90%;
  font-family: 'Arial', sans-serif;
  background-color: whitesmoke;
}


/* Left Panel */
.contact-left {
  background-color: #fff1b5;
  padding: 40px;
  flex: 1;
  display: flex;
  border-radius: 20px 0 0 20px;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  /* max-width: 400px;
  max-height: 700px; */
  width: 50%;
}

/* Right Panel */
.contact-right {
  background-color: #fdfdfd;
  padding: 40px;
  flex: 1;
  align-self: center;
  max-height: 500px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  width: 50%;
  /* margin-top: 30px;
  margin-bottom: 30px; */
}

.contact-left h4 {
  color: #7a7a7a;
  font-weight: normal;
}

.contact-left h2 {
  font-weight: bold;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #000;
  border-radius: 25px;
  padding: 10px 20px;
  background: #fff1b5;
  font-weight: 500;

}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.form-row {
  display: flex;
  gap: 15px;
}


.form-row input {
  flex: 1;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #999;
  outline: none;

}

textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #999;
  resize: none;
  outline: none;
}

.send-btn {
  align-self: flex-end;
  background-color: #003333;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
}


.latest {
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}


.latest-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
}

.latest-title span {
  text-decoration: underline;
  text-decoration-color: #eec84d;
  text-decoration-thickness: 15px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}

.img-text-block {
  background-color: white;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.img-text-block img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.img-text-block p {
  font-size: 14px;
  margin-top: 10px;
  color: #444;
}


.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 10px;
  flex-wrap: wrap;
}


.latest-footer h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;


}

.discover-btn {
  background-color: #003b4a;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.discover-btn:hover {
  background-color: #002d39;
}

.footer-section {
  position: relative;
  background-color: #fff;
  /* border-top-left-radius: 40px;
  border-top-right-radius: 40px; */
  padding: 50px 20px 30px;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}



.shape {
  position: absolute;
  opacity: 1;
  pointer-events: none;
  max-width: 100px;
}

.shape1 {
  top: 10px;
  left: 10px;


}

.shape2 {
  top: 30px;
  left: 120px;
  width: 50px;
}

.shape3 {
  top: 5px;
  left: 100px;
  /* transform: translateX(-50%); */
  width: 130px;
}

.shape4 {
  top: 10px;
  left: 200px;
  /* width: 60px; */
}

.shape5 {
  top: 10px;
  left: 300px;
  width: 50px;
}

.shape6 {
  top: 10px;
  left: 350px;
  width: 50px;
}

.shape7 {
  top: 10px;
  left: 400px;
  width: 50px;
}

.shape8 {
  top: 10px;
  right: 85px;
  width: 100px;
}

.shape9 {
  top: 30px;
  right: 120px;
  width: 30px;
}

.shape10 {
  top: 0px;
  right: 160px;
  width: 40px;
}

.shape11 {
  top: 20px;
  right: 160px;
  width: 20px;
}

.shape12 {
  top: 0px;
  right: 20px;
  width: 35px;
}


.footer-content-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  background-color: #fff9f1;
  z-index: 1
    /* margin-bottom: 40px; */
}


/* 
.footer-content-container {
background-color: #fff9f1;  
position:relative;
z-index: 1;
} */

.footer-logo {
  display: flex;
  justify-content: center;
}


.footer-logo img {
  width: 100px;
  margin-top: 100px;
  /* margin-left: 200px; */
}

.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #222;
}

.footer-links p,
.footer-contact p {
  font-size: 14px;
  margin: 6px 0;
  font-weight: 400px;
  color: #222;

}

.footer-contact p::before {
  content: '';
  margin-right: 6px;
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #e0d7c6;
  padding-top: 15px;
  font-size: 13px;
  color: #666;
  background-color: #fff;
  margin-left: 20px;
}

.footer-bottom p {
  margin: 5px 0 10px 0;
}

.footer-bottom span {
  margin-left: 700px;
}

.footer-bottom u {
  color: blue;
}

.footer-links u,
.footer-contact u {
  text-decoration: underline;
  text-decoration-color: #eec84d;
  text-decoration-thickness: 5px;
}

.footer-links {
  margin-right: 40px;
}



.video-wrapper {
  max-width: 1200px;
  width: 100%;
  z-index: 2;
  position: relative;
}

.video-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  /* ensures no absolute overlap */
  z-index: 1;
}

.video-section {
  background-image: url("{% static 'amevapp/images/video.png' %}");
  background-size: cover;
  background-position: center;
  height: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding: 80px 0;
  overflow: hidden;
}



.video-section span {
  text-decoration: underline;
  text-decoration-color: #eec84d;
  text-decoration-thickness: 15px;

}

.video-title {
  flex: 1;
}

.mobile-nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 95px;
  width: 100vw;


  /* below header */
  right: 0;
  background: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* 
.video-section span{
  text-decoration: underline;
  text-decoration-color:#eec84d ;
  text-decoration-thickness: 15px;

}

.video-title{
 flex: 1;

  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;

} */


@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


.navbar {
  animation: slideDown 0.8s ease-out forwards;
}

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-overlay h1,
.home-overlay p,
.home-overlay button {
  opacity: 0;
  animation: slideFadeUp 1s ease-out forwards;
}

.home-overlay h1 {
  animation-delay: 0.2s;
}

.home-overlay p {
  animation-delay: 0.4s;
}

.home-overlay button {
  animation-delay: 0.6s;
}

@keyframes slideFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-text h3,
.about-text h2 {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s, transform 0.5s;

}

.about-text h3.animate,
.about-text h2.animate {
  animation: slideFadeLeft 0.8s ease forwards;
}

.about-text h3.animate {
  animation-delay: 0.2s;
}

.about-text h2.animate {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.animate-left {
  animation: slideInLeft 0.8s ease forwards;
}

.card.animate-right {
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideFadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-text>* {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.team-text.animate>* {
  animation: slideFadeUp 0.8s ease forwards;
}

.contact-right {
  opacity: 0;
  transform: translateX(-50px);
}

.contact-right.animate {
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes slideInLeft {

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.img-text-block {
  position: relative;
  text-align: center;
  overflow: visible;
  perspective: 1000px;
}

.animate-forward {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  z-index: 2;
}

.animate-forward:hover {
  transform: translateZ(30px) scale(1.05);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.hourglass-bg {

  transform: scale(1);
  transform-origin: center center;
  transition: transform 1s ease-out;


}

.hourglass-bg.animate {

  animation: growFromCenter 1s ease-out forwards;
}

@keyframes growFromCenter {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}



@keyframes slideinleft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



@media (min-width: 320px) and (max-width: 767px) {

  * {
    box-sizing: border-box;
    max-width: 100%;
  }

  html,
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: center;
  }

  .logo img {
    max-width: 120px;
    height: auto;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-nav-links.show {
    display: flex;

  }

  .mobile-nav-links a {
    display: block;
    padding: 10px 0;
    color: #7a7a7a;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;

  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: #1C1F4C;
    transition: all 0.3s ease;
  }

  .home {
    height: auto !important;
    border-radius: 20px;
    padding: 30px 20px;
    background-size: cover;
  }

  .home-overlay {
    margin-top: 20px;
    padding-left: 20px;
    padding-top: 20px;
    max-width: 100%;
  }

  .home-overlay h1 {
    font-size: 24px;
  }

  .home-overlay p {
    font-size: 16px;
  }

  .contact-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .about {
    padding: 40px 20px;
  }

  .about-container {
    display: flex;
    flex-direction: column-reverse;
    /* padding: 20px; */
    gap: 20px;
    /* overflow-x: hidden; */
  }

  .about-text h2 {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .about-text p {
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto !important;
    text-align: center !important;
  }


  .about-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  .about-image img {

    width: 65% !important;
    max-width: 280px !important;
    height: auto !important;
    border-radius: 50% !important;
  }



  .services {
    padding: 40px 20px;
  }

  .services-header-line {
    gap: 8px !important;
    padding: 0 16px !important;
  }


  .services-header-line .left-heading,
  .services-header-line .right-text,
  .services-header-line h3,
  .services-header-line p {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .services-header-line h3 {

    /* font-size: 36px; */
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services h2 {
    font-size: 28px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .services-header-line p.description {
    /* font-size: 16px; */
    text-align: center;
    max-width: 100%;
  }

  .cards {
    /* display: grid; */
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    /* gap: 20px; */
  }

  .card {
    margin: 12px auto !important;
    width: 100% !important;
    /* padding: 16px; */
    max-width: 350px !important;
    text-align: left;
  }

  .card-wrapper {
    overflow-x: hidden;
  }

  .card h4 {
    font-size: 18px;
  }

  .card ul {
    font-size: 14px;
  }

  .team {
    padding: 60px 20px;
  }

  .team-text h2 {
    font-size: 24px;
  }

  .team-text p {
    font-size: 14px;
  }

  .contact-container {
    flex-direction: column;
    padding: 20px;
  }

  .contact-left,
  .contact-right {
    width: 100% !important;
    margin: 8px auto !important;
    padding: 20px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
  }

  .contact-left {
    align-items: center;
    text-align: center;
  }

  .contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* center icon + text as a group */
    gap: 12px !important;
    margin: 10px auto !important;
    width: auto !important;
    /* shrink to content */
    padding: 10px 18px !important;
  }


  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-row input,
  textarea {
    font-size: 14px;
  }

  .send-btn {
    font-size: 14px;
    padding: 10px 20px;
    width: auto;
  }

  .latest {
    padding: 40px 20px;
  }

  .latest-title {
    font-size: 24px;
  }

  .img-text-block p {
    font-size: 13px;
  }

  .latest-footer h4 {
    font-size: 14px;
  }

  .discover-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .footer-content-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    /* gap: 20px; */
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .footer-links,
  .footer-contact {
    margin-top: 20px;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 0 !important;
  }

  .footer-contact p {
    text-align: right;
    margin-right: 20px;
  }

  .footer-contact h3 {
    text-align: left;
    width: 100%;
    margin-left: 130px;
  }


  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 30px;
  }

  .footer-links h3 {
    margin-bottom: 10px;
  }

  .footer-links p {
    margin: 4px 0;
    margin-left: 10px;

  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
    /* font-size: 12px; */
  }

  .footer-bottom span {
    margin-left: 0 !important;
    margin-top: 8px;
    display: block;
  }

  .services-header-line,
  .about-text h2,
  .about-text h3,
  .services h2 {
    margin-left: 0 !important;
    transform: none !important;
  }

  .video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }

  .video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .video-wrapper img {
    display: block;
    margin-left: 20px;
    max-width: 100%;
    height: auto;
  }

}

@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  html,
  body {
    font-size: 14px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  /* Navbar */
  .navbar {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }

  .nav-links a {
    display: inline-block;
    padding: 0 15px;
    width: auto;
    text-align: center;
  }

  /* Hero/Home Section */
  .home {
    height: auto;
    border-radius: 20px;
    padding: 30px 20px;
    background-size: cover;
  }

  .home-overlay {
    padding: 20px;
    max-width: 100%;
  }

  .home-overlay h1 {
    font-size: 28px;
  }

  .home-overlay p {
    font-size: 16px;
  }

  .contact-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* About Section */
  .about {
    padding: 40px 20px;
  }

  .about-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-image img {
    width: 100%;
    border-radius: 20px;
  }

  /* Services Section */
  .services {
    padding: 40px 20px;
  }

  .services-header-line h3 {
    font-size: 32px;
  }

  .services h2 {
    font-size: 26px;
  }

  .services-header-line p.description {
    font-size: 16px;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 
  .card {
    width: 100%;
    padding: 16px;
  } */

  .card h4 {
    font-size: 18px;
  }

  .card ul {
    font-size: 14px;
  }

  /* Team Section */
  .team {
    padding: 60px 20px;
  }

  .team-text h2 {
    font-size: 24px;
  }

  .team-text p {
    font-size: 14px;
  }

  /* Contact Section */
  .contact-container {
    flex-direction: column;
    padding: 20px;
  }

  .contact-left,
  .contact-right {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-row input,
  textarea {
    font-size: 14px;
    width: 100%;
  }

  .send-btn {
    font-size: 14px;
    padding: 10px 20px;
    width: 100%;
  }

  /* Latest Section */
  .latest {
    padding: 40px 20px;
  }

  .latest-title {
    font-size: 24px;
  }

  .img-text-block p {
    font-size: 13px;
  }

  .latest-footer h4 {
    font-size: 14px;
  }

  .discover-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  /* Footer */
  .footer-content-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 12px;
  }

  .footer-bottom span {
    margin-left: 0;
  }

  /* Video Section */
  .video-section {
    padding: 40px 10px;
  }

  .video-wrapper img {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 30px;
  }

  .about-text {
    text-align: center;
    max-width: 90%;
  }


  .about-image img {
    width: 80%;
    max-width: 300px;
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .services-header-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .services-header-line .left-heading,
  .services-header-line .right-text {
    text-align: center;
    max-width: 90%;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hourglass-bg {
    background-size: cover;
    /* Ensure background stretches nicely */
    background-position: center;
    top: -20px;
  }

  .card {
    padding: 18px;
    font-size: 15px;
  }

  .card ul {
    font-size: 15px;
  }
}