/* =======================================
   GLOBAL RESET & BASE STYLES
   ======================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: sans-serif;
    cursor: none; /* Hide the default cursor */
  }
  
  /* =======================================
     FONT IMPORTS
     ======================================= */
  @font-face {
    font-family: "Neue Haas Grotesk Display Pro Light";
    src: url("./fonts/NeueHaasGroteskDisplayProLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
  }
  
  @font-face {
    font-family: "Panchang Variable";
    src: url("./fonts/Panchang-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
  }
  
  @font-face {
    font-family: "Neue Haas Grotesk Display Thin";
    src: url("./fonts/NeueHaasDisplay-Thin.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
  }
  
  /* =======================================
     TYPOGRAPHY & FONTS
     ======================================= */
  body {
    background-color: #EEEEEC;
    color: #000;
    font-family: "Neue Haas Grotesk Display Thin", sans-serif;
  }
  
  h1 {
    font-size: 8.7vw;
    font-weight: 400;
    font-family: "Panchang Variable", sans-serif;
    color: #28282A;
  }
  
  h2, .footer-top-row h2, .footer-bottom-row h2 {
    font-size: 1.4vw;
    font-weight: 200;
  }
  
  h3 {
    font-size: 4vw;
    font-weight: 500;
    font-family: "Panchang Variable", sans-serif;
    color: #ededf1;
  }
  
  /* =======================================
     HEADER STYLES
     ======================================= */
  header {
    width: 100%;
    padding: 2vw;
    text-align: center;
    margin-bottom: 10vw;
  }
  
  .full-width-name a {
  text-decoration: none;
  color: inherit;
}

  .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .home-icon {
    width: 2.8vw;
    height: auto;
    margin-right: 1px;
  }
  
  .nav-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 1vw;
    flex-wrap: wrap;
  }
  
  .nav-buttons .btn {
    text-decoration: none;
    background-color: #d4d4d470;
    color: #000;
    border: 0.095vw solid #000;
    border-radius: 50px;
    padding: 0.4vw 1.2vw;
    font-size: 1.3vw;
    margin-top: 0.35vw;
    display: inline-block;
  }

  
  .nav-buttons .btn:hover {
    background-color: #28282A;
    color: #EEEEEC;
    border: 1.7px solid #031ba600;
  }
  
  /* =======================================
     OVERVIEW PROJECTS
     ======================================= */
  #overview-project-2x, #overview-project-2x-graphic, #overview-project-2x-graphic-2,
  #overview-project-3x, #overview-project-swapped {
    display: flex;
    gap: 0.8vw;
    margin: 1.3vw;
    margin-bottom: 25vw;
  }
  
  .project-block {
    padding: 0;
    box-sizing: border-box;
  }
  
  .project-block a {
    text-decoration: none;
    color: #000;
  }
  
  .project-block img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 5px;
  }
  
  
  #overview-project-3x .project-block{
    flex: 1;
  }
  
/* {
    flex: 2;
  }*/

  #overview-project-2x .project-block.small,
  #overview-project-2x-graphic .project-block.large {
    flex: 3; /* Make Heyday take up 3 parts */
  }

  /* Specific adjustments for swapped projects */
#overview-project-swapped .project-block.small, 
#overview-project-2x-graphic .project-block.small,
#overview-project-2x-graphic-2 .project-block.small,
#overview-project-3x .project-block:nth-child(1){
  flex: 2; /* This project takes less width */
}

#overview-project-swapped .project-block.large,
#overview-project-2x .project-block.large,
#overview-project-2x-graphic .project-block.large,
#overview-project-2x-graphic-2 .project-block.large{
  flex: 4; /* This project takes more width */
}

#overview-project-3x .project-block:nth-child(2) { 
  flex: 1; /* Keep the other projects at normal width */
}

#overview-project-3x .project-block:nth-child(3){
  flex:1.4;
}
  /* =======================================
     FOOTER STYLES
     ======================================= */
  footer {
    background-color: #D0CDC5;
    padding: clamp(30px, 3vw, 20px);
  }
  
 
  .footer-top-row, .footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-top-row h3 {
    font-size: clamp(50px, 8vw, 100px);
    margin-bottom: clamp(50px, 10vw, 150px);
  }
  
  .footer-bottom-row {
    gap: clamp(10px, 2vw, 20px);
    padding: clamp(10px, 2vw, 20px) 0;
  }
  
  .footer-bottom-row h2 {
    font-size: 1.4vw;
  }
  

  
  /* =======================================
     CURSOR STYLES
     ======================================= */
  .custom-cursor {
    width: 15px;
    height: 15px;
    background-color: black;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    z-index: 100000;
  }
  
  a, button {
    cursor: none;
  }
  
  a:hover ~ .custom-cursor,
  button:hover ~ .custom-cursor {
    width: 30px;
    height: 30px;
  }
  
  body.no-scroll {
    overflow: hidden;
  }
  
  /* =======================================
     ABOUT ME POPUP STYLES
     ======================================= */
     .about-me-popup {
      position: fixed;
      top: 0;
      right: -100%;
      width: 45vw; /* Responsive width */
      max-width: 600px; /* Optional cap for very large screens */
      height: 100vh;
      background-color: #EEEEEC;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
      overflow: hidden; /* prevent scrollbars */
      transition: right 0.5s ease;
      z-index: 1000;
      display: flex;
      flex-direction: column;
    }
    
  
  .about-me-popup.active {
    right: 0;
  }
  
  .about-me-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 2vh 2vw;
    box-sizing: border-box;
  }
  
  
  .about-me-header {
    display: flex;
    color: #000000;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .about-me-header h1 {
    letter-spacing: 0.05em;
    font-size: 3vw;
    font-weight: 500;
  }
  
  .close-btn {
    background: none;
    border: 1px solid #000;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 20px;
    margin-top: -5px;
  }
  
  .left {
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    overflow: hidden;
  }
  
  .about-me-photo {
    flex-shrink: 0;
    width: 30%;
    min-width: 140px;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
  }
  
  .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
    overflow-y: auto;
    max-height: 80vh; /* So the text doesn't push things off-screen */
  }
  
  
  .columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .about-me-footer {
    margin-top: auto;
    padding: 1vh 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.9rem;
  }

  .about-me-footer a {
  color: inherit;       /* keeps same color as your text */
  text-decoration: none; /* removes underline */
}

