/* Custom Properties and Utility Classes  */
:root {
  --primary-bg: #fff7f0;
  --secondary-400: #030303;
  --text: white;

  --purple: #755cde;
  --orange-200: #f39e9e;
  --orange-400: #f6a560;
  --orange-700: #eb7565;
  --green: #61c4b7;
  --magenta: #552049;

  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;

  --fs-300: 0.85rem;
  --fs-400: 1rem;
  --fs-450: 1.25rem;
  --fs-500: 1.5rem;
  --fs-600: 1.75rem;
  --fs-700: 2rem;
  --fs-800: 2.5rem;
  --fs-900: 3rem;

  --ff-transition: all 0.5s ease;
}
.DarkMode {
  --primary-bg: #fff7f0;
  --secondary-400: #030303;
  --text: white;

  --purple: #755cde;
  --orange-200: #f39e9e;
  --orange-400: #f6a560;
  --orange-700: #eb7565;
  --green: #61c4b7;
  --mangenta: #552049;
}

/* CSS Reset  */
/* Box sizing rules */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* General Styling  */
body {
  background-color: var(--primary-bg);
  font-family: "Plus Jakarta Sans", sans-serif;
}
main {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Header  */
header {
  display: flex;
  margin-inline: auto;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* SVG */
.icon,
.footer-logo {
  cursor: pointer;
  --logo-color: var(--secondary-400);
  fill: var(--secondary-400);
  transition: all 0.5s ease;
  border-radius: 0.3rem;
  --stroke-color: #fff7f0;
}
.icon:hover,
.footer-logo:hover {
  --logo-color: var(--purple);
  --stroke-color: var(--text);
  border-radius: 50%;
  transform: scale(1.08);
  box-shadow: 0 15px 30px rgb(22, 22, 22, 0.1);
}
.footer-logo:hover {
  --logo-color: var(--orange-700);
}
@media (min-width: 40em) {
  .icon,
  .footer-logo {
    width: 75px;
    height: 75px;
  }
}
.btn {
  color: var(--primary-bg);
  font-size: var(--fs-300);
  border: 3px solid var(--secondary-400);
  border-radius: 100vmax;
  padding: 0.45rem 1rem;
  outline: none;
  font-weight: var(--fw-700);
  background: var(--secondary-400);
  transition: all 0.5s ease;
  cursor: pointer;
}
.btn[data-orange] {
  background: var(--orange-700);
  border-color: var(--orange-700);
}
.btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgb(22, 22, 22, 0.1);
}
.btn[data-orange]:hover {
  background: var(--orange-400);
  border-color: var(--orange-400);
}
@media (min-width: 40em) {
  .btn {
    font-size: var(--fs-450);
    padding: 0.7rem 1.5rem;
  }
}

/* Heading  */
.head-text h1 {
  font-size: var(--fs-700);
  line-height: 1.2;
  font-weight: var(--fw-800);
}
.head-text p {
  font-size: var(--fs-400);
  max-width: 65ch;
  margin-inline: auto;
  padding-block-start: 1rem;
}
@media (min-width: 40em) {
  .head-text h1 {
    font-size: var(--fs-800);
  }
}
@media (min-width: 50em) {
  .head-text h1 {
    font-size: 4rem;
  }
}

/* Skill Box Grids  */
.skill-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-areas:
    "purplebox purplebox"
    "purplebox purplebox"
    "orange-400 orange-200"
    "orange-700 orange-700"
    "greenbox greenbox"
    "magentabox magentabox";
  transition: all 0.5s ease;
}

@media (min-width: 35em) {
  .skill-grid {
    grid-template-areas:
      "purplebox purplebox orange-400 orange-200"
      "purplebox purplebox orange-700 orange-700"
      "greenbox greenbox magentabox magentabox";
  }
}
@media (min-width: 60em) {
  .skill-grid {
    grid-template-areas:
      "purplebox purplebox orange-400 orange-200 greenbox greenbox"
      "purplebox purplebox orange-700 orange-700 magentabox magentabox";
  }
}
.skill-box {
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: space-around;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
  font-size: var(--fs-400);
  font-weight: var(--fw-700);
  color: var(--primary-bg);
  padding: 1rem;
  transition: var(--ff-transition);
}
.skill-box h2 {
  transition: var(--ff-transition);
}
.skill-box img {
  margin-left: auto;
  transition: var(--ff-transition);
}
/* Boxes Hover Effect  */
.skill-box:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 45px rgb(22, 22, 22, 0.15);
}
.skill-box:hover h2 {
  transform: translateX(10px);
  transform-origin: center;
}
.skill-box:hover img {
  transform: scale(1.1);
  transform-origin: center;
}

/* Skill Box Background Hover Effect  */
.purple:hover {
  background: hsl(252, 66%, 42%);
}
.orange-200:hover {
  background: hsl(0, 78%, 59%);
}
.orange-400:hover {
  background: hsl(28, 89%, 47%);
}
.orange-700:hover {
  background: hsl(7, 77%, 46%);
}
.green:hover {
  background: hsl(172, 46%, 37%);
}
.magenta:hover {
  background: hsl(314, 45%, 13%);
}

/* Advanced Hover State  */
.purple:hover ~ .box {
  transform: scale(0.97);
  filter: blur(1px);
  transition: all ease-in-out 0.5s;
}
@media (max-width: 30em) {
  .purple:hover ~ .box {
    filter: hue-rotate(-60deg);
    opacity: 0.8;
  }
}

/* Introduction */
.introduction {
  display: flex;
  gap: 2rem;
  text-align: center;
  flex-direction: column;
  transition: all 5s ease;
}
.introduction img {
  width: 325px;
  margin-inline: auto;
  border-radius: 50%;
  transition: var(--ff-transition);
}

