/*
A CSS pseudo-class is a keyword added to a selector that specifies a special state of the selected element(s).
- Hovers: mouse is over an element.
- Focus: element is selected - state that can persist.
- Active: while pressing - persistent act - immeadiate state.
*/

/* FONTS */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
/* ----- */

:root {
  /* COLORS */
  --primary-color: #111;
  --paragraph-color: #787777;

  --border-color: #e8e6e1;
  --border-color-darker: #d8d4cc;

  --background-color-light: #fff;
  --background-color: #fafafa;
  --background-color-darker: #f4f4f4;

  --shadow-color: #e4e4e4;

  --hover-color: #a9907e;

  /* SPACING */
  --spacing-none: 0rem;
  --spacing-xSM: 0.25rem;
  --spacing-SM: 0.5rem;
  --spacing-MD: 1rem;
  --spacing-LG: 1.5rem;
  --spacing-xLG: 2rem;
  --spacing-2xLG: 3rem;
  --spacing-3xLG: 4rem;
  --spacing-4xLG: 6rem;
  --spacing-sections-y: 10rem;
  --spacing-sections-x: 1rem;
  --gap-columns: 1rem;

  /* TEXT */
  --font-size-SM: 0.85rem;
  --font-size-MD: 1rem;
  --font-size-LG: 1.2rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* RADIUS */
  --radius-SM: 0.5rem;
  --radius-MD: 1rem;
  --radius-LG: 1.5rem;
  --radius-pill: 100rem;

  /* TRANSITION */
  --transition: 0.5s;

  /* BOX SHADOW */
  --box-shadow-grey: inset 0 1px 2px #00000008,
    0 0 0 1px var(--background-color-light);
  --box-shadow-white: inset 0 -4px 0px 0px #00000010,
    0 1px 2px var(--shadow-color);
}

/* TYPOGRAPHY */
h1 {
  color: var(--primary-color);
  font-size: 3rem;
  font-weight: var(--font-weight-medium);
  margin: 0 0 1.5rem 0;
}

h2 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: var(--font-weight-medium);
  margin-top: 0;
  margin-bottom: var(--spacing-2xLG);
  text-align: center;
}

h3 {
  color: var(--primary-color);
  font-size: var(--font-size-LG);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-SM);
}

h4 {
  color: var(--paragraph-color);
  font-size: 1.2rem;
  font-weight: var(--font-weight-regular);
  margin: 0 0 1.5rem 0;
}

.paragraph {
  color: var(--paragraph-color);
  font-size: var(--font-size-MD);
  font-weight: var(--font-weight-regular);
  line-height: 1.6rem;
}

.divider {
  box-sizing: border-box;
  display: block;
  height: 1px;
  background: var(--border-color);
  width: 100%;
  padding: 0 var(--spacing-MD);
}

/* BUTTONS */
a {
  text-decoration: none;
  color: var(--paragraph-color);
  font-size: var(--font-size-SM);
  transition: 0.5s;
  border-bottom: none;
}

a:hover {
  color: var(--primary-color);
}

.button-icon {
  margin-right: var(--spacing-xSM);
}

.button-icon-alt {
  margin-left: var(--spacing-xSM);
}

.btn-primary {
  padding: var(--spacing-SM) var(--spacing-MD);
  background-color: var(--background-color-light);
  border-radius: var(--radius-SM);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  cursor: pointer;
  display: block;
  position: relative;
  transition: 0.5s;
  box-shadow: var(--box-shadow-white);
  display: inline-block;

  i {
    margin-right: var(--spacing-SM);
  }
}

.btn-primary:hover {
  background-color: var(--background-color);
  border: 1px solid var(--border-color-darker);
  box-shadow: inset 0 -2px 0px 0px #00000015, 0 1px px #00000020;
}

.btn-primary:active {
  box-shadow: none;
  background-color: var(--background-color-darker);
  color: #11111199;
}

/* ANIMATIONS */

