
:root{
    --bg:#09111f;
    --bg-2:#10192c;
    --panel:rgba(16, 25, 44, 0.68);
    --panel-border:rgba(255,255,255,0.12);
    --text:#f4f7ff;
    --muted:#b8c2d9;
    --accent:#8b5cf6;
    --accent-2:#22c1ff;
    --accent-3:#5cf2c5;
    --shadow:0 25px 60px rgba(0,0,0,0.28);
    --chip:rgba(255,255,255,0.08);
    --button-bg:rgba(255,255,255,0.08);
    --grid-line:rgba(255,255,255,0.05);
}
body.light-theme{
    --bg:#f4f7ff;
    --bg-2:#e8eefc;
    --panel:rgba(255,255,255,0.72);
    --panel-border:rgba(16,25,44,0.08);
    --text:#11192c;
    --muted:#50607e;
    --accent:#6a4df6;
    --accent-2:#0ea5e9;
    --accent-3:#10b981;
    --shadow:0 22px 55px rgba(22,34,56,0.14);
    --chip:rgba(16,25,44,0.05);
    --button-bg:rgba(16,25,44,0.06);
    --grid-line:rgba(16,25,44,0.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    min-height:100vh;
    font-family:'Inter', Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(34,193,255,0.18), transparent 32%),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    color:var(--text);
}
.page-shell{
    position:relative;
    min-height:100vh;
    display:grid;
    grid-template-columns:320px 1fr;
    gap:24px;
    padding:24px;
    max-width:1500px;
    margin:0 auto;
}
.bg-orb{
    position:fixed;
    border-radius:50%;
    filter:blur(80px);
    opacity:0.32;
    pointer-events:none;
    z-index:0;
}
.orb-one{
    width:280px;
    height:280px;
    background:var(--accent);
    left:-80px;
    top:-60px;
}
.orb-two{
    width:320px;
    height:320px;
    background:var(--accent-2);
    right:-100px;
    bottom:-80px;
}
.bg-grid{
    position:fixed;
    inset:0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size:28px 28px;
    mask-image:linear-gradient(to bottom, rgba(0,0,0,0.16), transparent 85%);
    pointer-events:none;
    z-index:0;
}
.glass{
    background:var(--panel);
    border:1px solid var(--panel-border);
    box-shadow:var(--shadow);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}