.introduction img:hover {
  box-shadow: 0 30px 45px rgb(22, 22, 22, 0.25);
  transform: scale(1.05);
}
@media (min-width: 60em) {
  .introduction img {
    width: 350px;
  }
}
.intro-text h1 {
  font-size: var(--fs-500);
  line-height: 1.3;
  font-weight: var(--fw-800);
}
.intro-text p {
  font-weight: var(--fw-500);
  line-height: 1.5;
  padding-block: 1.5rem;
}
@media (min-width: 40em) {
  .introduction {
    flex-direction: row;
    align-items: center;
  }
  .intro-text {
    text-align: left;
    margin-right: auto;
  }
  .intro-text h1 {
    font-size: var(--fs-600);
  }
}
@media (min-width: 60em) {
  main {
    max-width: 1440px;
    margin-inline: auto;
  }
  .intro-text h1 {
    font-size: var(--fs-800);
  }
  .intro-text {
    max-width: 45ch;
    margin-right: auto;
  }
}

/* CTA  */

.cta-wrapper {
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--primary-bg);
  transition: all 0.5s ease;
  background-color: var(--secondary-400);
}
.cta-text {
  font-size: var(--fs-400);
  padding-block-end: 2rem;
  text-align: center;
}
.cta-text h2 {
  color: white;
  font-size: var(--fs-500);
  font-weight: var(--fw-700);
  padding-block-end: 1rem;
}
.cta-text p {
  max-width: 40ch;
  margin-inline: auto;
}
@media (min-width: 60em) {
  .cta-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .cta-text {
    max-width: 35ch;
    padding: 0;
    text-align: left;
    margin-inline: none;
  }
  .cta-text h2 {
    font-size: var(--fs-800);
  }
}
/* Footer  */
.footer-nav {
  display: flex;
  margin-block-end: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

/* Widthing Media Quires  */
@media (min-width: 40em) {
  header {
    margin-block-start: 1rem;
    padding-inline: 2.8rem;
  }
  main {
    margin-block: 1rem;
  }
  .lg-padding-inline-900 {
    padding-inline: 3rem;
  }
}
@media (min-width: 60em) {
  header {
    max-width: 69rem;
    margin-block-start: 1.5rem;
    margin-inline: auto;
  }
  main {
    margin-block: 2rem;
  }
  .width {
    max-width: 69rem;
    margin-inline: auto;
  }
}

/* Skill Box background color classes*/
.center {
  text-align: center;
}
.purple {
  background-color: var(--purple);
  grid-area: purplebox;
}
.orange-200 {
  background: var(--orange-200);
  grid-area: orange-200;
}
.orange-400 {
  background: var(--orange-400);
  grid-area: orange-400;
}
.orange-700 {
  background: var(--orange-700);
  grid-area: orange-700;
}
.green {
  background: var(--green);
  grid-area: greenbox;
}
.magenta {
  background: var(--magenta);
  grid-area: magentabox;
}

/* Slider  */
.slider {
  display: flex;
  list-style: none;
  margin-block: 4rem 2rem;
}
.sli-img {
  border: none;
  border-radius: 1rem;
}

.slider > * {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  padding-inline: 0rem;
}
@media (min-width: 30em) {
  .slider > * {
    width: 50%;
    padding-inline: 0.5rem;
  }
}
@media (min-width: 50em) {
  .slider > * {
    width: 37%;
  }
}
.slider-button {
  display: flex;
  gap: 1rem;
  max-width: 9rem;
  margin-block-start: 3rem;
  margin-inline: auto;
}
.a11y-slider-next,
.a11y-slider-prev {
  width: 64px;
  height: 64px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  text-indent: -99999px;
  transition: var(--ff-transition);
}
.a11y-slider-prev {
  margin-right: 1rem;
  background: url(assets/icon-arrow-left.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px;
  background-color: var(--secondary-400);
}
.a11y-slider-next {
  background: url(assets/icon-arrow-right.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px;
  background-color: var(--secondary-400);
}

.a11y-slider-next:hover,
.a11y-slider-prev:hover {
  background-color: var(--purple);
  transform: scale(0.97);
  box-shadow: 0 15px 25px rgb(22, 22, 22, 0.2);
}
.a11y-slider-autoplay {
  display: none;
}

/* Utility Classes */
.padding-block-700 {
  padding-block: 1rem;
}
.padding-block-800 {
  padding-block: 2rem;
}
.padding-block-900 {
  padding-block: 3rem;
}
.padding-block-end-900 {
  padding-block: 3rem;
}
.padding-block-start-900 {
  padding-block-start: 3rem;
}
.fs-lg {
  font-size: 3rem;
  font-weight: var(--fw-700);
}
@media (min-width: 40em) {
  .fs-lg {
    font-size: 3.5rem;
  }
}
.margin-block-900 {
  margin-block: 3rem;
}
.relative {
  position: relative;
}

/* Animations and Animation Classes */
header, .footer-nav {
  animation: topDown 2s ease both;
  animation-delay: 800ms;
}
.skill-grid, .introduction, .cta {
  animation: DownTop 2s ease both;
  animation-delay: 800ms;
}
.head-text, .carousel {
  animation: zoomInUp 2s ease both;
}

@keyframes topDown {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }
  50% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes DownTop {
  0% {
    transform: translateY(200px);
    opacity: 0;
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes zoomInUp {
  0% {
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
    opacity: 0;
  }
  60% {
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
    /* opacity: 1; */
  }
  100% {
    opacity: 1;
  }
}