.about-me-footer a:hover {
  text-decoration: underline; /* underline on hover for clarity */
}

  @media (max-width: 1000px) {
    .about-me-popup.active {
      width: 60vw;
      height: 100vh;
      right: 0;
      max-width: 60vw;
      overflow: hidden;
    }
  
  }


  
  
  
  /* =======================================
     OVERLAY STYLES
     ======================================= */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
  }
  
  .overlay.active {
    display: block;
  }
  
  /* =======================================
     THEME STYLES
     ======================================= */
  body.blue-theme h1,
  body.blue-theme h2 {
    color: #031BA6;
  }
  
  body.blue-theme .nav-buttons .btn {
    color: #031BA6;
    background-color: transparent;
    border: 1.3px solid #031BA6;
  }
  
  body.blue-theme .nav-buttons .btn.active {
    background-color: #031BA6;
    color: #EEEEEC;
    border-color: #031BA6;
  }
  
  body.blue-theme .nav-buttons .btn:hover {
    background-color: #28282a24;
    color: #031BA6;
    border: 1px solid #031BA6;
  }
  
  body.red-theme h1,
  body.red-theme h2 {
    color: #9f0707;
  }
  
  body.red-theme .nav-buttons .btn {
    color: #9f0707;
    background-color: transparent;
    border: 1.3px solid #9f0707;
  }
  
  body.red-theme .nav-buttons .btn.active {
    background-color: #9f0707;
    color: #EEEEEC;
    border-color: #9f0707;
  }
  
  body.red-theme .nav-buttons .btn:hover {
    background-color: #28282a24;
    color: #9f0707;
    border: 1px solid #9f0707;
  }
  
  /* =======================================
     TRANSITION LINKS
     ======================================= */
  .transition-link {
    color: blue;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .transition-link:hover {
    color: darkblue;
  }
  
  body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  body.fade-in {
    opacity: 1;
  }
  
/* Default styles (desktop) */
.btn {
  font-size: 1rem;
  padding: 0.5em 1em;
}

.description a {
  text-decoration: underline; /* keeps the underline */
  color: inherit;             /* keeps same text color */
}

 .btn.main{
    background-color: #28282A;
    color: #efefef;
    border: 1.7px solid #031ba600;
    border-radius: 50px;
    padding: 0.4vw 1.2vw;
    font-size: 1.3vw;
    margin-top: 0.35vw;
    display: inline-block;
  }

@media (max-width: 768px) {
  /* ========== Typography ========== */
  h1 {
    font-size: 8vw;
  }

  h2 {
    font-size: 2vw;
  }

  .greeting {
    font-size: 1rem;
    margin-top: 5rem;
  }

   .greeting {
    display: none;
  }

  .full-width-name {
    font-size:8.5vw;
    margin-top: 3.5rem;
  }

  .about-me-header h1 {
    letter-spacing: 0.05em;
    font-size: 8vw;
    font-weight: 500;
  }

  /* ========== Navigation ========== */
  .nav-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    right: 0px;
    left: 0px;
    top: 5px;
  }

  .nav-buttons .btn {
    font-size: 0.9rem;
    padding: 0.5em 0.5em;
  }

  .home-icon {
    width: 30px;
    margin: 0 10px;
    margin-top: 1vw;
  }

  /* ========== Footer ========== */
  .footer-top-row,
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-row {
    gap: clamp(5px, 2vw, 10px);
  }

   .footer-top-row h3 {
    font-size: clamp(50px, 8vw, 100px);
    margin-bottom: clamp(50px, 10vw, 150px);
  }

  .footer-bottom-row h2,
  .footer-top-row h2 {
    font-size: 2.5vw;
  }

  /* ========== About Me Popup ========== */
  .about-me-popup.active {
    width: 100vw;
    height: 100dvh;
    right: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
    overflow-y: auto;
    max-height: 80vh;
  }

  .left {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 12px;
    height: 100%;
  }

  .about-me-photo {
    width: 35vw;
    height: 100%;
    object-fit: cover;
  }

  .about-me-footer {
    align-items: flex-start;
    padding-top: 20px;
    gap: 6px;
    /* flex-direction: column; */
  }

  body {
    cursor: auto !important;
  }

}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
    pointer-events: none !important;
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body, * {
    cursor: default !important;
  }
}

