:root{
    --bg: #050a14;
    --panel: rgba(255,255,255,0.06);
    --panel2: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.10);
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.65);
    --muted2: rgba(255,255,255,0.50);
    --shadow: 0 20px 60px rgba(0,0,0,0.55);
    --accent1: #2c7dff;
    --accent2: #00d2ff;
    --radius: 22px;
    --radius2: 16px;
    --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x:hidden;
}

.container{max-width:var(--max); margin:0 auto; padding:0 22px}
.section{padding:92px 0}
.h2{font-size: clamp(34px, 4vw, 54px); margin:10px 0 10px; letter-spacing:-0.02em}
.subtext{color:var(--muted); max-width: 760px; margin: 0 auto; text-align:center; line-height:1.65}
.eyebrow{
    color: rgba(0, 210, 255, 0.9);
    letter-spacing:0.22em;
    font-weight:700;
    font-size:12px;
    text-align:center;
}
.section-head{margin-bottom: 28px; text-align:center}

.bg-grid{
    position:fixed; inset:0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.22;
    pointer-events:none;
}

.bg-glow{
    position:fixed;
    width: 680px; height: 680px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.30;
    pointer-events:none;
}
.bg-glow--left{
    left:-200px; top:90px;
    background: radial-gradient(circle at 30% 30%, rgba(44,125,255,0.55), transparent 60%);
}
.bg-glow--right{
    right:-220px; top:40px;
    background: radial-gradient(circle at 30% 30%, rgba(0,210,255,0.45), transparent 60%);
}

/* Header / Nav */
.header{
    position:sticky; top:0; z-index:50;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(5,10,20,0.92), rgba(5,10,20,0.55));
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav{
    height:64px;
    display:flex; align-items:center; justify-content:space-between;
    gap:16px;
}
.brand{
    display:flex; align-items:center; gap:10px;
    text-decoration:none; color: var(--text);
    font-weight:800;
}
.brand-dot{
    width:10px; height:10px; border-radius:999px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 0 18px rgba(0,210,255,0.35);
}
.brand-text{letter-spacing:-0.02em}
.brand-accent{
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip:text; background-clip:text; color:transparent;
}

.nav-links{
    display:flex; gap:22px; align-items:center;
}
.nav-link{
    text-decoration:none;
    color: var(--muted);
    font-weight:600;
    font-size:14px;
    padding:10px 8px;
    border-radius:12px;
    transition: 180ms ease;
}
.nav-link:hover{color: var(--text); background: rgba(255,255,255,0.04)}
.nav-link.active{color: var(--text)}
.nav-right{display:flex; gap:12px; align-items:center}

.nav-toggle{
    display:none;
    width:42px; height:42px;
    border-radius:14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    cursor:pointer;
}
.nav-toggle span{
    display:block; height:2px; width:18px;
    background: rgba(255,255,255,0.85);
    margin:4px auto;
    border-radius:2px;
}

/* Pills / Buttons */
.pill{
    display:inline-flex; align-items:center; justify-content:center;
    padding:10px 14px;
    border-radius:999px;
    border: 1px solid rgba(44,125,255,0.35);
    background: rgba(44,125,255,0.10);
    color: rgba(120,195,255,0.95);
    font-weight:700; font-size:13px;
}
.pill--ghost{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--muted);
    text-decoration:none;
}
.pill--ghost:hover{color:var(--text); border-color: rgba(255,255,255,0.18)}

.btn{
    display:inline-flex; align-items:center; justify-content:center;
    padding:14px 18px;
    border-radius:999px;
    font-weight:800;
    text-decoration:none;
    border: 1px solid transparent;
    transition: transform 150ms ease, filter 150ms ease, background 150ms ease;
    cursor:pointer;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: #04101f;
    box-shadow: 0 18px 40px rgba(0,210,255,0.20);
}
.btn--primary:hover{filter: brightness(1.07)}
.btn--secondary{
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.10);
    color: var(--text);
}
.btn--secondary:hover{background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14)}

