/* ------

Author: Janine Carbone
For: janinecarbone.com
Last Change: 01/25/2026

------- */

/* ------ STYLE CSS CONTENTS -----


1) Basic Styling
2) Header
3) Footer
4) Page Styling
5) Individual Pages
    a) Case Studies


--------------------------------- */

/* =================================

1. Basic Styling

================================== */

:root {
  /* Color Palette */

  --clr-primary: #06bcc1;
  --clr-secondary: #c5d8d1;
  --clr-light: #f4edea;
  --clr-light-accent: #f4d1ae;
  --clr-dark: #12263a;
  --clr-neutral-900: #0d0d0d;
  --clr-neutral-800: #2a2a2b;
  --clr-neutral-700: #4b4c4e;
  --clr-neutral-600: #5f6062;
  --clr-neutral-500: #848687;
  --clr-neutral-400: #b4b5b6;
  --clr-neutral-300: #e4e4e5;
  --clr-neutral-200: #f2f2f2;
  --clr-neutral-100: #fafafa;

  /* Font */

  --font-1: 'Poppins', sans-serif;
  --font-2: 'Figtree', sans-serif;

  /* Design */

  --drop-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
  --drop-shadow-hover: 0px 10px 20px 0px rgba(0, 0, 0, 0.25);
  --bdr: 5px;

  --gradient-bg-image:
    radial-gradient(at 69% 83%, hsla(18, 31%, 93%, 1) 0px, transparent 50%),
    radial-gradient(at 96% 50%, hsla(29, 76%, 81%, 1) 0px, transparent 50%),
    radial-gradient(at 9% 46%, hsla(18, 31%, 93%, 1) 0px, transparent 50%),
    radial-gradient(at 73% 20%, hsla(18, 31%, 93%, 1) 0px, transparent 50%),
    radial-gradient(at 95% 97%, hsla(181, 93%, 39%, 1) 0px, transparent 50%),
    radial-gradient(at 16% 91%, hsla(29, 100%, 81%, 1) 0px, transparent 50%);

  --gradient-bg-color: hsla(17, 0%, 100%, 1);
}

html {
  background-color: var(--clr-light);
  scroll-behavior: smooth;
  scroll-padding-top: calc(2rem + 54px);
}

#About {
  scroll-margin-top: 15rem;
}

main {
  flex-grow: 1;
  z-index: 1;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  justify-content: space-between;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-2);
  margin-bottom: 1.25rem;
}

p,
ul,
ol {
  font-family: var(--font-1);
  font-size: 1rem;
  margin-bottom: 1.25rem;

  &:last-of-type {
    margin-bottom: 0;
  }
}

svg {
  transition: 0.3s;
  width: 20px;
  height: 20px;
}

div {
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit*/
  -moz-box-sizing: border-box; /* Firefox, other Gecko */
  box-sizing: border-box; /* Opera/IE 8+ */
}

.flex_row {
  display: flex;
  flex-direction: row;
}

.flex_column {
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;

  svg {
    fill: var(--clr-primary);
  }

  &:hover {
    color: var(--clr-primary);

    svg {
      fill: var(--clr-dark);
    }
  }
}

