@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --background-color: #001219;
  --primary-color: #ee9b00;
  --secondary-color: #e9d8a6;
  --highlight-color: #0a9396;
  --button-background-color: #bb3e03;
  --button-hover-color: #ae2012;
  --input-background-color: #94d2bd;
  --project-box-shadow: #9b222636;
  --text-focus-valid: rgb(103, 169, 103);
  --text-focus-invalid: rgb(179, 82, 82);
  --skills-color: #ae1f125d;
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: var(--background-color);
}
body::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

textarea::-webkit-scrollbar {
  /*This needs to be pushed to github*/
  width: 8px;
  height: 8px;
  background-color: transparent;
}
textarea::-webkit-scrollbar-thumb {
  background: var(--highlight-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("cursor.png"), auto !important;
}
html {
  scroll-behavior: smooth;
  cursor: url("cursor.png"), auto;
}
body {
  background-color: var(--background-color);
  color: var(--secondary-color);
  overflow-x: hidden;
}
.margin {
  width: 90%;
  margin: 0 auto;
}
a {
  text-decoration: none;
}
.container {
  margin-top: 80px;
}
h4 {
  font-family: "League Spartan", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 20px 0;
}
h3 {
  font-size: 1.5rem;
  font-family: "League Spartan", serif;
}
h1 {
  font-family: "League Spartan", serif;
  font-size: 4rem;
}
h2 {
  font-family: "League Spartan", serif;
  font-size: 3rem;
  padding-top: 100px;
}
p {
  font-family: "Libre Baskerville", serif;
  font-size: 20px;
  font-weight: 400;
  opacity: 0.75;
}
.name {
  color: var(--primary-color);
}
.res {
  position: relative;
  padding-bottom: 25px;
}
.resume {
  position: sticky;
  z-index: 200;
  top: 90%;
  left: 85%;
  margin-right: 20px;
}

/* Glow Circles */
#c1 {
  position: absolute;
  top: -80px;
  left: 0%;
  opacity: 0.5;
}

#c2 {
  position: absolute;
  top: 200px;
  right: 0%;
  opacity: 0.5;
}

/* Nav-bar */
.header {
  font-family: "League Spartan", serif;
}
.aman img {
  width: 50px;
  margin: 15px;
  border-radius: 50%;
}
.surname {
  color: var(--primary-color);
}
.aman {
  display: flex;
  :hover {
    cursor: url("cursor.png"), auto;
    transition: 0.3s;
    text-shadow: 0 0 2px var(--secondary-color);
  }
}
.aman h3 {
  margin-top: 28px;
  height: 1.7rem;
}
ul {
  list-style-type: none;
  font-size: 20px;
}
li {
  color: var(--secondary-color);
  margin: 0 15px;
}
.nav-links {
  display: flex;
  transform: translateY(50%);
}
.nav-links li {
  padding: 10px 0;
}
.nav-links a {
  transition: ease-in-out 0.3s;
  :hover {
    cursor: url("cursor.png"), auto;
    transition: ease-in-out 0.3s;
    color: var(--highlight-color);
  }
}
.header {
  display: flex;
}
.header-bar {
  background-color: var(--background-color);
  position: fixed;
  top: 0%;
  width: 100%;
  justify-content: space-evenly;
  opacity: 1;
  z-index: 100;
}
.nav-items {
  position: absolute;
  right: 5%;
}

.fade-in {
  animation: fade 0.8s forwards;
}
@keyframes fade {
  0% {
    opacity: 0;
    transform: translateY(10%) scale(80%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%) scale(100%);
  }
}
.animated {
  opacity: 0;
}

