:root {
  --bg: #111827;
  /* --txt: #fffaf0; */
  --txt: #e7e8e2;
  --accent: #01c16a;

  --card-bg: #1f2937;
  --btn-bg: #01c16a;
  --btn-txt: #111827;
  --form-bg: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--txt);
}

ul,
ol {
  list-style-type: none;
}

/* nav */
nav {
  position: fixed;
  padding: 50px 30px;
  /* border-right: 1px solid var(--txt); */
  box-shadow: -6px 0 10px 0px var(--txt);
  width: 16rem;
  text-align: center;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background: #091328;
}

.logo a {
  font-size: 42px;
  position: relative;
}

.logo a span {
  height: 8px;
  width: 8px;
  background: var(--txt);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: -8px;
}

.menu a {
  font-size: 22px;
  transition: all 0.15s ease-in-out;
}

.menu a.active,
.menu a:hover {
  color: var(--accent);
}

.menu ul li {
  margin: 32px 0;
}

.socials {
  width: 100%;
}

.socials ul {
  display: flex;
  justify-content: space-evenly;
}

.socials ul li a i {
  font-size: 28px;
  transition: transform 0.2s ease-in-out;
}

.socials ul li a:hover i {
  transform: translateY(-30%);
}

main {
  margin-left: 16rem;
  height: 100vh;
  width: calc(100% - 16rem);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

/*  */
section {
  height: 100vh;
  scroll-snap-align: start;
  padding: 2rem;
  font-size: 2rem;
  background: var(--bg);
}

/*  */

/* HOME SECTION */
.home-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.home-left {
  height: 12rem;
  aspect-ratio: square;
  border-radius: 50%;
  border: 1px solid var(--txt);
  text-align: center;
  overflow: hidden;
}

.home-left img {
  width: 100%;
  height: 100%;
}

.home-right {
  width: 80%;
  text-align: center;
}

#home h4 {
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.btn-resume {
  background: var(--accent);
  padding: 0.3rem 1.5rem;
  font-size: 1.6rem;
  border-radius: 20px;
}

/* CONTACT SECTION */

.contact-head {
  text-align: center;
  margin-top: 20px;
}

.contact-container {
  height: 90%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.contact-boundary {
  height: 80%;
  width: 1px;
  background: var(--accent);
  margin: 0 2rem;
}

.contact-info,
.contact-form {
  width: 40% !important;
  font-size: 1.4rem;
}

.contact-info {
  height: 50%;
}

.contact-info ul {
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: left;
  flex-direction: column;
}

.contact-info a {
  margin-left: 20px;
}

.bi {
  color: var(--accent);
}

.contact-form .form-name {
  width: 100%;
}

.contact-form label {
  color: var(--txt);
  font-size: 1.2rem;
  display: block;
}

.contact-form input {
  width: 100%;
  outline: none;
  padding: 10px;
  border-radius: 4px;
  background: var(--bg);
  border: none;
  color: var(--txt);
  font-weight: 400;
  letter-spacing: 0.8px;
  text-shadow: var(--txt);
  font-size: 1.2rem;
  box-shadow: 0 0 3px 0.1px var(--txt);
}

.contact-form input:focus {
  border: 2px solid var(--accent);
}

.contact-form textarea:focus {
  border: 2px solid var(--accent);
  outline: none;
}

.form-divs {
  width: 100%;
  margin-bottom: 20px;
}

textarea#msg {
  width: 100%;
  background: var(--bg);
  padding: 10px;
  color: var(--txt);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: normal;
  resize: none;
}

.contact-form button {
  background: var(--accent);
  padding: 0.3rem 1.5rem;
  font-size: 1.2rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

/* SKILL SECTION */
.skill-head {
  text-align: center;
}

.project-slider {
  overflow: hidden;
  height: 100%;
  background: var(--bg);
  padding: 2rem 0;
}

.slider-track {
  display: flex;
  align-items: center;
  /* border: 1px solid red; */
  margin: 0 10px;
  /* width: 100%; */
  width: max-content;
  animation: scroll 20s linear infinite;
}

.slide {
  width: 300px;
  /* aspect-ratio: square; */
  /* height: 120px; */
  margin: 1rem;
  background: var(--accent-light);
  /* padding: 2rem; */
  border-radius: 10px;
  flex-shrink: 0;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  /* border: 1px solid yellow; */
}

.slide a {
  width: 100%;
}

.slide a img {
  width: 100%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
