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

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* outline: 1px solid red; */
}

:root {
  --base-clr: #11121a;
  --line-clr: #42434a;
  --hover-clr: #222533;
  --pure-white: #ffffff;
  --text-clr: #e6e6ef;
  --accent-clr: #5e63ff;
  --secondary-text-clr: #b0b3c1;
  --pure-dark: #000000;
  --exp-color: #0a0f1e;
  --sidebar-width: clamp(250px, 20%, 300px);
}

html {
  background-color: var(--base-clr);
  scroll-behavior: smooth;
}

a,
h2,
h3,
h4,
h5,
h6,
p {
  text-decoration: none;
  color: var(--secondary-text-clr);
  line-height: 1.5;
}

span {
  color: var(--secondary-text-clr);
  line-height: 1.5;
}

li {
  list-style-type: none;
}

body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  color: #fff;

  background-color: var(--base-clr);
}

/* @media (min-width: 1600px) {
  body {
    max-width: 1600px;
  }
} */

@media (min-width: 1024px) {
  body {
    max-width: 1600px;
  }
}

aside::-webkit-scrollbar {
  display: none;
}

svg {
  height: 40px;
  width: auto;
  fill: var(--accent-icon);
}

.title {
  padding: 1em;
  font-size: clamp(1em, 2vw, 2em);
  letter-spacing: 1px;
  word-spacing: 1px;
  font-family: "Anton", sans-serif;
}

/*=========GRID========*/

/* .grid-cont {
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "aside navbar"
    "aside mainarea"
    "aside footer";
} */

.grid-cont {
  height: 100dvh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "navbar"
    "mainarea"
    "footer";
}

main {
  width: 100%;
}

/*=========SIDEBAR========*/

/*
aside {
  grid-area: sidebar;
  height: 100dvh;
  max-width: 300px;
  background-image: linear-gradient(
    to top,
    rgba(2, 14, 99, 0.3),
    rgba(0, 0, 0, 0.2)
  );
  position: fixed;
  top: 0;
  overflow-y: auto;
  border-right: 2px solid var(--line-clr);
  transition: 300ms ease-in-out;
  padding: 1px 0.85em;
}

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

.prof img {
  height: auto;
  max-width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.prof-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0.85em;
}

.prof-text h2 {
  font-size: clamp(0.6em, 1.5em, 2em);
}

.prof-text span {
  color: var(--secondary-text-clr);
  font-size: clamp(0.5em, 0.9em, 1.4em);
}

.prof-text::after {
  content: "";
  width: 200px;
  height: 1px;
  margin: 0.85em 0;
  background-color: rgb(47, 0, 255);
}

aside a,
aside #dropdown,
aside h2,
aside span {
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.6em;
  border-radius: 0.5em;
}

#dropdown {
  width: 100%;
  background: none;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: clamp(0.6em, 1em, 1.2em);
}

aside svg {
  height: 32px;
  flex-shrink: 0;
  fill: var(--accent-clr);
}

#dropdown span,
aside a span {
  flex-grow: 1;
}

aside a:hover,
aside #dropdown:hover,
aside #toggle-btn:hover {
  background-color: var(--hover-clr);
}

.submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div {
    overflow: hidden;
  }
}

.toggle {
  display: flex;
}

#toggle-btn {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  border-radius: 0.5em;

  > svg {
    transition: 300ms ease;
  }
}

.submenu.show {
  grid-template-rows: 1fr;
}

#sidebar.hide{
  transform: translateX(-100%);
  max-width: 300px;
}

.rotate svg:last-child {
  rotate: 180deg;
}

.connect {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.connect-con span {
//font-size: clamp(0.6em, 1em, 1.2em);
  color: rgb(18, 209, 187);
  font-weight: bold;
}

.connect-con p {
  color: var(--text-clr);
  text-align: left;
  font-size: 0.85em;
  padding: 0.2em 1em;
}

.connect svg {
  height: 32px;
  fill: var(--accent-clr);
}

#dropdown svg {
  transition: 300ms ease;
}

*/

/*=========NAVIGATION========*/
nav {
  grid-area: navbar;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.nav-text {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  font-size: clamp(1em, 2.5vw + 1em, 2em);
  font-family: "Anton", sans-serif;
  letter-spacing: 1px;
  position: fixed;
  top: 0;
  margin-top: 0.5em;
  color: var(--pure-white);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.nav-links {
  position: fixed;
  bottom: 0;
  margin: 4em;
  padding: 13px 20px;
  background-color: var(--pure-dark);
  border-radius: 100px;
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  transition: 300ms ease-in-out;
}

.nav-links ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  gap: 1em;
}


#hide-btn{
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 2em;
}