@keyframes slide-in {
  from {
    transform: translateY(-2rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes moving {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes section-slide {
  from {
    transform: translateX(2rem);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* GENERAL */

html {
  margin: 0 auto;
  max-width: 1280px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  box-sizing: border-box;
  font-size: 1rem;
  color: var(--primary-color);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background-color: var(--background-color);
  margin: auto;
  overflow-x: hidden;
}

section {
  margin: var(--spacing-sections-y) var(--spacing-sections-x);
}

.cols {
  display: flex;
  flex-direction: row;
  gap: var(--gap-columns);
}

.block-style {
  padding: var(--spacing-SM) var(--spacing-MD);
  background-color: var(--background-color-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-SM);
  box-shadow: inset 0 -4px 0px 0px var(--background-color-darker),
    0 1px 4px #00000015;
}

.image-shadow {
  box-shadow: inset 0 -2px #0000000d, inset 0 0 0 1px #fff,
    inset 0 4px 2px #0000000f, inset 0 0 24px 4px #0000000a, 0 1px 3px #0000001f;
  border: 4px solid #fff;
}

/* NAVIGATION */
nav {
  margin: 0;
  top: 0rem;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: center;
  background-color: #fafafacf;
  backdrop-filter: blur(5px);
  padding: var(--spacing-MD);
  border-bottom: 1px solid var(--background-color);
  position: relative; /* Default position */
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1; /* Fully visible by default */
  transform: translateY(0); /* No movement by default */
  z-index: 1000;

  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
  }

  /* Project page specific navigation layout */
  .navbar.sticky .content {
    display: flex;
    width: 100%;
    align-items: center;
  }

  .navbar.sticky .back-btn-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .navbar.sticky .project-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;

  }

  .navbar.sticky .nav-items {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    width: 240px;
  }

  .nav-logo:hover {
    opacity: 0.7;
  }

  .nav-logo img {
    width: 20px;
  }

  .nav-title {
    margin-left: var(--spacing-SM);
    font-weight: 500;
    font-size: var(--font-size-SM);
  }

  .nav-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-SM);
    width: 240px;
  }

  .nav-link {
    padding: var(--spacing-xSM) var(--spacing-SM);
    border-radius: var(--radius-LG);
    transition: 0.5s;
  }

  .nav-link.alt {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-MD);
    width: 16px;
    height: 24px;
  }

  .nav-link:hover {
    background-color: #11111110;
  }

  .btn-primary {
    margin-left: var(--spacing-SM);
  }
}

.navbar.sticky {
  box-sizing: border-box;
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  padding: var(--spacing-MD);
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fafafacf;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #e8e6e190;
  transform: translateY(0); /* Reset translation */
  opacity: 1; /* Fully visible */
}

.sticky.sticky-animate {
  animation: slideIn 0.3s ease forwards;
  transition: 0.5s;
}

/* Keyframe animation for sliding in */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar.sticky-hide {
  opacity: 0;
  transform: translateY(-20px);
}

/* Animation for sliding in */
.sticky.sticky-animate {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* HEADER */
header {
  margin: 0;
  padding: var(--spacing-4xLG) var(--spacing-LG);
  height: 480px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  gap: var(--spacing-3xLG);
  animation: section-slide 0.5s ease;

  h1 {
    text-align: left;
    margin: var(--spacing-xLG) 0;
  }

  .header-text {
    width: 90%;
  }

  span {
    color: var(--paragraph-color);
    font-weight: var(--font-weight-regular);
  }
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  position: relative;
}

.profile-pic {
  padding-bottom: 0;
}

.profile-pic img {
  width: 148px;
  height: 148px;
  border-radius: var(--radius-pill);
  transition: 0.5s;
}

.profile-pic img:hover {
  transform: rotate(-15deg);
}

/* ABOUT ME */

.about-me__info h2 {
  text-align: left;
  margin: 0;
  margin-bottom: var(--spacing-MD);
}

.about-me__info {
  width: 100%;
}

.tabs {
  display: flex;
  flex-direction: row;
  width: fit-content;
  margin-bottom: var(--spacing-xLG);
  gap: var(--spacing-xSM);
  background-color: var(--background-color-darker);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  padding: var(--spacing-xSM);
  box-shadow: var(--box-shadow-grey);

  .tabs__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-SM) var(--spacing-MD);
    border-radius: var(--radius-pill);
    border: 1px solid var(--background-color-darker);
    text-align: center;
    transition: var(--transition);
    font-size: var(--font-size-SM);
    color: var(--paragraph-color);
    cursor: pointer;
  }

  .tabs__item:hover {
    background: var(--background-color-light);
    box-shadow: var(--box-shadow-white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
  }

  .active {
    background: var(--background-color-light);
    box-shadow: 0 1px 2px var(--shadow-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
  }

  .active:hover {
    box-shadow: none;
  }
}

.tab__content {
  display: none;
  animation: moving 0.5s ease;
}

.tab__content.active {
  display: block;

  a:hover {
    opacity: 0.5;
  }
}

/*ABOUT ME - about me*/

.about-me__info__tab__aboutme {
  h3 {
    margin-bottom: var(--spacing-MD);
  }
  .paragraph {
    margin-bottom: var(--spacing-MD);
  }
}

.about-me__info__highlights {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-MD);
  margin-top: var(--spacing-LG);

  .about-me__info__highlights_topic {
    width: 100%;
  }
  .about-me__info__highlights_topic h3 {
    padding-left: var(--spacing-MD);
    border-left: 4px solid var(--border-color);
    margin-bottom: var(--spacing-none);
  }

  .about-me__info__highlights_topic .paragraph {
    padding-left: var(--spacing-MD);
  }
}

/*ABOUT ME - experience */

.experience {
  margin-top: var(--spacing-LG);
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: var(--font-size-SM);

  .experience__year {
    width: 100px;
    color: var(--paragraph-color);
  }

  .experience__role {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--primary-color);
  }

  .experience__role a {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: var(--primary-color);
  }

  .experience__role img {
    width: 16px;
    margin: 0 var(--spacing-SM);
    filter: grayscale(100%);
  }
}

