/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

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

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--primary-color);
  color: #111;
  font-weight: var(--weight-bold);
}

.skip-link:focus {
  top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible + label {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-social a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--bg-primary);
  font-size: 1.15rem;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-social a:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: #111;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

/* Experience */
#experience,
#tech-stack {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-card {
  padding: 2rem;
  border-radius: 5px;
  background: var(--card-background);
}

.experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text-color) 18%, transparent);
}

.experience-company {
  margin-bottom: 0.25rem;
  color: #8b6800;
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .experience-company {
  color: var(--primary-color);
}

.experience-heading h3 {
  font-size: 1.25rem;
}

.experience-meta {
  flex: 0 0 auto;
  color: var(--text-color);
  font-size: 0.82rem;
  text-align: right;
}

.experience-card ul {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.experience-card li {
  padding-left: 0.3rem;
  color: var(--text-color);
}

/* Tech stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.stack-card {
  padding: 1.75rem;
  border-radius: 5px;
  background: var(--card-background);
}

.stack-card h3 {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stack-card li {
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--text-color) 18%, transparent);
  border-radius: 30px;
  background: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.9rem;
}

.card .project-bio h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem 0;
  opacity: 1;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: calc(100% - 2.25rem);
}

.card .project-stack {
  margin-bottom: 0.55rem;
  color: #7a5b00;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
}

.card .project-summary {
  color: var(--text-color);
  font-size: 0.79rem;
  line-height: 1.45;
}

.project-link {
  flex: 0 0 auto;
  padding-top: 0.1rem;
}

[data-theme="dark"] .card .project-stack {
  color: var(--primary-color);
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

#footer .attribution {
  margin-bottom: 0.45rem;
}

#footer .attribution a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .project-info {
    opacity: 1;
  }

  .experience-heading {
    flex-direction: column;
    gap: 0.6rem;
  }

  .experience-meta {
    text-align: left;
  }

  .experience-card {
    padding: 1.4rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2.75rem;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}
