/* ========================================
   IMPORTS & FONTS
======================================== */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

/* ========================================
   CSS RESET & VARIABLES
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent-1: #5f5aa2;
  --primary-1: #312b77;
  --background-neutral-dark: #1c1c1c;
  --background-neutral: #898899;
  --text: hsl(0, 0%, 100%);
  --nav: #3f4045;
}

/* ========================================
   BASE STYLES
======================================== */
body {
  font-family: "Red Hat Display", 'Arial Narrow Bold', sans-serif, sans-serif;
  background-color: var(--background-neutral);
  color: var(--text-1);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================
   LAYOUT COMPONENTS
======================================== */
header {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin-top: 75px;
  padding-bottom: 50px;
  display: flex;
  justify-content: center;
  color: var(--text);
}

.subtext {
  color: grey;
  text-align: center;
}

/* ========================================
   BUTTONS & CTAs
======================================== */
#backBtn {
  position: fixed;
  bottom: 10%;
  width: 135px;
  height: 45px;
  background: var(--primary-1);
  color: var(--text);
  border-radius: 20px;
  border: none;
  display: flex;
  font-family: "Red Hat Display";
  font-size: 16px;
  justify-content: center;
  align-items: center;
}

.cta-btn-accent {
  width: 135px;
  height: 45px;
  background: var(--primary-1);
  color: var(--text);
  border-radius: 20px;
  border: none;
  display: flex;
  font-family: "Red Hat Display";
  justify-content: center;
  align-items: center;
}

.cta-btn-accent img {
  margin-right: 10px;
  max-width: 26px;
  max-height: 26px;
}

.cta-btn-accent-dropdown {
  width: 135px;
  height: 45px;
  background: var(--primary-1);
  color: var(--text);
  border-radius: 20px;
  border: none;
  display: flex;
  font-family: "Red Hat Display";
  font-size: 16px;
  justify-content: center;
  align-items: center;
}

.cta-btn-accent-dropdown img {
  margin-right: 10px;
  max-width: 26px;
  max-height: 26px;
}

.TOC-button {
  background: none;
  color: var(--text);
  font-family: "Red Hat Display";
  display: inline-flex;
  font-weight: 500;
  border: none;
  gap: 10px;
  font-size: 16px;
}

/* ========================================
   NAVIGATION
======================================== */
nav {
  margin-top: 50px;
  align-items: center;
  display: flex;
  width: 340px;
  height: 50px;
  background-color: var(--nav);
  border-radius: 36px;
  flex-shrink: 0;
  font-size: 16px;
  position: relative;
  justify-content: center;
}

nav .nav-links {
  width: 300px;
  height: 35px;
  display: flex;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  margin: 0 auto;
}

nav .nav-links li {
  list-style: none;
  width: 70px;
}

.active {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-1);
  max-width: 70px;
  height: 34px;
  padding: 7px;
  border-radius: 36px;
}

/* ========================================
   NAVIGATION DROPDOWN
======================================== */
#dd-content {
  display: none;
}

.navDropDown {
  border-radius: 26px 26px 0 0;
}

#dd-content.dropdown-active {
  font-size: 16px;
  font-family: "Red Hat Display";
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 50px;
  left: 0;
  right: 0;
  background-color: var(--nav);
  width: 100%;
  z-index: 1;
  gap: 40px;
  padding: 30px 0;
  border-radius: 0 0 36px 36px;
  transition: 0.75s, ease-in-out;
}

#dd-content.dropdown-active .dropdown-item {
  border-style: none;
  background: none;
  color: var(--text);
  font-size: 16px;
  font-family: "Red Hat Display";
}

#dd-content.dropdown-active a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* ========================================
   CONTENT COMPONENTS
======================================== */
.article-content {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 300px;
  align-items: center;
  justify-content: center;
  line-height: 150%;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content p {
  color: var(--text);
}

.article-content .intro-section {
  margin-top: 50px;
}

.article-content section {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.article-content .general-list {
  display: flex;
  flex-direction: column;
  gap: .5em;
}

.article-content .general-list .general-list-items {
  padding-left: 1em;
  list-style: inside;
  color: var(--text);
}

.project-card {
  max-width: 350px;
  height: 265px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-card img {
  width: 300px;
  height: 240px;
  border-radius: 20px;
}

.project-card .card-content {
  position: absolute;
}

.project-card .card-content h2 {
  color: #fff;
  font-family: "Red Hat Display";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.notes-card {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 350px;
  position: relative;
  margin-bottom: 50px;
}

.notes-card img {
  border-radius: 30px;
  width: 300px;
  height: 240px;
}

.notes-card h2 {
  text-align: center;
  position: absolute;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  width: 250px;
  line-height: normal;
  background: rgba(0, 0, 0, 0.5);
}

.note-card-template-body {
  background: var(--background-neutral);
  display: flex;
  flex-direction: row;
}

.note-card-template h2,
.note-card-template p {
  color: var(--text);
}

.note-card-template {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  max-width: 900px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 15px 0;
  position: relative;

  h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  p {
    max-width: 400px;
  }

  .note-date {
    font-size: 14px;
    position: absolute;
    bottom: 15px;
    opacity: 0.8;
  }
}

/* ========================================
   TABLE OF CONTENTS
======================================== */
#TOC-section {
  display: flex;
  width: 80%;
  justify-content: left;
  padding: 30px 0;
}

#TOC-section ul {
  list-style: none;
}

#TOC-section li {
  list-style: none;
}

.TOC-content-hidden {
  display: none;
}

.TOC-content-visible {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding-left: 0;
}

.TOC-content-visible ul {
  gap: 10px;
}

/* ========================================
   PAGE: LANDING
======================================== */
#landing-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#landing-hero h1 {
  color: var(--primary-1);
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 3.84px;
  margin-top: 10vh;
}