.tab__content .divider {
  margin: var(--spacing-xLG) 0;
}

/*ABOUT ME - skills */
.skill {
  h3 {
    margin-bottom: var(--spacing-MD);
  }

  .skill_images {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xSM);

    img {
      width: 28px;
      padding: var(--spacing-SM);
      transition: 0.5s;
      background-color: var(--background-color);
      border: 1px solid var(--background-color);
      border-radius: var(--radius-SM);
      box-shadow: none;
    }

    img:hover {
      background-color: var(--background-color-darker);
      border: 1px solid var(--border-color);
      box-shadow: var(--box-shadow-grey);
    }
  }

  .project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-SM);
  }
}

.tooltip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
}

/* Tooltip text */
.tooltip .tooltiptext {
  font-size: var(--font-size-SM);
  visibility: hidden;
  width: 88px;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-align: center;
  padding: var(--spacing-SM);
  border-radius: var(--radius-SM);
  border: var(--border-color-darker);
  box-shadow: var(--box-shadow-grey);

  position: absolute;
  z-index: 1;
  /* Position top */
  bottom: 108%;
  left: 00%;
  margin-left: -28px;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  animation: slide-in 0.5s ease;
  transition: 0.5s;
}

/* SERVICES */

.services {
  margin: var(--spacing-3xLG) var(--spacing-sections-x)
    var(--spacing-sections-y);
  padding: var(--spacing-2xLG);
  background-color: var(--background-color-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-MD);
  box-shadow: var(--box-shadow-grey);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xLG);
  background-image: url(images/background-bottom.svg);
  background-position: bottom;

  h2 {
    margin: var(--spacing-SM) 1rem;
  }

  .cols {
    padding: var(--spacing-MD) 0;
    gap: var(--spacing-xLG);
  }
}

.services__card {
  width: 100%;

  /*
  padding: var(--spacing-MD);
  border-radius: var(--radius-MD);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.011);
  border-radius: var(--radius-MD);
  box-shadow: var(--box-shadow-grey);
  border: 1px solid var(--border-color);
  background-image: url(images/background-card.svg);
  background-position: top;
  */

  h3 {
    margin-top: var(--spacing-LG);
  }
}