.btn {
  padding: 0.4rem 1.5rem;
  border: 2px solid black;
  border-radius: var(--bdr);
  font-family: var(--font-1);
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
  cursor: pointer;
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;

  svg {
    fill: white;
  }

  &:hover {
    background-color: var(--clr-dark);
    border-color: var(--clr-dark);
    color: white;
  }

  &.disabled {
    background-color: black;
    border-color: black;
    opacity: 0.1;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.--alt {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);

  svg {
    fill: var(--clr-primary);
  }

  &:hover {
    background-color: transparent;
    border-color: var(--clr-dark);
    color: var(--clr-dark);

    svg {
      fill: var(--clr-dark);
    }
  }
}

.rounded {
  border-radius: var(--bdr);
  overflow: hidden;
}

.no-scroll {
  overflow: hidden;
}

.container {
  width: 100%;
  padding: 1.5rem;
  margin: 0 auto;
}

@media (min-width: 640px) AND (max-width: 768px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 769px) AND (max-width: 1023px) {
  .container {
    max-width: 769px;
  }
}

@media (min-width: 1024px) AND (max-width: 1439px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1440px) AND (max-width: 1919px) {
  .container {
    max-width: 1440px;
  }
}

@media (min-width: 1920px) AND (max-width: 2559px) {
  .container {
    max-width: 1920px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 2650px;
  }
}

/* =================================

2. Header

================================== */

header {
  background-color: white;
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 100;

  .container {
    justify-content: space-between;
    gap: 2rem;
  }

  .desktop {
    gap: 1.25rem;
  }

  .mobile {
    display: none;
  }

  .left {
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-1);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 100;

    .icon {
      width: 40px;
      height: 40px;
      background: var(--clr-primary);
      border-radius: 50%;
      color: white;
      align-items: center;
      justify-content: center;
    }
  }

  nav {
    &.primary-navigation {
      margin: 0 auto;
      display: block;
      text-align: center;

      ul li {
        font-family: var(--font-1);
        font-weight: 500;
        list-style: none;
        display: inline-block;
        padding: 0 0.75rem;

        &:last-of-type {
          color: white;
          background: var(--clr-primary);
          border-radius: var(--bdr);
          transition: 0.3s;
          padding: 0;

          a {
            padding: 0.5rem 1rem;
          }

          &:hover {
            background: var(--clr-dark);

            a {
              color: white;
            }
          }
        }

        & > a {
          display: block;
        }

        &:hover > a {
          color: var(--clr-primary);
        }
      }
    }
  }
}

.menu_container {
  opacity: 0;
  position: absolute;
  top: calc(54px + 3rem);
  left: 0;
  width: 100%;
  height: calc(100vh - 54px - 3rem);
  background-color: white;
  z-index: 90;
  transition: 0.3s;
  transform: translateY(-100px);
  pointer-events: none;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;

  ul {
    font-family: var(--font-1);
    font-size: 1.5rem;
    font-weight: 500;
    list-style: none;
    padding: 0;
    line-height: 3;
    text-align: center;
  }
}

.menu_container::-webkit-scrollbar {
  display: none;
}

.menu_container.active {
  opacity: 100;
  transform: translateY(0);
  pointer-events: auto;

  a:hover {
    color: var(--clr-primary);
  }
}

.hamburger {
  font: inherit;
  display: inline-block;
  overflow: visible;
  margin: 0;
  padding: 15px;
  cursor: pointer;
  transition-timing-function: linear;
  transition-duration: 0.15s;
  transition-property: opacity, filter;
  text-transform: none;
  color: inherit;
  border: 0;
  background-color: transparent;
  z-index: 100;
  position: relative;
}