.sidebar{
    position:sticky;
    top:24px;
    align-self:start;
    z-index:1;
    border-radius:30px;
    padding:22px;
}
.brand-block{
    display:grid;
    grid-template-columns:64px 1fr;
    gap:16px;
    align-items:center;
    margin-bottom:20px;
}
.avatar{
    width:64px;
    height:64px;
    border-radius:20px;
    display:grid;
    place-items:center;
    font-size:1.5rem;
    font-weight:800;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    color:white;
    box-shadow:0 16px 35px rgba(79,70,229,0.28);
}
.eyebrow{
    margin:0 0 8px;
    font-size:0.74rem;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:var(--muted);
}
h1{
    margin:0 0 6px;
    font-size:1.7rem;
    line-height:1.05;
}
.muted{
    margin:0;
    color:var(--muted);
    line-height:1.55;
}
.sidebar-controls{
    display:grid;
    gap:10px;
    margin-bottom:18px;
}
.pill-btn{
    border:0;
    border-radius:999px;
    padding:12px 16px;
    font:inherit;
    font-weight:600;
    cursor:pointer;
    color:var(--text);
    background:linear-gradient(135deg, rgba(139,92,246,0.96), rgba(34,193,255,0.88));
    box-shadow:0 14px 30px rgba(79,70,229,0.22);
}
.pill-btn.secondary{
    background:var(--button-bg);
    box-shadow:none;
}
.nav-links{
    display:grid;
    gap:10px;
    margin-bottom:18px;
}
.nav-pill{
    text-decoration:none;
    color:var(--text);
    padding:12px 16px;
    border-radius:999px;
    background:var(--button-bg);
    transition:transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-pill:hover,
.nav-pill.active{
    transform:translateY(-1px);
    background:linear-gradient(135deg, rgba(139,92,246,0.96), rgba(34,193,255,0.88));
    box-shadow:0 14px 30px rgba(79,70,229,0.18);
}
.sidebar-card{
    padding:18px;
    border-radius:24px;
    background:var(--chip);
}
.main-content{
    position:relative;
    z-index:1;
    display:grid;
    gap:18px;
}
.hero,
.content-panel{
    border-radius:30px;
}
.hero{
    display:grid;
    grid-template-columns:1.35fr 0.85fr;
    gap:22px;
    padding:28px;
}
h2{
    margin:0;
    font-size:clamp(2.1rem, 4vw, 4rem);
    line-height:1.02;
    max-width:11ch;
}
.gradient-text{
    background:linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}
.lead{
    color:var(--muted);
    font-size:1.04rem;
    line-height:1.8;
    max-width:60ch;
}
.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}
.cta-btn,
.ghost-btn{
    border:0;
    border-radius:999px;
    padding:14px 20px;
    font:inherit;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
}
.cta-btn{
    color:white;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:0 16px 35px rgba(79,70,229,0.22);
}
.ghost-btn{
    color:var(--text);
    background:var(--button-bg);
}
.hero-side{
    display:grid;
    gap:14px;
    perspective:1200px;
}
.metric-card{
    border-radius:24px;
    padding:22px;
    min-height:110px;
    background:rgba(255,255,255,0.05);
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.metric-number{
    font-size:2.1rem;
    font-weight:800;
    line-height:1;
    margin-bottom:8px;
}
.metric-label{
    color:var(--muted);
}
.content-panel{
    padding:14px;
}
.section-toggle{
    width:100%;
    border:0;
    background:transparent;
    color:var(--text);
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-align:left;
    padding:8px 8px 10px;
    cursor:pointer;
    font:inherit;
}
.section-toggle strong{
    font-size:1.2rem;
}
.toggle-icon{
    font-size:1.6rem;
    line-height:1;
    color:var(--muted);
}
.section-body{
    padding:4px 8px 10px;
}
.card-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
    perspective:1200px;
}
.project-card{
    border-radius:24px;
    padding:20px;
    background:rgba(255,255,255,0.05);
}
.project-tag{
    margin:0 0 10px;
    font-size:0.78rem;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--muted);
}
.project-card h3{
    margin:0 0 10px;
    font-size:1.2rem;
}
.project-card p{
    margin:0;
    line-height:1.7;
    color:var(--muted);
}
.chips{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.chip{
    padding:11px 15px;
    border-radius:999px;
    background:var(--chip);
    border:1px solid var(--panel-border);
}
.timeline{
    display:grid;
    gap:16px;
}
.timeline-item{
    display:grid;
    grid-template-columns:22px 1fr;
    gap:14px;
}
.timeline-dot{
    width:14px;
    height:14px;
    border-radius:50%;
    margin-top:6px;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow:0 0 16px rgba(79,70,229,0.24);
}
.timeline-item p{
    margin:6px 0 0;
    color:var(--muted);
}
.contact-layout{
    display:grid;
    grid-template-columns:1.3fr 0.8fr;
    gap:16px;
    align-items:center;
}
.contact-card{
    padding:20px;
    border-radius:24px;
    background:linear-gradient(135deg, rgba(139,92,246,0.16), rgba(34,193,255,0.12));
    border:1px solid var(--panel-border);
}
.contact-card h3{
    margin:0;
    font-size:1.35rem;
}
.collapsible .section-body{
    max-height:1200px;
    overflow:hidden;
    transition:max-height 0.35s ease, opacity 0.28s ease, padding 0.28s ease;
    opacity:1;
}
.collapsible:not(.open) .section-body{
    max-height:0;
    opacity:0;
    padding-top:0;
    padding-bottom:0;
}
.jump-target{
    scroll-margin-top:24px;
}
.tilt-card{
    transform-style:preserve-3d;
    will-change:transform;
    transition:transform 0.16s ease, box-shadow 0.16s ease;
}
.tilt-card:hover{
    box-shadow:0 24px 45px rgba(0,0,0,0.24);
}
@media (max-width: 1100px){
    .page-shell{
        grid-template-columns:1fr;
    }
    .sidebar{
        position:relative;
        top:auto;
    }
    .hero,
    .contact-layout,
    .card-grid{
        grid-template-columns:1fr;
    }
}
@media (max-width: 720px){
    .page-shell{
        padding:14px;
        gap:14px;
    }
    .sidebar,
    .hero,
    .content-panel{
        border-radius:24px;
    }
    .hero{
        padding:22px;
    }
    h2{
        max-width:none;
    }
    .hero-actions{
        flex-direction:column;
    }
    .cta-btn,
    .ghost-btn,
    .pill-btn{
        width:100%;
        text-align:center;
    }
}

.premium-tilt-card{
    position:relative;
    overflow:hidden;
    transform-style:preserve-3d;
    will-change:transform;
    transition:transform 0.18s ease, box-shadow 0.18s ease;
    isolation:isolate;
    border:1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 24px 50px rgba(0,0,0,0.38),
        inset 0 1px 0 rgba(255,255,255,0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
        linear-gradient(145deg, rgba(26,34,64,0.95), rgba(15,20,38,0.95));
}
.premium-tilt-card::before{
    content:"";
    position:absolute;
    inset:-1px;
    border-radius:inherit;
    background:linear-gradient(135deg, rgba(139,92,246,0.45), rgba(34,193,255,0.25), rgba(255,255,255,0.04));
    opacity:0.45;
    z-index:0;
    pointer-events:none;
}
.premium-tilt-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.10), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.06), transparent 26%);
    opacity:0.85;
    pointer-events:none;
    z-index:0;
}
.metric-card .metric-inner,
.project-card .project-inner{
    position:relative;
    z-index:2;
    transform:translateZ(26px);
}
.card-shine{
    position:absolute;
    inset:-40%;
    background:radial-gradient(circle, rgba(255,255,255,0.34), rgba(255,255,255,0.10) 18%, transparent 42%);
    opacity:0;
    transform:translate3d(0,0,50px);
    pointer-events:none;
    mix-blend-mode:screen;
    transition:opacity 0.18s ease;
    z-index:1;
}