.icon img {
  width: 28px;
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color-light);
  border-radius: var(--radius-SM);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-SM);
}

/* PROJECTS */

.projects {
  margin-bottom: 0;
}

.project.cols {
  gap: var(--spacing-2xLG);
}

.project h3 {
  margin-top: none !important;
  margin-bottom: 0px;
}

.project {
  padding: var(--spacing-MD);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-LG);
  box-shadow: inset 0 1px 2px #00000008, 0 0 0 1px var(--background-color-light);
  transition: var(--transition);
  margin-bottom: var(--spacing-LG);

  .project__description__text__company {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-SM);
    margin-bottom: var(--spacing-SM);

    .project__description_logo {
      width: 20px;
      filter: grayscale(100%);
      transition: var(--transition);
    }
  }

  .project-image {
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: var(--radius-MD);
    border: 1px solid var(--border-color);
  }
  .project-image img {
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: var(--transition);
    object-fit: cover;
  }
}

.project__tags {
  .project__tags_tag {
    padding: var(--spacing-xSM) var(--spacing-SM);
    background-color: var(--background-color-darker);
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-SM);
    font-size: var(--font-size-SM);
  }
}

.project:hover {
  background-color: var(--background-color);
  box-shadow: inset 0 -4px 0px 0px var(--background-color-darker),
    0 1px 4px var(--shadow-color);
  cursor: pointer;

  .project-image img {
    transform: scale(1.1);
  }

  .project__description_logo {
    filter: grayscale(0%);
    transition: var(--transition);
  }
}

.project__description {
  width: 60%;
  padding: 0 var(--spacing-MD);
}

.project__description__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-SM);
  margin-bottom: var(--spacing-LG);
}

/* SHOTS */

.shots {
  margin-top: 0;
  background-color: var(--background-color-darker);
  overflow: hidden;
  padding: var(--spacing-xLG);
  border-radius: var(--radius-MD);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-grey);
  animation: moving 0.5s ease;

  a {
    font-size: var(--font-size-MD);
  }

  h3 {
    margin: 0px !important;
  }
}

.shots_title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-LG);
}

.shots h3 {
  text-align: left;
  margin-bottom: var(--spacing-xLG);
}

.shots img {
  width: 100%;
  object-fit: cover;
  width: 400px;
  height: 280px;
  border-radius: var(--radius-MD);
}

.scroller {
  max-width: 100%;
}

.scroller__inner {
  padding-block: var(--spacing-xSM);
  flex-wrap: wrap;
}

/*

 HIDE OVERFLOW AND GRADIENT
.scroller[data-animated="true"] {
  overflow: hidden; 
  mask: linear-gradient(
    to right,
    transparent,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  
}

*/

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll 28s linear infinite;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

/* TESTIMONIALS */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--spacing-MD);
  color: var(--paragraph-color);
  font-size: var(--font-size-md);
  line-height: 1.5rem;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-MD);

  .testimonial__quote i {
    color: #d5d5d5;
    font-size: 32px;
    padding-bottom: var(--spacing-SM);
  }

  .testimonial__person {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-MD);

    .testimonial__person__avatar img {
      width: 40px;
      border-radius: var(--radius-SM);
      -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
      filter: grayscale(100%);
      border: 1px solid var(--border-color);
    }

    .testimonial__person__description {
      display: flex;
      flex-direction: column;
      margin-bottom: 0;
      line-height: 1.25rem;

      .testimonial__person__name {
        color: var(--primary-color);
        font-size: var(--font-size-SM);
        font-weight: 500;
      }

      .testimonial__person__job {
        font-size: var(--font-size-SM);
      }
    }
  }
}

/* FOOTER */

footer {
  box-sizing: border-box;
  background-color: var(--background-color-darker);
  background-image: url(images/background-footer.svg);
  background-position: center;
  border-radius: var(--radius-MD);
  color: var(--background-color-light);
  margin-bottom: var(--spacing-LG);
  box-shadow: var(--box-shadow-grey);
  border: 1px solid var(--border-color);

  h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xLG);
  }

  .footer__icon img {
    width: 60px;
  }

  .footer__top-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-2xLG);
  }

  .footer_buttons {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-SM);
  }

  .divider {
    box-sizing: border-box;
    display: block;
    height: 1px;
    background: var(--border-color);
    width: 100%;
    padding: 0 var(--spacing-MD);
  }

  .footer_info {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--spacing-LG);
    font-size: var(--font-size-SM);
    color: var(--paragraph-color);
    text-align: center;
  }

  .footer_info div {
    line-height: 1.6;
  }
}