.hamburger.is-active:hover,
.hamburger:hover {
  opacity: 0.7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner:after,
.hamburger.is-active .hamburger-inner:before {
  background-color: black;
}

.hamburger-box {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.hamburger-inner {
  top: 50%;
  display: block;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
  position: absolute;
  width: 40px;
  height: 4px;
  transition-timing-function: ease;
  transition-duration: 0.15s;
  transition-property: transform;
  border-radius: 4px;
  background-color: black;
}

.hamburger-inner:after,
.hamburger-inner:before {
  display: block;
  content: '';
}

.hamburger-inner:before {
  top: -10px;
}

.hamburger-inner:after {
  bottom: -10px;
}

.hamburger--spin .hamburger-inner {
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition-duration: 0.22s;
}

.hamburger--spin .hamburger-inner:before {
  transition:
    top 0.1s ease-in 0.25s,
    opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner:after {
  transition:
    bottom 0.1s ease-in 0.25s,
    transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transform: rotate(225deg);
}

.hamburger--spin.is-active .hamburger-inner:before {
  top: 0;
  transition:
    top 0.1s ease-out,
    opacity 0.1s ease-out 0.12s;
  opacity: 0;
}

.hamburger--spin.is-active .hamburger-inner:after {
  bottom: 0;
  transition:
    bottom 0.1s ease-out,
    transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
  transform: rotate(-90deg);
}

@media screen and (max-width: 768px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block !important;
  }
}

/* =================================

3. Footer

================================== */

footer {
  background-color: var(--clr-dark);
  padding-top: 15rem;

  .container {
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-1);
    flex-wrap: wrap;
  }

  .left {
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 100;
    color: white;

    .icon {
      width: 25px;
      height: 25px;
      background: var(--clr-primary);
      border-radius: 50%;
      align-items: center;
      justify-content: center;
    }
  }

  .links {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  p,
  a {
    font-size: 0.75rem;
    color: var(--clr-secondary);
  }
}

@media (max-width: 768px) {
  footer {
    .container {
      flex-direction: column;
      gap: 1rem;
    }
    
    .links {
        justify-content: center;
        gap: 1rem;
    }
  }
}

/* =================================

4. Page Styling

================================== */

section {
  .container {
    padding: 4rem 1.5rem;
  }

  h1 {
    font-size: 3rem;
    margin-bottom: 0;
  }

  .left,
  .right {
    flex: 1;
    gap: 1rem;
    align-items: flex-start;
    min-width: 300px;
  }

  .img {
    width: 100%;
    flex-grow: 1;
    flex: 0.33;
  }

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

/* ----------- HOME -------------- */

#Home {
  background: var(--gradient-bg-color);
  background-image: var(--gradient-bg-image);
  padding-bottom: 20rem;

  .container {
    gap: 2rem;
    flex-wrap: wrap;

    .stats {
      gap: 0.5rem;
      margin-top: auto;
      width: 100%;
      max-width: 600px;

      div {
        background: var(--clr-secondary);
        padding: 0.5rem 1rem;
        width: 100%;
      }

      p {
        margin-bottom: 0;
        text-align: center;
        font-size: 0.75rem;

        &:first-of-type {
          font-weight: 800;
          font-size: 1.5rem;
        }
      }
    }
  }
}

@media (max-width: 768px) {
  #Home .container {
    flex-direction: column-reverse;
    align-items: center;

    .img {
      max-width: 400px;
    }

    .left {
      gap: 2rem;
    }
  }
}

/* ----------- ABOUT -------------- */

#About {
  .container {
    .box {
      padding: 3rem;
      background: white;
      box-shadow: var(--drop-shadow);
      gap: 4rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: -15rem;

      p {
        margin-bottom: 0;
      }

      .left {
        justify-content: center;
      }

      .socials {
        padding: 1rem;
        box-shadow: var(--drop-shadow);
        width: 80%;
        align-self: center;
        margin-top: -2.5rem;
        z-index: 10;
        background: white;
        gap: 2rem;
        justify-content: center;
      }

      .btn_links {
        gap: 1rem;
        flex-wrap: wrap;
      }
    }
  }

  @media (max-width: 768px) {
    .img {
      flex: 1;
    }
  }
}

/* ----------- RESUME -------------- */

#Resume {
  .container {
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;

    h1 {
      margin-bottom: 1rem;
    }

    .left {
      height: fit-content;
    }

    .right {
      max-height: 500px;
      overflow: hidden;
      position: relative;
      padding: 1rem;

      .skill_scroll {
        gap: 1rem;
        will-change: transform;
      }
    }

    .item {
      width: 100%;
      background: white;
      padding: 2rem;
      transition: 0.3s;

      ul {
        padding: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1rem;

        li {
          list-style: none;
          background: var(--clr-neutral-200);
          padding: 3px 7px;
          border-radius: var(--bdr);
          border: 1px solid var(--clr-neutral-300);
        }
      }

      p,
      ul,
      li {
        pointer-events: none;
      }

      p:first-of-type {
        font-weight: 600;
      }

      &.active {
        box-shadow: var(--drop-shadow);
        border-left: 10px solid var(--clr-primary);
      }
    }
  }
}

