/* Setting Variables */
:root {
  font-size: 16px;
  --primary-color: #45c4d6;
  --primary-color-bright: #3ee8ff;
  --secondary-color: #3b3b3b;
  --secondary-color-dark: #252525;
  --sidebar-visible-margin: 15rem;
  --transition: all 250ms ease-in;

  font-size: 16px;

  scroll-behavior: smooth;
}

/* Global Reset */

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

/* General Styles */

body {
  font-size: 100%;
  font-family: "Roboto", sans-serif;
  color: #fff;
  background: transparent;
  overflow: auto;
  text-align: center;
  background-color: var(--secondary-color-dark);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
}

h1 {
  font-size: 5rem;
  line-height: 1.3;
  padding-bottom: 1rem;
  position: relative;
  z-index: 5;
}

.heading {
  width: 100%;
  font-size: 3.5rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #fff;
  display: inline-block;
  position: relative;
}

i {
  font-size: 3rem;
}

span {
  display: inline-block;
}

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

.secondary-color {
  color: var(--secondary-color);
}

.lead {
  font-size: 2rem;
  padding-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-color-bright);
}

/***********************/
/* Navbar */
.sidebar {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  justify-content: space-between;
  transition: var(--transition);
  background: var(--secondary-color);
  overflow: hidden;
}

.logo-text {
  padding: 1rem 0;
  font-size: 3rem;
  background: var(--secondary-color-dark);
  width: 100%;
}

.logo-link {
  display: block;
  width: 100%;
}

.item {
  padding: 2rem 0;
}

.item:hover i,
.item:hover .sidebar-text {
  color: var(--primary-color);
}

.item-link {
  display: flex;
  align-items: center;
}

.sidebar i {
  transition: var(--transition);
  font-size: 2rem;
  display: block;
}

.sidebar-text {
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  position: absolute;
  transition: var(--transition);
  display: block;
}

/****************************************/
/* Landing Page */
/* Landing Page Main Content */
.landing-page-content {
  height: 100vh;
  margin-left: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0 5rem;
}

.wave {
  animation: wave 2s linear infinite;
  padding-left: 2rem;
  transform-origin: right bottom;
}

.main-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #000;
  opacity: 0.7;
}

.bottom-divider {
  position: absolute;
  bottom: -5px;
  z-index: 3;
  width: 100%;
}

.top-divider {
  position: absolute;
  top: -15px;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
}

.divider embed {
  padding: 0;
  margin: 0;
}

/*******************************/
/* About Section */
.inner-page {
  position: relative;
  min-height: 70vh;
  background-color: var(--secondary-color-dark);
  z-index: 4;
  overflow: hidden;
}

.flex-content {
  display: flex;
  text-align: left;
  justify-content: center;
  align-items: center;
  padding: 3rem 3rem;
  margin-top: 3rem;
}

.text-content {
  width: 30%;
  font-size: 1.3rem;
  line-height: 1.7rem;
}

.text-content p {
  padding-bottom: 2rem;
}

.svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
}

.svg-container embed {
  min-width: 300px;
  max-width: 450px;
}

/*****************************/
/* Projects Section */

#projects {
  background-color: var(--primary-color);
  min-height: 80vh;
}

#projects .heading {
  display: block;
  padding-top: 3rem;
}

.card-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 5rem;
}

.card {
  position: relative;
  min-height: 35rem;
  max-width: 30rem;
  background: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 22px -3px rgba(0, 0, 0, 0.81);
  cursor: pointer;
  margin: 1.5rem;
  flex-grow: 1;
}

.flag {
  position: absolute;
  font-size: 1.5rem;
  background: rgb(148, 138, 6);
  height: 35px;
  z-index: 500;
  border-radius: 0 10px 0 0;
  padding: 0.5rem 0.5rem;
  transform-origin: left top;
  left: 40px;
  transform: rotate(90deg);
}

.card-image {
  height: 50%;
  width: 100%;
  object-fit: contain;
  background: no-repeat url("media/portfolio-project.png") center center/cover;
  transition: 500ms ease-in;
}

.project3 {
  background: no-repeat url("media/blogger.png") center center/cover;
}

.project4 {
  background: no-repeat url("media/adsolar.png") center center/cover;
}

.project5 {
  background: no-repeat url("media/choba-logo.png") center center/cover;
}

.project6 {
  background: no-repeat url("media/imperium.png") center center/cover;
}

