/* Custom properties/variables  */
:root {
  --white-color: #f0f0f0;
  --orangered-color: orangered;
  --coral-color: coral;
  --blue-color: #45567d;
}

/* 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;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* A few media query to set some font sizes at different screen sizes.
   * This helps automate a bit of responsiveness.
   * The trick is to use the rem unit for size values, margin and padding.
   * Because rem is relative to the document font size
   * when we scale up or down the font size on the document
   * it will affect all properties using rem units for the values.
  */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 7rem;
  background-color: #000;
  background-image: linear-gradient(#181719 0%, #3a3d40 100%);
  border-bottom: 0.4rem solid var(--orangered-color);
  z-index: 10;
}

#header .logo {
  display: flex;
  margin-left: 3rem;
  color: var(--orangered-color);
}

#header .logo span {
  display: block;
  font-size: 4.5rem;
  font-weight: bolder;
}

#header .logo h3 {
  margin-left: -1.4rem;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: 2rem;
}

#navbar {
  position: fixed;
  top: 1.5rem;
  right: 0;
}

#navbar ul li {
  display: inline-block;
  margin-right: 3rem;
  list-style: none;
}

li a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: 400;
  transition: all 0.5s;
}

li a:hover {
  cursor: pointer;
  color: var(--orangered-color);
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  top: 6rem;
  background-color: var(--white-color);
  color: var(--orangered-color);
}

#welcome-section p {
  font-size: 4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--coral-color);
}

h1 {
  font-weight: 700;
  font-size: 7rem;
}

#flex-tools{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;  
  margin: 5rem;
}

.single-tool img {
  width: 120px;
  padding: 1rem;
}

.small img{
  width: 160px;
}
 

#projects {
  position: relative;
  padding-top: 10rem;
  width: 100%;
  height: auto;
  background-color: var(--blue-color);
  text-align: center;
}

h2 {
  font-size: 4.2rem;
  color: var(--white-color);
}

#projects h2 {
  max-width: 640px;
  width: 100%;
  margin: 0 auto 6rem auto;
  padding-bottom: 0.5rem;
  border-bottom: 0.2rem solid var(--white-color);
}

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

.project-tile {
  max-width: 400px;
  width: 100%;
  background-color: #303841;
  border-radius: 0.5rem;
  padding-bottom: 3rem;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--white-color);
  transition: all 1s;
}

.project-tile img {
  max-width: 400px;
  max-width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
  padding-bottom: 2rem;
}

.project-tile p {
  font-size: 2rem;
}

.project-tile:hover {
  color: var(--coral-color);
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80vh;
}

#contact > p {
  font-size: 1.8rem;
  color: var(--white-color);
  padding-top: 1rem;
}

#contact-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 0 5rem 0;
}

.contact-icon {
  display: flex;
  padding: 3rem;
}

.contact-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white-color);
  font-size: 2rem;
  transition: all 1s;
}

.contact-icon a:hover {
  color: var(--coral-color);
}

a > p {
  padding-left: 1rem;
  font-size: 3rem;
}

#contact,
footer {
  background-color: #303841;
  color: var(--white-color);
}

footer {
  width: 100%;
  border-top: 0.4rem solid var(--orangered-color);
  padding: 4.2rem;
  font-size: 1.8rem;
  text-align: center;
}

footer span{
  color: var(--orangered-color)
}

@media only screen and (max-width: 900px) {
  h1 {
    text-align: center;
    font-size: 5rem;
  }

  #welcome-section > p {
    text-align: center;
  }

  #projects-grid{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media only screen and (max-width: 460px) {
  #header .logo h3 {
    display: none;
  }

  #flex-tools{
    margin: 0 auto;
    padding: 3rem;
  }

  .single-tool img{
    width: 100px;
  }

  .small img{
    width: 140px;
  }

  #projects-grid{
    padding-left: 1rem;
  }
  
}