/* Hero */
.hero{padding-top: 110px}
.hero-inner{ text-align:center; position:relative }
.hero-title{
    margin: 18px 0 12px;
    font-size: clamp(56px, 6vw, 92px);
    letter-spacing: -0.04em;
    line-height: 1.0;
}
.hero-subtitle{
    margin: 0 auto;
    max-width: 820px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height:1.7;
}
.grad{
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip:text; background-clip:text; color:transparent;
}
.grad-text{
    color: rgba(0,210,255,0.95);
    font-weight:800;
}
.hero-tags{
    margin-top: 18px;
    display:flex; justify-content:center; align-items:center; gap:10px;
    color: var(--muted);
}
.tag{display:flex; align-items:center; gap:8px; font-weight:700}
.dot{opacity:0.6}

.hero-cta{margin-top: 26px; display:flex; justify-content:center; gap:14px; flex-wrap:wrap}

/* Panels */
.panel{
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.panel--big{padding: 26px}
.panel-title{
    font-weight:900;
    letter-spacing:-0.02em;
    font-size: 18px;
    margin-bottom: 14px;
}
.lead{font-size: 18px; line-height:1.75; color: rgba(255,255,255,0.82)}
.muted{color: var(--muted); line-height:1.75}
.small{font-size: 12px}

/* About */
.about-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 26px;
}
.about-cards{
    display:none;
}
.card{
    display:flex; gap:12px; align-items:flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius2);
    padding: 16px;
}
.icon{
    width:42px; height:42px;
    display:flex; align-items:center; justify-content:center;
    border-radius: 14px;
    background: rgba(44,125,255,0.10);
    border: 1px solid rgba(44,125,255,0.28);
}
.card-title{font-weight:900}
.card-text{color: var(--muted); margin-top:6px; line-height:1.55; font-size: 14px}

/* Filters */
.filters{
    margin: 22px auto 26px;
    display:flex; justify-content:center; gap:10px; flex-wrap:wrap;
}
.filter{
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-weight:900;
    cursor:pointer;
}
.filter.active{
    background: linear-gradient(90deg, rgba(44,125,255,0.35), rgba(0,210,255,0.22));
    border-color: rgba(0,210,255,0.25);
    color: rgba(255,255,255,0.92);
}