.card:hover .card-image {
  transform: scale(1.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 45%;
  padding: 1rem 1.5rem;
}

.card-heading {
  font-size: 2rem;
  margin: 1rem auto;
}

.card-description {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.tech {
  display: flex;
  align-items: center;
}

.tech.center {
  justify-content: center;
}

.tech i {
  padding: 1rem;
}

.tech a {
  margin-left: auto;
}

.btn-code {
  /* background-color: var(--primary-color); */
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 2px solid var(--primary-color);
  transition: 200ms ease-in;
}

.btn-code:hover {
  background: var(--secondary-color-dark);
}

/*****************************/
/* Contact Section */

#contact .heading {
  display: block;
  padding-top: 5rem;
}

.flex-grid {
  display: flex;
  text-align: left;
  margin: 1rem auto 0 auto;
  justify-content: space-around;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40%;
}

/* contact info styling */
.contact-heading {
  font-size: 2rem;
  margin: 1.5rem 0;
}

.contact-details a {
  font-size: 1.2rem;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-color);
}

/* Form styling */
form {
  width: 40%;
}

label,
input,
textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  border: none;
  outline: none;
  padding: 0.7rem 0.7rem;
  margin-bottom: 0.3rem;
}

input,
textarea {
  font-family: "Roboto", sans-serif;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
}
.btn-contact {
  display: block;
  cursor: pointer;
  margin: 1rem 0;
  background: var(--primary-color);
  border: none;
  padding: 0.8rem 1.2rem;
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  width: 50%;
  transition: var(--transition);
}

.btn-contact:hover,
.btn-contact:active {
  background: var(--primary-color-bright);
}

/*****************************/
/* Footer  */

footer {
  width: 100%;
}

footer a {
  padding: 0 2rem 2rem 2rem;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color);
}
/*****************************/
/* Animations */

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/*****************************/
/* Media Queries */

/* Large screens */
@media (max-width: 1100px) {
  .flex-content {
    flex-direction: column;
  }
  .share {
    width: 100%;
  }
}

/* Small screens */
@media (max-width: 800px), (max-height: 550px) {
  h1 {
    font-size: 3rem;
    padding-bottom: 1rem;
  }

  .heading {
    font-size: 2.5rem;
    margin: 3rem 0;
  }

  .lead {
    font-size: 1.5rem;
    padding-bottom: 1rem;
  }

  .sidebar {
    bottom: 0;
    width: 100%;
    height: 5rem;
    justify-content: center;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .item-link {
    display: block;
    padding: 0 1rem;
  }

  .sidebar-text {
    display: none;
  }

  .logo-text {
    display: none;
  }
  .landing-page-content {
    padding: 0 2rem;
    margin: 0 auto;
    max-height: 80vh;
  }

  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
  }

  .inner-page {
    margin-left: 0;
  }

  .flex-content {
    flex-direction: column;
    align-items: space-between;
    justify-content: center;
    padding: 1rem 2rem;
    text-align: center;
  }

  .card-flex {
    margin: 0;
  }

  .card-image {
    height: 50%;
  }

  i {
    font-size: 1.8rem;
  }

  .card-gallery {
    padding: 0;
  }

  .share {
    width: 100%;
    padding: 1rem 2rem;
  }

  .top-divider {
    display: none;
  }

  .bottom-divider {
    display: none;
  }

  .btn-resume {
    margin-bottom: 2rem;
  }
  .flex-grid {
    flex-direction: column;
    margin-bottom: 4rem;
    align-items: center;
  }

  .contact-details,
  form {
    width: 80%;
    padding-bottom: 1rem;
  }

  .contact-details {
    border-bottom: 2px solid var(--secondary-color);
  }

  form {
    padding-top: 1rem;
    padding-left: none;
  }

  .btn-contact {
    width: 100%;
    margin: 1rem auto;
  }

  footer {
    margin-bottom: 7em;
  }
}

/* Desktop */

@media (min-width: 800px) and (min-height: 550px) {
  .sidebar {
    height: 100vh;
    width: 7rem;
  }
  .sidebar:hover {
    width: var(--sidebar-visible-margin);
    box-shadow: -7px 0px 27px 1px rgba(0, 0, 0, 0.75);
  }

  .sidebar:hover .sidebar-text {
    opacity: 1;
    transform: translateX(0.5rem);
  }

  .sidebar:hover.sidebar i {
    transform: translateX(-4rem);
  }

  .inner-page {
    margin-left: 7rem;
  }
  #projects .heading,
  #contact .heading {
    margin: 7rem 0 3rem 0;
  }

  #contact {
    margin-left: 2.5rem;
  }

  footer a {
    padding-top: 2rem;
  }
}