/* PROJECTS */

.back-btn-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.back-btn {
  width: auto;
}

.back-btn .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  padding: 0;
}

.back-btn i {
  margin: 0;
  text-align: center;
}

.project-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-SM);
  cursor: pointer;
  transition: 0.5s;
  margin-left: var(--spacing-MD);

  .logo {
    display: flex;
    align-items: center;
    margin-right: var(--spacing-SM);
  }

  img {
    width: 16px;
  }

  :hover {
    opacity: 0.5;
    transition: 0.5s;
  }
}

.project__details {
  font-size: var(--font-size-MD);
  margin: 10rem var(--spacing-sections-x) 6rem;
  display: flex;
  flex-direction: row;
  gap: 8rem;
  animation: section-slide 0.5s ease;

  .paragraph {
    font-size: var(--font-size-MD);
    line-height: 1.8rem;
    margin-bottom: var(--spacing-MD);
  }

  .project__details__description {
    width: 70%;
  }

  .project__details__summary {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-MD);

    .row {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }

    .label {
      width: 100px;
      color: var(--paragraph-color);
    }
  }

  .project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

.hightlight__image {
  margin: var(--spacing-MD) var(--spacing-sections-x);
  margin-bottom: var(--spacing-3xLG);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-MD);
  animation: section-slide 0.5s ease;

  .container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: var(--spacing-MD);
  }

  .project__image {
    object-fit: fill;
    background-position: center;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-MD);
  }

  .project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* RESPONSIVE DESIGN */

/* Tablet styles (768px and below) */
@media screen and (max-width: 920px) {
  :root {
    --spacing-sections-y: 6rem;
    --spacing-sections-x: 0.75rem;
    --gap-columns: 0.75rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Navigation */
  .navbar .content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-MD);
  }

  .navbar .nav-logo,
  .navbar .nav-items {
    width: auto;
  }

  .navbar .nav-sections {
    display: none;
  }

  .navbar .nav-items {
    flex-wrap: nowrap;
  }

  /* Header */
  header {
    flex-direction: column;
    gap: var(--spacing-2xLG);
    padding: var(--spacing-3xLG) var(--spacing-MD);
    height: auto;
    text-align: left;
  }

  .header-text {
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }

  .profile-pic img {
    width: 120px;
    height: 120px;
  }

  /* About me info */
  .about-me__info {
    width: 100%;
  }

  .about-me__info__highlights {
    flex-direction: column;
    gap: var(--spacing-MD);
  }

  /* Services */
.services {
      padding: var(--spacing-LG);
}
  

  .services .cols {
    flex-direction: column;
  }

  /* Projects */
  .project.cols {
    flex-direction: column;
    gap: var(--spacing-LG);
  }

  .project__description {
    width: 100%;
    padding: 0;
  }

  .project-image {
    height: 280px;
  }

  /* Project details */
  .project__details {
    flex-direction: column;
    gap: var(--spacing-2xLG);
    margin: 6rem var(--spacing-MD) 4rem;
  }

  .project__details__description,
  .project__details__summary {
    width: 100%;
  }

  /* Project page navigation */
  .navbar.sticky .content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
  }

  .back-btn-container {
    display: flex;
    justify-content: flex-start;
  }

  .project-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0;
  }

  .nav-items {
    display: flex;
    justify-content: flex-end;
  }

  .project-logo .logo {
    margin-right: var(--spacing-SM);
  }


      .project__details__description,
      .project__details__summary {
    width: 100%!important;
  }


  /* Project images */
  .hightlight__image .container {
    flex-direction: column;
    gap: var(--spacing-MD);
  }

  .hightlight__image {
    margin: var(--spacing-LG) var(--spacing-MD) var(--spacing-2xLG);
  }


  /* Shots */

  .shots_title {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-SM);
    text-align: left;
  }

  /* Testimonials */
  .testimonials .cols {
    flex-direction: column;
  }

  .testimonial {
    height: auto;
    width: auto!important;
  }

  .testimonial__quote {
    margin-bottom: var(--spacing-LG)
  }

  /* Shots */
  .scroller__inner {
    flex-wrap: wrap;
  }

  .shots img {
    width: 100%;
    max-width: 320px;
    height: 200px;
  }

  /* Footer */
  .footer_buttons {
    flex-direction: column;
  }

  .footer_info {
    justify-content: center;
    text-align: center;
  }
}

