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

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

h1, h2, h3, 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;
    letter-spacing: 1rem;
}


#subheader {
    letter-spacing: 0.2rem;
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    margin: 1rem;
    text-align: center;
    margin-left: 5rem;
    margin-right: 5rem;
    line-height: 2.5rem;
}

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

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


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

#project-menu {
    color: grey;
}

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

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

.p-subheader {
    letter-spacing: 0.1rem;
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 2.2rem;
    margin-top: 12rem;
}

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

.between-p-text {
    font-weight: 400;
    line-height: 2.3;
    margin-top: 1rem;
    font-size: 1.7rem;
    margin-bottom: 3rem;
}

#arrow {
    background-image: url(ArrowDownCircleFillGreen.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;
  }

  .haptics-word {
    display: inline-block;
    margin-left: -0.05rem;
  }
  
  .haptics-word .letter {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: -2rem;
  }

  .haptics-word:hover .letter {
    animation: electric-jitter 0.18s infinite;
  }

  .haptics-word:hover .letter:nth-child(odd) {
    animation-duration: 0.16s;
  }
  
  .haptics-word:hover .letter:nth-child(even) {
    animation-duration: 0.20s;
  }
  
  .haptics-word:hover .letter:nth-child(3n) {
    animation-delay: 0.04s;
  }
  
  .haptics-word:hover .letter:nth-child(4n) {
    animation-delay: 0.08s;
  }

  #project-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  
    margin-top: 5.5rem;
    padding: 2rem 2.4rem;
    
    max-width: 34rem;
    width: 100%;
  
    border-radius: 1rem;
    
  box-shadow:
  0 0 12px rgba(51, 255, 0, 0.25),
  0 0 24px rgba(255, 207, 0, 0.25);
  
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
  }
  
  
  #project-meta p {
    margin: 0;
    color: #FFFBF7; /* same white as the rest */
    white-space: nowrap;
  }
  
  #project-meta span {
    font-weight: 400;
    margin-right: 0.6rem;
    color: #FFFBF7;
  }

  #project-meta p:last-child::after {
    content: "";
  }


.image-block-solo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 5rem;
    height: 100%;
    align-items: center;
    text-align: center;
}

/* We target the caption inside the solo block specifically */
.image-block-solo .exploration-item {
    width: 70%; /* This MUST match the width you set for #image2 */
    text-align: left;
    margin-top: 1rem;
}

#image2 {
    width: 70%; /* Keep this width to make it 'smaller' */
    height: auto;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    background-image: url(image2.svg);
    /* Remove margin-left/right auto from here, the parent now handles centering */
}

#image1, #image3 {
    /* Remove the fixed width and height */
    width: 100%; 
    height: 45vh; /* Keep the height if you want them tall */
    
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
}

#image4, #image5 {
    width: 100%; 
    height: 65vh; /* Increased height to show more of the UI */
    background-position: top center; /* Start from the top of the interface */
    background-size: contain; /* This ensures the WHOLE image fits without cropping */
    background-repeat: no-repeat;
    border-radius: 1rem;
}

.image-block {
    flex: 1; /* This forces both blocks to share the width 50/50 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0; /* Prevents flex children from bursting out */
}

#image-container {
    display: flex;
    gap: 1rem;
  }
  
  /* caption styling */
  .exploration-item {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08rem;
    color: #FFFBF7;
    
    text-align: left;      /* force left alignment */
    align-self: flex-start; /* prevents flex centering */

    margin-top: 1rem;      /* consistent spacing from image */
    margin-bottom: 2rem;
  }
  

.exploration-item h3 {
    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;
  }


#goal-header, #goal-text {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 10rem;
}

#insights {
    margin-bottom: 5rem;
}

#image10 { background-image: url('glassessketchelectricians.png'); }
#image11 { background-image: url('iconsketchelectricians.png'); }
#image12 { background-image: url('image12.png'); }


.tech-card-container {
    display: flex;
    gap: 3rem; /* Slightly wider gap for better breathing room */
    margin: 10rem 0; /* More vertical space to match your section margins */
    justify-content: center;
}

.tech-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* More space between title and text */
    padding: 3rem; /* Increased padding to match the 'projects' card feel */
    border-radius: 1rem;
    background: transparent; 
    
    /* Maintaining your signature glow */
    box-shadow:
  0 0 12px rgba(51, 255, 0, 0.25),
  0 0 24px rgba(255, 207, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}


.card-title-purple {
    color: rgb(132 218 65);
    font-size: 1.6rem; /* Increased to stand out next to 1.5rem body text */
    letter-spacing: 0.15rem;
    font-weight: 700;
    margin: 0;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
}

