body {
  background: rgba(3, 29, 61, .88);

}

#transition-video {
position: fixed;
object-fit: fill;
	top: 0;
	left: 0;
    inset: 0;
width: 100%;
height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transform: translateY(0);
    transition: transform 1500ms cubic-bezier(.22,.61,.36,1);
}
#transition-video.active {
  opacity: 1;
  z-index: 50;
  
}
#transition-video-reverse {
    position: fixed;
    object-fit: fill;
	top: 0;
	left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transform: translateY(0);
    transition:
    transform 1500ms cubic-bezier(.22,.61,.36,1),
}
#transition-video-reverse.active {
  opacity: 1;
  z-index: 50;
  
}

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 28px;

  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
text-shadow: 0 1px 2px rgba(0,0,0,0.9),
             0 4px 12px rgba(0,0,0,0.5);

  color: rgba(255, 255, 255, 0.75);
  mix-blend-mode: normal;
  z-index: 9999;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 4px 6px;
z-index: 9999;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: -6px -8px;
  background: rgba(0,0,0,0.8);
  border-radius: 6px;
  opacity: 0;
  transition: 0.2s ease;
  z-index: -1;

}
.droplet {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    opacity: 0;
    pointer-events: none;
}

.nav a:hover {
    color: rgba(100,255,100,0.85);
}
.nav a.active {
    color: rgb(35, 235, 88);
    text-shadow:
        0 0 8px rgba(255,255,255,0.8),
        0 0 20px rgba(255,255,255,0.5);
}

.nav a:hover .d2 {
    animation: drip 0.8s ease-out 0.15s;
}
@keyframes drip {
    0% {
        opacity: 1;
        transform: translate(0,0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(0,40px) scale(.3);
    }
}
.scene {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
}

.background {
  width: 100%;
  height: 100%;
  z-index: 1;
}
@media (max-width: 600px) {
    .background {
        object-fit: cover;
        object-position: center center;
    }
}
.foreground {
  width: 100%;
  height: 100%;
  z-index: 3;
}
@media (max-width: 600px) {
    .foreground {
        object-fit: cover;
        object-position: center center;
    }
}
.hidden {
    display: none;
}

#canvas-home {
  position: absolute;
  opacity: 0.5;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 600px) {
    #canvas-home {
        object-fit: cover;
        object-position: center center;
    }
}
#canvas-projects {
  position: absolute;
  opacity: 0.8;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
#content {
    position: fixed;
    inset: 0;
    z-index: 1000;

    overflow-y: hidden;
    color: white;

    opacity: 1;
    transform: translateY(100%);
    transition: transform 1500ms cubic-bezier(.22,.61,.36,1);
    
}

#content.visible {
    opacity: 1;
}
.projects-page {
    color: rgb(107 164 233 / 0.96);
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.projects-page.ready {
    background-color: transparent; /* rgba(3, 29, 61, 0.66);*/
}  



.projects-page {
    color: rgb(107 164 233 / 0.96);
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ==========================
   FEATURED PROJECT
========================== */

.featured-project {

    flex: 0 0 75vh;

    display: grid;
    grid-template-columns: 0.5fr 1fr;

    align-items: center;

    padding: 5%;
    box-sizing: border-box;
}
#featured-description {
    white-space: pre-line;
}

.project-links {
    margin-top: 20px;
}


.project-image {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}


.project-info {
    padding: 0 2%;
}

.featured-image {

    display: none;
}


/* ==========================
   DEVICE FRAME BASE
========================== */

.device-frame {

    position: relative;

    overflow: hidden;

    box-sizing: border-box;

    display: block;

    box-shadow:
        0 20px 50px rgb(107 164 233 / .96),
        inset 0 0 0 2px rgba(255,255,255,.16);

}


/* SCREEN CONTENT */

.device-frame img,
.device-frame video {

    position: absolute;

    inset: 10px;

    width: calc(100% - 20px);
    height: calc(100% - 20px);

    object-fit: cover;

    border-radius: inherit;

    transition:
        opacity .3s ease;

}


/* ==========================
   PHONE
========================== */


.phone-frame {

    height: 50vh;

    aspect-ratio: 1080 / 2220;

    padding: 10px;

    border: 4px solid #080b10;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            #39424e,
            #11161d 45%,
            #05070a
        );
}


.phone-frame img {
    opacity:1;
    z-index:2;
}


