@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    background-color: #121212;
    overflow-x: hidden; 
    margin: 0;
}

#main-section {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
    min-height: 100vh;
    margin: 0.8rem;
    gap: 2rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 2rem;
    position: relative;
}

#logo {
    background-image: url("iconfinalfinal.svg");
    width: 11rem;
    height: 5rem;
    background-repeat: no-repeat;
    grid-column: 1;
    grid-row: 1;
    margin: 1rem;
}

h1, h2, h3, p{
    color: #FFFBF7;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.menu-item {
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-size: 1.2rem;
}

#menu {
    display: flex;
    gap: 4rem;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
}

#blob1 {
   background-image: url(blob33.png);
    top: -25vh;
    left: 70vw;
    width: 40vw;
    height: 70vh;
}

#blob2 {
   background-image: url(blob44.png);
   bottom: -19vh;
   right: 75vw;
   width: 35rem;
   height: 40rem;
}

.blobs {
    width: 20rem;
    height: 20rem;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;  
    position: absolute;
    z-index: -1;
    filter: blur(8px);
    transition: transform 2s ease-out;
}

.menu-item:hover {
    color: grey;
    cursor: pointer;
    transition: color 0.4s ease;
}

#exploration {
    color: grey;
}

a {
    text-decoration: none;
}

#text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 2;
    grid-row: 2;
}

#title {
    font-size: 4rem;
    margin: 0;
    text-align: center;
    margin-top: -5rem;
}

#designer-word {
    letter-spacing: 1rem;
    margin-left: 2rem;
}

.word {
    display: inline-block;
}

.letter {
    display: inline-block;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.3s ease;
    cursor: default;
  }
  
  .word:hover .letter {
    transform: translateX(-6px);
  }
  
  .word:hover .letter:nth-child(even) {
    transform: translateX(6px);
  }
  

#subheader {
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    margin: 1rem;
    text-align: center;
}

#button {
    width: 17rem;
    height: 4rem;
    background: repeating-linear-gradient( to right,
        rgba(99, 54, 217, 0.7),
        rgba(231, 49, 73, 0.7),
        rgba(249, 124, 30, 0.7)
    );
    border-radius: 1.2rem;
    text-align: center;
    margin-top: 4rem;

    transition: transform 0.4s ease;

    letter-spacing: 0.2rem;
    font-weight: 500;
    font-size: 1.2rem;
}

#button:hover {
    cursor: pointer;
    transform: scale(1.1);
}


/* Initial hidden state */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  /* When visible */
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

/* initial state */
.page-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  
  /* final visible state */
  .page-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html {
    scroll-behavior: smooth;
  }
  
  #exploration-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 4rem;
    row-gap: 8rem;
  }

  #exploration-section video {
    width: 100%;
  height: auto;
  border-radius: 1rem;
  background: #000;
  }

  /* --- VIDEO WRAPPER --- */
.video-wrapper {
    position: relative;
    width: 100%;
  }
  
  /* video itself */
  .video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    background: #000;
    display: block;
  }
  
  /* centered play button */
  .play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 2rem;
    cursor: pointer;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .play-btn:hover {
    transform: scale(1.1);
  }
  
  /* hide button when playing */
  .video-wrapper.playing .play-btn {
    opacity: 0;
    pointer-events: none;
  }
  
  .exploration-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* title */
  .exploration-item h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    color: #FFFBF7;
  }
  
  /* description */
  .exploration-item p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
  }


  #arrow {
    background-image: url(ArrowDownCircleFill.svg);
    width: 7rem;
    height: 7rem;
    background-repeat: no-repeat;

    transition: transform 0.4s ease;
    margin: 5rem;

    transform: scale(0.8);
}

#linkedin {
    background-image: url(linkedinIcon.svg);
    width: 5rem;
    height: 5rem;
    background-repeat: no-repeat;
}

#mail {
    background-image: url(MailIcon.svg);
    width: 7rem;
    height: 5rem;
    background-repeat: no-repeat;
}

#logo-footer {
    background-image: url(iconfinalfinal.svg);
    width: 15rem;
    height: 5rem;
    background-repeat: no-repeat;
    margin-left: 3rem; 
}

#arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#arrow:hover {
    cursor: pointer;
    transform: scale(1);
}

#logo-footer-container {
    display: flex;
}

#footer-left {
    display: flex;
    justify-content: end;
    width: 100%;
    margin-right: 3rem;
}

#mail,
#linkedin {
  transform: scale(0.4);
  transition: transform 0.4s ease
}

