/* LIGHT MODE */
:root {
  --font-head: "Montserrat", serif;
  --font-body: "Jost", sans-serif;
  --font-special: "Poppins", sans-serif;
  --font-size-h1: clamp(2rem, 5vw + 0.5rem, 30rem);
  --font-size-h3: clamp(.7rem, 3vw + .3rem, 1.2rem);
  --font-size-p: clamp(.5rem, 2.5vw + .3rem, 1rem);
  --font-size-special: clamp(.3rem, 3vw + .3rem, .7rem);
  --red-border: 2px solid red;
  --line-height-body: 20.8px;
  --line-height-head: 26.4px;
  --box-shadow: 1px 1px 10px var(--faint-blue);

  --grad-bg: white;
  --linear-bg: linear-gradient(90deg, #cfd8e4 0%, #ffffff 100%);
  --text-head: #1495ff;
  --tab-color: #333;
  --darker-blue: var(--text-head);
  --blue-text: var(--text-head);
  --nav-shadow: var(--faint-blue);
  --pink: pink;
  --faint-blue: #cfd8e4;
  --ping-pink: #ff1313;
  --primary-color: var(--grad-bg);
  --scroll-padding: 10rem;
}

/* DARK MODE */
.dark-mode {
  --font-head: "Montserrat", serif;
  --font-body: "Jost", sans-serif;
  --font-special: "Poppins", sans-serif;
  --font-size-h1: clamp(2rem, 5vw + 0.5rem, 30rem);
  --font-size-h3: clamp(.7rem, 3vw + .3rem, 1.2rem);
  --font-size-p: clamp(.5rem, 2.5vw + .3rem, 1rem);
  --font-size-special: clamp(.3rem, 3vw + .3rem, .7rem);
  --red-border: 2px solid red;
  --line-height-body: 20.8px;
  --line-height-head: 26.4px;
  --box-shadow: 1px 1px 10px var(--faint-blue);

  --grad-bg: #0a0a0a;
  --linear-bg: linear-gradient(90deg, #252525 0%, #2e2e2e 100%);
  --text-head: #0051ff;
  --tab-color: #a1a1a1;
  --darker-blue: var(--text-head);
  --blue-text: var(--text-head);
  --nav-shadow: #141414;
  --pink: #ff69b4;
  --faint-blue: var(--nav-shadow);
  --ping-pink: #ff6f61;
  --primary-color: var(--grad-bg);
  --scroll-padding: 10rem;
}

body,
html {

  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding: 10rem;
}

body {
  position: relative;
  background-attachment: fixed;
  background: var(--linear-bg);
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--grad-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner */
.preloader__spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--faint-blue, #ccc);
  /* Default to light gray */
  border-top: 5px solid var(--blue-text);
  /* Blue color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* NAVBAR STYLING */
.navbar {
  padding-block: 1.2rem;
  background: var(--primary-color);
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  z-index: 10;
}

.navbar__container {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.navbar__logo p {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-head);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.2rem, 1.5cqi + 0.3rem, 2rem);
}

.side-navbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column: 2/4;
}

.navbar-links__center {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.navbar-links__center a {
  text-decoration: none;
  padding: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-sm);
  color: var(--blue-text);
}

.navbar-links__center a:hover {
  color: var(--text-head);
}

.side-navbar__hidden {
  display: none;
}

.theme-toggle {
  background: none;
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 7px;
  right: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  -webkit-border-radius: 50%;

  background: var(--primary-color);
  border: none;
  transition: 200ms;

  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-toggle button:hover {
  box-shadow: var(--box-shadow);
}

.theme-toggle button i {
  font-size: 22px;
  color: var(--blue-text);
}

.navbar-links__right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.navbar-links__right button {
  font-family: var(--font-special);
  font-weight: 600;
  margin: 5px;
  padding: 10px 30px;
}

.navbar__resume {
  transition: 200ms ease;
  border-radius: 5px;
  text-decoration: none;
  color: var(--blue-text);
  background-color: var(--primary-color);
  border: 1px solid var(--blue-text);
  padding: 5px 15px;
}

.navbar__resume:hover {
  box-shadow: var(--box-shadow);
}

.navbar__contact {
  transition: 200ms ease;
  position: relative;
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-color);
  background-color: var(--text-head);
  border: 1px solid var(--text-head);
  padding: 5px 15px;
}

.navbar__contact:hover {
  box-shadow: var(--box-shadow);
  animation: vibrate 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.navbar__contact::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--primary-color);
  background-color: var(--ping-pink);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 100px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-transform: uppercase;
  animation: heartbeat-2 3s linear infinite;
}