.card-text {
    font-size: 1.5rem; /* Matches your .between-p-text size */
    line-height: 2.3;
    margin: 0;
    color: #FFFBF7;
    font-weight: 400;
    margin-top: 1.5rem;
}

.left {
    text-align: match-parent;
}

.card-text.italic {
    font-style: italic;
    opacity: 0.95;
}

/* Quote styling */
.quote-text {
    font-style: italic;
    font-size: 1.8rem;
    color: rgb(132 218 65);
    border-left: 3px solid rgba(132, 218, 65, 0.5);
    padding-left: 2rem;
    margin: 2rem 0;
}

@keyframes electric-jitter {
    
    0%  { 
      transform: translate(0,0);
      filter: brightness(1);
      text-shadow: 0 0 4px rgba(51, 255, 0, 0.4);
    }
    
    20% { 
      transform: translate(-0.5px,0.5px);
      filter: brightness(1.2);
      text-shadow: 0 0 8px rgba(255, 207, 0, 0.4);
    }
  
    40% { 
      transform: translate(0.5px,-0.5px);
      filter: brightness(1.3);
      text-shadow: 0 0 12px rgba(51, 255, 0, 0.4);
    }
  
    60% { 
      transform: translate(-0.5px,0);
      filter: brightness(1.15);
      text-shadow: 0 0 10px rgba(255, 207, 0, 0.4);
    }
  
    80% { 
      transform: translate(0.5px,0);
      filter: brightness(1.25);
      text-shadow: 0 0 14px rgba(51, 255, 0, 0.4);
    }
  
    100%{ 
      transform: translate(0,0);
      filter: brightness(1);
      text-shadow: 0 0 4px rgba(255, 207, 0, 0.4);
    }
  
  }
    
    #image-prototype {
        background-image: url('IMG_4196.PNG');
    }
    
    #image-prototype2 {
        background-image: url('IMG_4069.hcig.jpg');
    }
    
    #image-prototype,
    #image-prototype2 {
    
        width: 100%;
        height: 45vh;
    
        background-position: center;
        background-size: cover;   /* ✅ good for photos */
        background-repeat: no-repeat;
    
        border-radius: 1rem;
    }

    #image-container2 {
        display: flex;
    gap: 5rem;
    }

#insight-card2 {
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 45rem;
}

.taxonomy-heading {
    margin: 0;
    margin-top: 5rem;
}

.last-quote {
    margin-top: 15rem;
    margin-bottom: 7rem;
}

/* PROCESS SECTION */

.process-section{
    margin:10rem 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4rem;
    }
    
    /* diamond layout */
    
    .diamond-process{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4rem;
        flex-wrap: wrap;
    }
    
    /* diamond shape */
    
    .diamond{
        width:140px;
        height:140px;
        background:transparent;
        border:2px solid rgba(132,218,65,0.45);
        transform:rotate(45deg);
        display:flex;
        align-items:center;
        justify-content:center;
        cursor:pointer;
        transition:all 0.35s ease;
        position:relative;
        }
    
    /* inner text corrected */
    
    .diamond-inner{
    transform:rotate(-45deg);
    text-align:center;
    pointer-events:none;
    }
    
    .diamond h3{
    font-size:1.5rem;
    font-weight:500;
    letter-spacing:0.1rem;
    color:#FFFBF7;
    }
    
    /* hover glow */
    
    .diamond:hover{
        transform:rotate(45deg) scale(1.05);
        box-shadow:
        0 0 12px rgba(51,255,0,0.25),
        0 0 24px rgba(255,207,0,0.25);
        }
    
    /* active state */
    
    .diamond.active{
        box-shadow:
        0 0 12px rgba(51,255,0,0.25),
        0 0 24px rgba(255,207,0,0.25);
        }
    
    /* content area */
    
    .process-content{
    max-width:850px;
    width:100%;
    }
        
    .process-panel{
    display:none;
    text-align:center;
    }
    
    .process-panel.active{
    display:block;
    animation:fadeProcess 0.4s ease;
    }
    
    @keyframes fadeProcess{
    from{
    opacity:0;
    transform:translateY(10px);
    }
    to{
    opacity:1;
    transform:translateY(0);
    }
    }
    
    .concept-image{
        width: 80%;
        height:auto;            /* ✅ key: natural proportions */
        
        border-radius:1rem;
        
        }
.section-margin {
    margin-bottom: 10rem;
}

#image-system1 {
    background-image: url('IMG_4262.PNG');
}

#image-system2 {
    background-image: url('IMG_4263.PNG');
}