/* Mobile styles (480px and below) */
@media screen and (max-width: 480px) {
  :root {
    --spacing-sections-y: 4rem;
    --spacing-sections-x: 0.5rem;
    --gap-columns: 0.5rem;
  }

  h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Navigation */
  .navbar {
    padding: var(--spacing-SM);
  }

  .navbar .content {
    gap: var(--spacing-SM);
  }

  .nav-logo {
    width: auto !important;
  }

  .nav-items {
    gap: var(--spacing-xSM);
  }

  /* Header */
  header {
    padding: var(--spacing-2xLG) var(--spacing-SM);
  }

  .profile-pic img {
    width: 100px;
    height: 100px;
  }

  /* Tabs */
  .tabs {
    flex-wrap: wrap;
    gap: var(--spacing-xSM);
  }

  .tabs__item {
    font-size: 0.8rem;
    padding: var(--spacing-xSM) var(--spacing-SM);
  }

  /* Skills */
  .skill_images {
    flex-wrap: wrap;
    gap: var(--spacing-SM);
  }

  .skill_images img {
    width: 24px;
  }

  /* Services */
  .services {
    padding: var(--spacing-MD);
    margin: var(--spacing-2xLG) var(--spacing-SM) var(--spacing-3xLG);
  }

  /* Projects */
  .project {
    padding: var(--spacing-SM);
  }

  .project-image {
    height: 200px;
  }

  .project__tags {
    gap: var(--spacing-xSM);
  }

  .project__tags_tag {
    font-size: 0.8rem;
    padding: var(--spacing-xSM);
  }

  /* Project details */
  .project__details {
    margin: 4rem var(--spacing-SM) 3rem;
  }

  /* Project page navigation - mobile */
  .navbar.sticky .content {
    gap: var(--spacing-SM);
  }

  .project-logo .nav-title {
    font-size: 0.9rem;
  }

  .back-btn {
    width: auto;
    flex-shrink: 0;
  }

  /* Project images - mobile */
  .hightlight__image {
    margin: var(--spacing-MD) var(--spacing-SM) var(--spacing-LG);
  }

  .project__image {
    border-radius: var(--radius-SM);
  }

  /* Shots */
  .shots {
    padding: var(--spacing-MD);
  }


  .shots img {
    max-width: 280px;
    height: 180px;
  }

  /* Footer */
  .footer__top-info {
    padding: var(--spacing-LG);
  }

  .footer_info {
    padding: var(--spacing-MD);
    text-align: center;
  }

  /* Tooltip adjustments */
  .tooltip .tooltiptext {
    width: 60px;
    font-size: 0.75rem;
    margin-left: -20px;
  }
}

/* Extra small mobile (320px and below) */
@media screen and (max-width: 320px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .navbar {
    padding: var(--spacing-xSM);
  }

  header {
    padding: var(--spacing-LG) var(--spacing-xSM);
  }

  .services,
  .shots {
    padding: var(--spacing-SM);
    margin-left: var(--spacing-xSM);
    margin-right: var(--spacing-xSM);
  }

  .project-image {
    height: 160px;
  }

  /* Project page specific - extra small */
  .project-logo .nav-title {
    font-size: 0.8rem;
  }

  .hightlight__image {
    margin: var(--spacing-SM) var(--spacing-xSM) var(--spacing-MD);
  }

  .shots img {
    max-width: 240px;
    height: 150px;
  }
}