@keyframes heartbeat-2 {
  0% {
    box-shadow: 0 0 0 0 rgb(255, 82, 174, 0.7), 0 0 0 0 rgb(255, 82, 174, 0.7);
  }

  40% {
    box-shadow: 0 0 0 10px rgb(255, 82, 174, 0), 0 0 0 0 rgb(255, 82, 174, 0.7);
  }

  80% {
    box-shadow: 0 0 0 10px rgb(255, 82, 174, 0), 0 0 0 0 rgb(255, 82, 174, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(255, 82, 174, 0), 0 0 0 0 rgb(255, 82, 174, 0);
  }
}

.navbar__burger-menu {
  display: none;
  position: relative;
}

.side-navbar__socials {
  display: none;
}

.side-navbar__socials button {
  border: none;
  transition: 200ms ease-in-out;
  box-shadow: var(--box-shadow);
  background: var(--primary-color);
}

.side-navbar__socials button i {
  color: var(--tab-color);
  font-size: 20px;
  transition: 200ms ease-in-out;
}

.side-navbar__socials button:hover i {
  color: var(--blue-text);
}

/*END OF NAVBAR STYLING */

/* HOME STLYING */
.home-page {
  position: relative;
}

.home__content {
  text-align: center;
  width: 100%;
  height: 100dvh;
  display: grid;
  place-content: center;
}

.space {
  height: 2px;
  width: 100%;
  margin-bottom: 10px;
}


.home__content h1 {
  width: 100%;
  text-wrap: balance;
  margin: auto;
  padding: 10px;
  font-size: var(--font-size-h1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right,
      var(--darker-blue),
      var(--blue-text),
      var(--text-head));
  font-family: var(--font-head);
}


.home__sub-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--tab-color);
  width: min(95%, 1200px);
  line-height: 1.5;
  font-size: var(--font-size-p);
  margin: auto;
  text-wrap: balance;
}

.call-to-action {
  margin: auto;
  width: min(90%, 300px);
  margin-top: 1rem;
}

.call-to-action div {
  width: 100%;
}

.call-to-action a button {
  width: 100%;
  background: transparent;
  border: 1px solid var(--blue-text);
  padding: 10px;
  color: var(--blue-text);
  border-radius: 5px;
  font-size: var(--font-size-p);
  font-family: var(--font-special);
  font-weight: 600;
  transition: 200ms ease-in-out;
}

.call-to-action a button:hover {
  box-shadow: var(--box-shadow);
}

.call-to-action a button i {
  font-size: 16px;
}

.home__socials {
  position: absolute;
  left: 0;
  top: 14.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: .4rem;
  border-radius: 5px;
  background: var(--primary-color);
  box-shadow: var(--box-shadow);

}

.home__socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .6rem;
  border-radius: 5px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right,
      var(--darker-blue),
      var(--blue-text),
      var(--text-head));
  transition: 200ms ease-in-out;
}

.home__socials a:hover {
  box-shadow: var(--box-shadow);
}

.home__socials a i {
  font-size: 2rem;
}

.home__socials a .mid-icon {
  font-size: 1.8rem;
}


.scroll-down {
  position: relative;
  font-family: var(--font-body);
  color: var(--tab-color);
  font-weight: 400;
  font-size: var(--font-size-p);
  margin-top: 30px;
}

#arrow-down {
  width: 150px;
  animation: arrow-down 1s cubic-bezier(0.86, 0.06, 0.93, 0.14) infinite forwards alternate;
}