/* reuse your existing style */
#image-system1, #image-system2 {
    width: 100%;
    height: 45vh;
    background-position: center;
    background-size: cover;
    border-radius: 1rem;
}

.video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 4rem 0 2rem 0;
}

.case-study-video {
    width: 70%;
    max-width: 1000px;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    background: #000;
}

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

.video-wrapper.playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

.final-concept-text {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto 3rem auto;
}

.final-concept-text .p-subheader {
    margin-top: 12rem;
}

.final-concept-text .between-p-text {
    margin-bottom: 0;
}

.left-aligned {
    text-align: left;
}

/* Keep arrow perfectly centered */
#arrow-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Previous project (LEFT) */
.prev-project-inline {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);

    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
    color: #FFFBF7;
    text-decoration: none;
    opacity: 0.8;

    transition: all 0.3s ease;
}

.next-project-inline {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);

    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.12rem;
    color: #FFFBF7; /* FIX: remove blue */
    text-decoration: none;
    opacity: 0.8;

    transition: all 0.3s ease;
}

.next-project-inline:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

.prev-project-inline:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 768px) {

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

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

    /* 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 (IDENTICAL TO PAGE 1) */
    #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;
    }

    /* 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.3rem;
        margin-top: 0;
        line-height: 1.2;
        letter-spacing: 0.4rem;
        word-break: keep-all;
    }

    .haptics-word {
        letter-spacing: 0.91rem;
        margin-left: 2.3rem;
    }

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

    /* PROJECT META */
    #project-meta {
        margin-top: 3rem;
        padding: 1.5rem;
        font-size: 1rem;
        width: 72%;
        align-items: center;
        text-align: center;
    }

    #project-meta p {
        white-space: normal;
    }

    /* BLOBS */
    #blob1 {
        width: 80vw;
        height: 60vh;
        top: -12vh;
        left: 50vw;
        background-size: contain;
    }

    #blob2 {
        width: 82vw;
        height: 61vh;
        bottom: -30vh;
        right: 42vw;
        background-size: contain;
    }

    /* MAIN CONTENT */
    #project-section {
        margin: 2rem 1.5rem;
        max-width: 315px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    /* TEXT */
    .p-subheader {
        font-size: 1.6rem;
        margin-top: 6rem;
    }

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

    .between-p-text {
        font-size: 1.1rem;
        line-height: 2;
        margin: 1rem 0;
        margin-bottom: 2rem;
    }

    /* IMAGES */
    #image-container,
    #image-container2 {
        flex-direction: column;
        gap: 0;
    }

    .image-block {
        width: 100%;
    }

    .concept-image {
        width: 100%;
    }

    #image-prototype,
    #image-prototype2,
    #image-system1,
    #image-system2 {
        height: 220px;
    }

    .exploration-item {
        font-size: 1.1rem;
        margin-top: 0rem;
        margin-bottom: 2rem;
    }

    /* TECH CARDS */
    .tech-card-container {
        flex-direction: column;
        gap: 4rem;
        margin: 3rem 0;
        align-items: center;
    }

    .tech-card {
        width: 100%;
        max-width: 320px;
        padding: 1.5rem;
        gap: 0.8rem;
    }

    .card-title-purple {
        font-size: 1.1rem;
        letter-spacing: 0.1rem;
    }

    .card-text {
        font-size: 1rem;
        line-height: 2;
        margin-top: 0.5rem;
    }

    /* PROCESS (DIAMONDS) */
    .process-section {
        margin: 4rem 0;
        gap: 2rem;
    }

    .diamond-process {
        gap: 3rem;
    }

    .diamond {
        width: 90px;
        height: 90px;
    }

    .diamond h3 {
        font-size: 0.8rem;
        letter-spacing: 0.05rem;
    }

    .process-content {
        max-width: 100%;
    }

    /* VIDEO */
    .case-study-video {
        width: 100%;
    }

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

    /* QUOTES */
    .quote-text {
        font-size: 1.2rem;
    }

    .last-quote {
        margin-top: 8rem;
        margin-bottom: 5rem;
    }

    /* FINAL TEXT */
    .final-concept-text {
        padding: 0 1rem;
    }

    .left-aligned {
        text-align: left;
    }

    /* 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-container {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .prev-project-inline,
    .next-project-inline {
        position: static;
        transform: none;
        text-align: center;
    }

    #arrow-link-footer {
        order: 1; /* 🔥 Arrow FIRST */
    }
  
    .next-project-inline {
        order: 2; /* Designing Together SECOND */
    }
  
    .prev-project-inline {
        order: 3; /* Trackpad Haptics LAST */
    }
}