/* ----------- PROJECTS -------------- */

#Projects {
  background: white;

  .container {
    gap: 2rem;

    .title_box {
      width: 100%;
      max-width: 400px;
      text-align: center;
      margin: 0 auto;

      h1 {
        margin-bottom: 1rem;
      }

      p {
        font-size: 0.875rem;
      }
    }

    .project_container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;

      .item {
        flex: 1;
        border: 1px solid var(--clr-secondary);
        transition: 0.3s;

        &:hover {
          box-shadow: var(--drop-shadow);
        }

        .item_img {
          max-height: 150px;

          img {
            object-position: top;
          }
        }

        .item_text {
          padding: 1.5rem;
          gap: 1rem;
          align-items: flex-start;
          height: 100%;

          p {
            margin-bottom: 0;
            font-size: 0.875rem;
          }

          p:first-of-type {
            margin-bottom: -1rem;
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--clr-primary);
          }

          p:nth-of-type(2) {
            font-weight: 600;
            font-size: 1rem;
          }

          a {
            margin-top: auto;

            svg {
              margin-bottom: -5px;
              margin-left: 5px;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 1023px) {
  #Projects .project_container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  #Projects .project_container {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ----------- PROJECT SLIDER -------------- */

#proj_slider {
  background: white;
  width: 100%;

  .proj_header {
    width: 100%;
    background: var(--clr-primary);
    padding: 2rem 0;

    .container {
      gap: 4rem;
      width: 100%;
      align-items: center;

      .header_txt {
        flex: 1;
        color: white;

        h1 {
          font-size: 3rem;
        }

        p {
          margin-bottom: 0;
          font-size: 0.875rem;

          &:first-of-type {
            text-transform: uppercase;
            font-weight: 600;
            font-size: 1rem;
          }
        }
      }

      .img {
        width: 100%;
        max-width: 500px;
        flex-grow: 1;
        flex: 1;
      }

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column-reverse;
      }

      .header_txt {
        text-align: center;
      }
    }
  }

  .proj_content {
    padding: 5rem 0;

    .proj_section {
      margin-bottom: 4rem;

      &:last-of-type {
        margin-bottom: 0;
      }
    }

    .container {
      padding: 2rem 4rem;
      gap: 2rem;
    }

    @media (max-width: 768px) {
      .container {
        padding: 2rem 2.5rem 2rem 3rem;
      }
    }

    h1 {
      color: var(--clr-primary);
      margin: 0;
    }

    p,
    ul {
      margin-bottom: 0;
    }

    #goals {
      background: var(--clr-light);

      .container {
        align-items: center;
      }

      .goal_list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        width: 100%;

        h3 {
          margin-bottom: 0;
        }
      }

      .item {
        align-items: center;
        text-align: center;
        gap: 1rem;
      }

      .svg {
        background: var(--clr-primary);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;

        svg {
          fill: white;
          width: 60%;
          height: 100%;
        }
      }
    }
      
      .vertical_img {
          max-height: 600px;
          width: auto;
      }
      
      @media (max-width: 768px) {
          .vertical_img {
              max-height: unset;
              width: 90%;
          }
      }

    .results_metrics {
      gap: 2rem;
      flex-wrap: wrap;
      justify-content: center;
      align-content: stretch;

      .metric_card {
        width: 100%;
        max-width: 350px;
        background: var(--clr-neutral-200);
        padding: 1.5rem;
        border-radius: var(--bdr);
        border-left: 8px solid var(--clr-primary);

        h2 {
          margin: 0;
          font-size: 2rem;
          color: var(--clr-primary);
        }

        p {
          margin: 0.5rem 0 0;
          font-weight: 600;

          &:last-of-type {
            font-size: 0.875rem;
            color: var(--clr-neutral-800);
            font-weight: normal;
          }
        }
      }
    }

    .solution_table_container {
      margin: 0;
      overflow-x: auto;

      table {
        max-width: 1000px;
        width: 100%;
        margin: 2rem auto 3rem;
        border-radius: 12px;
        overflow: hidden;
        border-collapse: collapse;
        font-family: var(--font-1);

        th {
          background-color: var(--clr-primary);
          color: white;
          font-weight: 600;
          padding: 0.5rem;
          text-align: left;
        }

        td {
          padding: 0.5rem 1rem;

          &:first-of-type {
            width: 25%;
            max-width: 300px;
            font-weight: 600;
          }

          &:nth-of-type(2) {
            color: var(--clr-neutral-500);
          }
        }

        tr {
          transition: 0.3s;
        }

        tr:nth-child(even) {
          background-color: var(--clr-neutral-200);
        }

        tr:hover {
          background-color: var(--clr-secondary);
        }
      }
    }
  }

  /* --------------------------------------
  Timeline Infographic
------------------------------------ */

  .production_flow_container {
    width: 100%;
    align-items: flex-end;
    margin: 3rem auto;
    gap: 1.5rem;
    padding: 0 2rem;

    .timeline_item {
      height: 100%;
      flex: 1;
      gap: 1rem;
      align-items: center;
      position: relative;

      &:has(.item) {
        flex: 0.3;
      }

      p.item {
        font-size: 0.75rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 0;
      }

      &:not(:last-child):after {
        content: '';
        display: block;
        height: 3px;
        position: absolute;
        right: -16px;
        width: 50%;
        background: var(--clr-primary);
        bottom: calc(1.5rem + 1rem + 10px);
      }

      &:not(:first-child):before {
        content: '';
        display: block;
        height: 3px;
        position: absolute;
        left: -16px;
        width: 50%;
        background: var(--clr-primary);
        bottom: calc(1.5rem + 1rem + 10px);
      }

      &:hover {
        .item_text {
          transform: scale(1.05);
          box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
        }

        .item_node--large {
          background: var(--clr-dark);
          outline: 2px solid var(--clr-primary);
          outline-offset: 6px;
        }
      }

      .item_text {
        background: white;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 0.75rem;
        width: 100%;
        position: relative;
        border: 2px solid var(--clr-primary);
        margin-bottom: 1.5rem;
        min-height: 135px;
        justify-content: center;
        gap: 0.5rem;
        transition: 0.3s;

        &::after {
          content: '';
          position: absolute;
          bottom: -12.5px;
          left: 50%;
          transform: translateX(-50%) rotate(45deg);
          width: 20px;
          height: 20px;
          background: white;
          border-right: 2px solid var(--clr-primary);
          border-bottom: 2px solid var(--clr-primary);
        }

        p {
          font-size: 0.75rem;
          color: var(--clr-neutral-800);
        }

        p:first-of-type {
          font-size: 0.875rem;
          font-weight: 700;
          margin: 0;
          color: black;
        }
      }

      .item_node--large {
        width: 20px;
        height: 20px;
        background: var(--clr-primary);
        outline: 2px solid var(--clr-primary);
        outline-offset: 5px;
        border-radius: 50%;
        transition: 0.3s;
      }

      .item_date {
        width: fit-content;
        background: var(--clr-neutral-200);
        border: 1px solid var(--clr-neutral-300);
        font-size: 0.75rem;
        color: var(--clr-neutral-800);
        font-weight: 400;
        border-radius: 2rem;
        padding: 0.25rem 0.7rem;
        font-family: var(--font-1);
        white-space: nowrap;
      }
    }
  }

  @media (max-width: 1023px) {
    .production_flow_container {
      flex-direction: column;
      padding: 0;

      .timeline_item {
        flex-direction: row-reverse;
        width: 100%;
        gap: 2rem;
        justify-content: flex-end;

        &:not(:last-child):after {
          width: 3px;
          height: 50%;
          right: unset;
          bottom: -16px;
          left: calc(1.75rem + 2rem + 8px);
        }

        &:not(:first-child):before {
          width: 3px;
          height: 50%;
          right: unset;
          top: -16px;
          left: calc(1.75rem + 2rem + 8px);
        }

        .item_text {
          flex: 1;
          margin-left: 1rem;
          margin-bottom: 0;

          &:after {
            left: -12.5px;
            top: 50%;
            transform: translateY(-50%) rotate(135deg);
            bottom: unset;
          }
        }

        .item_date {
          flex: unset;
          text-align: center;
          width: 1.75rem;
          white-space: wrap;
          padding: .25rem 0;
        }
      }
    }
  }
}

