* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

:root {
  --main-color: #2fbf71;
  --main-color-dark: #1e824c;
  --2nd-main-color: #ffffffcc;
  --text-color: #fff;
  --color-text: #c7c3c3;
  --color-bg: #f7f7f7;
  --color-bg-text: #333;
  --color-bg-primary: #0b0b13;
  --color-bg-secondary: #f2f2f2;
  --big-font: 5rem;
  --h2-font: 1.9rem;
  --p-font: 1rem;
  --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

  --ff-body: "Space Grotesk", sans-serif;
  /* font sizes */
  --fs-sm: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 2rem;
  --fs-xl: 2.4rem;
  --fs-xxl: 3.2rem;
  --fs-biggest: clamp(3rem, 8vw, 5rem);
  /* font weight */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

:root .dark-mode {
  --main-color: #2192ff;
  --main-color-dark: #1a73e8;
  /* --main-color: #8a46e3;
  --main-color-dark: #6c39b5; */
  --2nd-main-color: #ffffffcc;
  --text-color: #fff;
  --color-text: #676767;
  --color-bg: #1a1a1a;
  --color-bg-text: #f7f7f7;
  --color-bg-primary: #242424;
  --color-bg-secondary: #242424;
  --h2-font: 1.9rem;
  --p-font: 1rem;
  --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

  --ff-body: "Space Grotesk", sans-serif;
  /* font sizes */
  --fs-sm: 1.4rem;
  --fs-md: 1.6rem;
  --fs-lg: 2rem;
  --fs-xl: 2.4rem;
  --fs-xxl: 3.2rem;
  --fs-biggest: clamp(3rem, 8vw, 5rem);
  /* font weight */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

body {
  background-color: var(--color-bg);
  color: var(--color-bg-text);
  transition: all 0.3s ease;
  -webkit-user-select: none;
}

img {
  user-drag: none; 
  -webkit-user-drag: none; 
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 14%;
  transition: 0.3s;
}

header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--main-color);
}

.navbar {
  display: flex;
  position: absolute;
  right: 13%;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  font-weight: 500;
  color: inherit;
}

.navbar a:hover {
  transition: 0.3s;
  color: var(--main-color);
}

.white-links {
  color: white;
}

.black-links {
  color: black;
}

#theme-toggle {
  position: absolute;
  right: 105px;
  width: 64px;
  height: 36px;
  background-color: #ddd;
  border: none;
  border-radius: 18px;
  cursor: pointer;
}

#theme-toggle:focus {
  outline: none;
}

#theme-toggle .toggle-icon {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
}

#theme-toggle .toggle-icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #333;
}

#theme-toggle .toggle-icon .fa-moon {
  opacity: 0;
}

#theme-toggle.dark-mode .toggle-icon {
  left: 32px;
  background-color: #333;
}

#theme-toggle.dark-mode .toggle-icon .fa-sun {
  opacity: 0;
}

#theme-toggle.dark-mode .toggle-icon .fa-moon {
  opacity: 1;
  color: #f7f7f7;
}

#theme-toggle.dark-mode .toggle-icon {
  transform: translateX(26px);
}

#theme-toggle .toggle-icon {
  transition: all 0.5s ease;
}

/* Toggler */
#menu-icon {
  font-size: 28px;
  z-index: 10001;
  cursor: pointer;
  display: none;
  color: white;
}

section {
  padding: 120px 14%;
}

.home {
  position: relative;
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 6rem;
  align-items: center;
}

.home-img img {
  max-width: 100%;
  width: 600px;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.593));
  border-radius: 50%;
  border: 7px solid white;
}

.home-text h5 {
  font-size: 25px;
  font-weight: 500;
  margin: 0 0 20px;
}

.home-text h1 {
  font-size: var(--big-font);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 20px;
}

.home-text h6 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
}

.home-text p {
  max-width: 470px;
  font-size: var(--p-font);
  font-weight: 300;
  line-height: 2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 4px 4px var(--text-color);
  padding: 0 25px;
  line-height: 42px;
  display: inline-block;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  transition: ease all 0.3s;
}

.btn:hover {
  background: var(--text-color);
  color: var(--main-color);
  box-shadow: 4px 4px var(--main-color);
}

.about {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  grid-gap: 5rem;
  align-items: center;
}

.about-img img {
  max-width: 100%;
  width: 580px;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.593));
}

.about-text h3 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 6px;
  margin: 0 0 30px;
}

.about-text h2 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: var(--h2-font);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 2rem;
}

.about-text p {
  max-width: 570px;
  font-size: var(--p-font);
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}

.about-text p a {
  color: #2192ff;
}

.main-btn .btn {
  margin-right: 20px;
}

.center {
  text-align: center;
}

.center h3 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 6px;
}

.audio-sec {
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  grid-gap: 5rem;
  align-items: center;
}

.audio-sec h2 {
  position: relative;
  font-size: 35px;
}

.audio-text img {
  padding-top: 15px;
}

.confused-img img {
  max-width: 100%;
  width: 300px;
  height: auto;
  filter: drop-shadow(10px 10px 10px black);
}

#icon {
  cursor: pointer;
  width: 55px;
}

.skills {
  justify-self: center;
  padding: 1rem;
}

.skills__title {
  font-size: var(--fs-sm);
  text-align: center;
  margin-bottom: 3rem;
}

.skills__wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.skills__content {
  background-color: var(--color-bg-primary);
  color: var(--text-color);
  box-shadow: var(--box-shadow);
  padding: 3rem;
  max-width: 400px; 
  height: 300px;
}