.back-to {
  display: flex;
}

.back-to a {
  z-index: 1;
  background: var(--grad-bg);
  width: 40px;
  height: 40px;
  padding: 8px;
  filter: drop-shadow(2px 2px 4px var(--nav-shadow));
  border-radius: 50%;
  bottom: 40px;
  right: 30px;
  position: fixed;

}

.back-to a i {
  color: var(--blue-text);
  font-size: 25px;
}

.bottom-navbar .bottom-navbar__home a {
  display: block;
}

.back-to a:nth-child(1) {
  display: block;
  width: 50px;
  height: 50px;
  padding: 12px;
}

.back-to a:nth-child(2) {
  display: none;
}

.back-to a:nth-child(2)::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--primary-color);
  background-color: var(--ping-pink);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 100px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-transform: uppercase;
  animation: heartbeat-2 3s linear infinite;
}

.back-to i {
  color: var(--primary-color);
  font-size: 30px;
}

.color-picker {
  bottom: 50%;
  z-index: 1000;
  right: 0;
  position: fixed;
  width: fit-content;
}

.color-picker button {
  background: var(--primary-color);
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  width: 50px;
  height: 40px;
  filter: drop-shadow(2px 2px 4px var(--nav-shadow));
}

.color-picker img {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 30px;
}

#colorPicker {
  margin-top: 10px;
}

.bottom-navbar {
  display: none;
}

/* END OF HOME STYLING */

/* ABOUT STYLING */
.about__content {
  background: var(--primary-color);
  box-shadow: 10px 6px 20px var(--faint-blue);
  padding: 7rem 0 10rem 0;
}

.about__content h3 {
  margin: 0 0 30px 0;
  text-align: center;
  color: var(--blue-text);
  font-family: var(--font-head);
  font-size: var(--font-size-h3);
}

.about__content img {
  width: 100%;
  border-radius: 10px;
}

.about__image {
  background: var(--text-head);
  width: 300px;
  height: 300px;
  padding: 20px;
  border: 18px solid var(--primary-color);
  margin: auto;
  border-radius: 10px;
  position: relative;
  margin-top: 0;
  box-shadow: 1px 1px 10px var(--faint-blue);
}

.about__image img {
  position: absolute;
  bottom: 0;
  left: 0;
  border: 8px solid var(--primary-color);
}


.about__content p {
  padding: 0 5px;
  white-space: inherit;
  color: var(--tab-color);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.5px;
  word-spacing: 2px;
  font-size: var(--font-size-p);
  line-height: 1.5;
  width: min(95%, 1200px);
  margin: auto;
  margin-bottom: 30px;
}

.about__content p span:not(.about__image) {
  display: block;
  margin-bottom: 10px;
}

.about__content-writeup {
  display: grid;
  grid-template-columns: 1fr .5fr;
  gap: 2rem;
  width: min(95%, 1200px);
  margin: auto;
}

.about-contact {
  width: 40%;
  margin-left: 1.5rem;
}

.about-contact button {
  background: var(--primary-color);
  font-weight: 700;
  padding: 1rem;
  border-radius: 5px;
  font-size: var(--font-size-p);
  color: var(--blue-text);
  text-decoration: none;
  border: 1px solid var(--blue-text);
  transition: 200ms ease-in-out;
  width: 100%;
}

.about-contact button:hover {
  box-shadow: 5px 5px 10px var(--faint-blue);
}

/* END OF ABOUT STYLING */

/* SERVICES STYLING */
.skills-display {
  padding: 7rem 0 10rem 0;
  width: min(95%, 1200px);
  margin: auto;
}

.skills-display h3 {
  margin: 10px 0 50px 0;
  text-align: center;
  color: var(--blue-text);
  font-family: var(--font-head);
  font-size: var(--font-size-h3);
}

.skills {
  width: min(93%, 1200px);
  margin: auto;

  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.skills .skill {
  text-align: center;
  background: var(--primary-color);
  border-radius: 5px;
  padding: 2rem 1rem;
  box-shadow: 6px 6px 10px var(--faint-blue);
}

.skills .skill-icon {
  font-size: 4rem;
  color: var(--blue-text);
}


.skills .skill p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-body);
  color: var(--tab-color);
}


