@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; 
}

#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(blob55.png);
    top: -25vh;
    left: 70vw;
    width: 40vw;
    height: 70vh;
}

#blob2 {
   background-image: url(blob66.png);
   
   top: 43vh;
   right: 82vw;
   width: 37rem;
   height: 34rem;
}

.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;
}

#about {
    color: grey;
}

a {
    text-decoration: none;
}

#text-container {
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    grid-row: 2;
    margin: 8rem;
    margin-bottom: 0;
}

/* 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;
  }


  #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;
    scroll-margin-top: 15rem;
    margin-top: 15rem;
}

#title {
  font-size: 4rem;
    margin: 0;
    letter-spacing: 0.2rem;
    line-height: 1.6;
    font-weight: 400;
    margin-top: -4rem;
    margin-bottom: 10rem;
}

.word {
  display: inline-block;
}

.letter {
    display: inline-block;
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.3s ease;
  }

  .hi-word:hover .letter {
    transform: translateY(-6px);
  }
  
  .hi-word:hover .letter:nth-child(even) {
    transform: translateY(6px);
  }
  
 #i {
    margin-left: -0.8rem;
 }

 #comma {
    margin-left: -0.8rem;
 }
  
  .hi-word:hover .letter {
    background: repeating-linear-gradient(
      rgba(99, 54, 217, 0.7),
      rgba(231, 49, 73, 0.7),
      rgba(249, 124, 30, 0.7)
    );
  
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  #reach-out-link {
    color: #FFFBF7;
    cursor: pointer;
    font-weight: 600;
    display: inline-block; /* needed for transform */
    animation: pulse 2s ease-in-out infinite alternate;
    margin-left: 0.4rem;

    background: repeating-linear-gradient(
      rgba(129, 79, 255, 0.7),
      rgba(255, 84, 107, 0.7),
      rgba(254, 156, 82, 0.7)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); } /* subtle enlargement */
    100% { transform: scale(1); }
  }
  
  @media (max-width: 768px) {

    /* MAIN GRID */
    #main-section {
        margin: 1.5rem;
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
  
    /* LOGO */
    #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 */
    #menu {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        gap: 1.8rem;
        flex-wrap: nowrap;
    }
  
    .menu-item {
        font-size: 0.8rem;
        white-space: nowrap;
        letter-spacing: 0.1rem;
    }
    
    /* TEXT SECTION */
    #text-container {
        margin: 0;
        margin-top: 9rem;
        margin-bottom: 5rem;

        display: flex;
    flex-direction: column;
    grid-column: span 2;
    grid-row: 2;

    max-width: 900px;   /* controls line length */
    width: 100%;
    margin-left: auto;  /* centers block */
    margin-right: auto;

    margin-top: 6rem;
    }
  
    /* TITLE */
    #title {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: 3rem;
    }
  
    /* BODY TEXT */
    .between-p-text {
        font-size: 1rem;
        line-height: 2;
        margin-top: 3rem;
    }
  
    /* BLOBS (match your other pages behavior) */
    #blob1 {
        width: 80vw;
        height: 60vh;
        top: -10vh;
        left: 50vw;
        background-size: contain;
    }
  
    #blob2 {
        width: 80vw;
        height: 60vh;
        bottom: -5vh;
        right: 45vw;
        background-size: contain;
    }
  
    /* FOOTER */
    #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;
    }
  
    #arrow {
        width: 5rem;
        height: 5rem;
        background-size: contain;
        margin: 1rem;
    }
  
    #footer-copyright {
        font-size: 0.9rem;
    }
  
    /* MOBILE CONTAINER (same as other pages) */
    #mobile-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: stretch;
        height: auto;
        overflow: hidden;
    }
  }