.skills__item {
  margin-bottom: 1rem;
}

.skills__subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.skills__item i {
  color: var(--main-color);
  margin-right: 5px;
}

.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, auto));
  grid-gap: 2rem;
  align-items: center;
  margin-top: 4.4rem;
}

.row {
  background: var(--color-bg-primary);
  padding: 60px 35px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s;
  height: 400px;
  width: 326px;
}

.row i {
  color: var(--main-color);
  font-size: 3rem;
  margin-bottom: 20px;
}

.row h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-color);
}

.row p {
  font-size: 18px;
  color: var(--2nd-main-color);
  line-height: 30px;
}

.row:hover {
  transform: translateY(-15px);
  box-shadow: 0px 15px 30px 0px rgb(0 0 0/70%);
}

.projects .row {
  height: 400px;
  padding: 15px 15px;
}

.projects .row img {
  border-radius: 8px;
  margin-bottom: 15px;
}

.projects h3 a {
  text-decoration: underline;
  color: white;
  margin-bottom: 10px;
}

#projects .row h3 i {
  font-size: 21px;
  padding-left: 5px;
}

.cta {
  background: var(--color-bg-primary);
  width: 100%;
  padding: 150px 0;
  text-align: center;
  margin: 100px auto;
}

.cta h4 {
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.cta h2 {
  color: var(--main-color);
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 40px;
}

.resume-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, auto));
  grid-gap: 3rem;
  align-items: center;
  margin-top: 4.4rem;
}

.box {
  background: var(--color-bg-primary);
  padding: 40px 30px;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.4s;
}

.box h6 {
  color: #878787;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.box h4 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 13px;
}

.box p {
  font-size: var(--p-font);
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.8rem;
  color: var(--2nd-main-color);
}

.box h5 {
  font-size: 14px;
  font-weight: 500;
  color: var(--2nd-main-color);
}

.box:hover {
  transform: translateY(-15px);
  box-shadow: 0px 15px 30px 0px rgb(0 0 0/70%);
}

.contact-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
}

.contact-form form {
  position: relative;
  width: 550px;
}

.contact a {
  padding-right: 20px;
  font-size: 25px;
  color: var(--main-color);
}

.contact a:hover {
  color: var(--main-color-dark);
}

form input,
form textarea {
  width: 100%;
  padding: 20px;
  border: none;
  outline: none;
  background: var(--color-bg-primary);
  color: var(--text-color);
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

form input::placeholder,
form textarea::placeholder {
  color: var(--2nd-main-color);
}

textarea {
  resize: none;
  height: 200px;
}

form .send-btn {
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 4px 4px var(--text-color);
  padding: 0 25px;
  line-height: 42px;
  display: inline-block;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  transition: ease all 0.3s;
  cursor: pointer;
}

form .send-btn:hover {
  background: var(--text-color);
  color: var(--main-color);
  box-shadow: 4px 4px var(--main-color);
}

.copyright {
  text-align: center;
  padding: 30px;
  color: var(--2nd-main-color);
  background: var(--color-bg-primary);
  margin-top: 3rem;
  line-height: 1.8rem;
}

@media (max-width: 1430px) {
  header {
    padding: 25px 3%;
  }

  section {
    padding: 50px 3%;
  }

  :root {
    --big-font: 4rem;
    --h2-font: 1.2rem;
  }
}

@media (max-width: 1020px) {
  :root {
    --big-font: 3rem;
    --h2-font: 1.2rem;
    --p-font: 0.9rem;
  }

  .about-text h3 {
    margin-top: 60px;
  }

  #theme-toggle {
    position: absolute;
    right: 55px;
  }

  .home {
    height: 70vh;
  }

  .audio-sec h2 {
    position: relative;
    font-size: 25px;
  }

  .audio-sec img {
    margin-left: 20px;
  }

  .row {
    width: 100%;
    height: 100%;
  }

  .projects .row {
    height: 100%;
  }

  #class {
    text-align: center;
    max-width: 90%;
    border-radius: 10px;
    padding: 70px 15px;
  }
}

@media (max-width: 830px) {
  header {
    padding: 18px 3%;
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    background: var(--color-bg-primary);
    box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
    text-align: left;
    transition: 0.2s ease;
  }

  .navbar a {
    display: block;
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
  }

  .navbar.active {
    top: 100%;
  }
}

@media (max-width: 795px) {
  .home {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
    text-align: center;
    margin-top: 80px;
    height: 100vh;
  }

  .home-text p {
    max-width: 100%;
  }

  .home-img img {
    max-width: 100%;
    width: 280px;
    height: auto;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h2 {
    max-width: 100%;
  }

  button {
    font-size: 10px;
  }

  .about-text p {
    max-width: 100%;
  }

  .about-img {
    order: 2;
  }
}

@media (max-width: 768px) {
  .skills__wrapper {
    flex-direction: column;
    align-items: center;
  }

  .skills__content {
    padding: 2rem; 
    box-shadow: none; 
  }

  .skills__title {
    font-size: var(--fs-xs); 
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .skills__content {
    padding: 1.5rem; 
  }

  .skills__title {
    font-size: var(--fs-xs); 
  }

  .skills__item i {
    margin-right: 3px; 
  }
}

::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.75rem;
  background-color: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-text);
  border-radius: 0.75rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--main-color);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--main-color-dark);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  background-color: var(--main-color);
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s;
}

#scrollTopBtn:hover {
  background-color: var(--main-color-dark);
  color: #fff;
}
