@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --color-primary-dark: #0b4a6b;
  --color-primary: #0494c4;
  --color-primary-light: #00b7eb;
  --color-primary-bg: #D3E1E6;

  --color-dark: #2F2F2F;
  --color-gray-dark: #676767;
  --color-gray: #BDBDBD;
  --color-light-bg: #EBEDF3;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 500;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

.hero-bg {
  background: linear-gradient(to bottom right, var(--color-primary-dark), var(--color-primary), var(--color-primary-dark));
  height: 100vh;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  min-height: 2.25rem;
}

.btn-primary {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-section .ihmf-logo {
  display: block;
  width: 20%;
  position: unset;
  margin: 50px auto;
  margin-top: 0;
  background-color: #fff;
  border-radius: 5px;
  padding: 10px;
  z-index: 9999;
  position: relative;
}

.hero-section {
  height: auto;
  padding-bottom: 100px;
  position: relative;
  z-index: 0;
}

.hero-section .container {
  height: 100%;
}

.hero-section .container .hero-content {
  height: auto;
  padding: 20px 0;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0px;
  height: 1px;
  background: #fff;
  z-index: 0;
  pointer-events: none;
}

.hero-section .container .hero-content h1 {
  font-size: 4.5rem;
  line-height: 1;
  --tw-text-opacity: 1;
  color: rgb(255 255 255);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section .container .hero-content p {
  font-size: 1.2rem;
  line-height: 1.5rem;
  color: rgb(255 255 255);
  /* opacity: 0.9; */
  display: block;
  font-weight: 400;
  max-width: 55rem;
  margin: 0 auto;
}

.hero-section .hero-text {
  position: relative;
  z-index: 1;
}

.hero-section .img1 {
  position: absolute;
  width: 50%;
  margin-left: auto;
  border-radius: 50px;
  position: absolute;
  top: 15%;
  right: -10%;
  z-index: 0;
  transition: all 0.1s;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #f4f4f5;
  color: #18181b;
}

.hero-section .card h3 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-bottom: 0.5rem;
}

.hero-section .card h6 {
  color: #4f46e5;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0.75rem;
}

.hero-section .card span {
  --tw-text-opacity: 1;
  color: rgb(75 85 99);
  line-height: 1.625;
  font-size: 0.875rem;
  font-weight: 400;
}

.card-bottom-text {
  display: block;
  --tw-text-opacity: 1;
  color: rgb(107 114 128);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  margin-top: 2rem;
  opacity: 0.8;
  font-weight: 400;
}

.hero-section .card:hover {
  cursor: pointer;
  transition: all 1s ease;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hero-section .card {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  text-align: left;
  min-height: 310px;
}

.hero-card h2 {
  font-size: clamp(3rem, 2.55rem + 0.82vw, 3.75rem);
}

.hero-card .card svg {
  width: 50px;
}

.hero-card .card .w-20 {
  width: 50px;
}

.second-section {
  height: 100vh;
}

.second-section .bg-color {
  background-color: skyblue;
}


.second-section .container .content-wrapper {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-section {
  background-color: #fff;
  width: 100%;
  height: 100vh;
  position: relative;
}

.feature-section-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #ddd5cf;
  z-index: 2;
  display: flex;
  align-items: center;
}

.feature-section-overlay img {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto;
  /* optional: prevent image from being too large */
  pointer-events: none;
}

.card-1 span,
.card-2 span,
.card-3 span,
.card-4 span,
.card-5 span,
.card-6 span {
  font-size: 18px;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-1,
.card-2,
.card-3,
.card-4,
.card-5,
.card-6 {
  width: 250px;
  height: 100px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

/* Individual card images and positions */
.card-1 {
  background-image: url(./images/back.jpg);
  top: 10%;
  left: 28%;
}

.card-2 {
  background-image: url(./images/back.jpg);
  top: 300px;
  left: 15%;
}

.card-3 {
  background-image: url(./images/back.jpg);
  bottom: 15%;
  left: 28%;
}

.card-4 {
  background-image: url(./images/back.jpg);
  top: 10%;
  right: 28%;
}

.card-5 {
  background-image: url(./images/back.jpg);
  top: 300px;
  right: 15%;
}

.card-6 {
  background-image: url(./images/back.jpg);
  bottom: 15%;
  right: 28%;
}

/* Hover effect */
.card-1:hover,
.card-2:hover,
.card-3:hover,
.card-4:hover,
.card-5:hover,
.card-6:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.fourth-section {
  height: 100vh;
}

/* Style the tab */
.tab {
  position: relative;
  z-index: 9999;
  float: left;
  width: 20%;
  height: auto;
  display: grid;
  background-color: transparent;
  margin-bottom: 0px;
  justify-content: center;
  padding: 50px 0;
}

/* Style the buttons inside the tab */
.tab button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #d3d0c8;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: #fff;
  font-size: 12px;
  margin-bottom: 20px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #444;
  border-radius: 10px;
}


/* Style the tab content */
.tabcontent {
  position: relative;
  z-index: 9999;
  float: left;
  align-items: center;
  width: 80%;
  border-left: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.tab-area {
  height: 100%;
  display: flex;
  align-items: center;
}

.solution-section {
  height: 100vh;
}

.tabcontent .content ul {
  margin-left: 0px;
}

.tabcontent .content ul li {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  list-style: disc;
}

.tabcontent .content h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #4f46e5;
  line-height: 1.5;
}

.text-width {
  max-width: 48rem;
  margin: 0 auto;
}

/* Mobile devices (phones) */
@media (max-width: 767px) {
  .hero-bg {
    height: max-content !important;
    padding-bottom: 50px;
    margin-bottom: 100px;
  }

  .hero-section .ihmf-logo {
    width: 60%;
    margin: 20px auto;
  }

  .hero-section .container .hero-content h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .hero-section .container .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin-bottom: 5px !important;
  }

  .hero-btn {
    margin: 40px auto !important;
  }

  .hero-btn .btn {
    font-size: 0.8rem;
  }

  .badge-area .badge {
    margin-top: 10px;
  }

  .hero-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .hero-card h2,
  .hero-card span,
  .hero-card p {
    text-align: left;
    display: block;
    margin-bottom: 0 !important;
  }

  .feature-area h2,
  .feature-area span,
  .feature-area p {
    text-align: left;
    display: block;
  }

  .text-width {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-section .card {
    margin-top: 10px;
    min-height: unset;
  }

  .tab-area {
    flex-direction: column;
  }

  .tab {
    width: 100%;
    display: -webkit-box;
    overflow-x: scroll;
    gap: 10px;
    padding: 0;
  }

  .tabcontent {
    width: 100%;
  }

  .tab button {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }

  .tab button img {
    display: none;
  }

  .tab button br {
    display: none;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-bg {
    height: max-content !important;
    padding-bottom: 50px;
    margin-bottom: 100px;
  }

  .hero-section .ihmf-logo {
    width: 40%;
    margin: 20px auto;
  }

  .hero-section .container .hero-content h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .hero-section .container .hero-content p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin-bottom: 5px !important;
  }

  .hero-btn {
    margin: 40px auto !important;
  }

  .hero-btn .btn {
    font-size: 0.8rem;
  }

  .badge-area .badge {
    margin-top: 10px;
  }

  .hero-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .hero-card h2,
  .hero-card span,
  .hero-card p {
    text-align: left;
    display: block;
  }

  .feature-area h2,
  .feature-area span,
  .feature-area p {
    text-align: left;
    display: block;
  }

  .text-width {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-section .card {
    margin-top: 10px;
    min-height: 350px;
  }

  .tab-area {
    flex-direction: column;
  }

  .tab {
    width: 100%;
    display: -webkit-box;
    overflow-x: scroll;
    gap: 10px;
    padding: 0;
  }

  .tabcontent {
    width: 100%;
  }

  .tab button {
    min-width: 80px;
    min-height: 80px;
  }

  .tab button img {
    display: none;
  }

  .tab button br {
    display: none;
  }
}