/* ----------- MAIN SLIDER -------------- */

/* Base drawer setup (hidden off-screen to the right) */
.project-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 1920px;
  height: 100%;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition:
    right 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.4s;

  &.active {
    right: 0;
    visibility: visible;
  }

  .close-drawer {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    line-height: 1;
    color: var(--clr-dark);
    transition: color 0.2s;
    position: absolute;
    left: 0;
    top: 0;

    &:hover {
      color: var(--clr-secondary);
    }
  }

  .drawer-content {
    flex: 1;
    overflow-y: auto;
  }
}

/* Overlay setup */
#drawer_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition:
    opacity 0.4s ease,
    visibility 0.4s;

  &.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ----------- BUSINESS -------------- */

#Business {
  background: var(--clr-dark);

  .business_needs {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    color: white;
    text-align: center;
    align-items: center;

    p {
      margin: 2rem 0;
      color: var(--clr-secondary);
    }

    a {
      width: fit-content;

      svg {
        margin-bottom: -5px;
        margin-left: 5px;
      }

      &:hover {
        background: var(--clr-secondary);
        border-color: var(--clr-secondary);
        color: var(--clr-dark);
      }
    }
  }
}

/* ----------- PORTFOLIO -------------- */

#Portfolio {
  background: white;

  .container {
    gap: 2rem;

    .title_box {
      width: 100%;
      max-width: 400px;
      text-align: center;
      margin: 0 auto;

      h1 {
        margin-bottom: 1rem;
      }

      p {
        font-size: 0.875rem;
      }
    }

    .portfolio_items {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;

      .img {
        border-radius: var(--bdr);
        overflow: hidden;
        cursor: pointer;
        transition: 0.3s;
        position: relative;
        aspect-ratio: 1;

        &:hover {
          box-shadow: var(--drop-shadow);
          transform: scale(1.03);
        }

        &:before {
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E");
          background-repeat: no-repeat no-repeat;
          background-position: center center;
          content: '';
          width: 20px;
          height: 20px;
          padding: 5px;
          position: absolute;
          bottom: 0;
          right: 0;
          margin: 0 5px 5px 0;
          background-color: rgba(0, 0, 0, 0.5);
          border-radius: var(--bdr);
        }
      }
    }
  }
}