#footer-copyright {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

#mail:hover,
#linkedin:hover {
    transform: scale(0.6);
    cursor: pointer;
}

a {
    text-decoration: none;
}

.between-p-text {
    font-weight: 400;
    line-height: 2.3;
    margin-top: 5rem;
    margin-bottom: 5rem;
    font-style: italic;
    margin: 4rem;
    margin-top: 10rem;
    margin-bottom: 10rem;
    scroll-margin-top: 10rem;
}

@media (max-width: 768px) {

  /* MAIN GRID — keep structure but center properly */
  #main-section {
      margin: 1.5rem;
      grid-template-columns: 1fr;
      grid-template-rows: auto auto 1fr;
      gap: 0;
  }

  /* LOGO + MENU ROW */
  #logo {
      grid-column: 1;
      grid-row: 1;
      margin: 0;
      width: 8rem;
      height: 4rem;
      background-size: contain;
  }

  #logo-link {
      display: flex;
  align-items: center;
  justify-content: center;
  }

  #menu {
      grid-column: 1;
      grid-row: 2;
      justify-content: center;
      gap: 1.8rem;
      flex-wrap: nowrap; /* 🔥 FIX: prevents ugly stacking */
  }

  .menu-item {
      font-size: 0.8rem;
      white-space: nowrap;
      letter-spacing: 0.1rem;
  }

  /* HERO */
  #text-container {
      grid-column: 1;
      grid-row: 3;
      align-items: center;
      text-align: center;
      justify-content: flex-start;
      margin-top: 6rem;
  }

  #title {
      font-size: 2.1rem;
      margin-top: 0;
      line-height: 1.2;
      word-break: keep-all; /* 🔥 FIX: prevents weird splits */
  }

  #designer-word {
      display: block;
      margin-left: 0;
      margin-top: 0.5rem;
      letter-spacing: 0.4rem;
  }

  #subheader {
      font-size: 1rem;
      line-height: 1.6;
      max-width: 90%;
      letter-spacing: 0.1rem;
  }

  #button {
      width: 15rem;
      height: 3.5rem;
      font-size: 1rem;
  }

  /* BLOBS — anchored like desktop */
  #blob1 {
    top: -9vh;
        left: 62vw;
        width: 17rem;
        height: 16rem;
        background-size: contain;
  }

  #blob2 {
    width: 80vw;
    height: 76vh;
    bottom: -9vh;
    right: 41vw;
    background-size: contain;
  }

  /* PROJECTS */
  #project-section {
      margin: 2rem 1.5rem;
      margin-top: -20vh;
  }

  .projects {
      flex-direction: column;
      padding: 2rem;
      padding-bottom: 0;
  }

  /* FORCE ORDER: text → image → button */
  #p1-text-logo-container,
  #p2-text-logo-container,
  #p3-text-logo-container {
      order: 1;
      align-items: center;
  }

  .p-images {
      order: 2;
      width: 100%;
      height: 220px;
  }

  .p-button {
      order: 3;
      margin-top: 2rem;
  }

  /* TEXT SIZES */
  .p-title {
      font-size: 2rem;
  }

  .p-subheader {
      font-size: 1.1rem;
  }

  .p-text {
      font-size: 1rem;
      line-height: 1.7;
  }

  /* BETWEEN TEXT */
  .between-p-text {
      font-size: 1rem;
      line-height: 2;
      margin: 3rem 0;
  }

  /* FOOTER (light touch only) */
  #logo-footer-container {
      align-items: center;
      margin-bottom: 1rem;
      margin-top: 3rem;
  }

  #footer-left {
      margin-right: 0;
  }

  #logo-footer {
      margin-left: 1rem;
      width: 8rem;
      height: 4rem;
      background-size: contain;
      justify-self: center;
  }

  #arrow {
      width: 5rem;
      height: 5rem;
      background-size: contain;
      margin: 1rem;
  }

  #footer-copyright {
      font-size: 0.9rem;
}

#mobile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: stretch;
  height: auto;
  overflow: hidden;
}

#exploration-wrapper {
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: -20vh;
}

#exploration-section {
  grid-template-columns: 1fr;
  gap: 7rem;
  margin: 0 1.5rem;
  margin-bottom: 5rem;
}

.exploration-item {
  align-items: center;
  text-align: center;
}

.exploration-item h3 {
  font-size: 1.4rem;
}

.exploration-item p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 22rem;
}

.video-wrapper {
  width: 100%;
}

.play-btn {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

}
