*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
    font-family: gilroy;
}
html,body{
    height: 100%;
    width: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.08) 0%, transparent 52%),
                radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.18) 0%, transparent 54%),
                linear-gradient(160deg, #020716 0%, #0b1023 100%);
    color: #f8fbff;
}
:root{
    --sgX: 0px;    /* horizontal nudge for sunglasses */
    --sgY: -2vh;   /* vertical nudge for sunglasses */
    --sgScale: 1;  /* global scale tweak for sunglasses */
    --bg-primary: #020716;
    --bg-secondary: #0b1023;
    --glass-dark: rgba(12, 19, 39, 0.78);
    --glass-light: rgba(17, 25, 44, 0.62);
    --border-subtle: rgba(135, 160, 215, 0.18);
    --border-strong: rgba(125, 182, 255, 0.34);
    --accent: #7dd3fc;
    --accent-soft: rgba(125, 211, 252, 0.24);
    --text-primary: #f8fbff;
    --text-secondary: #cdd6f6;
    --text-muted: #8b9ac7;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Inter", "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html,body{
    height: 100%;
    width: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.08) 0%, transparent 52%),
                radial-gradient(circle at 80% 10%, rgba(129, 140, 248, 0.18) 0%, transparent 54%),
                linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}
#main{
    position: relative;
    overflow: hidden;
}
#page{
    position: relative;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 48% 20%, rgba(125, 211, 252, 0.08) 0%, transparent 60%),
                linear-gradient(180deg, rgba(2, 7, 22, 0.92) 0%, rgba(1, 5, 14, 0.72) 100%);
}
#page .hero-rim{
    position: absolute;
    inset: 0;
    padding: clamp(24px, 6vw, 96px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: clamp(18px, 4vw, 48px);
    pointer-events: none;
    position: relative;
    isolation: isolate;
}
.rim-block{
    background: linear-gradient(155deg, var(--glass-dark) 0%, rgba(12, 21, 49, 0.42) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 22px 24px;
    color: var(--text-primary);
    max-width: min(420px, 34vw);
    box-shadow: 0 22px 60px rgba(7, 15, 32, 0.52);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}
.rim-block:hover{
    border-color: var(--border-strong);
    box-shadow: 0 24px 68px rgba(40, 82, 204, 0.45);
}
.rim-block::-webkit-scrollbar{ display: none; }
.rim-block.top-left{ grid-column: 1; grid-row: 1; align-self: start; justify-self: start; }
.rim-block.top-right{ grid-column: 3; grid-row: 1; align-self: start; justify-self: end; }
.rim-block.bottom-left{ grid-column: 1; grid-row: 3; align-self: end; justify-self: start; }
.rim-block.bottom-right{ grid-column: 3; grid-row: 3; align-self: end; justify-self: end; }
.hero-eyebrow{
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.hero-name{
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 700;
    margin-bottom: 18px;
}
.hero-lede{
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.hero-meta{
    display: grid;
    gap: 12px;
}
.meta-item{
    background: linear-gradient(150deg, rgba(125, 211, 252, 0.08), rgba(148, 163, 233, 0.06));
    border-radius: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(125, 211, 252, 0.28);
}
.meta-item span{
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: 4px;
}
.meta-item a{
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    word-break: break-word;
}
.meta-item a:hover{
    color: var(--accent);
}
.rim-list{
    list-style: disc inside;
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
}
.rim-block h3{ font-size: 18px; margin-bottom: 12px; color: var(--text-primary); }
.rim-block p{ font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
#page1{
    position: relative;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 12% 18%, rgba(125, 211, 252, 0.08) 0%, transparent 55%),
                linear-gradient(200deg, rgba(3, 9, 24, 0.92) 0%, rgba(4, 9, 22, 0.72) 100%);
}
#page1 .section,
#page2 .section,
#page3 .section{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
}
.section.edge-layout{
    padding: clamp(24px, 6vw, 96px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    gap: clamp(18px, 4vw, 48px);
    pointer-events: none;
}
.edge-block{
    background: linear-gradient(160deg, var(--glass-light) 0%, rgba(18, 27, 58, 0.38) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 26px;
    max-width: min(460px, 36vw);
    box-shadow: 0 16px 46px rgba(6, 12, 28, 0.44);
    backdrop-filter: blur(16px);
    pointer-events: auto;
}
.edge-block:hover{ border-color: var(--border-strong); box-shadow: 0 22px 64px rgba(39, 101, 255, 0.38); }
.edge-block::-webkit-scrollbar{ display: none; }
.edge-block.top-left{ grid-column: 1; grid-row: 1; align-self: start; justify-self: start; }
.edge-block.top-right{ grid-column: 3; grid-row: 1; align-self: start; justify-self: end; }
.edge-block.bottom-left{ grid-column: 1; grid-row: 3; align-self: end; justify-self: start; }
.edge-block.bottom-right{ grid-column: 3; grid-row: 3; align-self: end; justify-self: end; }
.edge-block .section-eyebrow,
.edge-block .section-title{ margin-bottom: 0; }
.edge-block .section-title{ margin-top: 10px; }
.card-stack{
    display: grid;
    gap: 18px;
}
.section-eyebrow{
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title{
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 30px;
    max-width: 760px;
}
.two-column{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.card-group{
    display: grid;
    gap: 20px;
}
.highlight-card{
    background: linear-gradient(135deg, rgba(128,155,255,0.18), rgba(54,67,140,0.18));
    border-color: rgba(128,155,255,0.45);
}
.meta{
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
}
.meta-list{
    display: grid;
    gap: 6px;
    list-style: disc inside;
    color: var(--text-secondary);
}
.chip-list{
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    list-style: none;
    padding: 0;
}
.chip-list li{
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.32);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    text-align: center;
    color: var(--text-primary);
}
.project-card span{
    display: block;
    font-size: 13px;
    color: var(--accent);
    margin-top: 6px;
}
.project-card p{
    margin-top: 16px;
    color: var(--text-secondary);
}
.inline-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}
.inline-link::after{
    content: "→";
    font-size: 14px;
    opacity: 0;
    transform: translateX(-4px);
    transition: 0.3s ease;
}
.inline-link:hover{
    color: #e0f7ff;
}
.inline-link:hover::after{
    opacity: 1;
    transform: translateX(2px);
}
.experience-card ul{
    list-style: disc inside;
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
}
.experience-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.experience-heading span{
    font-size: 13px;
    color: var(--accent);
    white-space: nowrap;
}
#page2{
    position: relative;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 84% 16%, rgba(129, 140, 248, 0.12) 0%, transparent 60%),
                linear-gradient(205deg, rgba(2, 8, 27, 0.9) 0%, rgba(4, 7, 19, 0.74) 100%);
}
#page3{
    position: relative;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 22% 16%, rgba(99, 102, 241, 0.12) 0%, transparent 62%),
                linear-gradient(215deg, rgba(4, 9, 24, 0.9) 0%, rgba(6, 12, 28, 0.74) 100%);
}
/* New two-column layout */
.columns{
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    width: min(1200px, 88vw);
    z-index: 10;
}
.col{
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.card{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px 20px;
    color: #e9e9e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}
.card h1{ font-size: 30px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.card h2{ font-size: 18px; font-weight: 500; color: #cfcfcf; margin-bottom: 10px; }
.card h3{ font-size: 18px; font-weight: 600; color: #f0f0f0; margin-bottom: 8px; }
.card p{ font-size: 14px; line-height: 1.55; color: #cfcfcf; }
.card ul{ margin-left: 16px; display: grid; gap: 6px; }
.card li{ color: #cfcfcf; font-size: 14px; }
.card .tags{ color: #9ec5ff; font-weight: 500; }
.card.hero{ padding: 22px 22px; }
.contacts{ display: grid; gap: 6px; }
.contacts a{ color: #b7d3ff; text-decoration: none; font-size: 14px; }
.contacts a:hover{ text-decoration: underline; }
canvas{
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    max-width: 100vw;
    max-height: 100vh;
    mix-blend-mode: screen;
    opacity: 0.9;
}
/* Sunglasses overlay centered over the model */
#sunglasses{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(var(--sgX), var(--sgY)) scale(var(--sgScale));
    width: 36vw;
    max-width: 640px;
    min-width: 320px;
    z-index: 11;
    pointer-events: none;
    opacity: 0; /* animated in via GSAP */
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}
#sunglasses svg{ width: 100%; height: auto; display: block; }
/* Side resume panels flanking the central canvas */
.side-panel{
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    width: 26vw;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    color: #fff;
    z-index: 10;
}
.side-panel.left{ left: 4%; }
.side-panel.right{ right: 4%; }
.side-panel h1{ font-size: 32px; font-weight: 600; margin-bottom: 6px; }
.side-panel h2{ font-size: 18px; font-weight: 500; color: #d1d1d1; margin-bottom: 14px; }
.side-panel h3{ font-size: 20px; font-weight: 600; margin-bottom: 10px; color: #eaeaea; }
.side-panel p{ font-size: 14px; line-height: 1.5; color: #c9c9c9; margin-bottom: 8px; }
.contacts{ display: grid; gap: 6px; }
.contacts a{ color: #b7d3ff; text-decoration: none; font-size: 14px; }
.contacts a:hover{ text-decoration: underline; }
#loop{
    display: flex;
    position: absolute;
    top: 30%;
    height: 25%;
    width: 100%;
    font-size: 100px;
    white-space: nowrap;
    font-family: gilroy;
}
#loop>h1{
    font-weight: 500;
    animation-name: anim;
    animation-duration: 16s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    color: rgba(255,255,255,0.88);
}
#loop>h1>span{
    -webkit-text-stroke: 1.2px var(--accent);
    color: transparent;
    font-weight: 600;
}
@keyframes anim{
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(-100%);
    }
}
#nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7%;
    width: 100%;
    position: fixed;
    z-index: 99;
    padding: 0px 30px;
    background: linear-gradient(120deg, rgba(11, 16, 35, 0.82), rgba(10, 27, 54, 0.72));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}
#nav>h3{
    font-family: gilroy;
    font-weight: 600;
    font-size: 22px;
    color: var(--text-primary);
}
#nav>button{
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(129, 140, 248, 0.28));
    color: var(--text-primary);
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow: inset 0 0 12px rgba(125, 211, 252, 0.16);
    cursor: pointer;
}
#nav>button:hover{ background: linear-gradient(135deg, rgba(125, 211, 252, 0.32), rgba(129, 140, 248, 0.36)); }
#page>h3{ display: none; }
#page>h4{ display: none; }
#page1>#right-text{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page1>#right-text>h3{
    font-weight: 400;
    color: #999;
}
#page1>#right-text>h1{
    line-height: 1.5;
    font-size: 50px;
    color: #fff;
}
#page1>#left-text{
    position: absolute;
    top: 50%;
    right: 10%;
    text-align: end;
}
#page1>#left-text>h1{
    font-size: 50px;
    line-height: 1.5;
    color: #fff;
}
#page1>#left-text>h3{
    color: #999;
    font-weight: 400;
}
#page2>#text1{
    position: absolute;
    top: 30%;
    left: 10%;
}
#page2>#text1>h3{
    color: #999;
    font-weight: 400;
}
#page2>#text1>h1{
    font-size: 60px;
    line-height: 1.5;
    color: #fff;
}
#page2>#text2{
    position: absolute;
    top: 55%;
    right: 10%;
    text-align: end;
}
#page2>#text2>p{
    color: #999;
    font-weight: 400;
}
#page3>#text3{
    position: absolute;
    top: 40%;
    right: 10%;
    text-align: end;
}
#page3>#text3>h3{
    color: #999;
    font-weight: 400;
}
#page3>#text3>h1{
    font-size: 70px;
    color: #fff;
}
/* New supporting headings */
#page1>#right-text>h4, #page2>#text1>h4, #page3>#text3>h4{
    color: #999;
    font-weight: 400;
    margin-top: 10px;
}