/* Projects */
.projects-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.project{
    overflow:hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    box-shadow: var(--shadow);
    transform: translateZ(0);
    transition: transform 160ms ease, border-color 160ms ease;
}
.project:hover{transform: translateY(-3px); border-color: rgba(0,210,255,0.22)}
.project-media{
    height: 170px;
    background-size: contain;
    background-position:center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    position:relative;

    /* backdrop behind the image */
    background-color: rgba(255,255,255,0.03);
    background-image:
        radial-gradient(circle at 30% 30%, rgba(0,210,255,0.12), transparent 55%),
        radial-gradient(circle at 80% 45%, rgba(44,125,255,0.12), transparent 60%);
}
.project-media--gradient{
    background: radial-gradient(circle at 30% 30%, rgba(0,210,255,0.35), transparent 60%),
                            radial-gradient(circle at 80% 50%, rgba(44,125,255,0.35), transparent 62%),
                            linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.project-media--matrix{
    background: radial-gradient(circle at 40% 30%, rgba(0,255,140,0.25), transparent 55%),
                            radial-gradient(circle at 70% 60%, rgba(0,210,255,0.20), transparent 55%),
                            linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.project-overlay{
    position:absolute; inset:0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.project-body{padding: 16px}
.project-meta{display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px}
.badge{
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(120,195,255,0.95);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(44,125,255,0.28);
    background: rgba(44,125,255,0.10);
}
.badge--ux{
    color: rgba(0,210,255,0.92);
    border-color: rgba(0,210,255,0.22);
    background: rgba(0,210,255,0.10);
}
.project-title{margin: 0 0 8px; font-size: 18px; letter-spacing:-0.02em}
.project-desc{margin: 0 0 12px; color: var(--muted); line-height:1.55; font-size: 14px}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 12px}
.chip{
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    padding: 6px 10px;
    border-radius: 999px;
}
.project-link{
    text-decoration:none;
    color: rgba(0,210,255,0.90);
    font-weight: 900;
}
.project-link:hover{text-decoration:underline}

/* Resume */
.resume-top{display:flex; justify-content:center; margin: 18px 0 28px}
.resume-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.item{
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.item:first-of-type{border-top:none; padding-top:0}
.item-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.item-role{font-weight: 900}
.item-org{color: rgba(0,210,255,0.88); font-weight: 800; margin-top: 4px}
.item-time{color: var(--muted2); font-weight: 700}
.bullets{margin: 10px 0 0 18px; color: var(--muted); line-height:1.65}

/* Contact */
.contact-grid{
    margin-top: 26px;
    display:flex;
    justify-content: center;
}
.contact-left{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    text-align:center;
}
.contact-row{display:flex; gap:12px; align-items:flex-start}
.contact-ico{font-size: 18px}
.contact-label{font-weight:900}
.contact-value{color: var(--muted); margin-top: 4px}

.contact-card{
    display:flex; align-items:center; gap:12px;
    text-decoration:none;
    color: var(--text);
    padding: 16px;
    border-radius: var(--radius2);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}
.contact-card:hover{border-color: rgba(0,210,255,0.20)}
.contact-card-ico{
    width:44px; height:44px;
    border-radius: 14px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(0,210,255,0.10);
    border: 1px solid rgba(0,210,255,0.20);
    font-weight: 900;
}
.contact-card-title{font-weight: 900}
.contact-card-sub{color: var(--muted); margin-top: 4px}
.contact-card-arrow{margin-left:auto; color: var(--muted2); font-weight: 900}

/* Footer */
.footer{
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display:flex;
    justify-content:space-between;
    gap: 12px;
    flex-wrap:wrap;
}


/* Responsive */
@media (max-width: 980px){
    .projects-grid{grid-template-columns: repeat(2, 1fr)}
    .about-grid{grid-template-columns: 1fr}
    .resume-grid{grid-template-columns: 1fr}
    .contact-grid{grid-template-columns: 1fr}
}
@media (max-width: 720px){
    .nav-right{display:none}
    .nav-toggle{display:block}
    .nav-links{
        position: absolute;
        top: 64px; left: 0; right: 0;
        display:none;
        flex-direction:column;
        gap: 6px;
        padding: 12px 16px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        background: rgba(5,10,20,0.96);
    }
    .nav-links.open{display:flex}
    .projects-grid{grid-template-columns: 1fr}
    .about-cards{grid-template-columns: 1fr}
}

/* Project page: screenshots left, text right */
.project-layout{
    display:grid;
    grid-template-columns: 180px 1fr;
    gap: 80px;
    align-items:start;
}

.project-text{
    max-width: 680px;
}

/* Left column screenshots */
.shots-column{
    display:flex;
    flex-direction:column;
    gap: 16px;
}

.shot{
    padding:0;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    overflow:hidden;
    box-shadow: var(--shadow);
    cursor:pointer;
    transition: transform 160ms ease, border-color 160ms ease;
}

.shot:hover{
    transform: translateY(-3px);
    border-color: rgba(0,210,255,0.22);
}

.shot img{
    width:100%;
    display:block;
    object-fit: cover;
    aspect-ratio: 9 / 19.5; /* portrait phone look */
}

/* Lightbox */
.lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display:none;
    align-items:center;
    justify-content:center;
    padding: 22px;
    z-index: 200;
}

.lightbox.open{ display:flex; }

.lightbox-inner{
    position: relative;
    max-width: min(980px, 96vw);
    max-height: 90vh;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(5,10,20,0.92);
    box-shadow: var(--shadow);
}

.lightbox-img{
    display:block;
    width:100%;
    height:auto;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close{
    position:absolute;
    top:10px; right:10px;
    width:42px; height:42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    cursor:pointer;
    font-weight:900;
}

/* Responsive: stack on smaller screens */
@media (max-width: 980px){
    .project-layout{
        grid-template-columns: 1fr;
    }
}
