/* ======== GOOGLE FONTS ======== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap");

/* ======== ROOT CSS ======== */
:root {
  /* Colors */
  --pink-color: hsla(289, 92%, 75%, 1);
  --pink-color-alt: hsla(289, 92%, 70%, 1);
  --purple-color: hsla(258, 82%, 55%, 1);
  --purple-color-alt: hsla(258, 82%, 60%, 1);
  --hero-subtitle: hsla(258, 82%, 60%, 1);
  --text-color: hsla(258, 1%, 12%, 1);
  --light-color: hsla(258, 0%, 99%, 1);
  --light-color-alt: hsla(258, 0%, 90%, 1);
  --muted-color: hsla(258, 1%, 25%, 1);
  --background-color: hsla(258, 0%, 98%, 1);
  --container-color: hsla(258, 26%, 97%, 1);
  --form-bg: hsla(258, 26%, 97%, 1);
  --modal-background: hsla(258, 26%, 97%, 1);
  --footer-bg: hsla(289, 92%, 70%, 1);

  --gradient-color-10: #c3e4ff;
  --gradient-color-20: #6ec3f4;
  --gradient-color-30: #eae2ff;
  --gradient-color-40: #b9beff;

  /* Typography */
  --big-font-size: 3rem;

  /* Font */
  --body-font: "Poppins", sans-serif;

  /* Layout */
  --header-height: 4rem;
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 4rem;
    --big-font-size: 2rem;
  }
}

/* ======== DARK MODE CSS ======== */
body.dark {
  --pink-color: hsla(289, 82%, 65%, 1);
  --purple-color: hsla(258, 82%, 55%, 1);
  --purple-color-alt: hsla(258, 82%, 50%, 1);
  --hero-subtitle: hsla(258, 82%, 95%, 1);
  --text-color: hsla(258, 0%, 97%, 1);
  --muted-color: hsla(258, 26%, 84%, 1);
  --background-color: hsla(258, 13%, 11%, 1);
  --container-color: hsla(258, 1%, 18%, 0.3);
  --form-bg: hsla(258, 1%, 18%, 1);
  --modal-background: hsla(258, 13%, 11%, 1);
  --footer-bg: hsla(258, 13%, 11%, 1);

  --gradient-color-10: #24425b;
  --gradient-color-20: #4a82a1;
  --gradient-color-30: #55428f;
  --gradient-color-40: #3e47a8;
}

.dark-icon {
  color: var(--purple-color);
  font-size: 1.125rem;
  cursor: pointer;
}

.dark-icon:hover {
  color: var(--purple-color-alt);
}

/* ======== BASE CSS ======== */
*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

ul {
  list-style-type: none;
}

/* ======== REUSABLE COMPONENTS ======== */
.container {
  padding: 3rem 6rem;
}

.section-title {
  font-size: var(--big-font-size);
  line-height: 1;
}

.section-subtitle {
  color: var(--purple-color-alt);
}

.btn {
  outline: none;
  font-weight: 500;
  color: var(--text-color);
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  transition: 0.3s;
  border: 2px solid var(--purple-color);
  font-size: 1.125rem;
  cursor: pointer;
  background-color: #fff;
  color: var(--purple-color);
}

.btn:hover {
  background-color: #f4f4f4;
}

.btn.btn-primary {
  background-color: var(--purple-color);
  color: var(--light-color);
  border: 2px solid transparent;
}

.btn.btn-primary:hover {
  background-color: var(--purple-color-alt);
  color: var(--light-color);
}

/* ======== NAVBAR ======== */
header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  height: var(--header-height);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  z-index: 99;
}

.header-logo {
  color: var(--text-color);
}

.header-toggle,
.nav-close {
  font-size: 2rem;
  color: var(--purple-color);
  cursor: pointer;
  display: none;
}

.nav {
  width: 50%;
  position: relative;
}

.nav-list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  font-weight: 500;
}

.nav-link {
  color: var(--purple-color);
  font-size: 1rem;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--purple-color-alt);
}

.nav-contact {
  background-color: var(--purple-color);
  border-radius: 0.5rem;
  color: var(--light-color);
  padding: 0.5rem 1.5rem;
  transition: 0.3s;
}

