/* Custom properties/variables  */
:root {
  --main-white: #f0f0f0;
  --main-red: #be3144;
  --main-blue: #45567d;
  --main-gray: #303841;
  --color-salmon: #FA8072;
  --main-DarkGreen: #008000;
}

/* Base reset */
* {
margin: 0;
padding: 0;
}

/* box-sizing and font sizing */
*,
*::before,
*::after {
box-sizing: inherit;
}

html {
box-sizing: border-box;

/* Set font size for easy rem calculations
 * default document font size = 16px, 1rem = 16px, 100% = 16px
 * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
*/
font-size: 62.5%;
scroll-behavior: smooth;
}

/* 980px / 16px = 61.25em */
@media (max-width: 61.25em) {
  html {
    font-size: 58%;
  }
}

/* 460px / 16px = 28.75em */
@media (max-width: 28.75em) {
  html {
    font-size: 55%;
  }
}

/* Base styles */

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem; /* 18px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-white);
}

h1,
h2 {
font-family: 'Raleway', sans-serif;
font-weight: 700;
text-align: center;
}

h1 {
font-size: 6rem;
}

h2 {
font-size: 4.2rem;
}

ul {
list-style: none;
}

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

img {
display: block;
width: 100%;
}

/* nav */

.nav {
display: flex;
justify-content: flex-end;
position: fixed;
top: 0;
left: 0;
width: 100%;
background: var(--main-red);
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
z-index: 10;
}

.nav-list {
display: flex;
margin-right: 2rem;
}

nav > ul > li > a.active {
color: var(--main-DarkGreen);
}

@media (max-width: 28.75em) {
.nav {
  justify-content: center;
}

.nav-list {
  margin: 0 1rem;
}
}

.nav-list a {
display: block;
font-size: 2.2rem;
padding: 2rem;
}

.nav-list a:hover {
background: var(--main-blue);
}

/* Welcome section */

.welcome-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background-color: #000;
background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#welcome-section {
background-image: 
url(https://images.unsplash.com/photo-1653279972768-ff24a7d28ed9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=687&q=80);
background-position: top;
background-repeat: no-repeat;
background-size: 100% 100%;
background-attachment: fixed;
}

.welcome-section > p {
font-size: 3rem;
font-weight: 200;
font-style: italic;
color: var(--main-red);
}

/* Projects section */

.projects-section {
text-align: center;
padding: 10rem 2rem;
background: var(--main-blue);
}

.projects-section-header {
max-width: 640px;
margin: 0 auto 6rem auto;
border-bottom: 0.2rem solid var(--main-white);
}

@media (max-width: 28.75em) {
.projects-section-header {
  font-size: 4rem;
}
}

.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
grid-gap: 4rem;
width: 100%;
max-width: 1280px;
margin: 0 auto;
margin-bottom: 6rem;
}

@media (max-width: 30.625em) {
.projects-section {
  padding: 6rem 1rem;
}

.projects-grid {
  grid-template-columns: 1fr;
}
}

.project {
background: var(--main-gray);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
border-radius: 2px;
}

.code {
color: var(--main-gray);
transition: color 0.3s ease-out;
}

.project:hover .code {
color: #17fa7d;
}

.project-image {
height: calc(100% - 6.8rem);
width: 100%;
object-fit: cover;
}

.project-title {
font-size: 2rem;
padding: 2rem 0.5rem;
}

/* Contact section */

.contact-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
width: 100%;
height: 80vh;
padding: 0 2rem;
background: var(--main-gray);
}

.contact-section-header > h2 {
font-size: 6rem;
}

@media (max-width: 28.75em) {
.contact-section-header > h2 {
  font-size: 4rem;
}
}

.contact-section-header > p {
font-family: Lucida Handwriting;
font-weight: 10px;
}

.contact-links {
display: flex;
justify-content: center;
width: 100%;
max-width: 980px;
margin-top: 4rem;
flex-wrap: wrap;
}

