@import url("https://fonts.googleapis.com/css2?family=Blinker:wght@100;200;300;400;600;700;800;900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

:root {
  --primary-bg: #ffffff;
  --secondary-bg: rgba(243, 244, 246, 0.8);
  --primary-text: #000000;
  --secondary-text: #555555;
  --accent-color: #007bff;
  --border-color: #dddddd;
  --nav-link-color: #000000;
}

.dark-theme {
  --primary-bg: #0d1117;
  --secondary-bg: rgba(22, 27, 34, 0.8);
  --primary-text: #c9d1d9;
  --secondary-text: #8b949e;
  --accent-color: #58a6ff;
  --border-color: #30363d;
  --nav-link-color: #c9d1d9;
}

.colorful-theme {
  --primary-bg: #fce4ec;
  --secondary-bg: #f8bbd0;
  --primary-text: #880e4f;
  --secondary-text: #c2185b;
  --accent-color: #ff4081;
  --border-color: #f48fb1;
  --nav-link-color: #880e4f;
}

html,
body {
  overflow-x: hidden;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#home,
#projects {
  position: relative;
}

.hidden {
  display: none !important;
}

.blob {
  position: absolute;
  z-index: -10;
  opacity: 0.1;
  animation: blob-animate 15s infinite alternate;
}

@keyframes blob-animate {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.2) translate(20px, -20px);
  }
}

.blob-header {
  right: -550px;
  fill: var(--accent-color);
}

.blob-project {
  left: -550px;
  rotate: 220deg;
  fill: var(--accent-color);
}

.blob-project2 {
  bottom: 0;
  right: -550px;
  rotate: 40deg;
  fill: var(--accent-color);
}

