/* Root css variables */
:root {
  --primary-color: #5f3dc4;
  --secondary-color: #7048e8;
  --text-color: #333;
  --gradient-color: linear-gradient(
    45deg,
    #2e85ff 28%,
    #b721ff 65%,
    #f85dbd 98%
  );
  --fill-color: #fff;
  --tab-color: #fff;
  --white: #fff;
  --circles-color: rgba(255, 255, 255, 0.2);
  --card-link: #6366f1;
  --btn-color:#fff;
  --btn-background-color:#7048e8;
}

/* For supporting dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --tab-color: #383838;
    --fill-color: #000;
    --white: #000;
    --circles-color: rgba(0, 0, 0, 0.2);
    --text-color: rgb(236, 236, 236);
    --card-link: #d0bfff;
    --btn-color:#fff:
    --btn-background-color:#7048e8:
  }
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--fill-color);
  padding: 2.4rem;
}


/* ================================== */
/* Universal Components */
/* ================================== */

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.grid {
  display: grid;
  gap: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.btn:link,
.btn:visited {
  font-size: 1.6rem;
  display: inline-block;
  padding: 1.4rem 3.2rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.4s;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--full {
  color: var(--btn-color);
  background-color: var(--secondary-color);
}
.btn--full:hover,
.btn--full:active {
  background-color:  var(--btn-color);
 color: var(--secondary-color);
 border: 2px solid var(--secondary-color);

}

.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
}

.heading-secondary {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 9.6rem;
}

.grad-con {
  z-index: 2;
}

/* ================================== */
/* Header */
/* ================================== */

.header {
  display: flex;
  max-width: 130rem;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.8rem;
  height: 9.6rem;
  margin: 0 auto;
}

.title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
}

.sub-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
}
.main-nav-list {
  list-style: none;
  display: flex;
  gap: 3.2rem;
  align-items: center;
}
.main-nav-link:link,
.main-nav-link:visited {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;

  transition: all 0.3s;
  display: inline-block;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #6d28d9;
}

/* ================================== */
/* Hero Section */
/* ================================== */

.hero-section {
  /* background-color: #fff; */
  padding: 0rem 0 9rem 0;
}
.hero {
  display: grid;
  margin: 0 auto;
  max-width: 130rem;
  align-items: center;
  text-align: left;
  gap: 1rem;
  padding: 0 4rem 0 6rem;
  height: 50vh;
}
.hero-img {
  width: 600px;
  height: 600px;
}

.heading-primary {
  font-size: 7rem;
  line-height: 1.05;
  font-weight: 600;
  /* color: #fff; */
  letter-spacing: 0.8px;
  margin-bottom: 3.2rem;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 3.2rem;
}

.highlight {
  position: relative;
  color: #fff;
}

.about-section {
  padding: 9.6rem 0;
}

#gradient-canvas {
  width: 100%;
  height: 80vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  clip-path: polygon(0% 0%, 100% 0%, 100% 39%, 0% 100%);

  --gradient-color-1: #93dffa; 
  --gradient-color-2: #fd9b5a; 
  --gradient-color-3: #c32db7;  
  --gradient-color-4: #ff37b6;
  
}
/* ================================== */
/* Tabs Section */
/* ================================== */

.container--tab {
  max-width: 140rem;
  margin: 15rem auto;
  padding: 0 3.2rem;
}

.tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tabs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--tab-color);
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
  border-radius: 30px;
  padding: 10px 5px;
  margin-bottom: 20px;
}

.tabs__toggle {
  margin: 0 5px;
  padding: 7px 25px;
  background: var(--white);
  border-radius: 20px;
  cursor: pointer;
  transition: 0.5s;
}

.tabs__name {
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.tabs__body {
  background: #fff;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  padding: 30px;
  position: relative;
  height: 100vh;
  padding-bottom: 5rem;
  background-color: var(--tab-color);
}

.tabs__header {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-bottom: 5rem;
}

.tabs__icon {
  width: 3rem;
  height: 3rem;
  color: var(--secondary-color);
}

.tabs__title {
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--text-color);
  text-align: center;
  display: inline-block;
  text-transform: uppercase;
}

.tabs__text {
  font-size: 1.4rem;
  line-height: 1.2;
  color: #484848;
}

.tabs__content {
  display: none;
}

.tabs__toggle.is-active {
  background: #e7eef8;
}

.tabs__toggle.is-active .tabs__name {
  color: var(--secondary-color);
}

.tabs__content.is-active {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4rem;
  row-gap: 10rem;
}

