@import url("https://fonts.googleapis.com/css2?family=Alkalami&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #166df2;
  --primary-hover: #1259c7;
  --text-color: #000;
  --bg-white: #fff;
  --transition: 0.3s ease;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.logo-img {
  width: clamp(120px, 15vw, 180px);
  height: auto;
}

.navbar {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: var(--text-color);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  transition: color var(--transition);
}

.navbar a:hover {
  color: var(--primary-color);
}

.navbtn {
  background-color: var(--primary-color);
  border: none;
  border-radius: 10px;
  padding: 0.6em 1.2em;
  color: var(--bg-white);
  cursor: pointer;
  font-size: clamp(14px, 1.2vw, 16px);
  font-family: "Roboto", sans-serif;
  transition: background-color var(--transition);
}

.navbtn:hover {
  background-color: var(--primary-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: var(--transition);
}

.main-container {
  margin-top: 5rem;
  padding: clamp(2rem, 5vw, 4.5rem) 5%;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  z-index: 50;
}

.line-btm {
  position: absolute;
  z-index: -1;
  left: -62px;
  width: 100%;
}

.line-top {
  position: absolute;
  top: -5rem;
  left: -20rem;
  width: 100%;
  z-index: -1;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  margin-top: 2rem;
}

.hero-text p {
  font-family: "Abhaya Libre", serif;
  font-weight: 500;
  font-size: clamp(35px, 5vw, 20px);
  line-height: 1.1;
  margin-bottom: 0.2em;
}

.hero-text h2 {
  font-family: "Alkalami", serif;
  font-size: clamp(53px, 8vw, 96px);
  line-height: 1;
  margin: 0.3em 0 0.8em;
  margin-bottom: -20px;
}

.hero-text > span {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.hero-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  max-width: 600px;
  /* border: 2px solid red; */
}

.hero-images::after {
  content: "";
  position: absolute;
  background: linear-gradient(to bottom, transparent, rgb(255, 255, 255));
  bottom: 0;
  height: 150px;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-images::before {
  content: "";
  position: absolute;
  background: linear-gradient(to top, transparent, rgb(255, 255, 255));
  top: -20px;
  height: 180px;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  /* transition: transform var(--transition); */
}

/* .hero-img:hover {
  transform: scale(1.02);
} */

.heroimg2 {
  transform: translateY(-20px);
}

.heroimg4 {
  transform: translateY(-20px);
}

.hero-cta {
  display: flex;
  gap: clamp(10px, 2vw, 20px);
  margin-top: 2em;
}

.primary-btn,
.secondary-btn {
  padding: 0.8em 1.6em;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
}

.primary-btn:hover {
  background-color: var(--primary-hover);
}

.secondary-btn {
  background-color: var(--bg-white);
  color: var(--text-color);
  border: 2px solid rgba(0, 0, 0, 0.15);
}

.secondary-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.subherotxt {
  font-family: "Inter", sans-serif;
  margin-top: 4rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
}

.subherotxt > span {
  color: var(--primary-color);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 3rem;
  }

  .hero-text {
    /* text-align: center; */
    max-width: 100%;
  }

  .hero-cta {
    justify-content: left;
  }

  .hero-images {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-img {
    height: 180px;
  }

  .adjusthide{
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1rem;
    box-shadow: var(--shadow);
    align-items: flex-start;
  }

  .hero-images {
    max-width: 400px;
  }

  .hero-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-text p {
    font-size: 32px;
  }

  .hero-text h2 {
    font-size: 48px;
    margin-bottom: 10px;
  }

  .hero-cta {
    flex-direction: left;
    gap: 1rem;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-images {
    max-width: 400px;
  }

  .hero-img {
    height: 200px;
  }

  .hero-images::before,
  .hero-images::after {
    height: 150px;
  }
}