@media (max-width: 1023px) {
  #Portfolio .portfolio_items {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  #Portfolio .portfolio_items {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ----------- PORTFOLIO MODAL -------------- */

.pill {
  background: var(--clr-neutral-200);
  padding: 3px 7px;
  border-radius: var(--bdr);
  border: 1px solid var(--clr-neutral-300);
  font-size: 0.875rem !important;
}

#port_modal,
#modal_overlay {
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  pointer-events: none;

  &.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

#modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  overflow: hidden;
}

#port_modal {
  background-color: white;
  box-shadow: var(--drop-shadow);
  padding: 2rem;
  width: 80%;
  max-width: 1440px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1000;
    max-height: 100vh;
    overflow-y: auto;

  &.active {
    transform: translate(-50%, -50%) scale(1);
  }

  .close-button {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: none;
    font-size: 2rem;
    font-weight: 600;
    color: black;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: 0.3s;

    &:hover {
      color: var(--clr-primary);
    }
  }

  .modal-content {
    gap: 0.5rem;
    width: 100%;

    img {
      border-radius: var(--bdr);
      border: 1px solid var(--clr-light);
      margin: 0 auto 2rem;
      max-height: 60vh;
    }

    span {
      margin-bottom: 0;
      font-family: var(--font-1);
      font-size: 1rem;
    }

    .info {
      gap: 0.5rem;
      align-items: flex-start;
    }

    #tag {
      color: var(--clr-neutral-500);
      font-size: 0.75rem !important;
      text-transform: uppercase;
      margin-bottom: -0.25rem;
    }

    #title {
      font-weight: 600;
    }

    #description {
      font-size: 0.875rem !important;
    }

    .landscape {
      max-width: 100%;
    }

    .portrait {
      width: auto;
      height: 60vh;
    }
      
      @media (max-width: 768px) {
          .portrait {
              width: 100%;
              height: auto;
              max-height: unset;
          }
      }
  }

  .modal-video-wrapper {
    width: 90%;
    max-width: 720px !important;
    height: auto;
    margin: 0 auto;

    iframe {
      max-width: 100%;
      border-radius: var(--bdr);
    }
  }
}