#landing-hero span {
  color: var(--accent-1);
}

#landing-hero p {
  margin-top: 45px;
  margin-bottom: 60px;
  text-align: center;
  font-family: "Red Hat Display";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: var(--text);
}

#hero-logo-background {
  display: none;
}

#landing-email-btn {
  margin-bottom: 210px;
}

/* ========================================
   PAGE: ABOUT
======================================== */
#about-body {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background: var(--accent-1); */
  background: var(--background-neutral);
  color: var(--text);
}

#about-content p {
  font-size: 16px;
  font-style: normal;
  line-height: normal;
  max-width: 310px;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 70px;
}

.about-hero-text-img {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-hero-text-img h1 {
  position: absolute;
  max-width: 185px;
  text-shadow: 2px 2px 4px #000000;
  top: 45%;
  left: 15%;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.about-hero-text-img img {
  margin-top: 80px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
}

.about-skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 75px;
}

#skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  gap: 20px;
  margin-bottom: 70px;
}

#skills-grid img {
  width: 90px;
  height: 90px;
  background: var(--primary-1);
  padding: 20px;
  border-radius: 20px;
}

#about-contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#about-contact-cta h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px;
}

/* ========================================
   PAGE: NOTES
======================================== */
#notes-content {
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

#notes-content p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  /* max-width: 270px; */
}

.notes-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.notes-hero h4 {
  margin-top: 10vh;
  text-align: center;
}

.notes-hero p {
  margin-top: 10px;
  text-align: left;
}

/* ========================================
   PAGE: FIGMA NOTE
======================================== */
#figma-note-body {
  background-color: var(--background-neutral-dark);
}

#figma-note-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
}

#figma-note-h1 {
  margin: 60px 0 40px 0;
  color: #FFF;
  font-family: "Red Hat Display";
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

#figma-note-main h2 {
  margin-bottom: 20px;
}

#figma-note-main img {
  margin: 15px 0;
  max-width: 300px;
}

#figma-note-main p {
  margin: 10px 0;
}

/* ========================================
    ANIMATIONS
======================================== */
/* keyframes dropdownFadeIn { */
/*   0% { */
/*     opacity: 0; */
/*     transform: translateY(-10px); */
/*   } */
/**/
/*   100% { */
/*     opacity: 1; */
/*     transform: translateY(0); */
/*   } */
/* } */

/* ========================================
   MEDIA QUERIES - TABLET (768px+)
======================================== */

/* ========================================
   MEDIA QUERIES - DESKTOP (1400px+)
======================================== */
@media (min-width: 1400px) {

  /* Base Layout */
  body {
    padding: 0 5%;
  }

  /* Buttons */
  #about-contact-cta button,
  #backBtn,
  #landing-email-btn {
    width: 200px;
    height: 60px;
    font-size: 20px;
    border-radius: 30px;
  }

  /* Landing Page */
  #desktop-landing-hero-top-content {
    display: flex;
    align-items: center;
    gap: 50px;
  }

  #landing-hero h1 {
    max-width: 812px;
    font-size: 128px;
    line-height: 110%;
  }

  #landing-hero p {
    text-align: center;
    font-family: "Red Hat Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 800px;
  }

  #hero-logo-background {
    width: 300px;
    height: 300px;
    margin-top: 195px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--accent-1);
    border-radius: 50%;
  }

  #hero-logo {
    width: 250px;
    z-index: 1;
    margin-top: 40px;
  }

  /* About Page */
  .about-hero-text-img {
    display: flex;
    justify-content: center;
  }

  .about-hero-text-img img {
    position: relative;
    left: 0%;
    width: 500px;
    height: 500px;
  }

  .about-hero-text-img h1 {
    position: absolute;
    font-size: 70px;
    max-width: 320px;
    top: 35%;
    left: 10%;
  }

  #about-hero-top-desktop {
    display: flex;
    align-items: center;
    gap: 100px;
    margin-bottom: 100px;
  }

  #about-hero-top-desktop p {
    max-width: 500px;
    font-size: 24px;
  }

  #skills-grid {
    grid-template-columns: repeat(6, 1fr);
    column-gap: 40px;
    gap: 40px;
  }

  #skills-grid img {
    width: 110px;
    height: 110px;
    padding: 25px;
  }

  .about-skills {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-skills #skills-text {
    font-size: 24px;
    max-width: 800px;
    margin-bottom: 50px;
    text-align: center;
  }

  #about-contact-cta {
    margin-bottom: 100px;
  }

  #about-contact-cta h2 {
    font-size: 56px;
    max-width: 700px;
    margin-bottom: 50px;
  }

  /* Notes Page */
  #notes-content h4 {
    max-width: 500px;
    font-size: 24px;
  }

  #notes-content p {
    font-size: 20px;
    max-width: 450px;
  }

  /* Figma Note Page */
  #figma-note-main {
    max-width: 800px;
  }

  #figma-note-main ul {
    padding-bottom: 100px;
  }

  #figma-hero-section {
    align-items: left;
    justify-content: left;
  }

  #figma-note-h1 {
    font-size: 64px;
    max-width: 800px;
  }

  #TOC-section ul {
    display: flex;
    gap: 40px;
  }

  #figma-note-main img {
    max-width: 600px;
  }
}