/*END OF SERVICE STYLING*/

/* PROJECT STYLING */
.projects {
  background: var(--primary-color);
  box-shadow: 10px 6px 20px var(--faint-blue);
  padding: 7rem 0 10rem 0;
}

.projects h3:not(.project-name) {
  margin: 0 0 50px 0;
  text-align: center;
  color: var(--blue-text);
  font-family: var(--font-head);
  font-size: var(--font-size-h3);
}

.projects h4 {
  color: var(--tab-color);
  font-family: var(--font-head);
  font-size: var(--font-size-p);
}

.projects p {
  color: var(--tab-color);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-p);
  padding: 10px 10px 10px 0;
}

.my-project {
  width: min(93%, 1200px);
  margin: auto;
}

.project-card {
  margin: auto;
  cursor: pointer;
  transition: 200ms ease-in-out;
  padding: 1rem;
  box-shadow: 1px 1px 10px var(--faint-blue);
  border-radius: 10px;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 5rem;
}

.project-card__img img {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  transition: 400ms ease-in-out;
}

.project-card__img {
  transition: 200ms ease-in-out;
}

.project-card__info {
  padding: 1rem;
}

.project-card__details {
  width: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: start;
  margin-bottom: 15px;
}

.project-card__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card__status--incomplete {
  margin-left: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffa500;
  animation: status-pulse-incomplete 2s linear infinite;
}