.phone-frame video {
    opacity:1;
    z-index:1;
}


.phone-frame:hover img {
    opacity:0;
}


.phone-frame:hover video {
    opacity:1;
}


/* PHONE SPEAKER */

.phone-speaker {

    position:absolute;

    z-index:5;

    top:5px;
    left:50%;

    width:28%;
    height:4px;

    transform:translateX(-50%);

    border-radius:999px;

    background:#050608;

}


/* ==========================
   ALEXA DEVICE
========================== */


.echo-show-frame {

    position: relative;

    height: 38vh;
    aspect-ratio: 16 / 10;

    border-radius: 24px;

    padding: 12px;

    background:
        linear-gradient(
            145deg,
            #3b3b3b,
            #111
        );

    border: 3px solid #080808;

    box-shadow:
        0 25px 60px rgba(107,164,233,.8),
        inset 0 0 10px rgba(255,255,255,.15);

}
.echo-show-frame img,
.echo-show-frame video {

    border-radius: 14px;

}
.echo-show-frame::after {

    content:"";

    position:absolute;

    left:8%;
    right:8%;

    bottom:-12px;

    height:14px;

    border-radius:
        0 0 20px 20px;


    background:#080808;

    box-shadow:
        0 10px 20px rgba(0,0,0,.5);

}


/* For videos/images that already contain their own frame */
.no-frame {
    position: relative;
    height: 38vh;
    aspect-ratio: 16 / 10;

}

.no-frame img,
.no-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
        filter: drop-shadow(0 20px 50px rgb(107 164 233 / .96));
}

.no-frame .phone-speaker {
    display: none;
}






/* ==========================
   PROJECT CAROUSEL
========================== */


.bottom {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 25vh;

    background:
        rgb(107 164 233 / .96);

    display: flex;
    align-items: center;
}








/* ==========================
   TEXT
========================== */


h2 {

    color:white;

    font-size:42px;

    font-weight:500;

    text-shadow:
        0 0 8px #6BA4E9,
        0 0 16px #6BA4E9,
        0 0 32px #6BA4E9;

}



.tech-stack span {

    display:inline-block;

    margin-right:8px;

    padding:4px 10px;

    background:rgba(255,255,255,.1);

    border-radius:6px;

    font-size:12px;

}

.project-links a {
    margin-right: 15px;
    color: white;
    text-decoration: underline;
}
.project-carousel {
    position: relative;
    width: 100%;
}

.project-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 50px;
}

.project-grid::-webkit-scrollbar {
    display: none;
}
.project-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 60px;

    border: none;
    background: rgba(5, 20, 35, 0.75);
    color: white;

    font-size: 36px;
    line-height: 1;

    cursor: pointer;
    z-index: 10;

    opacity: 0.8;
}

.project-arrow:hover {
    opacity: 1;
}

.project-arrow-left {
    left: 0;
}

.project-arrow-right {
    right: 0;
}

.project-arrow.hidden {
    display: none;
}

.project-card {
    position: relative;

    flex: 0 0 clamp(150px, 18vw, 220px);
    aspect-ratio: 1 / 1;

    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: fill;
    border-radius: 12px;
}
.project-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.85)
    );

    pointer-events: none;
}

.project-card h3 {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 50px;
    margin: 0;

    color: white;
    font-size: 15px;
    line-height: 1.2;

    z-index: 2;
}

.project-card p {
    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 12px;

    margin: 0;

    color: white;
    font-size: 12px;
    line-height: 1.2;

    z-index: 2;
}
h2 {
    color: white;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-radius: 1px;
    text-shadow:
        0 0 4px #6BA4E9,
        0 0 8px #6BA4E9,
        0 0 16px #6BA4E9,
        0 0 32px #6BA4E9,
        0 0 64px rgba(107,164,233,0.8);
}
h3 {
    color: white;
    bottom: 50px;
}

.subtitle {
    opacity: 0.7;
    font-size: 16px;
}
.tech span {
    margin-right: 10px;
    font-size: 13px;
    opacity: 0.6;
}
.project-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
}

.project-item .name {
    font-size: 18px;
}

.project-item .meta {
    opacity: 0.5;
    font-size: 14px;
}

/* WAVE SEAM */
#wave-seam {
    position: absolute;
    top: -80px;          /* same as the wave height */
    left: 0;
    width: 100%;
    height: 80px;
    line-height: 0;

    /*transform: translateY(100vh);*/
    transition: transform 1500ms cubic-bezier(.22,.61,.36,1);
}