.bold {
  font-weight: 600;
  color: var(--accent-color);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

.container {
  width: 100%;
  height: 100%;
  padding: 120px 0;
}

.row {
  width: 100%;
  height: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 12px;
}

html {
  scroll-behavior: smooth;
}

@keyframes fadeInAnimate {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUpAnimate {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */

.nav__menu {
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 24px;
  cursor: pointer;
  display: none !important;
  all: unset;
  color: var(--primary-text);
}

.nav {
  position: fixed;
  top: 16px;
  height: 64px;
  z-index: 10;
  width: 100%;
  animation: fadeInAnimate 1000ms;
}

.nav__container {
  max-width: 1024px;
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  color: var(--primary-text);
  background-color: var(--secondary-bg);
  backdrop-filter: blur(10px);
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.nav__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-link-color);
}

.nav__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav__link {
  font-size: 16px;
  font-weight: 600;
  color: var(--nav-link-color);
}

.nav__link__button {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  padding: 8px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.nav__link__button:hover {
  opacity: 0.8;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switcher__button {
    background: none;
    border: none;
    color: var(--nav-link-color);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-switcher__button:hover {
    color: var(--accent-color);
}


/* Menu */

.menu__wrapper {
  width: 100%;
  height: 100vh;
  position: fixed;
  background-color: rgba(13, 17, 23, 0.4);
  z-index: 30;
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: end;
  visibility: hidden;
  opacity: 0;
  transition: 300ms ease;
}

.open .menu__wrapper {
  visibility: visible;
  opacity: 1;
}

.menu {
  background-color: var(--secondary-bg);
  height: 100%;
  width: 100%;
  max-width: 320px;
  padding: 80px 16px;
  transform: translateX(100%);
  transition: 300ms ease;
}

.open .menu {
  transform: translateX(0%);
}

.menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: var(--secondary-bg);
  color: var(--primary-text);
  font-size: 14;
  transition: 200ms ease;
}

.menu__close:hover {
  background-color: var(--border-color);
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu__link {
  width: 100%;
  padding: 12px 8px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 300;
  transition: 200ms ease;
  color: var(--primary-text);
}

.menu__link:not(:last-child):hover {
  background-color: var(--border-color);
}

.menu__link__button {
  width: 100%;
  height: 48px;
  color: var(--primary-bg);
  background-color: var(--accent-color);
  border: 1px transparent solid;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: 200ms ease;
}

.menu__link__button:hover {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.menu__open__button{
  all:unset;
  color:var(--primary-text)
}

/* Home */

#home {
  height: 100vh;
  width: 100%;
  position: relative;
}

.header__row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--primary-text);
}

.header__span {
  font-size: 18px;
  font-weight: 600;
  animation: slideUpAnimate 500ms;
  visibility: hidden;
}

.header__title {
  font-size: 96px;
  font-weight: 600;
  line-height: 100px;
  color: var(--primary-text);
  visibility: hidden;
}

.header__subtitle {
  font-size: 44px;
  font-weight: 600;
  line-height: 44px;
  color: var(--accent-color);
  visibility: hidden;
}

.header__about {
  margin-top: 8px;
  font-size: 18px;
  animation: slideUpAnimate 500ms 200ms backwards;
}

.header__links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  animation: slideUpAnimate 500ms 300ms backwards;
}

.header__link i {
    font-size: 24px;
}

.header__scroll {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInAnimate 500ms 500ms backwards,
    headerScrollAnimate 1000ms infinite alternate-reverse;
}

@keyframes headerScrollAnimate {
  0% {
    bottom: 32px;
  }
  100% {
    bottom: 24px;
  }
}

/* About */

.project-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.project-filter__button {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary-text);
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-filter__button.active {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  border-color: var(--accent-color);
}

.project-filter__button:hover {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  border-color: var(--accent-color);
}

.about__row {
  display: flex;
  gap: 128px;
  align-items: center;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__content__wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__title {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--secondary-text);
}

.about__text__subtitle {
  font-size: 32px;
}

.about__text__para {
  line-height: 24px;
  max-width: 400px;
  color: var(--secondary-text);
}

.about__skills {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__skill__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.about__skill {
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about__skill__img {
  width: 100%;
  height: 100%;
  transition: 200ms ease;
}

.dark-theme .about__skill__img {
    filter: grayscale(100%) brightness(150%);
}

.about__skill:hover .about__skill__img {
    filter: grayscale(0%) brightness(100%);
}

.about__skill {
  position: relative;
}

.about__skill::before,
.about__skill::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.about__skill::before {
  content: attr(data-tooltip);
  bottom: 100%;
  margin-bottom: 10px;
  padding: 8px;
  width: max-content;
  max-width: 200px;
  background-color: var(--secondary-bg);
  color: var(--primary-text);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.about__skill::after {
  content: '';
  bottom: 100%;
  margin-bottom: 4px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--secondary-bg) transparent transparent transparent;
}

.about__skill:hover::before,
.about__skill:hover::after {
  opacity: 1;
  visibility: visible;
}

.about__skill__name {
  font-size: 12px;
  opacity: 0;
  transition: 300ms ease;
}

.about__skill:hover .about__skill__name {
  opacity: 1;
}

.about__skill:hover .about__skill__img {
  transform: scale(0.9);
}

.about__image__wrapper {
  width: 550px;
  max-width: 100%;
  height: auto;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 100%;
  z-index: 2;
  position: relative;
}

/* Projects */

.projects__title {
  font-size: 36px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
}

.projects__row {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  gap: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project__image__wrapper {
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.project__image__links {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 16px;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project__image__link {
  color: #f3f4f6;
}

.project__image {
  width: 100%;
  transition: 400ms ease;
}

.project__image__wrapper:hover .project__image {
  filter: blur(3px) brightness(0.7);
  transform: scale(1.05);
}

.project__image__wrapper:hover .project__image__links {
  opacity: 1;
}

.project__description {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project__title {
  font-size: 24px;
  color: var(--primary-text);
}

.project__skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.project__skill {
  font-size: 14px;
  background-color: var(--primary-bg);
  color: var(--primary-text);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.project__para {
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary-text);
}

.project__links {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.project__link {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  font-size: 12px;
  font-weight: 700;
  width: 96px;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: background-color 0.3s ease;
}

.project__link:hover {
    opacity: 0.8;
}

/* Contact */



.contact__row {
  display: flex;
  gap: 48px;
}

.contact__description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 50%;
}

.contact__title {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--secondary-text);
}

.contact__subtitle {
  font-size: 40px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: fit-content;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 50%;
}

.form__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__item__label {
  font-size: 14px;
  font-weight: 300;
  color: var(--secondary-text);
}

.form__item__input,
.form__item__textarea {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  padding: 0 8px;
  font-size: 14px;
  border-radius: 4px;
  color: var(--primary-text);
}

.form__item__input {
  height: 36px;
}

.form__item__textarea {
  height: 96px;
  padding: 8px;
  resize: vertical;
  max-height: 300px;
}

.contact__form__submit {
  background-color: var(--accent-color);
  color: var(--primary-bg);
  width: 100%;
  height: 48px;
  border: 1px transparent solid;
  cursor: pointer;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  transition: 200ms ease;
  position: relative;
}

.contact__form__submit:hover {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.success {
  position: fixed;
  width: 320px;
  background-color: var(--secondary-bg);
  top: 12px;
  right: 12px;
  z-index: 20;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.1);
  gap: 16px;
  transform: translateX(200%);
  transition: 250ms ease;
  border: 1px solid var(--border-color);
}

.success-open .success {
  transform: translateX(0%);
}

.success__icon {
  font-size: 28px;
  color: #4bb543;
}

.success__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.success__text__title {
  font-size: 16px;
  font-weight: 500;
}

.success__text__para {
  font-size: 14px;
  color: var(--secondary-text);
}

.contact__form__loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent-color);
  color: var(--primary-bg);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}
.contact__form__loading__icon {
  animation: loadingSpinner 1000ms infinite;
}

@keyframes loadingSpinner {
  0% {
    transform: rotate(0deg);
  }

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

/* footer */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background-color: var(--secondary-bg);
  color: var(--primary-text);
  height: 64px;
  border-top: 1px solid var(--border-color);
}

.footer__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-text);
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__link {
  color: var(--primary-text);
}

/* XL screens */

@media (max-width: 1280px) {
  /* Nav */

  .nav {
    top: 0;
    padding: 0 12px;
  }

  .nav__container {
    border-radius: 0px;
    max-width: 100%;
  }

  .blob-project {
    left: -650px;
    rotate: 220deg;
  }
}

/* Large Screens */

@media (max-width: 1024px) {
  /* About */

  .about__row {
    flex-direction: column;
    align-items: center;
  }

  .about__text {
    text-align: center;
  }

  .about__text__para {
    max-width: 540px;
  }

  .about__skills {
    align-items: center;
  }

  /* Projects */

  .project {
    height: auto;
    padding: 20px;
  }

  .project__image__wrapper {
    max-width: 540px;
  }

  .project__description {
    max-width: 280px;
  }

  .project__skill,
  .project__para {
    font-size: 12px;
  }

}



/* Tablet Screen */

@media (max-width: 768px) {
  /* Header */

  .header__span {
    font-size: 14px;
  }

  .header__title {
    font-size: 60px;
    line-height: 60px;
  }

  .header__subtitle {
    font-size: 36px;
  }

  .header__about {
    font-size: 14px;
  }

  /* Projects */

  .project {
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 12px;
  }

  .project__image__wrapper {
    max-width: 100%;
  }

  .project__description {
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .project__title {
    width: 100%;
  }

  .project__skills {
    width: 100%;
    justify-content: center;
  }

  .project__skill,
  .project__para {
    font-size: 14px;
  }

  .project__para {
    margin-top: 16px;
  }

  .project__links {
    justify-content: center;
    width: 100%;
    gap: 8px;
    margin-top: 24px;
  }
  /* Contact */

  .contact__row {
    flex-direction: column;
  }

  .contact__description,
  .contact__form {
    width: 100%;
  }

  .contact__title {
    font-size: 14px;
  }

  .contact__subtitle {
    font-size: 30px;
  }

  .contact__para {
    font-size: 14px;
  }

  .contact__link {
    margin-top: 12px;
  }
}

/* Phone Screen */
@media (max-width: 640px) {
  .nav__menu {
    display: block !important;
  }

  .nav__links {
    display: none !important;
  }

  /* Header */

  .header__subtitle {
    font-size: 28px;
    line-height: 28px;
  }

  .blob-header {
    right: -660px;
  }

  /* About */

  .about__image__wrapper {
    max-width: 80%;
  }

  .about__skill__wrapper {
    justify-content: center;
  }

  /* Project */

  .project__title {
    font-size: 20px;
  }

  .project__skill,
  .project__para {
    font-size: 12px;
  }

  .project__skill {
    padding: 4px 10px;
  }
}

/* XS screens */

@media (max-width: 480px) {
  /* Header */

  .blob-header {
    right: -720px;
  }

  .header__title {
    font-size: 48px;
  }

  .header__subtitle {
    font-size: 24px;
    line-height: 20px;
  }

  /* About */

  .about__text__para {
    font-size: 14px;
  }

  /* footer */

  .footer__copyright {
    font-size: 10px;
  }

  .footer__row {
    gap: 16px;
  }

  .footer__link {
    font-size: 14px;
  }
}

