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

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

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

#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.3s ease, color 0.3s ease;
    cursor: default;
}

.word:hover .letter:nth-child(odd) {
    transform: translateY(-8px);
}

.word:hover .letter:nth-child(even) {
    transform: translateY(8px);
}

.word:hover .letter {
    transition-delay: calc(var(--i) * 40ms);
}


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

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

#blob2 {
    background-image: url(blob22.png);
    bottom: -12vh;
    right: 70vw;
    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;
}

#button {
    width: 15rem;
    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;
}

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

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

#project-menu {
    color: grey;
}

#project-section {
    margin: 0.8rem;
    margin-left: 7rem;
    margin-right: 7rem;
    margin-top: 2rem;
    scroll-margin-top: 6rem;
}

#projects {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5rem;
}

#p1-image {
    background-image: url(HapticFeedbackP1.jpeg);
}

#p2-image {
    background-image: url(electriciansAR.png);
    position: relative;
    top: 3rem;
}

#p3-image {
    background-image: url(CoLabP3.JPG);
}

.projects {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 3rem;
    border-radius: 1rem;
    gap: 3rem;
    min-height: 30rem;
}

#project-1 {
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0) 60%, 
        rgba(146, 53, 252, 0.2) 80%, 
        rgba(82, 56, 255, 0.2) 100%
      );
      
      box-shadow:
      0 0 20px rgba(124, 77, 255, 0.35),
      0 0 40px rgba(79, 124, 255, 0.25);
}

#project-2 {
    background: linear-gradient(
  270deg,
  rgba(0, 0, 0, 0) 60%,
  rgba(51, 255, 0, 0.2) 80%,
  rgba(255, 207, 0, 0.2) 100%
);
    box-shadow:
    0 0 20px rgba(113, 255, 77, 0.35),
    0 0 40px rgba(255, 224, 86, 0.25);

}

#project-3 {
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 60%, rgba(255, 122, 0, 0.2) 80%, rgba(255, 0, 168, 0.2) 100%);
    box-shadow:
    0 0 20px rgba(255, 165, 81, 0.35),
    0 0 40px rgba(252, 101, 202, 0.25);
}

#p1-text-logo-container,
#p2-text-logo-container,
#p3-text-logo-container {
    display: flex;
    flex-direction: column;
    flex: 1;
}


.p-title {
    letter-spacing: 0.3rem;
    margin: 0;
    font-size: 2.8rem;
}

.p-subheader {
    letter-spacing: 0.1rem;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.p-text {
    letter-spacing: normal;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 2.4rem;
    margin: 0;
}

.p-images {
    flex: 0 0 50%; 
    width: 100%;
    aspect-ratio: auto; 
    background-size: cover; 
    border-radius: 0.8rem;
}

#p1-subheader {
    color: rgb(197 146 255);
}

#p2-subheader {
    color: rgb(146 255 118);
}

#p3-subheader {
   color: rgb(255 131 213);
}

.tool-list {
    font-weight: 700;
    letter-spacing: 0.1rem;
    margin: 0;
    margin-top: auto;
}

#p1-button {
    background: linear-gradient(
        90deg, 
        rgba(146, 53, 252, 0.4) 0%, 
        rgba(82, 56, 255, 0.4) 100%
      );
}

#p2-button {
    background: linear-gradient(
        270deg,
        rgba(51, 255, 0, 0.4) 0%,
        rgba(255, 207, 0, 0.4) 100%
      );
}

#p3-button {
    background: linear-gradient(90deg, rgba(255, 122, 0, 0.4) 0%, rgba(255, 0, 168, 0.4) 100%);
}

.p-button {
    width: 15rem;
    height: 4rem;
    
    border-radius: 1.2rem;
    text-align: center;

    transition: transform 0.4s ease;

    letter-spacing: 0.1rem;
    font-weight: 500;
    font-size: 1.2rem; 

    margin-top: auto;
}

.p-button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

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

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

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