/* Add atmospheric glow effect behind the canvas */
#page::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 70%);
    z-index: 5;
    pointer-events: none;
    border-radius: 50%;
}

/* Add subtle glow to text elements */
#page1>#right-text>h1, #page1>#left-text>h1, #page2>#text1>h1, #page3>#text3>h1 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Add pulsing animation to the atmospheric glow */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

#page::before {
    animation: pulse 4s ease-in-out infinite;
}

/* Add subtle grain texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(125, 211, 252, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: overlay;
}

/* Responsive adjustments */
@media (max-width: 1200px){
  #loop{ font-size: 72px; }
  #page .hero-rim{ padding: clamp(24px, 7vw, 84px); }
  .section.edge-layout{ padding: clamp(24px, 7vw, 84px); }
}
@media (max-width: 992px){
  #loop{ top: 24%; font-size: 56px; }
  #page .hero-rim,
  .section.edge-layout{
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fit, minmax(0, auto));
  }
  .rim-block,
  .edge-block{
    justify-self: center;
    align-self: center;
    max-width: min(520px, 92vw);
    max-height: none;
  }
  .rim-block.top-left,
  .rim-block.top-right,
  .rim-block.bottom-left,
  .rim-block.bottom-right,
  .edge-block.top-left,
  .edge-block.top-right,
  .edge-block.bottom-left,
  .edge-block.bottom-right{ grid-column: 1; }
  .card h1{ font-size: 26px; }
  #sunglasses{ width: 44vw; min-width: 260px; }
}
@media (max-width: 768px){
  #page .hero-rim{ padding: clamp(24px, 9vw, 72px); }
  .card h1{ font-size: 24px; }
  #sunglasses{ width: 54vw; }
  .hero-meta{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .section-title{ margin-bottom: 16px; }
}
@media (max-width: 640px){
  #loop{ font-size: 40px; top: 20%; }
  #sunglasses{ width: 72vw; }
  #page .hero-rim,
  .section.edge-layout{ padding: 24px 20px 72px; }
  .hero-lede{ font-size: 15px; }
}