@import url("https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poller+One&family=Saira:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 10dvh;
}
body {
  background-color: #0b071e;
  color: #f3eeff;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  width: 100%;
  font-size: 20px;
  overflow-x: hidden;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  gap: 400px;
  width: 100%;
  height: 8dvh;
  padding: 0 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 7, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
nav > h1 {
  font-size: 26px;
  font-weight: 700;
}
.menu-icon {
  display: none;
  cursor: pointer;
  color: #f3eeff;
}
.links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.links > a {
  color: white;
  font-size: 18px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.links > a:hover,
.links > a.active {
  color: #8b5cf6;
  background-color: rgba(139, 92, 246, 0.1);
}

main {
  display: flex;
  flex-direction: column;
}

#home {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 92dvh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 40px;
  gap: 80px;
  width: 100%;
}
.name {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.words {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.words > h2 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
}
.title {
  color: #8b5cf6;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.words > p:last-child {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #b3aaff;
  max-width: 500px;
}
.buttons {
  display: flex;
  align-items: center;
  gap: 25px;
}
.buttons > a {
  text-decoration: none;
  color: white;
}
.buttons > a > button {
  background-color: #8b5cf6;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.buttons > a > button:hover {
  transform: translateY(-2px);
}
.buttons > button > a {
  color: white;
  text-decoration: none;
}
.buttons > button:hover {
  background-color: #7c3aed;
  transform: translateY(-2px);
}
.icons {
  display: flex;
  gap: 18px;
}
.icons > a {
  color: #b3aaff;
  font-size: 22px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.icons > a:hover {
  color: #8b5cf6;
  transform: scale(1.15);
}
#pic {
  display: block;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  background-image: url(images/myPic.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

#about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  height: 92dvh;
  gap: 80px;
  width: 100%;
}
.details {
  display: flex;
  align-items: center;
  gap: 60px;
}
#picture {
  display: block;
  width: 300px;
  height: 320px;
  flex-shrink: 0;
  background-image: url(images/myPic.jpg);
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  border: 1px solid rgba(243, 238, 255, 0.1);
}
.bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bio > h2 {
  font-size: 32px;
  color: #8b5cf6;
}
.bio > p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #b3aaff;
}
.skills {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 1px solid rgba(243, 238, 255, 0.05);
  padding-top: 40px;
}
.skills > h2 {
  font-size: 28px;
}
.skill-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.skill-info > span {
  display: block;
  background-color: #160f35;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: transform 0.2s ease;
}
.skill-info > span:hover {
  transform: translateY(-5px);
}
.skill-info h3 {
  color: #8b5cf6;
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.skill-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skill-info li {
  color: #f3eeff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-info li::before {
  content: "→";
  color: #8b5cf6;
  font-weight: bold;
}

#projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  flex-direction: column;
  height: 92dvh;
  gap: 10px;
  width: 100%;
}
#projects > h2 {
  font-size: 32px;
  color: #8b5cf6;
}
#projects > p {
  color: #b3aaff;
  margin-bottom: 10px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}
.project {
  background-color: #160f35;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
#project-pic {
  display: block;
  height: 200px;
  background-color: #21174a;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
#project-details {
  display: block;
  padding: 20px;
  flex-grow: 1;
}
#project-details > h3 {
  color: #f3eeff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
#project-details > p {
  color: #b3aaff;
  font-size: 0.95rem;
  line-height: 1.5;
}
#project-buttons {
  display: flex;
  gap: 20px;
  padding: 0 20px 20px 20px;
}
#project-buttons > button {
  background-color: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#project-buttons > button > a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
  transition: color 0.2s ease;
}
#project-buttons > button:hover {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
  transform: translateY(-2px);
}
#inactive {
  pointer-events: none;
}

