:root {
  --main-font: 'Roboto', 'Arial Narrow', Arial, sans-serif;
  --text-color: rgb(198, 198, 198);
  --bg-color: #141414;
  --highlight-color: #ffffff;
  --border-color: #737373;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Roboto";
  src: url("Roboto-VariableFont_wdth,wght.ttf");
}

body {
  font-family: var(--main-font);
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-content {
  padding: 0 15%;
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: linear-gradient(180deg, #383a41a3, rgba(32, 32, 32, 0));
  backdrop-filter: blur(15px);
  box-shadow: #161616 0px 0px 10px;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: flex-end;
  margin: 20px 10% 0 0;
}

.nav ul {
  display: flex;
}

.nav ul li {
  list-style: none;
  margin-right: 4rem;
  font-size: 18px;
}

.nav ul li:last-child {
  margin-right: 0;
}

.nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: aliceblue;
}

.nav ul li a:focus {
  outline: 2px dashed var(--highlight-color);
  outline-offset: 4px;
}

h1, h2, h3, p {
  font-family: var(--main-font);
}

h1 {
  font-size: 5em;
  padding-bottom: 10px;
  transition: transform 0.8s, color 0.4s;
}

h2 {
  font-size: 3.5em;
  transition: transform 0.8s, color 0.4s;
}

h3 {
  font-size: 1.5em;
  padding-bottom: 15px;
}

section {
  padding: 150px 0;
}

section:first-child{
    padding-top: 200px;
}

section:nth-child(2), section:nth-child(4){
    margin-top: -150px;
}

section:nth-child(3){
    margin-top: -150px;
}

section:nth-child(5){
    height: 370px;
    margin-top: -150px;
}

.about-roles-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 28px;
  font-weight: bold;
  color: var(--border-color);
  margin-top: 100px;
}

.about-text #about-colored {
  color: var(--highlight-color);
}

.about-role {
  flex: 1;
  text-align: center;
}

.about-role:first-child {
  text-align: left;
}

.about-role:last-child {
  text-align: right;
}

.work-header h2,
.work-header p,
.contact-content h2,
.contact-content p {
  display: flex;
  justify-content: flex-start;
}

.project-item {
  margin-top: 50px;
}

.project-title .inner-container {
  display: inline-flex;
  margin-right: 15px;
}

.project-item .project-title .inner-container h3 a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.5s;
}

.project-item .project-title .inner-container h3 a:hover {
  color: var(--highlight-color);
}

.skill-items {
  display: flex;
  justify-content: flex-start;
  margin-top: 15px;
}

.skill-items ul {
  display: flex;
  flex-wrap: wrap;
}

.skill-items ul li {
  list-style: none;
  margin-right: 1rem;
  margin-bottom: 10px;
  font-size: 16px;
  border: 3px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
}

.project-item hr {
  margin-top: 35px;
  border: 1px solid #404040;
}

.contact-content .contact-email p {
  font-size: 18px;
  padding: 25px 0 35px 0;
  transition: font-weight 0.7s, color 0.3s;
}

.contact-options ul {
  list-style: none;
  font-size: 18px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.contact-options ul li {
  padding-right: 70px;
  transition: font-weight 0.7s, color 0.3s;
}

.contact-options ul li a,
.contact-content .contact-email p a {
  text-decoration: none;
  color: aliceblue;
}

.contact-options ul li:hover,
.contact-content .contact-email p:hover {
  font-weight: bold;
  color: var(--highlight-color);
}

footer {
  position: relative;
  display: flex;
  justify-content: center;
}

footer p {
  margin: 25px 0 50px;
  text-align: center;
}

h1:hover,
.work-header h2:hover,
.contact-content h2:hover {
  transform: translateY(-5px);
  color: var(--highlight-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    

  .page-content {
    padding: 0 5%;
  }

  .hamburger {
    display: flex;
    margin-right: -20px !important;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-end;
  }

  .about-roles-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-role {
    margin-bottom: 20px;
  }

  .skill-items ul {
    justify-content: center;
  }

  .contact-options ul {
    flex-direction: column;
  }

  .contact-options ul li {
    padding-right: 0;
    padding-bottom: 10px;
  }
}

/* 1. Reduce section height & spacing on small screens */
@media (max-width: 768px) {
    section {
        height: auto;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    section:first-child {
        padding-top: 140px;
    }

    section:nth-child(2), section:nth-child(4) {
        margin-top: -80px;
    }

    section:nth-child(3), section:nth-child(5) {
        margin-top: -90px;
    }
}

/* 2. Colored text dot fix */
#text-colored::after {
    content: ".";
    color: rgb(255, 255, 255);
    margin-left: 2px;
    display: inline;
}

/* 3. Adjust project/experience date positioning */
.inner-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inner-container h3 {
    margin: 0;
    padding: 0;
}

.inner-container .project-date {
    font-size: 0.9em;
    color: #737373;
    margin-left: auto;
    padding-left: 10px;
}

/* Space between title and paragraph */
.project-item p {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Hamburger button styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  z-index: 101;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Nav Menu base state */
#mobileMenu {
  display: flex;
  justify-content: flex-end;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-right: 5%;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
    padding-right: 5%;
  }

  #mobileMenu {
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background-color: var(--bg-color);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: flex-end;
    padding: 20px 10%;
    gap: 15px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #mobileMenu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav ul li {
    margin: 10px 0;
    font-size: 18px;
  }

  .project-images img {
    max-width: 325px !important;
    height: auto;
  }
}

.project-links{
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.project-links a{
    text-decoration: none;
    color: rgb(198, 198, 198);
    font-size: 20px;
    margin: auto;
    transition: color 0.5s;
    font-family: 'Roboto', Arial, sans-serif;
}

.project-images img {
    border-radius: 12px;
    max-width: 600px;
    height: auto;
    box-shadow: 0 0 15px rgba(161, 161, 161, 0.1);
    transform: scale(1);
    opacity: 0.2;
    transition: transform 1s ease, opacity 2s ease;
}

.project-images img:hover {
    transform: scale(1.05);
}

/* Visible state */
.project-images img.in-view {
    opacity: 1;
    transform: scale(1);
}
.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    /* Centering */
    justify-content: center;
    align-items: center;
}

.project-features ul{
    margin-top: 10px;
    margin-left: 40px;
}