@import url("https://fonts.googleapis.com/css2?family=Merriweather&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-padding-top: 50px;
}

:root {
  --shadow-large: 0 1.5em 1em 0 rgba(0, 0, 0, 0.3);
  --shadow-med: 0 1em 1em 0 rgba(0, 0, 0, 0.3);
  --shadow-x: 0.5em 1em 1em 0 rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-image: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
  background-attachment: fixed;
  font-family: "Merriweather", serif;
  color: #fff;
}

.sec {
  margin-left: 5%;
  margin-top: 10%;
  box-shadow: var(--shadow-large);
  border-radius: 0 0 10px 10px;
  padding: 10%;
}

.no-left {
  margin-left: 0;
}

section p {
  max-width: 75vw;
}

.major-heading {
  color: #000;
  font-size: 4em;
  margin: 1em;
  margin-left: 5%;
  border-bottom: 1px solid #c471ed;
}

h2 {
  color: #222;
  max-width: max-content;
  border-bottom: 1px solid #a6ffcb;
  padding: 0 1em 0 0;
  margin: 0 0 0.5em 0;
}

h2::first-letter {
  font-size: 2em;
}

h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  border-left: 1px solid #000;
  padding-left: 0.5em;
}

p {
  font-size: 2em;
}

strong {
  font-size: 1.25em;
}

header {
  position: relative;
  background-image: linear-gradient(45deg, #1fa2ff, #12d8fa, #a6ffcb);
  border-radius: 0 0 1em 1em;
  margin-bottom: 100px;
  min-height: 50vh;
}

header::after {
  content: "";
  position: absolute;
  height: 100px;
  width: 100%;
  transform: rotate(-1deg) translateX(-5%) translateY(-5%);
  background-color: black;
  filter: blur(20px);
  bottom: 0;
  z-index: -1;
}

header::before {
  content: "";
  position: absolute;
  height: 100px;
  width: 100%;
  transform: rotate(1deg) translateX(5%) translateY(-5%);
  background-color: black;
  filter: blur(20px);
  bottom: 0;
  z-index: -1;
}

.main-img {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 300px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-x);
}

.main-img img {
  width: 300px;
  height: 400px;
}

.decor-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 1em 1em;
}

.decor-container div {
  transform: rotate(-45deg);
  transform-origin: top right;
  box-shadow: 0 0.75em 1em 0 rgba(0, 0, 0, 0.3);
}

.decor-blue {
  position: absolute;
  top: 25%;
  right: 0;
  width: 150%;
  height: 50px;
  background-image: linear-gradient(45deg, #a6ffcb, #12d8fa, #1fa2ff);
}

.decor-pink {
  position: absolute;
  top: 45%;
  right: 0;
  width: 150%;
  height: 60px;
  background-image: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
}

.second-bg img {
  width: 275px;
  height: 500px;
}

.second-bg {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 275px;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-x);
}

nav {
  padding: 1em 0;
  margin-top: 15%;
  margin-bottom: 10%;
  box-shadow: var(--shadow-large);
  border-radius: 0 0 10px 10px;
  position: sticky;
  top: 0;
  z-index: 999;
  background-image: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
}

nav ul {
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0.75em 1em;
  min-width: 100px;
  text-align: center;
  list-style-type: none;
}

nav ul a {
  color: black;
  padding: 0.75em 1em;
  font-weight: 600;
  transition: 250ms ease-in-out;
  margin: 0 2em;
  border-radius: 10px;
}

nav ul a:hover {
  background-color: #a6ffcb;
  box-shadow: 0 1em 1em 0 rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 4em;
  margin: 1em;
  margin-left: 5%;
  border-bottom: 1px solid #c471ed;
}

.intro {
  display: block;
  font-size: 2.25em;
  margin: 1em;
  margin-left: 7%;
  max-width: 50%;
}

.goals-sec ul {
  margin: 1em 0;
  margin-left: 2em;
}

.goals-sec button {
  padding: 1em 2em;
  border: none;
  outline: none;
  border-radius: 10px;
  background-color: #a6ffcb;
  box-shadow: var(--shadow-med);
  transition: 250ms ease-in-out;
  cursor: pointer;
  font-weight: 600;
  margin: 2em 5px;
}
.goals-sec button:hover {
  color: #fff;
  background-color: #000;
}

.goals-sec p {
  max-width: 75vw;
}

.challenges-sec li {
  margin: 1em 0;
  margin-left: 2em;
}

.file-code-container {
  position: relative;
  margin-top: 2em;
  padding: 1em;
  border-radius: 10px;
  box-shadow: var(--shadow-med);
  background-color: #444;
}

.file-code-container div {
  position: absolute;
  top: 10px;
  width: 15px;
  height: 15px;
  box-shadow: 0.5em 0.5em 1em 0 rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.red {
  right: 10px;
  background-color: #f88;
}
.yellow {
  right: 35px;
  background-color: #ff3;
}
.green {
  right: 60px;
  background-color: #0f8;
}

.purpose-sec {
  margin-bottom: 20%;
}

.purpose-btns button {
  padding: 1em 2em;
  border: none;
  outline: none;
  border-radius: 10px;
  background-color: #a6ffcb;
  box-shadow: var(--shadow-med);
  transition: 250ms ease-in-out;
  cursor: pointer;
  font-weight: 600;
  margin: 2em 5px;
}

.time-container {
  padding: 1em;
  margin: 1em;
  margin-left: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-med);
  background-color: #444;
}

.purpose-sec ol {
  margin-left: 2em;
}

.tech-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.tech-grid i {
  font-size: 4em;
  padding: 1em;
  background-color: #000;
  border-radius: 20px;
  margin: 0.5em 0;
  max-width: 200px;
  max-height: 200px;
}

footer {
  margin-top: 15%;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-container a {
  color: #000;
}

.social-container i {
  font-size: 2em;
  padding: 10px;
  margin: 1em 0.5em;
}

@media (min-width: 300px) and (max-width: 1300px) {
  header {
    margin-bottom: 50px;
  }
  header::before {
    display: none;
  }
  p {
    font-size: 1em;
  }
  .main-img {
    width: 200px;
    height: 300px;
  }

  .main-img img {
    width: 200px;
    height: 300px;
  }

  .second-bg img {
    width: 175px;
    height: 300px;
  }

  .second-bg {
    position: absolute;
    top: 15%;
    left: 25%;
    width: 175px;
    height: 300px;
  }
  nav {
    margin-bottom: 50px;
    margin-top: 10%;
  }
  nav ul a {
    margin: 0;
    padding: 0;
  }
  nav ul li {
    font-size: 0.75em;
  }
  .major-heading {
    margin: 0.5em;
    font-size: 2.25em;
  }
  .intro {
    max-width: 75vw;
    font-size: 1em;
  }
}