@keyframes status-pulse-incomplete {
  0% {
    box-shadow: 0 0 0 0 rgb(255, 165, 0, 0.7), 0 0 0 0 rgb(255, 165, 0, 0.7);
  }

  40% {
    box-shadow: 0 0 0 10px rgb(255, 165, 0, 0), 0 0 0 0 rgb(255, 165, 0, 0.7);
  }

  80% {
    box-shadow: 0 0 0 10px rgb(255, 165, 0, 0), 0 0 0 0 rgb(255, 165, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(255, 165, 0, 0), 0 0 0 0 rgb(255, 165, 0, 0);
  }
}

/* IF STATUS IS COMPLETE */
/* .project-card__status--complete {
  margin-left: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #008000;
  animation: status-pulse-complete 2s linear infinite;
} */

@keyframes status-pulse-complete {
  0% {
    box-shadow: 0 0 0 0 rgb(0, 128, 0, 0.7), 0 0 0 0 rgb(0, 128, 0, 0.7);
  }

  40% {
    box-shadow: 0 0 0 10px rgb(255, 165, 0, 0), 0 0 0 0 rgb(0, 128, 0, 0.7);
  }

  80% {
    box-shadow: 0 0 0 10px rgb(255, 165, 0, 0), 0 0 0 0 rgb(255, 165, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(255, 165, 0, 0), 0 0 0 0 rgb(255, 165, 0, 0);
  }
}

.project__show-card {
  padding: 15px 40px;
  border-radius: 5px;
  color: var(--blue-text);
  font-size: var(--font-size-p);
  background: none;
  border: 1px solid var(--blue-text);
  transition: 200ms ease-out;

}

.project__show-card:hover {
  box-shadow: 5px 5px 10px var(--faint-blue);
}

.project-preview {
  min-height: 90vh;
  border-radius: 10px;
  width: 100%;
  margin: auto;
  border: none;

}

:modal::backdrop {
  background: rgba(128, 128, 128, 0.6);
}

.project-preview .preview {
  position: relative;
  padding: 1.5rem;
  background: var(--primary-color);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;

}

.project-preview__about {
  width: min(95%, 800px);
  margin: auto;
  text-align: center;
  padding: 3rem 0rem;
}

.project-preview__about h2 {
  font-size: var(--font-size-h3);
  color: var(--tab-color);
  font-family: var(--font-head);
  margin-bottom: 30px;
}

.project-preview__about p {
  font-size: var(--font-size-p);
  font-family: var(--font-body);
  color: var(--tab-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

.preview__live-btns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.preview button {
  width: 100%;
  padding: 15px;
  border-radius: 5px;
  color: var(--blue-text);
  font-size: var(--font-size-p);
  background: none;
  border: 1px solid var(--blue-text);
  transition: 200ms ease-out;
}

.project-preview__about button:hover {
  box-shadow: 5px 5px 10px var(--faint-blue);
}

.preview__content {
  width: min(95%, 800px);
  margin: auto;
}

.preview__content h3 {
  font-size: var(--font-size-h3);
  color: var(--tab-color);
  font-family: var(--font-head);
  margin-bottom: 30px;
}

.preview__content p {
  margin-bottom: 40px;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--tab-color);
  font-size: var(--font-size-p);

}

.project-preview img {
  width: 100%;
  margin: auto;
  border: 1px solid grey;
  margin-bottom: 40px;
  border-radius: 5px;
}

.preview__overview ul {
  list-style: circle;
  margin-bottom: 40px;
}

.preview__overview ul li {
  margin-bottom: 5px;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--tab-color);
  font-size: var(--font-size-p);
}

.project-preview .preview .fa-times {
  position: fixed;
  top: 10%;
  right: 10%;
  color: var(--nav-shadow);
  font-size: 1.7rem;
  background: none;
  transition: 200ms ease-in-out;
}

.project-preview .preview .fa-times:hover {
  rotate: 90deg;
}

.project_tools-used {
  margin-bottom: 40px;
  display: flex;
  justify-content: start;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.project_tools-used span {
  background: var(--nav-shadow);
  color: var(--grad-bg);
  padding: 6px 15px;
  border-radius: 5px;
  font-weight: 600;
  font-family: var(--font-special);
  font-size: var(--font-size-p);

}

.preview__go-live-btn {
  padding: 15px 50px;
  border-radius: 5px;
  color: var(--blue-text);
  font-size: var(--font-size-p);
  background: none;
  border: 1px solid var(--blue-text);
  transition: 200ms ease-out;
}

.preview__go-live-btn:hover {
  box-shadow: 5px 5px 10px var(--faint-blue);
}

/* END OF PROJECT STYLING */

/* CONTACT STYLING */

.contact__content {
  padding: 7rem 1rem 10rem 1rem;
}

.contact__content h3 {
  margin: 20px 0 5px 0;
  text-align: center;
  color: var(--blue-text);
  font-family: var(--font-head);
  font-size: var(--font-size-h3);
}

.contact__content p {
  color: var(--tab-color);
  font-family: var(--font-body);
  font-weight: 400;
  margin: 0 0 50px 0;
  text-align: center;
  width: min(95%, 1200px);
  margin: auto;
  margin-bottom: 20px;
  font-size: var(--font-size-p);
}

fieldset {
  width: min(95%, 1200px);
  padding: 10px;
  margin: auto;
  box-shadow: 1px 1px 10px var(--faint-blue);
  border: none;
  border-radius: 10px;
  background: var(--primary-color);

  opacity: 0;
}

.contact__content form {
  padding: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact__upper-input {
  width: 100%;
}

.contact__upper-input #name {
  margin-bottom: 20px;
}

.contact__upper-input input {
  border-radius: 10px;
  padding: 10px;
  background: var(--primary-color);
  box-shadow: 1px 1px 10px var(--faint-blue);
  border: none;
  outline: none;
  margin-bottom: 1rem;
  width: 100%;
  height: 65px;
  color: var(--tab-color);
}

.contact__upper-input input:focus,
.contact__center-input textarea:focus {
  border: 1px solid var(--blue-text);
}

.contact__upper-input input::placeholder {
  color: var(--tab-color);
}

.contact__center-input textarea::placeholder {
  color: var(--tab-color);
}

.contact__center-input textarea {
  box-shadow: 1px 1px 10px var(--faint-blue);
  border: none;
  border-radius: 10px;
  outline: none;
  color: var(--tab-color);
  padding: 10px;
  background: var(--primary-color);
  width: 100%;
  resize: none;
  height: 150px;
}

.contact__bottom-input {
  grid-column: span 2;
}

.contact__bottom-input button {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--blue-text);
  border-radius: 5px;
  background: transparent;
  color: var(--blue-text);
  font-weight: 700;
  transition: 400ms ease-in-out;
}

.contact__bottom-input button:hover {
  box-shadow: 5px 5px 10px var(--faint-blue);
}

.contact__content legend {
  margin-left: 48%;
}

.contact__content legend img {
  width: 30px;
  perspective: 300%;
  animation: smiley-face 1s ease infinite alternate;
}

/* END OF CONTACT STYLING */

/* FOOTER STYLING */
footer {
  padding: 5rem 3rem 0 3rem;
  width: 100%;
  text-align: center;
  background-color: var(--primary-color);
}

.footer {
  width: min(95%, 1200px);
  margin: auto;
}

.footer__container {
  border-bottom: 1px solid var(--tab-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.footer__content {
  text-align: left;
}

.footer__content h3 {
  font-size: var(--font-size-h3);
  color: var(--tab-color);
  font-family: var(--font-head);
  margin-bottom: 30px;
}

.footer__content p {
  font-size: var(--font-size-p);
  font-family: var(--font-body);
  color: var(--tab-color);
  font-weight: 400;
  margin-bottom: 1rem;

}

.footer__socials {
  font-size: 2rem;
  text-align: right;
}

.footer__socials a {
  color: var(--blue-text);
  margin-left: 1rem;
}

.footer__socials h4 {
  color: var(--tab-color);
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: var(--font-size-h3);
}

.footer__copyright {
  padding: 2rem 1rem;
}

.footer__copyright p {
  font-size: var(--font-size-p);
  color: var(--tab-color);
  font-family: var(--font-body);

}

.copyright {
  font-size: var(--font-size-special);
}

/* END OF FOOTER STYLING */

/* MEDIA QUERY */
@media (max-width: 370px) {
  .about-social-buttons {
    padding: 0 5px;
  }

  .about__image {
    width: 280px;
    height: 280px;
    padding: 20px;
    margin: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 1px 1px 10px var(--faint-blue);
  }

  .call-to-action {
    grid-template-columns: 1fr;
  }

  .call-to-action a button {
    padding: 8px;
  }

  .home__content h1 {
    width: 94%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right,
        var(--blue-text),
        var(--text-head));
    font-family: var(--font-head);
  }

  .home__content {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .about-contact {
    width: 90%;
    margin-left: 1rem;
  }

  .color-picker {
    top: 100px;
    right: 0;
  }

  .skills .skill p {
    font-family: var(--font-special);
    font-weight: 900;
    font-size: clamp(.6rem, 3vw, .7rem);
    color: var(--tab-color);
  }

  .preview__live-btns {
    display: grid;
    gap: .5rem;
    grid-template-columns: 1fr;
  }

  .navbar__logo {
    height: 55px;
    margin-left: 20px;
  }

  .about__content {
    padding-block: 20%;
  }

  .theme-toggle {
    right: 80px;
  }

  .side-navbar {
    position: absolute;
    top: 100%;
    right: -650px;
    width: 100vw !important;
    height: 600vh !important;
    background: var(--primary-color);
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  footer {
    padding: 5rem 1rem 0 1rem;
  }

  .about__content-writeup {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .write-up {
    order: 2;
  }

  .about__image {
    order: 1;
  }

  .about-social-buttons {
    width: min(95%, 1200px);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home__content {
    text-align: center;
    width: 100%;
  }

  .contact__upper-input {
    grid-column: span 2;
  }

  .contact__center-input {
    grid-column: span 2;
  }

  .my-project {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr;
  }

  .footer__socials {
    text-align: left;
  }

  .footer__socials a {
    margin-right: 1rem;
    margin-left: 0;
  }

  .about__content-writeup {
    grid-template-columns: 1fr;
  }

  .home__socials {
    display: none;
  }

  .about__image {
    display: none;
  }

  .project-card__details {
    justify-content: center;
  }

  .project-card {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .theme-toggle {
    right: 80px;
    top: 10px;
  }

  .side-navbar__hidden {
    display: block;
  }

  .navbar-links__center {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .navbar-links__center a {
    width: 100%;
  }

  .navbar-links__right a {
    width: 100%;
  }

  .navbar-links__right button {
    margin-bottom: 20px;
    width: 100%;
  }

  .side-navbar__socials {
    display: block;
    display: flex;
    justify-content: space-evenly;
  }

  .side-navbar__socials button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 10px;
  }

  .navbar__logo {
    height: 55px;
  }

  .navbar__logo p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .navbar-links__right a:nth-child(2) {
    display: none;
  }

  .side-navbar {
    position: absolute;
    top: 60px;
    right: -650px;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
  }

  .navbar__burger-menu {
    border: none;
    background: none;
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 16px;
    right: 30px;
    overflow: hidden;
  }

  .burger-menu__span {
    position: relative;
    background: var(--text-head);
    display: block;
    width: 25px;
    height: 3px;
    position: absolute;
    top: 12px;
    transition: 0.3s;
  }

  .burger-menu__span::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-head);
    transition: 0.3s;
  }

  .burger-menu__span::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-head);
    transition: 0.3s;
  }

  .active {
    transition: 300ms ease;
    right: 0;
  }

  .navbar__burger-menu.toggle span {
    background: transparent;
  }

  .navbar__burger-menu.toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .navbar__burger-menu.toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .back-to a:nth-child(1) {
    display: none;
  }

  .bottom-navbar__home a {
    display: none;
  }

  .back-to a:nth-child(2) {
    display: block;
    bottom: 6rem;
  }

  .bottom-navbar {
    position: fixed;

    width: 100%;
    bottom: 0;
    z-index: 10;
    padding: 1.2rem;
    display: block;
    box-shadow: 0px -3px 3px var(--nav-shadow);
    background: var(--primary-color);
    font-weight: bold;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;

    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  .bottom-navbar div {
    text-align: center;
    font-size: clamp(.6rem, 1cqi + .3rem, 1rem);
  }

  .bottom-navbar a {
    color: var(--blue-text);
    text-decoration: none;
    font-family: var(--font-body);
  }

  .bottom-navbar a:hover {
    color: var(--text-head);
  }

  footer {
    margin-bottom: 5rem;
  }
}

/* ANIMATIONS */
@keyframes vibrate {
  0% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-2px, -2px);
  }

  40% {
    transform: translate(2px, -2px);
  }

  60% {
    transform: translate(-2px, 2px);
  }

  80% {
    transform: translate(2px, 2px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes arrow-down {
  from {
    transform: translateX(0) translateY(0);
  }

  to {
    transform: translateX(0) translateY(5px);
  }
}




/* THANK YOU PAGE SYLING */
.thank-you {
  width: min(90%, 450px);
  margin: auto;
  padding-block: 30px;
  padding: 30px;
  margin-block: calc(190px - 30px);
  border-radius: 5px;
  background: var(--primary-color);
  box-shadow: 10px 6px 20px var(--faint-blue);

  position: relative;
}

.hidden {
  overflow: hidden;
}

.thank-you h3 {
  font-family: "Montserrat", serif;
  font-size: clamp(30px, 4vw, 40px);
  color: var(--blue-text);
  margin-bottom: 20px;
}

.thank-you .appreciate {
  font-family: "Lato", sans-serif;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tab-color);
}

.thank-you .warm {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-head);
  margin-bottom: 20px;
}

.thank-you button {
  font-family: "Poppins", sans-serif;
  border: 1px solid var(--blue-text);
  font-weight: bold;
  padding: 10px;
  color: var(--blue-text);
  border-radius: 5px;
  background: none;
  transition: 200ms ease;
  width: 100%;
}

.thank-you button:hover {
  box-shadow: 5px 5px 5px var(--faint-blue);
}

.confetti {
  position: absolute;
  z-index: 10;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
}