.card-img {
  height: 4rem;
  width: 4rem;
  margin-bottom: 3rem;
}

.custom {
  height: 3rem;
}

.img-center {
  display: flex;
  justify-content: center;
}

.card-link {
  display: block;
  font-size: 2rem;
  text-decoration: none;
  color: var(--card-link);
  margin-bottom: 2rem;
  text-align: center;
  transition: 0.5s;
}

.card-link:hover {
  color: #5f3dc4;
}

.card-description {
  font-size: 1.3rem;
  line-height: 1.3;
}

.footer {
  padding: 5rem 0;
  border-top: 1px solid rgb(211, 210, 210);
  font-size: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
}

.footer-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem;
  color: #888888;
}

.social-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 2rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: #7048e8;
}

.copyright {
  font-size: 1.4rem;
  color: #767676;
  margin-top: auto;
}

/* For Responsive design */
/**********************************************/
/* Below 1200px landscape tablet*/
/**********************************************/

@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
  .heading-primary {
    font-size: 3.2em;
  }
  .container--tab {
    max-width: 130rem;
  }
  .hero-divider svg {
    height: 110px;
  }
  .tabs__toggle {
    padding: 2px 12px;
  }
  .hero-img {
    width: 450px;
    height: 450px;
  }
}

/**********************************************/
/* Below 944px tablet*/
/**********************************************/
@media (max-width: 59em) {
  html {
    font-size: 50%;
  }
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .hero {
    max-width: 100rem;
  }
  .tabs {
    display: flex;
    flex-direction: row;
    gap: 2.2rem;
    width: 100%;
  }

  .tabs__head {
    flex-direction: column;
    box-shadow: 0 4px 5px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    height: 50em;
    padding-top: 2.2em;
  }

  .tabs__toggle {
    padding: 1em 1.2em;
  }

  .tabs__body {
    box-shadow: 0 4px 5px 3px rgba(0, 0, 0, 0.1);
    height: 60em;
    padding-bottom: 2.2em;
  }
  .cards {
    row-gap: 5em;
  }
  #gradient-canvas {
    height: 40vh;
    clip-path: polygon(0% 0%, 100% 0%, 100% 55%, 0% 100%);
  }
  .hero-img {
    width: 350px;
    height: 350px;
  }
  .hero-section {
    /* background-color: #fff; */
    padding: 0rem 0 1rem 0;
  }
  .hero {
    height: 30vh;
  }
}

/**********************************************/
/* Below 700px smaller tablet*/
/**********************************************/

@media (max-width: 44em) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs__body {
    height: 100%;
    padding-bottom: 2.2em;
  }
  .tabs__head {
    height: 50em;
    width: 12em;
    padding-top: 2.2em;
  }
  .tabs__title {
    font-size: 1.6em;
    line-height: 1.4;
  }
  .hero-divider svg {
    height: 8.8em;
  }
  .tabs__header {
    gap: 1em;
    flex-direction: column;
  }
  .tabs__toggle {
    padding: 1em 1.2em;
  }
  #gradient-canvas {
    height: 70vh;
  }
  .grid--2-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .hero-img {
    width: 300px;
    height: 300px;
  }
  .hero-section {
    /* background-color: #fff; */
    padding: 7rem 0 40rem 0;
  }
  .hero {
    text-align: center;
    gap: 0;
  }
}

/**********************************************/
/* Below 544px phones*/
/**********************************************/
@media (max-width: 34em) {
  .tabs {
    gap: 2rem;
}
  .cards {
    grid-template-columns: 1fr;
  
  }
  .tabs__body {
    padding: 20px;
  }
  .header {
    padding: 0 2em;
    gap: 2em;
  }
  .sub-title {
    font-size: 1.8em;
  }
  .tabs__toggle {
    padding: 1em 1.2em;
  }
  .card-description {
    font-size: 1.5rem;
  }
  #gradient-canvas {
    height: 60vh;
    clip-path: polygon(0% 0%, 100% 0%, 100% 55%, 0% 100%);
  }
  .grid--2-cols {
    grid-template-columns: repeat(1, 1fr);
  }
  .hero-img {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }
  .hero-section {
    /* background-color: #fff; */
    padding: 7rem 0 25rem 0;
  }
  .hero {
    text-align: center;
    gap: 0;
    padding: 0;
  }
  .container--tab {

    padding: 0;
}
.tabs__head {
  height: 50em;
  width: 12em;
  padding-top: 2.2em;
}
.hero-description {
  padding-right: 1rem;
}
}