/* Hero Section */
.home {
  width: 100%;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.home-content {
  text-align: center;
}
.home-content h1,
.home-content p {
  margin: 20px 0;
}
.home-content p {
  max-width: 700px;
  line-height: 30px;
}

/* Buttons */
.btn p {
  color: var(--secondary-color);
  background-color: var(--button-background-color);
  border-radius: 10px;
  display: inline-block;
  opacity: 1 !important;
  padding: 10px 30px;
  transition: ease-in-out 0.3s;
  font-family: "League Spartan", serif !important;
  font-size: 20px !important;
  padding-top: 12px;
  font-weight: 600;
}
.btn p:hover {
  cursor: url("cursor.png"), auto;
  transition: ease-in-out 0.3s;
  transform: scale(1.1);
  background-color: var(--button-hover-color);
}
.icon {
  background: var(--background-color);
  display: block;
  position: absolute;
  right: 5%;
  top: 25px;
  color: var(--secondary-color);
  font-size: 25px;
}

/* About Section */
.about-section,
.project-section,
.contact-section {
  text-align: center;
  margin: 120px 0;
}
.line {
  width: 40px;
  height: 5px;
  border-radius: 5px;
  background-color: var(--highlight-color);
  margin: 20px auto;
  margin-bottom: 40px;
}
.about-flex {
  display: flex;
}
.info {
  width: 50%;
}
.info p {
  text-align: left !important;
  line-height: 25px;
  font-size: 15px;
}
.info a p {
  margin: 30px auto;
}
.skills {
  width: 50%;
}
.skills ul li {
  font-family: "League Spartan", serif !important;
  font-size: 20px !important;
  padding: 20px 30px;
  margin: 10px;
  background-color: var(--skills-color);
  display: inline-block;
  border-radius: 15px;
}

/* Projects Section */
.project {
  display: flex;
  justify-content: space-between;
  padding: 30px 40px;
  margin: 5vw 0;
  background-color: var(--project-box-shadow);
  border-radius: 50px;
  box-shadow: 0 0 20px var(--project-box-shadow);
}

.project img {
  width: 600px !important;
  height: 400px;
  object-fit: cover !important;
  border-radius: 20px;
  box-shadow: 0 0 20px var(--secondary-color);
  margin-right: 30px;
  transform: scale(0.9);
}

#pro {
  margin-top: -3vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  padding: 50px;
  background-color: #00607361;
  margin: 50px auto;
  text-align: left;
  border-radius: 10px;
}
input {
  width: 100%;
  padding: 10px 15px;
  margin: 20px 0;
  font-family: "League Spartan", serif !important;
  font-size: 20px;
  outline: none;
  border: none;
  background-color: var(--input-background-color);
  color: var(--background-color);
  border-radius: 5px;
}
textarea {
  width: 100%;
  min-height: 200px;
  margin: 20px 0;
  padding: 10px 15px;
  font-family: "League Spartan", serif !important;
  font-size: 20px;
  outline: none;
  border: none;
  background-color: var(--input-background-color);
  color: var(--background-color);
  border-radius: 5px;
}

/* Submit Button */
.sub-btn {
  background-color: var(--button-background-color);
  border-radius: 10px;
  display: inline-block;
  padding: 10px 30px;
  transition: ease-in-out 0.3s;
  padding-top: 12px;
  outline: none;
  border: none;
  margin: 20px 0;
}
.sub-btn:hover {
  cursor: url("cursor.png"), auto;
  transition: ease-in-out 0.3s;
  transform: scale(1.1);
  background-color: var(--button-hover-color);
}

.sub-btn p {
  color: var(--secondary-color);
  font-family: "League Spartan", serif !important;
  font-size: 20px !important;
  font-weight: 600;
  opacity: 1 !important;
}
label p {
  color: var(--secondary-color);
  font-family: "League Spartan", serif !important;
  font-size: 20px !important;
  font-weight: 600;
  opacity: 1 !important;
}

/* footer */

.footer {
  text-align: center;
  background-color: #000;
  padding: 40px 0 10px 0;
}
.social a img {
  width: 40px;
  height: 40px;
  margin: 20px;
}
.social {
  margin-top: -20px !important;
}

.name-footer {
  display: flex;
  margin: 20px 0;
  align-items: center;
  justify-content: center;
}
.name-footer a {
  margin-left: 10px;
  margin-top: 7px;
  color: var(--primary-color);
  font-family: "League Spartan", serif !important;
  opacity: 1 !important;
}
.name-footer p {
  font-family: "League Spartan", serif !important;
  opacity: 1 !important;
}

/* Submit message */
.submsg {
  width: 270px;
  height: 80px;
  background-color: var(--secondary-color);
  position: fixed;
  top: 10px;
  left: calc(50% - 135px);
  border-radius: 10px;

  z-index: 300;
  overflow: hidden;
}
.subani {
  animation: fades 3.9s;
}
@keyframes fades {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  77% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
}
.load {
  margin: 0;
  width: 100%;
  height: 10px;
  background-color: var(--button-background-color);
  transform: translateX(-100%);
}
.loadani {
  animation: loading 3s;
}
@keyframes loading {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.msg {
  z-index: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  color: var(--background-color);
  background-color: var(--secondary-color);
}
input:focus:invalid {
  border: 3px solid rgb(179, 82, 82);
}

input:focus:valid {
  border: 3px solid rgb(103, 169, 103);
}