/* ----------- CONTACT -------------- */

#Contact {
  background: var(--gradient-bg-color);
  background-image: var(--gradient-bg-image);

  .container {
    .box {
      padding: 3rem;
      background: white;
      box-shadow: var(--drop-shadow);
      gap: 4rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: -15rem;
    }

    .contact_item {
      gap: 1rem;
      padding: 1rem;
      max-height: 75px;
      align-items: center;
      width: 100%;
      transition: 0.3s;

      &:hover {
        box-shadow: var(--drop-shadow);

        .svg {
          background: var(--clr-primary);
        }
      }

      .svg {
        height: 100%;
        aspect-ratio: 1;
        background: var(--clr-secondary);
        align-items: center;
        justify-content: center;
        transition: 0.3s;

        svg {
          fill: white;
          width: 50%;
          height: 50%;
        }
      }

      .info {
        p:first-of-type {
          margin-bottom: 0;
          font-size: 0.75rem;
        }
      }
    }

    .socials {
      gap: 2rem;
      width: 100%;

      a {
        border-radius: var(--bdr);
        padding: 1rem;

        &:hover {
          background: var(--clr-primary);

          svg {
            fill: white;
          }
        }

        svg {
          width: 1.5rem;
          height: 1.5rem;
        }
      }
    }
  }

  .contact_form {
    width: 100%;
    height: 100%;

    button {
      margin-bottom: 0;
      font-size: 1rem;

      svg {
        margin-bottom: -5px;
        margin-left: 5px;
      }
    }

    form {
      gap: 1rem;
      width: 100%;
      height: 100%;
      align-items: flex-start;
      margin: 0;

      .input_container {
        position: relative;
        width: 100%;
        align-items: center;

        input {
          padding-left: 2rem;
          width: 100%;
        }

        svg {
          position: absolute;
          left: 0;
          width: 1rem;
          height: 1rem;
          fill: var(--clr-secondary);
        }
      }

      input,
      textarea {
        border: none;
        border-bottom: 2px solid var(--clr-secondary);
        padding: 0.75rem 0rem;
        margin: 0;
        font-family: var(--font-1);
        font-size: 1rem;
        width: 100%;

        &:focus-visible {
          border: none;
          border-bottom: 2px solid var(--clr-primary);
          outline: none;
        }

        &:focus-visible ~ svg {
          fill: var(--clr-primary);
        }
      }

      textarea {
        min-height: 100px;
        flex: 1;
        resize: vertical;
        field-sizing: content;
      }
    }
  }

  @media (max-width: 768px) {
    .socials {
      justify-content: center;
    }
  }
}