#hide-btn svg{
  padding: 2px;
  height: 40px;
  fill: var(--pure-white);
  transition: 300ms ease;
  border-radius: 5px;
}

#hide-btn svg:hover{
  background-color: var(--hover-clr);
}

.hide{
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: 300ms ease-in-out;
}


.nav-links a {
  transition: all 200ms ease;
  display: inline-block;
}

.nav-links svg {
  fill: #FFFFFF;
  height: 34px;
  border-radius: 10px;
  padding: 4px;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.nav-links a:hover svg {
  background-color: #228B22;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}



/*=========MAIN AREA========*/
main {
  grid-area: mainarea;
}

/*=========HERO SECTION========*/

.hero-content {
  display: flex;
  height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.location {
  text-align: center;
  font-size: clamp(0.7em, 1vw, 1.5em);
  letter-spacing: 1px;
  word-spacing: 1px;
  color: var(--secondary-text-clr);
  margin-bottom: 0.85em;
}

.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Anton", sans-serif;
  font-weight: bold;
  font-size: clamp(2em, 4vw + 1em, 8em);
  letter-spacing: 2px;
  color: var(--text-clr);
  margin-bottom: 0.5em;
  animation: fadeIn 1.5s ease-in-out;
}

.title-letter {
  display: inline-block;
  opacity: 0;
  background-image: linear-gradient(360deg, #0303a0, #ffffff 40%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(20px);
  animation: slideUp 0.6s forwards;
}

@keyframes slideUp {
  form {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-letter:nth-child(1) {
  animation-delay: 0.1s;
}

.title-letter:nth-child(2) {
  animation-delay: 0.2s;
}

.title-letter:nth-child(3) {
  animation-delay: 0.3s;
}

.title-letter:nth-child(4) {
  animation-delay: 0.4s;
}

.title-letter:nth-child(5) {
  animation-delay: 0.5s;
}

.title-letter:nth-child(6) {
  animation-delay: 0.6s;
}

.title-letter:nth-child(7) {
  animation-delay: 0.7s;
}

.title-letter:nth-child(8) {
  animation-delay: 0.8s;
}

.title-letter:nth-child(9) {
  animation-delay: 0.9s;
}

.title-letter:nth-child(10) {
  animation-delay: 1s;
}

.hero-subtitle {
  font-size: clamp(0.8em, 1.2vw, 1.5em);
  letter-spacing: 1px;
  word-spacing: 1px;
  text-align: center;
}

.hero-btn {
  margin: 1.5em;
  padding: 0.8em;
  border-radius: 8px;
  border: 2px solid #b51db5;
  transition: 0.3s ease-in-out;
}

.hero-btn a {
  color: var(--accent-clr);
}

.hero-btn:hover {
  background-color: var(--hover-clr);
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 1.5em;
}

.social-icons::before,
.social-icons::after {
  content: "";
  height: 1px;
  width: clamp(40px, 5vw + 1em, 150px);
  margin: 0 2em;
  background-color: rgb(47, 0, 255);
}

.social-icons a {
  background-color: rgba(33, 29, 48, 0.998);
  padding: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(34px, 2vw + 1em, 54px);
  width: clamp(34px, 2vw + 1em, 54px);
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: 300ms ease;
}

.social-icons a::before {
  content: attr(data-socials);
  position: absolute;
  font-size: 0.85em;
  text-decoration: none;
  color: var(--text-clr);
  background-color: var(--accent-icon);
  padding: 0.8em;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(-32px) rotate(25deg);
  transition: 300ms cubic-bezier(0.58, -0.54, 0, 2.27);
}

.social-icons a:hover {
  background-color: var(--accent-icon);
  fill: var(--text-clr);
}

.social-icons a::after {
  content: "";
  position: absolute;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-icon);
  width: 0;
  height: 0;
  opacity: 0;
  transition: 300ms cubic-bezier(0.58, -0.54, 0, 2.27);
}

.social-icons svg {
  height: 32px;
  fill: #fff;
}

.social-icons a:hover::before {
  transform: translateY(-62px) rotate(0);
  opacity: 1;
}

.social-icons a:hover::after {
  transform: translateY(-38px);
  opacity: 1;
}

/*=========ABOUT ME========*/

.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em;
}

.about-me-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.title h1 {
  text-align: center;
  padding-bottom: 1em;
}

.profile img {
  max-width: 100%;
  width: 250px;
  height: auto;
  aspect-ratio: 9/11;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(9, 15, 195, 0.5);
  transition: 300ms ease;
}

.profile img:hover {
  transform: translateY(-5px);
}

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

.about-text span {
  font-size: 0.6em;
  line-height: 2;
  text-align: center;
  font-family: "Poppins", sans-serif;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.about-text p {
  text-align: left;
  letter-spacing: 1px;
  padding: 1em 0;
  word-spacing: 1px;
  color: var(--text-clr);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.about-text span strong {
  color: #8866c6;
}

/*=========SKILLS========*/

.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* .skills-title {
  padding: 1em;
  font-size: clamp(1em, 2vw, 2em);
  letter-spacing: 1px;
  font-family: "Anton", sans-serif;
} */

.skills-content-dis {
  font-size: clamp(0.8em, 1.2vw, 1.5em);
  letter-spacing: 1px;
  word-spacing: 1px;
}

.skills-item {
  display: flex;
  width: 80%;
  justify-content: center;
  gap: 5em;
  flex-wrap: wrap;
  padding: 2em;
}

.item {
  line-height: 0;
  width: 250px;
  display: flex;
  flex-wrap: wrap;
  background-color: #1a1a1b5c;
  align-items: center;
  text-align: left;
  height: 4em;
  padding: 0 0.5em;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: 300ms ease;
}

.item:hover {
  background-color: var(--hover-clr);
}

.item svg {
  padding-right: 6px;
}

.lang h2 {
  font-size: 1.2em;
}

.lang span {
  font-size: 0.85em;
}

/*=========PROJECTS========*/
.project-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
}

.project-cont {
  display: flex;
  gap: 5em;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.project-card {
  background-color: #1c1e27;
  padding: 1em;
  border-radius: 10px;
  transition: 300ms ease-in-out;
}

.project-img img {
  aspect-ratio: 2/1.5;
  object-fit: cover;
  background-size: cover;
  border-radius: 10px;
}

.project-desc {
  display: flex;
  width: 100%;
  flex-direction: column;
  text-align: left;
  padding: 0.5em 1em;
}

.sub-cont {
  display: flex;
  justify-content: space-between;
  padding: 1em;
}

.project-tags {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.project-tags p {
  display: grid;
  place-items: center;
  background-color: var(--exp-color);
  padding: 0.5em 0.8em;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.project-links {
  display: flex;
  gap: 1em;
}

.project-links #live,
#code {
  background-color: #b4b414;
  height: 54px;
  width: 54px;
  display: grid;
  place-items: center;
  fill: #e9dfdf;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.project-links #live:hover,
#code:hover {
  background-color: var(--hover-clr);
  fill: #b4b414;
}

.project-card:hover {
  transform: translateY(-5px);
}

img {
  width: 500px;
}

/*=========CONTACT========*/

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2em;
}

.contact-form {
  background-color: #1a191c;
  height: 480px;
  width: 400px;
  padding: 2em;
  border-radius: 10px;
  position: relative;
}

.contact-form::after,
.contact-form::before {
  content: "";
  background: conic-gradient(rgb(0, 255, 234), rgb(0, 255, 200));
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 5px;
  z-index: -1;
}

.contact-form::before {
  filter: blur(1.5em);
  opacity: 0.2;
}

.form {
  display: flex;
  flex-direction: column;
}

.form span {
  color: red;
}

.form label {
  font-size: 1em;
  color: var(--text-clr);
}

.form input {
  color: var(--text-clr);
  padding: 0.6em;
  border-radius: 5px;
  outline: none;
  border: 1px solid var(--line-clr);
  background-color: #3d3737;
  margin: 1em 0;
}

.form input:focus {
  border: 1px solid #c74141;
}

#message {
  padding: 2em 0;
}

.submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em;
}

.submit-btn input {
  padding: 0.85em 1.2em;
  font-weight: 500;
  outline: none;
  border: none;
  font-size: 1em;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: 300ms ease;
}

.submit-btn input:hover {
  background-color: var(--hover-clr);
}

/*=========FOOTER========*/
footer {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--pure-dark);
}

.footer-links {
  text-align: center;
}

footer .title h1{
  padding: 0;
}

.socials {
  display: flex;
  gap: 1em;
  justify-content: center;
  align-items: center;
  padding: 1em;
}
.socials svg {
  fill: #17dd17;
  height: 30px;
  transition: 300ms ease;
}

.socials svg:hover {
  transform: scale(1.1);
}

.final-words span {
  font-size: 0.8em;
  letter-spacing: 1px;
  word-spacing: 1px;
}
