/* ======================================== */
/* Global / Base Styles */
/* ======================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset / box-sizing etc. */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body / font defaults */
html,
body {
  font-family: "Poppins", sans-serif;
  color: #000;
  overflow-x: hidden !important;
}

/* ======================================== */
/* Hero Section */
/* ======================================== */

.hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  object-fit: cover;
  min-height: 100vh; /* changed from 106vh to 100vh */
  padding: 2rem;
  background-repeat: no-repeat;
  background-position: center center;
}

.hero-bg-wrapper {
  width: 100%;
  max-width: 1728px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  position: relative;
  left: 6%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  z-index: 2;
}

.mains-cont {
  display: flex;
  align-items: center;
}

.hero-highlight {
  font-family: "Poppins", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 74.59px;
  color: #514bb0;
  margin-bottom: -20px;
  margin-top: -25px;
  margin-right: 10px;
  background: linear-gradient(to right, #514bb0 0%, #6067e6 0%, #e879cd 91%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main {
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 70.953px;
  font-weight: 700;
  line-height: 1.1; /* adjusted */
  margin: 0;
}

.hero-sub {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 70.95px;
  line-height: 1.1;
  color: white;
  margin: 0;
}

/* ======================================== */
/* Contact Section */
/* ======================================== */

.contact-section {
  padding: 120px 30px 0px 30px;
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}

.contact-container {
  display: flex;
  gap: 4rem;
  max-width: 1532px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-left {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  padding-top: 58px;
  gap: 1.5rem;
}

.contact-heading {
  font-size: 62px;
  color: #5f6186;
  font-weight: 700;
  text-transform: capitalize;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mamins-c {
  display: flex;
  justify-content: start;
}

.contact-sub-heading {
  font-size: 66px;
  color: #514bb0;
  font-style: italic;
  font-weight: 700;
  text-transform: capitalize;
  background: linear-gradient(to right, #514bb0 0%, #6067e6 0%, #e879cd 91%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -37px;
  display: flex;
}

.contact-highlight {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.36;
  padding-bottom: 8px;
  margin-top: -9px;
  color: #000;
}

.contact-description {
  font-size: 18.568px;
  font-weight: 400;
  line-height: 1.76;
  color: #000;
}

/* Contact Right (form) */
.contact-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  padding: 60px 80px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border: 4px solid #554fb7;
}

.form-heading {
  font-size: 53px;
  font-weight: 700;
  color: #5f6186;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 48%;
}

.input-group input,
.input-group textarea {
  padding: 15px 20px;
  border-radius: 30px;
  border: 1px solid #3a46a2;
  background: #f5f8fa;
  font-size: 16px;
  outline: none;
  resize: none; /* for textarea */
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: black;
}

/* ======================================== */
/* Careers Section */
/* ======================================== */

.careers-section {
  padding: 0px 20px 40px 20px;
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  margin-top: -121px;
}

.careers-container {
  display: flex;
  flex-direction: row;
  max-width: 1532px;
  width: 100%;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.careers-image-wrapper {
  flex: 0 0 500px;
  max-width: 590px;
  border-radius: 31px;
  overflow: hidden;
}

.careers-image {
  width: 100%;
  height: auto;
  border-radius: 31px;
  display: block;
}

.careers-content-card {
  flex: 1;
  background: white;
  box-shadow: 0px 4px 33px rgba(0, 0, 0, 0.39);
  border-radius: 40px;
  padding: 100px 115px;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: start;
  margin-top: 277px;
  margin-left: -190px;
  max-width: 872.68px;
}

.careers-preheading {
  font-size: 30px;
  font-weight: 700;
  color: #5f6186;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.careers-heading {
  font-size: 40px;
  font-weight: 700;
  text-align: start;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: capitalize;
}

.careers-highlight {
  font-size: 47.451px;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(to right, #514bb0 0%, #6067e6 0%, #e879cd 91%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.careers-paragraph {
  font-size: 18px;
  font-weight: 400;
  color: black;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: start;
}

.careers-button {
  position: relative;
  background: linear-gradient(
    68deg,
    #524db1 0%,
    #7c6ae8 23%,
    #9b68eb 54%,
    #c972db 82%,
    #e879cd 100%
  );
  border-radius: 114px;
  padding: 0.75rem 2rem;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  width: 369px; /* will change in mobile */
  height: 49px;
  transition: transform 0.3s ease;
  border: none;
  text-decoration: none;
  text-align: center;
}

/* ======================================== */
/* Academy Section */
/* ======================================== */

.academy-section {
  padding: 37px 20px 150px 20px;
  display: flex;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  position: relative;
}

.academy-container {
  max-width: 1532px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.academy-content-card {
  flex: 1;
  background: white !important;
  box-shadow: 0px 4px 33px rgba(0, 0, 0, 0.39);
  border-radius: 40px;
  padding: 100px 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 872.68px;
  max-width: 872.68px;
  text-align: start;
  position: absolute;
  margin-left: 50px;
  bottom: 50px;
  right: 500px;
  z-index: 1;
}

.academy-preheading {
  font-size: 29.5px;
  font-weight: 700;
  color: #5f6186;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.academy-heading {
  font-size: 43px;
  font-weight: 700;
  background: linear-gradient(270deg, rgb(0, 0, 0) 54%, rgb(0, 0, 0) 95%)
    text;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: start;
}
.academy-paragraph {
  padding-bottom: 20px;
}
.academy-highlight {
  font-size: 46px;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(to right, #514bb0 0%, #6067e6 0%, #e879cd 91%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: -10px;
}

/* ======================================== */
/* Button */
/* ======================================== */

.submit-btn {
  position: relative;
  background: linear-gradient(
    68deg,
    #524db1 0%,
    #7c6ae8 23%,
    #9b68eb 54%,
    #c972db 82%,
    #e879cd 100%
  );
  border-radius: 114px;
  padding: 0.75rem 2rem;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  width: 369px; /* will change in mobile */
  height: 49px;
  align-self: center;
  transition: transform 0.3s ease;
  border: none;
}

/* slow gradient overlay on hover */
.submit-btn ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    89deg,
    #e879cd -14.94%,
    #c972db 11.79%,
    #9b68eb 49.33%,
    #7c6ae8 82.32%,
    #524db1 103.36%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 1.6s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(161, 102, 255, 0.5);
}

.submit-btn:hover::before {
  opacity: 1;
}

/* slow gradient overlay on hover */
.careers-button ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    89deg,
    #e879cd -14.94%,
    #c972db 11.79%,
    #9b68eb 49.33%,
    #7c6ae8 82.32%,
    #524db1 103.36%
  );
  opacity: 0;
  z-index: -1;
  transition: opacity 1.6s ease;
}

.careers-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(161, 102, 255, 0.5);
}

.careers-button:hover::before {
  opacity: 1;
}

/* ======================================== */
/* Media Queries for Responsiveness */
/* ======================================== */

/* Large desktop to smaller desktop */
@media (max-width: 1440px) {
  .hero-highlight,
  .hero-main,
  .hero-sub {
    font-size: 48px;
    line-height: 1.2;
  }
  .careers-section {
    margin-top: -121px;
  }
  .academy-content-card{
    right: 200px;
  }
}

@media (max-width: 1200px) {
  .hero-highlight,
  .hero-main,
  .hero-sub {
    font-size: 42px;
    line-height: 1.2;
  }
  .careers-section {
    margin-top: -121px;
  }
}

@media (max-width: 1080px) {
  .academy-content-card {
    width: 750px;
  }
}

/* Tablets / small desktops */
@media (max-width: 992px) {
  .hero-bg-wrapper {
    left: 0;
  }
  .hero-highlight,
  .hero-main,
  .hero-sub {
    font-size: 38px;
    line-height: 1.2;
  }
  .careers-section {
    margin-top: -121px;
  }
}

@media (max-width: 768px) {
  /* Hero adjustments */
  .hero-content {
    align-items: center;
    text-align: center;
    margin-top: 0 !important;
    width: 100%;
    padding: 0 20px;
  }
  .academy-paragraph {
    text-align: start;
    font-size: 18px;
    padding-bottom: 20px;
  }
  .academy-heading {
    font-size: 40px;
    text-align: start;
  }
  .hero-highlight,
  .hero-main,
  .hero-sub {
    font-size: 34px;
    line-height: 1.2;
  }
  .mains-cont {
    align-items: center;
  }

  /* Contact section adjustments */
  .contact-container {
    gap: 2rem;
    align-items: center;
  }
  .contact-left,
  .contact-right {
    flex: 1 1 100%;
    width: 100%;
    padding: 20px;
    margin-bottom: 30px;
  }
  .submit-btn {
    width: 100%;
    max-width: 100%;
  }

  /* Careers section */
  .careers-container {
    flex-direction: column;
    align-items: center;
  }
  .careers-image-wrapper {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .careers-content-card {
    margin: 20px 0 0 0;
    padding: 40px 20px;
    width: 90%;
    text-align: center;
    align-items: center;
    margin-top: -400px;
  }
  .careers-button {
    width: 100%;
  }

  /* Academy section */
  .academy-container {
    justify-content: center;
  }
  .academy-content-card {
    margin: 20px auto 0 auto;
    padding: 40px 20px;
    width: 90%;
    max-width: 90%;
    text-align: center;
    align-items: center;
    position: static;
    margin-bottom: -300px;
    left: 0;
    top: 0;
  }
  .academy-image-wrapper {
    max-width: 100vw;
    width: 100vw;
    border-radius: 31px;
    overflow: hidden;
    height: 400px;
  }
  .academy-image {
    width: 100%;
    object-fit: fill;
  }
  .academy-button {
    width: 100%;
  }

  .careers-section {
    margin-top: 0px;
  }
  .contact-main-heading {
    text-align: center;
  }
  .mamins-c {
    justify-content: center;
  }
  .contact-highlight {
    font-size: 18px;
    text-align: center;
  }
  .contact-description {
    font-size: 16px;
    text-align: center;
  }
  .contact-section {
    padding: 10px 10px 10px 10px;
  }
  .careers-paragraph,
  .academy-paragraph,
  .academy-heading,
  .careers-heading {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-highlight,
  .hero-main,
  .hero-sub {
    font-size: 30px;
    line-height: 1.2;
  }
  .contact-heading {
    font-size: 35px;
    padding: 20px;
  }
  .contact-sub-heading {
    font-size: 35px;
  }
  .form-heading {
    font-size: 32px;
  }
  .contact-highlight {
    font-size: 20px;
  }
  .contact-description {
    font-size: 18px;
  }
  .submit-btn {
    font-size: 16px;
    padding: 12px 20px;
  }
  .careers-section {
    margin-top: 0px;
  }
  .academy-image {
    height: 350px;
  }
  .academy-preheading,
  .careers-preheading {
    font-size: 14px;
  }
  .academy-heading,
  .careers-heading {
    font-size: 22px;
    text-align: center;
  }
  .academy-highlight,
  .careers-highlight {
    font-size: 22px;
  }
  .academy-paragraph,
  .careers-paragraph {
    font-size: 14px;
    text-align: center;
  }
  .careers-container {
    overflow: hidden;
  }
  .careers-button {
    font-size: 18px;
    width: 80%;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Make contact section columns stack */

  .hero-section {
    overflow: hidden;
  }
  .contact-container {
    display: flex;
    /* flex-direction: column;  */
    align-items: center;
    gap: 2rem; /* adjust gap between sections */
  }

  .contact-left,
  .contact-right {
    flex: 1 1 100%; /* take full width */
    width: 100%;
    padding: 20px; /* some padding so content doesn't touch edges */
    box-sizing: border-box;
  }

  /* Ensure submit button fits */
  .submit-btn {
    width: 100%;
    max-width: none;
  }
  .academy-image-wrapper {
    order: 1s;
  }
}

/* Fix image overflow */
@media (max-width: 768px) {
  .careers-image {
    width: 100%;
    height: 400px;
    max-width: 100%;
    object-fit: cover;
  }

  /* If the parent wrapper has fixed large width or white-space issue, ensure no overflow */
  .careers-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

@media (max-width: 820px) {
  .hero-bg-wrapper {
    left: 0 !important;
  }

  .contact-container,
  .academy-container,
  .careers-container {
    overflow-x: hidden !important;
  }
}
@media (max-width: 468px) {
  .academy-content-card {
    margin-bottom: -250px;
  }
  .academy-section {
    padding: 10px 10px;
  }
  .contact-section {
    padding: 10px 10px 10px 10px;
  }
}
