html, body { 
    height: 100%; 
    width: 100%; 
    /* This completely erases the split and matches your clean aesthetic automatically! */
    background-color: #f1f1f1; 
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

* { margin: 0%; padding: 0%; box-sizing: border-box; font-family: 'Inter', gilroy, sans-serif; }
html, body { height: 100%; width: 100%; }
#main { position: relative; overflow: hidden; }

canvas {
    position: relative;
    z-index: 99;
    max-width: 100vw;
    max-height: 100vh;
    /* CRITICAL: Allows clicks to pass through transparent parts of canvas to your links! */
    pointer-events: none; 
}

#loop { display: flex; position: absolute; top: 30%; height: 25%; width: 100%; font-size: 100px; white-space: nowrap; font-family: 'Inter', gilroy, sans-serif; }
#loop>h1 { font-weight: 400; animation: anim 18s linear infinite; letter-spacing: -1px; }
#loop>h1>span { -webkit-text-stroke: 1.2px #000; color: transparent; font-weight: 500; }

@keyframes anim { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }

/* ======= NAV ======= */
#nav { display: flex; align-items: center; justify-content: space-between; height: 7%; width: 100%; position: fixed; z-index: 99; padding: 0px 30px; background: rgba(241, 241, 241, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#nav>h3 { font-family: 'Inter', gilroy, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: -0.5px; }
#nav-links { display: flex; gap: 28px; align-items: center; }
#nav-links a { font-size: 13px; font-weight: 500; color: #333; text-decoration: none; letter-spacing: 0.5px; transition: color 0.2s; }
#nav-links a:hover { color: #000; }
#nav>button { padding: 10px 22px; border-radius: 50px; background-color: #000; color: #fff; border: none; font-size: 12px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: background 0.25s, transform 0.2s; pointer-events: auto; }
#nav>button:hover { background: #222; transform: scale(1.04); }

#page-sub { position: absolute; top: 55%; font-family: 'Inter', gilroy, sans-serif; font-weight: 400; color: #7c7c7c; left: 5%; font-size: 14px; letter-spacing: 0.3px; }
#page>h4 { position: absolute; top: 62%; left: 25%; font-family: 'Inter', gilroy, sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 1px; color: #555; }

/* ======= ALL INTERACTIVE SCROLL PAGES ======= */
.page { position: relative; height: 100vh; width: 100vw; background-color: #f1f1f1; }
.page .right-text { position: absolute; top: 30%; left: 10%; pointer-events: auto; }
.page .right-text > h3, .page .text1 > h3, .page .text3 > h3, .page .left-text > h3, .page .text2 > h3, .page .text2 > p { font-weight: 400; color: #7c7c7c; font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; }
.page .right-text > h1, .page .text1 > h1, .page .text3 > h1, .page .left-text > h1, .page .text2 > h1 { line-height: 1.3; font-size: 52px; font-weight: 700; letter-spacing: -1px; }

.page .left-text { position: absolute; top: 50%; right: 10%; text-align: end; pointer-events: auto; }
.page .left-text > h3 { margin-top: 12px; margin-bottom: 0px; }

.page .text1 { position: absolute; top: 30%; left: 10%; pointer-events: auto; }
.page .text1 > h1 { font-size: 60px; }

.page .text2 { position: absolute; top: 55%; right: 10%; text-align: end; max-width: 500px; pointer-events: auto; }
.page .text2 > p { line-height: 2; letter-spacing: 0.5px; }

.page .text3 { position: absolute; top: 40%; right: 10%; text-align: end; pointer-events: auto; }
.page .text3 > h1 { font-size: 70px; letter-spacing: -2px; line-height: 1.1; }

/* ======= INTERACTIVE PROJECT LINKS ======= */
.project-list-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; }
.project-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; margin-top: 20px; }
.project-link { font-size: 16px; font-weight: 700; color: #000; text-decoration: none; padding: 10px 24px; border: 1.5px solid #000; border-radius: 50px; transition: all 0.3s ease; background: transparent; pointer-events: auto; }
.project-link:hover { background: #000; color: #f1f1f1; transform: scale(1.04); }

/* ======= SKILLS TAGS ======= */
.skills-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 25px; }
.skills-tags span { padding: 8px 18px; border-radius: 50px; border: 1.5px solid #000; font-size: 13px; font-weight: 600; color: #000; background: transparent; transition: all 0.2s ease; cursor: default; }
.skills-tags span:hover { background: #000; color: #f1f1f1; }

/* ======= FOOTER LINK BUTTONS ======= */
.footer-btn { display: inline-block; font-size: 14px; font-weight: 600; color: #333; text-decoration: none; padding: 10px 24px; border-radius: 50px; background: #e0e0e0; transition: all 0.3s ease; pointer-events: auto; }
.footer-btn:hover { background: #000; color: #fff; transform: scale(1.05); }

/* ======= SOUND BUTTON ======= */
#sound-btn { position: fixed; bottom: 28px; right: 28px; z-index: 9999; width: 50px; height: 50px; border-radius: 50%; background: rgba(8, 12, 28, 0.85); border: 1px solid rgba(100, 220, 200, 0.40); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 18px rgba(100, 220, 200, 0.28), 0 4px 20px rgba(0, 0, 0, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s, background 0.3s; pointer-events: auto; }
#sound-btn:hover { border-color: rgba(100, 220, 200, 0.80); box-shadow: 0 0 28px rgba(100, 220, 200, 0.55); transform: scale(1.08); background: rgba(20, 30, 50, 0.95); }
#sound-btn.muted { border-color: rgba(255, 100, 100, 0.35); box-shadow: 0 0 16px rgba(255, 80, 80, 0.22); }
#sound-btn.muted:hover { border-color: rgba(255, 100, 100, 0.70); box-shadow: 0 0 28px rgba(255, 80, 80, 0.45); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    #loop { font-size: 52px; } #nav-links { display: none; } #sound-btn { bottom: 18px; right: 18px; width: 44px; height: 44px; font-size: 18px; }
    .page h1 { font-size: 32px !important; } .page h3, .page p { font-size: 11px !important; }
    .page .left-text, .page .text2, .page .text3, .page .text1, .page .right-text { max-width: 100% !important; left: 5% !important; right: 5% !important; text-align: left !important; }
    .project-list-right, .skills-tags { align-items: flex-start !important; justify-content: flex-start !important; }
}
/* Pulls the footer forward and makes its background invisible! */
#page6 {
    z-index: 100;
    background-color: transparent !important; 
}


