html {
  margin: 0;
  padding: 0;
  background-color: #101112;
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
}

/* FONTS */

.bricolage-light {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 1px;
}

.bricolage-reg {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}

.bricolage-med {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 1px;
}

.bricolage-semi {
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1px;
}

.fraunces-light {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.fraunces-light-it {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
}

.fraunces-bold-it {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: italic;
}

.cont {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-template-rows: min-content min-content 1fr;
  row-gap: 30px;
  padding: 35px;
  column-gap: 35px;
  height: 100%;
  width: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cont.work-view {
  grid-template-rows: 0fr 0fr 1fr;
}

.cont.about-view {
  grid-template-rows: 1fr 0fr 0fr;
}

.sidebar {
  width: 100%;
  height: 100%;
  background-color: #1f2123;
  border-radius: 11px;
  padding: 25px;
  grid-column: 1;
  grid-row: 1 / -1;
  .pages {
    padding-bottom: 100px;
    .side-heading {
      color: #818992;
      font-size: 24px;
      margin: 0;
      padding-bottom: 12px;
    }
    .hr {
      height: 2px;
      width: 100%;
      background-color: #818992;
      border-radius: 5px;
    }
    .page-links {
      position: relative;
      padding-top: 25px;
      padding-right: 60px;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr 1fr 1fr;
      row-gap: 40px;
      .home {
        grid-row: 1;
        grid-column: 1;
      }
      .work {
        grid-row: 2;
        grid-column: 1;
      }
      .about {
        grid-row: 3;
        grid-column: 1;
      }
      .contact {
        grid-row: 4;
        grid-column: 1;
      }
      div {
        display: flex;
        justify-self: start;
        align-self: center;
        align-items: center;
        justify-items: start;
        gap: 15px;
        svg {
        }
        button {
          color: #818992;
          background-color: transparent;
          border: none;
          margin: 0;
          font-size: 24px;
          cursor: pointer;
          transition: all .14s ease;
        }
        button:hover {
          color: #e9ebec;
        }
        .btn-active {
          color: #e9ebec;
        }
      }
      .active-dot {
        position: absolute;
        left: 100%;
        transform: translateX(-8px);
        box-sizing: content-box;
        transition: all .25s ease;
      }
    }
  }
  .socials {
    .side-heading {
      color: #818992;
      font-size: 24px;
      margin: 0;
      padding-bottom: 8px;
    }
    .hr {
      height: 2px;
      width: 100%;
      background-color: #818992;
      border-radius: 5px;
    }
    .social-links {
      padding-top: 25px;
      display: grid;
      grid-template-columns: 1fr min-content;
      grid-template-rows: 1fr 1fr 1fr;
      row-gap: 40px;
      .dribbble {
        grid-column: 1;
        grid-row: 1;
      }
      .linkedin {
        grid-column: 1;
        grid-row: 2;
      }
      .resume {
        grid-column: 1;
        grid-row: 3;
      }
      .social-arrow {
        justify-self: end;
        align-self: center;
      }
      div {
        display: flex;
        justify-self: start;
        align-self: center;
        align-items: center;
        justify-items: start;
        gap: 15px;
        svg {
        }
        a {
          color: #e9ebec;
          text-decoration: none;
          margin: 0;
          display: flex;
          justify-items: center;
          align-items: center;
          h4 {
            margin: 0;
            font-size: 24px;
            color: #e9ebec;
            transition: all .14s ease;
          }
          h4:hover {
            color: #818992;
          }
        }
      }
    }
  }
}

.about {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  grid-template-rows: min-content 1fr;
  column-gap: 35px;
  row-gap: 20px;
  width: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  h1 {
    grid-row: 1;
    grid-column: 1;
    font-size: 127px;
    color: #e9ebec;
    margin: 0;
  }
  p {
    grid-row: 2;
    grid-column: 1;
    font-size: 36px;
    color: #818992;
    margin: 0;
    line-height: 1.4em;
  }
  .intro-highlight {
    color: #e9ebec;
  }
  .experience {
    grid-row: 1 / -1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    h2 {
      font-size: 55px;
      color: #e9ebec;
      margin: 0;
    }
    .exp-positions {
      display: flex;
      flex-direction: column;
      gap: 15px;
      div {
        padding: 12px;
        display: grid;
        grid-template-columns: min-content 1fr min-content;
        grid-template-rows: 1fr 1fr;
        column-gap: 10px;
        background-color: #1f2123;
        border-radius: 11px;
        img {
          grid-column: 1;
          grid-row: 1 / -1;
          align-self: center;
          justify-self: start;
          border-radius: 6px;
        }
        h3 {
          grid-column: 2;
          grid-row: 1;
          align-self: end;
          justify-self: start;
          font-size: 20px;
          color: #e9ebec;
          margin: 0;
          text-wrap: nowrap;
        }
        .title {
          grid-column: 2;
          grid-row: 2;
          align-self: start;
          justify-self: start;
          font-size: 16px;
          color: #818992;
          margin: 0;
          text-wrap: nowrap;
        }
        .length {
          grid-column: 3;
          grid-row: 1 / -1;
          align-self: center;
          justify-self: end;
          font-size: 16px;
          color: #818992;
          margin: 0;
          text-wrap: nowrap;
        }
      }
    }
  }
}

/* Updated horizontal divider with gradient tips */
.sect-hr {
  grid-column: 2;
  grid-row: 2;
  height: 5px;
  width: 100%;
  /* background: linear-gradient(90deg, transparent 0%, #1f2123 10%, #1f2123 90%, transparent 100%); */
  background-color: #2a2d30;
  border-radius: 5px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.work-sect {
  overflow-y: scroll;
  scrollbar-width: none;
  grid-column: 2;
  grid-row: 3;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  .tags {
    background-color: #101112;
    position: sticky;
    top: 0;
    padding-bottom: 30px;
    display: flex;
    gap: 20px;
    .tag-unchecked {
      background-color: transparent;
      border: 2px solid #e9ebec;
      display: flex;
      justify-items: center;
      align-content: center;
      padding: 10px 35px;
      border-radius: 30px;
      font-size: 23px;
      color: #e9ebec;
      transition: all .15s ease;
      cursor: pointer;
    }
    .tag-unchecked:hover {
      background-color: #e9ebec;
      color: #101112;
    }
    .tag-checked {
      background-color: #1f2123;
      border: none;
      display: flex;
      justify-items: center;
      align-content: center;
      padding: 10px 35px;
      border-radius: 30px;
      font-size: 23px;
      color: #e9ebec;
      cursor: pointer;
    }
  }
  .work-thumb {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 30px;
    row-gap: 30px;
    /* Added overflow hidden to prevent hover effects from showing outside frame */
    overflow: hidden;
    img {
      border-radius: 10px;
      width: 100%;
      cursor: pointer;
      transition: transform 0.2s ease, opacity 0.3s ease;
    }
    img:hover {
      transform: scale(1.02);
    }
    img.hidden {
      opacity: 0;
      transform: scale(0.8);
      pointer-events: none;
    }
  }
}

/* Added work popup modal styles */
.work-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.work-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 17, 18, 0.9);
  backdrop-filter: blur(10px);
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #1f2123;
  border-radius: 15px;
  padding: 40px;
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  overflow-y: auto;
  transition: transform 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.work-popup.active .popup-content {
  transform: translate(-50%, -50%) scale(1);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  z-index: 1001;
}

.popup-close:hover {
  background-color: rgba(233, 235, 236, 0.1);
}

.popup-image {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 400px;
  object-fit: cover;
}

.popup-info {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.popup-info h2 {
  font-size: 48px;
  color: #e9ebec;
  margin: 0;
  line-height: 1.2;
}

.popup-info p {
  font-size: 18px;
  color: #818992;
  margin: 0;
  line-height: 1.6;
}

.popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popup-tag {
  background-color: #101112;
  color: #e9ebec;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: capitalize;
}

/* Added contact popup modal styles */
.contact-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
}

.contact-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #1f2123;
  border-radius: 15px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  transition: transform 0.3s ease;
}

.contact-popup.active .contact-popup-content {
  transform: translate(-50%, -50%) scale(1);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-content h2 {
  font-size: 48px;
  color: #e9ebec;
  margin: 0;
  text-align: center;
}

.contact-content > p {
  font-size: 18px;
  color: #818992;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #101112;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.contact-method:hover {
  background-color: #2a2d30;
  border-color: #e9ebec;
  transform: translateY(-2px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #1f2123;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-info h3 {
  font-size: 20px;
  color: #e9ebec;
  margin: 0 0 5px 0;
}

.contact-info p {
  font-size: 16px;
  color: #818992;
  margin: 0;
}

.contact-note {
  text-align: center;
  padding: 20px;
  background-color: rgba(233, 235, 236, 0.05);
  border-radius: 10px;
}

.contact-note p {
  font-size: 16px;
  color: #818992;
  margin: 0;
  font-style: italic;
}

/* Added company popup modal styles */
.company-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.company-popup.active {
  opacity: 1;
  visibility: visible;
}

.company-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #1f2123;
  border-radius: 15px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  transition: transform 0.3s ease;
}

.company-popup.active .company-popup-content {
  transform: translate(-50%, -50%) scale(1);
}

.company-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-logo {
  flex-shrink: 0;
}

.company-logo img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.company-info h2 {
  font-size: 36px;
  color: #e9ebec;
  margin: 0 0 10px 0;
}

.company-info h3 {
  font-size: 24px;
  color: #e9ebec;
  margin: 0 0 5px 0;
}

.company-info p {
  font-size: 18px;
  color: #818992;
  margin: 0;
}

.company-description p {
  font-size: 18px;
  color: #818992;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .popup-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 20px;
    max-height: 90vh;
  }

  .popup-image,
  .popup-info {
    grid-column: 1;
  }

  .popup-info h2 {
    font-size: 36px;
  }

  .contact-popup-content {
    padding: 30px 20px;
  }

  .contact-content h2 {
    font-size: 36px;
  }
}
