/* Google Fonts' Poppins:700 and Roboto:400 Import */
@import url('https://fonts.googleapis.com/css?family=Roboto:700|DM%20Sans:400');

/* My Personal Website's Color Palette Set-up (DARK THEME) */
:root {
  --text: hsl(331, 81%, 95%);
  --background: hsl(291, 100%, 4%);
  --primary: hsl(353, 76%, 70%);
  --secondary: hsl(323, 88%, 16%);
  --secondary10: hsl(323, 88%, 16%, 10%);
  --secondary20: hsl(323, 88%, 16%, 20%);
  --secondary30: hsl(323, 88%, 16%, 30%);
  --tertiary: hsl(297, 43%, 9%);
  --accent: hsl(41, 88%, 56%);
  --linearPrimaryAccent: linear-gradient(90deg, hsl(353, 76%, 70%), hsl(41, 92%, 65%));
  --linearPrimaryAccentPrimary: linear-gradient(45deg, hsl(353, 76%, 70%), hsl(41, 92%, 65%), hsl(353, 76%, 70%));
  --transparent1: rgba(255, 255, 255, 0.1);
  --transparent2: rgba(255, 255, 255, 0.5);

  --media: 0.85rem;
}

/* Font and Headings Set-up */
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

html {font-size: 100%;}

h1 {font-size: 4.110rem;}

h2 {font-size: 3.158rem;}

h3 {font-size: 2.369rem;}

h4 {font-size: 1.777rem;}

h5 {font-size: 1.333rem;}

small {font-size: 0.770rem;}

/* Normalization of default values of HTML elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background-color: var(--background);
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

/* *Reusable Styles Set-up */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 8%;
}

.section-title-1 {
  position: relative;
  margin-bottom: 50px;
  padding-bottom: 3px;
  background: var(--linearPrimaryAccent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-title-1:before {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  bottom: 0;
  right: 0;
  background: var(--accent);
}

.section-title-2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 3px;
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Button Styles*/
.btn {
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 30px;
  line-height: 2.25;
}

.primary-btn {
  padding: 0.5em 2em;
  background-color: var(--primary);
  color: var(--background);
  border-radius: 0.5rem;
  transition: transform ease 0.2s, box-shadow ease 0.2s;
  display: inline-block;
  font-size: var(--p);
  z-index: 2;
  white-space: nowrap;
}

.primary-btn:hover {
  transform: translate(0, -3px);
  box-shadow: 0 20px 80px -10px var(--primary);
}

.secondary-btn {
  padding: 0.5em 2em;
  background-color: var(--secondary30);
  color: var(--text);
  border-radius: 0.5rem;
  display: inline-block;
  font-size: var(--p);
  z-index: 1;
  cursor: pointer;
  transition: transform ease 0.2s;
  white-space: nowrap;
}

.secondary-btn:hover {
  transform: translate(0, -3px);
  transition: transform ease 0.2s;
}

.accent-pill {
  font-size: small;
  display: inline-block;
  color: var(--background);
  margin-top: 10px;
  margin-right: 0.3rem ;
  padding: 0.45em 1.20em;
  border-radius: 1.20em;
  background-color: var(--accent);
}

/* Scroll Bar Styles */
::-webkit-scrollbar {
  width: 9px;
  background: var(--transparent1);
}

::-webkit-scrollbar-thumb {
  background: var(--transparent1);
  border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--transparent2);
}

/* *Media Queries and Breakpoints */

/* *Screen sizes at max-width of 1024px */
@media screen and (max-width: 1024px) {
  /* *Home Media Queries */
  .home {
    margin-left: 4% !important; 
    margin-right: 4% !important;
  }

  .home .home-container {
    flex-direction: column;
  }

  .home-container .home-img {
    order: 1;
  }
  
  .home-container .social-icons { 
    order: 2;
  }

  .home-container .info {
    order: 3;
  }

  .home-container .home-img,
  .home-container .social-icons,
  .home-container .info {
    width: 100%;
  }

  .home-container .social-icons {
    flex-direction: row !important;
    margin-bottom: 20px;
  }

  .home-container .social-icons a {
    margin-right: 30px !important;
  }

  /* *About Media Queeroes */
  .about .container .content {
    flex-direction: column;
    align-items: center;
    width: 100%;
    row-gap: 20px;
  }

  /* *Projects Media Queries */
  .project-modal .project-modal-content {
    font-size: var(--media);
  }

  /* *Contact Media Queries*/

  /* *Footer Media Queries */
  .footer footer-container {
    flex-direction: column;
  }
  
  .footer-container .about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .footer-content .info ul,
  .footer-content .socials ul {
    align-items: center;
    flex-direction: column;
  }

  .footer-content .info li,
  .footer-content .socials li {
    margin: 10px 0;
  }

  .footer-content .hr {
    width: 100%;
    height: 2px;
    background: var(--secondary);
    margin: 10px 0;
  }

  .footer .footer-content {
    flex-direction: column;
    margin-right: 0;
  }
}

/* *Screen sizes at max-width of 768px */
@media screen and (max-width: 768px) {
  /* *General Styling Media Queries */
  body {
    margin: 3rem 0 0 0;
  }

  .section-title-2,
  .section-title-1 {
    font-size: 3em;
  }

  .stars {
    display: none;
  }
}