/* --------------------------------------
   opt 2 premium cards - light theme fix
----------------------------------------- */

body.light-theme .premium-tilt-card {

    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75)),
        linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,244,255,0.95));

    border:1px solid rgba(16,25,44,0.08);

    box-shadow:
        0 20px 45px rgba(20,40,80,0.10),
        inset 0 1px 0 rgba(255,255,255,0.9);

}

/* soften the gradient glow */
body.light-theme .premium-tilt-card::before {

    background:
        linear-gradient(
            135deg,
            rgba(106,77,246,0.35),
            rgba(14,165,233,0.25),
            rgba(255,255,255,0.2)
        );

    opacity:0.35;

}

/* reflection highlight */
body.light-theme .premium-tilt-card::after {

    background:
        radial-gradient(circle at top, rgba(255,255,255,0.6), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.4), transparent 30%);

}

/* adjust shine layer */
body.light-theme .card-shine {

    background:
        radial-gradient(circle,
        rgba(255,255,255,0.75),
        rgba(255,255,255,0.3) 18%,
        transparent 42%);

}

/* Light theme reflection colour */
body.light-theme .card-shine {

    background:
        radial-gradient(
            circle,
            rgba(14,165,233,0.45),   /* centre glow */
            rgba(14,165,233,0.18) 18%,
            rgba(14,165,233,0.08) 32%,
            transparent 45%
        );

}

/* contrast improvement tweak */

body.light-theme .project-card p {
    color:#4c5b78;
}