.nav-contact:hover {
  background-color: var(--purple-color-alt);
  color: var(--light-color);
}

/* ======== HERO SECTION ======== */
.hero-container {
  position: relative;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
}

#gradient-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 1;
  overflow: hidden;
  --gradient-color-1: var(--gradient-color-10);
  --gradient-color-2: var(--gradient-color-20);
  --gradient-color-3: var(--gradient-color-30);
  --gradient-color-4: var(--gradient-color-40);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.hero-text > h1 {
  font-size: var(--big-font-size);
  line-height: 1;
}

.hero-text > h2 {
  color: var(--hero-subtitle);
}

.hero-text > p {
  color: var(--muted-color);
}

.hero-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-image {
  width: 330px;
  height: 330px;
  border-radius: 50%;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.hero-image > img {
  width: 330px;
  height: 330px;
  object-fit: contain;
  border-radius: 50%;
}

/* ======== SKILLS SECTION ======== */
.skills-container {
  position: relative;
}

.skills-container > h1,
.skills-container > h2 {
  text-align: center;
}

.skills-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.skills-item > h3 {
  font-size: 500 !important;
}

.skills-item > p {
  color: var(--muted-color);
}

.skills-item > img {
  height: 24px;
  object-fit: cover;
  width: 24;
}

.background {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* ======== COUNTER SECTION ======== */
.counter-section {
  /* background: url('/assets/images/particle_bg3.svg'); */
  /* background: var(--purple-color-alt); */
  background: url("/assets/images/particle_static.png");
  background-position: center;
  background-size: contain;
}

.counter-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  width: 100%;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

.counter-item {
  background-color: var(--background-color);
  padding: 2rem 2rem;
  border-radius: 0.5rem;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.counter-item > span {
  color: var(--muted-color);
}

.counter-icon {
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-size: 1rem;
  background: var(--pink-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--light-color);
  width: 3rem;
  height: 3rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

/* ======== PROJECTS SECTION ======== */
.projects-tab {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.projects-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.projects-card {
  padding: 2rem 2rem;
  text-align: center;
  border-radius: 0.5rem;
  background: var(--container-color);
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  display: none;
}

.projects-card.show {
  display: block;
}

.project-icon {
  font-size: 0.875rem;
  position: absolute;
  color: var(--purple-color-alt);
  cursor: pointer;
}

.projects-card > h2 {
  margin-bottom: 1rem;
}

.projects-card > p {
  color: var(--muted-color);
}

.projects-laptop,
.projects-phone {
  width: 100%;
  height: 300px;
  object-fit: contain;
}

/* .projects-images{
    transition: .3s;
}

.projects-images:hover{
    transform: scale(1.05);
} */

.projects-link {
  color: var(--pink-color);
}

.projects-link:hover {
  color: var(--pink-color-alt);
  cursor: pointer;
}

.projects-modal {
  margin-top: var(--header-height);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}

.active-modal {
  opacity: 1;
  visibility: visible;
}

.projects-modal-content {
  position: relative;
  background-color: var(--modal-background);
  padding: 2rem;
  border-radius: 0.5rem;
  max-width: 50%;
  border-top: 5px solid var(--purple-color-alt);
}

.projects-modal-content > p {
  margin-bottom: 1rem;
}

.projects-modal-content > p,
.projects-modal-info > ul {
  color: var(--muted-color);
}

.projets-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--purple-color-alt);
  cursor: pointer;
}

/* ======== SERVICES SECTION ======== */
.services-content {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  background: var(--container-color);
  gap: 2rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  position: relative;
  overflow: hidden;
}

.services-card::before {
  content: url("/assets/images/blob.svg");
  position: absolute;
  height: 170px;
  width: 200px;
  z-index: 10;
  top: -3rem;
  right: -3rem;
  opacity: 0.12;
}

.services-banner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.services-banner > h3 {
  width: 50%;
}

.services-icon {
  font-size: 4rem;
  color: hsla(258, 82%, 60%, 0.7);
}

/* ======== FOOTER SECTION ======== */
.footer-section {
  margin-top: 2rem;
  background: linear-gradient(
    145deg,
    var(--purple-color) 0,
    var(--footer-bg) 96%
  );
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: url("/assets/images/particle_static_footer.svg");
  position: absolute;
  height: 200px;
  width: 100%;
  z-index: 10;
  bottom: 0;
  transform: rotate(180deg);
  left: 0;
  pointer-events: none;
  opacity: 0.3;
}

.footer-title {
  color: var(--light-color);
  line-height: 1;
}

.footer-subtitle {
  color: var(--light-color-alt);
}

.footer-content {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: flex-start;
  color: var(--light-color);
  gap: 3rem;
}

.footer-item > h3 {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--light-color);
}

.footer-link {
  color: var(--light-color);
}

/* ======== ABOUT SECTION ======== */
.about-container {
  display: flex;
  position: relative;
  gap: 2rem;
}

.about-title {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 50%;
}

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

.about-pages div {
  height: 100%;
  color: var(--muted-color);
}

.about-pages div ul {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  border-left: 3px solid hsla(258, 82%, 55%, 0.5);
  padding: 1rem;
  margin-top: 1rem;
  background: var(--container-color);
}

.about-pages div ul li {
  line-height: 2;
}

.about-icon {
  font-size: 2rem;
  color: hsla(289, 92%, 70%, 0.3);
}

.contact-form div input.wrong-input,
.contact-form div textarea.wrong-input {
  border: red 1px solid;
}

.contact-error {
  color: red;
  display: none;
}

.contact-error.show-error {
  display: block;
}

/* ======== CONTACT SECTION ======== */
.contact-content {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.contact-image > img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.contact-form {
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  gap: 1rem;
  z-index: 10;
  background-color: var(--form-bg);
}

.contact-form > div {
  display: flex;
  flex-direction: column;
}

.form-input {
  outline: none;
  border: 1px solid var(--muted-color);
  font-size: 1rem;
  padding: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.contact-image {
  position: absolute;
  top: 10%;
  right: 10%;
  z-index: 0;
  height: 80%;
}

/* ======== PHONE VIEW ======== */
@media screen and (max-width: 768px) {
  /* ======== REUSABLE CSS ======== */
  .container {
    padding: 2rem 1rem;
  }

  .btn {
    font-size: 1rem;
  }

  /* ======== NAVBAR ======== */
  .header {
    height: var(--header-height);
    padding: 0.25rem 1rem;
  }

  .header-toggle {
    display: block;
  }

  .nav {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: -100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
  }

  .nav.active {
    left: 0;
    z-index: 99;
  }

  .nav-close {
    display: block;
    text-align: right;
    margin-top: 1rem;
    margin-right: 0.75rem;
  }

  .nav-menu {
    height: 100%;
    width: 100%;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
    width: 100%;
    gap: 3rem;
    padding-bottom: 2rem;
  }

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

  .nav-link {
    min-width: 100%;
  }

  /* ======== HERO SECTION ======== */
  .hero-content {
    flex-direction: column;
    width: 100%;
    padding: 0.25rem 1rem;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text > h1 {
    font-size: 2rem;
  }

  .hero-image {
    display: none;
  }

  .background {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
  }

  /* ======== SKILLS SECTION ======== */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* ======== COUNTER SECTION ======== */
  .counter-content {
    display: flex;
    flex-direction: column;
  }

  /* ======== PROJECTS SECTION ======== */
  .projects-tab {
    margin-top: 2rem;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .projects-images {
    display: flex;
    flex-direction: column;
  }

  .projects-cards {
    display: flex;
    flex-direction: column;
  }

  .projects-laptop,
  .projects-phone {
    height: 150px;
  }

  .projects-modal-content {
    min-width: 100%;
  }

  /* ======== SERVICES SECTION ======== */
  .services-content {
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }

  .services-banner > h3 {
    width: 70%;
  }

  /* ======== FOOTER SECTION ======== */
  .footer-content {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 1rem;
  }

  .footer-link {
    margin-right: 100%;
  }

  /* ======== ABOUT SECTION ======== */
  .about-container {
    gap: 1rem;
  }

  .about-title {
    width: 40%;
  }

  .about-pages {
    display: flex;
    flex-direction: column;
    max-width: 60%;
  }

  /* ======== CONTACT SECTION ======== */
  .contact-form {
    width: 100%;
  }

  .contact-image {
    display: none;
  }
}