.contact-details {
font-size: 2.4rem;
text-shadow: 2px 2px 1px #1f1f1f;
transition: transform 0.3s ease-out;
}

.contact-details:hover {
transform: translateY(12px);
}

.btn {
display: inline-block;
padding: 1rem 2rem;
border-radius: 2px;
}

/* Split */

.split {
display: -moz-flex;
display: -webkit-flex;
display: -ms-flex;
display: flex;
}

.split > * {
    width: calc(50% - 2.5em);
}

.split > :nth-child(2n - 1) {
    padding-right: 2.5em;
    border-right: solid 1px rgba(255, 255, 255, 0.15);
}

.split > :nth-child(2n) {
    padding-left: 2.5em;
}

@media screen and (max-width: 640px) {

  .split {
    display: block;
  }

    .split > * {
      margin: 4em 0 0 0;
      padding: 4em 0 0 0;
      width: 100% !important;
    }

    .split > :nth-child(2n - 1) {
      border-right: 0;
      padding-right: 0;
    }

    .split > :nth-child(2n) {
      padding-left: 0;
    }

    .split > :first-child {
      border-top: 0;
      margin-top: 0;
      padding-top: 0;
    }

}

/* End of Split*/


/* Footer */

footer {
font-weight: 300;
display: flex;
justify-content: space-evenly;
padding: 2rem;
background: var(--main-gray);
border-top: 4px solid var(--main-red);
}

footer > p {
margin: 2rem;
}

label {
display: flex;
align-items: center;
font-size: inherit;
margin-bottom: 0.5rem;
}

input,
button,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}

/* form */

form {
padding: 2.5rem 0.625rem;
border-radius: 0.25rem;
}

.form-unit {
margin: 0 auto 1.25rem auto;
padding: 0.25rem;
}

.form-cntl {
display: block;
width: 100%;
height: 2.375rem;
padding: 0.375rem 0.75rem;
color: #212f3d;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ent-textarea {
min-height: 120px;
width: 100%;
padding: 0.625rem;
resize: none;
}

.sub-btn {
display: block;
width: 25%;
padding: 0.75rem;
background: var(--main-gray);
color: inherit;
border-radius: 5px;
border-color: var(--main-white);
cursor: pointer;
}

.sub-btn:hover {
background: var(--main-blue);
color: var(--color-salmon);
box-shadow: 0 0.4rem 1.4rem 0 rgba(113, 113, 198, 0.5);
transform: translateY(-0.5rem);
transition: transform 170ms;
}

.gang {
  padding: 6rem;
  width: 80%;
  margin-left: 10%;
  font-size: 25px;
}

.tat {
  width: 50%;
  display: block;
  justify-content: center;
  border: 1px solid;
  border-color: var(--main-blue);
  border-radius: 5px;
}

.welcome-sec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #000;
  background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#blade {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 70vh;
  background-color: #000;
  background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);
}

#blade > p {
  font-size: 25px;
} 

#blade > h2 {
  margin-top: 10rem;
  margin-bottom: 5rem;
}

.btn-wel {
  background-color: inherit;
  border: 1px solid;
  border-color: var(--main-white);
  border-radius: 5px;
  padding: 1rem;
  margin-top: 5rem;
}

.btn-wel:hover {
  background: var(--main-blue);
  color: var(--color-salmon);
  }

  #next {
   display: block;
    justify-content: center;
    align-content: center;
    margin-top: 20px;
    border: 1px solid var(--main-white);
    width: 25%;
    padding: 0.75rem;
    border-radius: 5px;
    font-family: Lucida Handwriting;
  }

  #next:hover {
    cursor: pointer;
    box-shadow: 0 0.4rem 1.4rem 0 rgba(113, 113, 198, 0.5);
    transform: translateY(-0.5rem);
    transition: transform 170ms;
    color: var(--color-salmon);
  }

  /*  TOOLTIP */

  .tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: var(--main-white);
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  width: 120px;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}