#inactive > a {
  color: white;
  opacity: 0.4;
}
#active > a {
  color: white;
}
#contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 40px;
  width: 100%;
  height: 92dvh;
  gap: 50px;
}
#contact > h2 {
  font-size: 32px;
  color: #8b5cf6;
}
#contact > p {
  color: #b3aaff;
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  gap: 60px;
}
form {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
form span {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
form label {
  font-size: 0.9rem;
  color: #b3aaff;
  font-weight: 500;
}
form input,
form textarea {
  background-color: #160f35;
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 14px;
  border-radius: 8px;
  color: #f3eeff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
form input:focus,
form textarea:focus {
  border-color: #8b5cf6;
}
form textarea {
  height: 120px;
  resize: none;
}
form > button {
  background-color: #8b5cf6;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background-color 0.2s;
  align-self: flex-start;
  padding: 12px 30px;
}
form button:hover {
  background-color: #7c3aed;
}
#form-status {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: -10px;
  min-height: 24px;
  transition: all 0.3s ease;
}
.handles {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 20px;
  justify-content: flex-start;
}
.handles > a {
  color: #f3eeff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  padding: 14px;
  background-color: rgba(22, 15, 53, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(243, 238, 255, 0.05);
  transition: all 0.2s ease;
}
.handles > a:hover {
  background-color: #160f35;
  border-color: #8b5cf6;
}

footer {
  background-color: #020105;
  padding: 40px 80px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  height: 25dvh;
}
.right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(243, 238, 255, 0.6);
  font-size: 15px;
  text-align: center;
}
.right p:first-child {
  font-weight: 500;
  color: #f3eeff;
}
.quick-links-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.quick-links-box h3 {
  font-size: 15px;
}
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-links > a {
  color: rgba(243, 238, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.quick-links > a:hover {
  color: #8b5cf6;
}
.contact-links-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-links-box h3 {
  font-size: 15px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-links a {
  color: rgba(243, 238, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: flex;
  flex-direction: row;
  gap: 5px;
}
.contact-links a:hover {
  color: #8b5cf6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.words h2,
.words .title,
.words p {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.words h2 {
  animation-delay: 0.1s;
}
.words .title {
  animation-delay: 0.2s;
}
.words p {
  animation-delay: 0.3s;
}
.name .buttons {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.4s;
}

#pic {
  opacity: 0;
  animation: scaleIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.2s;
}

.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}
.reveal-element.active-view {
  opacity: 1;
  transform: translateY(0);
}
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.stagger-item.active-view {
  opacity: 1;
  transform: translateY(0);
}
.first {
  background-image: url(images/growssify.png);
}
.second {
  background-image: url(images/kasivodrums.png);
}
.third {
  background-image: url(images/finoratechnologies.png);
}
hr {
  border-left: solid 1px rgba(228, 220, 248, 0.6);
  border-right: solid 1px rgba(228, 220, 248, 0.6);
}

@media (max-width: 1024px) {
  nav {
    gap: 0;
    justify-content: space-between;
    padding: 0 40px;
  }
  #home {
    gap: 40px;
    padding: 60px 40px;
    height: auto;
  }
  .words > h2 {
    font-size: 44px;
  }
  #about {
    height: auto;
  }
  #pic {
    width: 300px;
    height: 300px;
  }
  .details {
    gap: 40px;
  }
  #picture {
    width: 260px;
    height: 280px;
  }
  .contact-details {
    gap: 40px;
  }
  #projects {
    height: auto;
    padding-bottom: 50px;
  }
  #contact {
    height: auto;
    padding-bottom: 50px;
  }
  footer {
    padding: 40px;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
    height: auto;
  }
  body {
    font-size: 18px;
    overflow-x: hidden;
  }
  nav {
    padding: 0 24px;
    gap: 0;
    justify-content: space-between;
    position: fixed !important;
    top: 0;
    z-index: 1000;
    height: 10dvh;
    background-color: #0b071e;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  }
  .menu-icon {
    display: block;
  }
  .links {
    gap: 0px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: auto;
    width: 150px;
    right: 0;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(139, 92, 246, 0.15);
    background-color: #0b071e;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  .links > a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 16px;
    width: auto;
    align-self: flex-end;
    text-align: right;
    box-sizing: border-box;
    padding: 16px 32px;
    margin: 6px 20px;
    border-radius: 6px;
    border-bottom: none;
  }
  .links.active-menu {
    max-height: 350px;
  }
  #home {
    flex-direction: column-reverse;
    text-align: center;
    padding: calc(40px + 70px) 24px 40px 24px;
    gap: 30px;
    min-height: auto;
    margin-top: 35px;
  }
  .words > p:last-child {
    margin: 0 auto;
  }
  .buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .buttons > button {
    width: 70%;
    display: flex;
    justify-content: center;
  }
  .icons {
    justify-content: center;
    margin-top: 8px;
  }
  #pic {
    width: 240px;
    height: 240px;
  }
  #about,
  #projects,
  #contact {
    padding: 40px 24px;
    gap: 40px;
    height: auto;
  }
  .details {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  #picture {
    width: 220px;
    height: 240px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .project {
    min-height: auto;
  }
  .contact-details {
    flex-direction: column;
    gap: 40px;
  }
  form button {
    width: 100%;
  }
  .handles {
    width: 100%;
  }
  footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 25px;
    height: auto;
  }
  .right {
    text-align: center;
  }
  .quick-links {
    display: flex;
    flex-direction: row;
    align-self: center;
  }
  .contact-links {
    display: flex;
    flex-direction: column;
    align-self: center;
  }
  hr {
    display: none;
  }
}