#wave-seam svg {
  width: 100%;
  height: 100%;
  display: block;
}

#wave-seam path {
  fill: rgb(107 164 233 / 0.96);
}
.bottom {
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 25vh;
    box-sizing: border-box;
    background: rgb(107 164 233 / 0.96);
}
.video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 76px;
    height: 76px;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;

    background: rgba(5, 15, 25, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;

    backdrop-filter: blur(6px);

    box-shadow:
        0 0 15px rgba(107, 164, 233, 0.7),
        0 0 35px rgba(107, 164, 233, 0.35);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.35s ease;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);

    background: rgba(10, 30, 50, 0.75);

    box-shadow:
        0 0 20px rgba(107, 164, 233, 0.9),
        0 0 45px rgba(107, 164, 233, 0.5);
}


/* The actual play triangle */

.play-icon {
    width: 0;
    height: 0;

    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 25px solid white;

    margin-left: 5px;

    filter:
        drop-shadow(0 0 6px rgba(107, 164, 233, 0.9));
}


/* When video is playing */

.video-play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

#home-tagline {
    position: fixed;
    right: 5%;
    bottom: 5%;
    

    color: white;
    text-align: center;

font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 6vh, 32px);
    font-weight: 200;
    letter-spacing: 0.08em;
    line-height: 1.1;

    z-index: 999999;
    pointer-events: none;

    opacity: 1;
    transition: opacity 1500ms ease-in-out;
}


#home-tagline.hidden {
    opacity: 0;
    visibility: visible;
}
.tagline-main {
    font-size: inherit;
    letter-spacing: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    text-shadow: inherit;
    font-weight: 10;
    z-index: inherit;
}
.tagline-sub {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;

    font-size: clamp(14px, 1.5vw, 22px);
    font-weight: 400;
}

.tagline-sub img {
    width: clamp(24px, 2.5vw, 40px);
    height: auto;
}

#about-panel {
position: fixed;
right: 7%;
top: 50%;
transform: translateY(-50%);


width: min(520px, 40vw);
padding: 45px;

background: rgba(5, 20, 35, 0.72);
backdrop-filter: blur(8px);

border: 1px solid rgba(255, 255, 255, 0.15);

color: white;
font-family: 'Montserrat', sans-serif;

z-index: 9999;

opacity: 0;
pointer-events: none;

transition: opacity 900ms ease;


}

#about-panel.visible {
opacity: 1;
pointer-events: auto;
}

#about-panel h1 {
margin: 0 0 18px;
font-size: 22px;
font-weight: 500;
letter-spacing: 0.08em;
}

.about-line {
width: 50px;
height: 1px;
background: rgba(255, 255, 255, 0.5);
margin-bottom: 28px;
}

#about-panel p {
margin: 0 0 22px;
font-size: 15px;
line-height: 1.8;
font-weight: 400;
}

#about-panel h2 {
margin: 32px 0 10px;
font-size: 13px;
font-weight: 500;
letter-spacing: 0.12em;
}

#about-panel .about-tech {
margin-bottom: 28px;
font-size: 13px;
opacity: 0.75;
}

.about-closing {
font-size: 12px;
letter-spacing: 0.1em;
opacity: 0.55;
}

#contact-panel {
    position: fixed;

    left: 7%;
    top: 50%;
    transform: translateY(-50%);

    width: min(520px, 40vw);

    padding: 45px;

    background: rgba(5, 20, 35, 0.72);
    backdrop-filter: blur(8px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    color: white;
    font-family: 'Montserrat', sans-serif;

    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: opacity 900ms ease;
}

#contact-panel.visible {
    opacity: 1;
    pointer-events: auto;
}

#contact-panel h1 {
    margin: 0 0 18px;

    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.contact-line {
    width: 50px;
    height: 1px;

    background: rgba(255, 255, 255, 0.5);

    margin-bottom: 28px;
}

#contact-panel p {
    margin: 0 0 22px;

    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
}

.contact-email {
    margin: 32px 0;
}

.contact-email a {
    color: white;

    font-size: 18px;
    letter-spacing: 0.05em;

    text-decoration: none;

    padding-bottom: 6px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.35);

    transition: border-color 300ms ease, opacity 300ms ease;
}

.contact-email a:hover {
    border-color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

.contact-closing {
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.55;
}



