 
html, body {
    width: 100%;
    overflow-x: hidden;
}
*{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Comfortaa', cursive;
    background: hsl(210, 42%, 68%);;
    color: #1e1e1e;
    line-height: 1.8;
    position: relative;
        
        /* or your existing bg */
        overflow-x: hidden;
}



.top-banner {
    position: fixed;
    width: 100%;
    background: rgba(5, 5, 5, 0.15);
    backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    color: #f5f5f5;
    padding: 2.6rem 0 1.8rem;
    text-align: center;
    z-index: 100;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.banner-title {
    font-family: 'EB Garamond', serif;
    font-size: 3.6rem;
}

.banner-name {
    font-family: 'EB Garamond', serif;
    opacity: 0.75;
}

.banner-nav {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
    gap: 2.4rem;
}

.banner-nav a {
    color: #f5f5f5;
    text-decoration: none;
    opacity: 0.65;
}

.banner-nav a.active,
.banner-nav a:hover {
    opacity: 1;
}

.hero {
    height: 100vh;
    padding-top: 16rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tagline {
    font-size: 1.7rem;
    text-align: center;
    max-width: 720px;
}

.section {
    padding: 3rem 6vw;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section h2 {
    font-family: 'EB Garamond', serif;
    font-size: 2.3rem;
}

.link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #1e1e1e;
}
/* -------- FEEDBACK BUTTON -------- */
.feedback-btn {
    display: inline-block;
    margin-top: 1.6rem;
    padding: 0.8rem 1.6rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: #1e1e1e;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    transition: all 0.35s ease;
}

.feedback-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

/* -------- AMBIENT BACKGROUND -------- */
.ambient-lines {
    position: fixed;
    inset: -20%;
    z-index: -1;
    opacity: 0.6;
    background:
        repeating-linear-gradient(120deg,
            rgba(0, 0, 0, 0.07),
            rgba(0, 0, 0, 0.07) 1px,
            transparent 1px,
            transparent 80px);
}
footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.9rem;
    opacity: 0.6;
}
/* -------- INFINITY BACKGROUND -------- */
/* -------- TRUE INFINITY BACKGROUND -------- */
/* -------- CLEAN INFINITY BACKGROUND -------- */
/* -------- INFINITY BACKGROUND (ORIGINAL, CLEAN) -------- */
.infinity-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'EB Garamond', serif;
    font-size: 26rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.04);
    z-index: -2;
    pointer-events: none;
    animation: infinityFloat 14s ease-in-out infinite;
}

@keyframes infinityFloat {
    0% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -52%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}
/* -------- IMAGE MANIPULATION PAGE -------- */
.manipulation-block h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.before-after {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
    /* IMPORTANT */
}

.before-after img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.label {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 0.4rem;
    
    text-align: center;
        
}

.explain {
    max-width: 680px;
    opacity: 0.85;
}
/* -------- IMAGE MANIPULATION PAGE BACKGROUND -------- */
.image-manipulation-page {
    background-color: #f6f3e6;
    /* dull, light yellow */
}
/* -------- IMAGE MANIPULATION TITLE ALIGNMENT -------- */
.image-manipulation-page h2 {
    text-align: center;
}
.image-manipulation-page>.section p {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.before-after>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.before-after img.img-tall {
    max-height: 500px;
}
/* -------- IMAGE MANIPULATION TITLE SIZE -------- */
.image-manipulation-page h2 {
    font-size: 4rem;
    /* increase size */
    margin-bottom: 1.8rem;
}
/* -------- PROJECT DROPDOWN -------- */

.project {
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 1.4rem;
}

.project-toggle {
    background: none;
    border: none;
    width: 100%;
    font-family: 'EB Garamond', serif;
    font-size: 1.4rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-toggle span {
    transition: transform 0.35s ease;
}

.project.open .project-toggle span {
    transform: rotate(180deg);
}

.project-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.project.open .project-content {
    max-height: 1000px;
    opacity: 1;
}

.project-desc {
    font-size: 0.95rem;
    opacity: 0.75;
    max-width: 720px;
    margin: 0.8rem 0 1.2rem;
}

/* -------- SIMULATION BOX -------- */

.simulation-box {
    position: relative;
    max-width: 640px;
    border-radius: 14px;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.simulation-box video,
.simulation-box canvas {
    width: 100%;
    display: block;
}

.simulation-box canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.focus-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
}
#statusMsg {
    font-size: 0.95rem;
    opacity: 0.85;
}
/* -------- CONTACT SECTION -------- */

.contact-text {
    max-width: 520px;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-link {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    text-decoration: none;
    color: #1e1e1e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    width: fit-content;
    transition: all 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
    letter-spacing: 0.5px;
}
/* -------- SHRINKING TOP BANNER -------- */

.top-banner {
    transition: padding 0.35s ease, border-radius 0.35s ease;
}

/* Shrunk state */
.top-banner.shrink {
    padding: 0.7rem 0 0.5rem;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

.top-banner.shrink .banner-title {
    font-size: 2.1rem;
}

.top-banner.shrink .banner-name {
    display: none;
}
/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {

    /* -------- TOP BANNER -------- */
    .top-banner {
        padding: 1.4rem 0 1.2rem;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .banner-title {
        font-size: 2.2rem;
    }

    .banner-name {
        font-size: 0.95rem;
    }

    .banner-nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }

    .banner-nav a {
        font-size: 0.9rem;
    }

    /* -------- HERO SECTION -------- */
    .hero {
        padding-top: 12rem;
        height: auto;
        min-height: 70vh;
    }

    .tagline {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    /* -------- SECTIONS -------- */
    .section {
        padding: 2.4rem 1.4rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    /* -------- INFINITY BACKGROUND -------- */
    .infinity-bg {
        font-size: 14rem;
        opacity: 0.035;
    }

    /* -------- PROJECTS -------- */
    .project-toggle {
        font-size: 1.1rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .simulation-box {
        max-width: 100%;
    }

    /* -------- IMAGE MANIPULATION PAGE -------- */
    .before-after {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .image-manipulation-page h2 {
        font-size: 2.4rem;
    }

    /* -------- CONTACT -------- */
    .contact-link {
        font-size: 1.05rem;
    }

    footer {
        padding: 2rem 1rem;
        font-size: 0.8rem;
    }
}

/* ================= SMALL PHONES ================= */
@media (max-width: 420px) {

    .banner-title {
        font-size: 1.9rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .infinity-bg {
        font-size: 11rem;
    }
}
.infinity-bg {
    display: none;
}
/* ================= SUBTLE GRADIENT PULSE RING ================= */

/* ================= MULTI-RING WHITE PULSE ================= */

/* ================= MULTI-RING RIPPLE (WHITE TONES) ================= */

/* ================= MULTI-RING RIPPLE (RINGS ONLY) ================= */

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 580px;
    height: 580px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;

    /* Hollow concentric rings — no center dot */
    background:
            radial-gradient(circle,
                transparent 8%,
    
                rgba(255, 255, 255, 0.18) 16%,
                transparent 20%,
    
                rgba(255, 255, 255, 0.15) 30%,
                transparent 34%,
    
                rgba(255, 255, 255, 0.12) 44%,
                transparent 48%,
    
                rgba(255, 255, 255, 0.09) 58%,
                transparent 62%,
    
                rgba(255, 255, 255, 0.06) 72%,
                transparent 76%);

    animation: rippleOut 16s linear infinite;
    opacity: 0.95;
}

@keyframes rippleOut {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.65;
    }

    40% {
        opacity: 0.85;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.65;
    }
}
@media (max-width: 768px) {
    body::before {
        width: 360px;
        height: 360px;
        opacity: 0.5;
    }
}
/* ================= 3D TOP TRANSITION ================= */

/* ================= VISIBLE 3D TOP TRANSITION ================= */

/* ================= VISIBLE 3D TOP TRANSITION ================= */

.top-banner {
    transform-origin: top center;
    transform: perspective(1200px) rotateX(10deg) translateZ(0);

    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        inset 0 -2px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 1s ease;
}

/* When scroll triggers shrink */
.top-banner.shrink {
    transform: perspective(1200px) rotateX(0deg);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
    .top-banner {
        transform: perspective(1000px) rotateX(5deg);
    }
}
.top-banner {
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body {
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.5) 100%);
}