:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef3f9;
    --ink: #0b1220;
    --muted: #657286;
    --line: rgba(11,18,32,.10);
    --navy: #08111f;
    --navy-2: #0d1b2e;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --green: #10b981;
    --shadow: 0 24px 70px rgba(8,17,31,.10);
    --radius: 24px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(59,130,246,.22); }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.page-noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: .3s ease;
}
.site-header.scrolled {
    background: rgba(8,17,31,.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(0,0,0,.15);
}
.nav-wrap { min-height: 78px; display:flex; align-items:center; justify-content:space-between; }
.brand { display:flex; align-items:center; gap:10px; color:#fff; font-weight:800; letter-spacing:-.03em; }
.brand-mark {
    width:36px; height:36px; display:grid; place-items:center; border-radius:11px;
    background: linear-gradient(135deg,var(--blue),var(--cyan)); color:#fff; font-size:12px;
}
.main-nav { display:flex; align-items:center; gap:26px; color:rgba(255,255,255,.72); font-size:13px; font-weight:600; }
.main-nav a { transition: .2s ease; }
.main-nav a:hover { color:#fff; }
.main-nav .nav-cta { color:#fff; padding:10px 16px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(255,255,255,.06); }
.nav-toggle { display:none; border:0; background:transparent; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; }

.hero {
    position:relative; min-height:100vh; background:var(--navy); color:#fff; overflow:hidden;
    display:flex; align-items:center;
}
.hero::before {
    content:""; position:absolute; width:720px; height:720px; right:-240px; top:-220px;
    background:radial-gradient(circle, rgba(34,211,238,.18), transparent 65%);
}
.hero::after {
    content:""; position:absolute; width:620px; height:620px; left:-260px; bottom:-300px;
    background:radial-gradient(circle, rgba(59,130,246,.18), transparent 65%);
}
.hero-grid {
    position:absolute; inset:0; opacity:.18;
    background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
    background-size:64px 64px;
    mask-image:linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner { position:relative; z-index:2; display:grid; grid-template-columns:1.08fr .92fr; gap:60px; align-items:center; padding:130px 0 80px; }
.eyebrow, .section-kicker {
    font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase;
}
.eyebrow { color:#9bb0c9; display:flex; gap:9px; align-items:center; }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 5px rgba(16,185,129,.10); }
.hero h1 { font-family:"Plus Jakarta Sans",sans-serif; font-size:clamp(46px,6.3vw,86px); line-height:.98; letter-spacing:-.065em; max-width:850px; margin:22px 0 28px; }
.hero h1 span { color:#69d9ff; }
.hero-lead { color:#aab8ca; font-size:18px; line-height:1.75; max-width:650px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:34px; }
.btn { display:inline-flex; align-items:center; gap:12px; min-height:48px; padding:0 20px; border-radius:13px; font-size:13px; font-weight:800; transition:.25s ease; }
.btn-primary { background:linear-gradient(135deg,var(--blue),#2563eb); color:#fff; box-shadow:0 12px 30px rgba(59,130,246,.25); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 18px 36px rgba(59,130,246,.35); }
.btn-ghost { color:#fff; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.04); }
.btn-ghost:hover { background:rgba(255,255,255,.09); transform:translateY(-2px); }
.hero-meta { display:flex; flex-wrap:wrap; gap:22px; color:#7f90a7; font-size:12px; margin-top:42px; }
.hero-meta strong { color:#d8e4f2; }
.hero-visual { min-height:610px; position:relative; display:grid; place-items:center; }
.hero-card {
    width:min(390px,75%); padding:14px; position:relative; z-index:3;
    border:1px solid rgba(255,255,255,.14); border-radius:30px;
    background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035));
    box-shadow:0 40px 100px rgba(0,0,0,.35);
    backdrop-filter:blur(20px);
    transform:rotate(2deg);
}
.hero-card-top { display:flex; justify-content:space-between; padding:8px 10px 12px; color:#9fb0c6; font-size:10px; letter-spacing:.16em; }
.mini-dot { width:8px; height:8px; border-radius:50%; background:var(--green); }
.portrait-wrap { height:470px; border-radius:22px; overflow:hidden; background:linear-gradient(145deg,#1b3351,#0c1727); display:flex; align-items:flex-end; justify-content:center; }
.portrait { width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.hero-card-bottom { display:flex; align-items:center; justify-content:space-between; padding:16px 10px 6px; }
.hero-card-bottom strong, .hero-card-bottom span { display:block; }
.hero-card-bottom strong { font-size:14px; }
.hero-card-bottom span { color:#8495aa; font-size:11px; }
.arrow-circle { width:34px; height:34px; border:1px solid rgba(255,255,255,.12); border-radius:50%; display:grid!important; place-items:center; color:#fff!important; }
.orb { position:absolute; border-radius:50%; filter:blur(1px); }
.orb-one { width:280px; height:280px; background:rgba(59,130,246,.18); top:30px; right:0; }
.orb-two { width:210px; height:210px; background:rgba(34,211,238,.12); bottom:60px; left:0; }
.floating-chip { position:absolute; z-index:4; padding:11px 15px; border-radius:13px; background:rgba(11,26,44,.72); border:1px solid rgba(255,255,255,.13); backdrop-filter:blur(12px); font-size:11px; color:#d9e4f1; box-shadow:0 15px 40px rgba(0,0,0,.25); }
.floating-chip span { color:#5fdcff; margin-right:7px; }
.chip-one { left:2%; top:20%; }
.chip-two { right:0; bottom:18%; }
.scroll-cue { position:absolute; z-index:5; bottom:28px; left:50%; transform:translateX(-50%); color:#64748b; font-size:10px; letter-spacing:.12em; text-transform:uppercase; display:flex; align-items:center; gap:10px; }
.scroll-cue span { width:18px; height:28px; border:1px solid #506176; border-radius:999px; position:relative; }
.scroll-cue span::after { content:""; width:3px; height:6px; background:#8ea0b5; border-radius:4px; position:absolute; left:50%; top:6px; transform:translateX(-50%); animation:scrollDot 1.7s infinite; }
@keyframes scrollDot { 0%,100%{transform:translate(-50%,0);opacity:.4} 50%{transform:translate(-50%,8px);opacity:1} }

.section { padding:120px 0; }
.section-head { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:52px; }
.section-kicker { color:var(--blue); }
.section-head h2 { margin:10px 0 0; font-family:"Plus Jakarta Sans",sans-serif; font-size:clamp(32px,4vw,52px); line-height:1.05; letter-spacing:-.045em; }
.section-head h2 em { color:var(--blue); font-style:normal; }
.section-head > p { max-width:390px; color:var(--muted); font-size:14px; margin:0; }
.bento { display:grid; grid-template-columns:2fr 1fr 1fr; grid-auto-rows:minmax(170px,auto); gap:18px; }
.bento-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 10px 40px rgba(8,17,31,.04); position:relative; overflow:hidden; }
.about-main { grid-row:span 2; padding:40px; }
.card-number { position:absolute; right:24px; top:22px; color:#a5b2c2; font-size:10px; font-weight:800; }
.about-main h3 { font-size:32px; line-height:1.1; letter-spacing:-.04em; max-width:450px; margin:40px 0 22px; }
.about-main p { color:var(--muted); max-width:620px; font-size:15px; }
.stat-card { padding:28px; display:flex; flex-direction:column; justify-content:flex-end; transition:.25s; }
.stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.stat-card strong { font-size:28px; letter-spacing:-.04em; }
.stat-card > span:last-child { color:var(--muted); font-size:12px; margin-top:3px; }
.education-section { background:#edf2f7; }
.education-timeline { position:relative; max-width:900px; margin:auto; }
.education-timeline::before { content:""; position:absolute; left:160px; top:0; bottom:0; width:1px; background:#cbd5e1; }
.edu-item { display:grid; grid-template-columns:130px 60px 1fr; min-height:120px; align-items:center; position:relative; }
.edu-year { color:#718096; font-size:11px; font-weight:700; text-align:right; }
.edu-dot { width:13px; height:13px; background:var(--bg); border:3px solid #94a3b8; border-radius:50%; justify-self:center; position:relative; z-index:2; }
.edu-item.featured .edu-dot { border-color:var(--blue); background:#dbeafe; box-shadow:0 0 0 7px rgba(59,130,246,.08); }
.edu-content { padding:24px 28px; }
.edu-content span { color:var(--blue); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.edu-content h3 { margin:5px 0 0; font-size:19px; }
.edu-content p { color:var(--muted); font-size:13px; max-width:600px; margin:8px 0 0; }

.experience-section { background:var(--navy); color:#fff; }
.experience-section .section-head h2 { color:#fff; }
.experience-section .section-head h2 em { color:#61d8ff; }
.experience-list { position:relative; max-width:1000px; margin:auto; }
.experience-list::before { content:""; position:absolute; left:88px; top:0; bottom:0; width:1px; background:rgba(255,255,255,.12); }
.experience-item { display:grid; grid-template-columns:70px 37px 1fr; align-items:center; min-height:200px; }
.experience-year { color:#7f91a9; font-size:11px; font-weight:800; text-align:right; }
.experience-line { height:100%; display:grid; place-items:center; position:relative; z-index:2; }
.experience-line span { width:11px; height:11px; background:var(--navy); border:3px solid var(--blue); border-radius:50%; box-shadow:0 0 0 7px rgba(59,130,246,.08); }
.experience-card { display:grid; grid-template-columns:160px 1fr; gap:26px; align-items:center; margin:15px 0 15px 22px; padding:18px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.045); border-radius:20px; transition:.25s; }
.experience-card:hover { transform:translateX(5px); border-color:rgba(97,216,255,.3); background:rgba(255,255,255,.065); }
.experience-image { height:110px; background:#fff; border-radius:13px; display:grid; place-items:center; overflow:hidden; }
.experience-image img { max-width:82%; max-height:78px; object-fit:contain; }
.experience-info span { color:#61d8ff; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.experience-info h3 { margin:6px 0 8px; font-size:20px; }
.experience-info p { color:#91a2b8; font-size:13px; margin:0; }

.projects-section { background:#f8fafc; }
.filter-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px; }
.filter-btn { border:1px solid #d7e0ea; background:#fff; color:#657286; border-radius:999px; padding:9px 15px; font:600 12px Inter; cursor:pointer; transition:.2s; }
.filter-btn:hover, .filter-btn.active { color:#fff; border-color:var(--blue); background:var(--blue); }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.project-card { background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; transition:.3s ease; }
.project-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); }
.project-card.is-hidden { display:none; }
.project-media { aspect-ratio:16/10; overflow:hidden; position:relative; background:#e9eef5; }
.project-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(8,17,31,.35)); opacity:0; transition:.25s; }
.project-card:hover .project-media::after { opacity:1; }
.project-media img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.project-card:hover .project-media img { transform:scale(1.045); }
.project-arrow { position:absolute; right:14px; top:14px; z-index:2; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#fff; color:var(--ink); transform:translateY(-8px); opacity:0; transition:.25s; }
.project-card:hover .project-arrow { opacity:1; transform:none; }
.project-body { padding:20px; }
.project-category { color:var(--blue); font-size:9px; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.project-body h3 { margin:8px 0 15px; font-size:17px; line-height:1.25; letter-spacing:-.025em; min-height:43px; }
.project-link { color:#758196; font-size:11px; font-weight:700; }
.project-link span { color:var(--blue); margin-left:5px; }

.skills-section { background:#fff; }
.skills-layout { max-width:1000px; }
.skill-groups { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.skill-group { border:1px solid var(--line); border-radius:20px; padding:24px; background:#fbfcfe; }
.skill-group h3 { margin:0 0 15px; font-size:13px; color:#4c5a6c; }
.skill-list { display:flex; flex-wrap:wrap; gap:8px; }
.skill-pill { display:flex; align-items:center; gap:7px; background:#fff; border:1px solid #e1e8f0; padding:7px 10px; border-radius:10px; transition:.2s; }
.skill-pill:hover { border-color:#bcd2f4; transform:translateY(-2px); box-shadow:0 8px 18px rgba(8,17,31,.06); }
.skill-pill img { width:22px; height:22px; object-fit:contain; border-radius:5px; }
.skill-pill span { font-size:11px; font-weight:700; color:#465365; }

.achievement-section { background:#edf2f7; }
.achievement-card { background:linear-gradient(135deg,#0b1730,#0d2943); color:#fff; border-radius:30px; overflow:hidden; display:grid; grid-template-columns:1fr 1fr; min-height:480px; box-shadow:0 35px 80px rgba(8,17,31,.18); }
.achievement-copy { padding:55px; position:relative; }
.achievement-copy .section-kicker { color:#61d8ff; }
.trophy { font-size:48px; margin-top:30px; color:#61d8ff; }
.achievement-label { color:#8ea3ba; text-transform:uppercase; letter-spacing:.13em; font-size:10px; font-weight:800; }
.achievement-copy h2 { font-size:clamp(38px,5vw,62px); line-height:.98; letter-spacing:-.06em; margin:10px 0 20px; }
.achievement-copy h2 em { color:#61d8ff; font-style:normal; }
.achievement-copy p { max-width:480px; color:#9fb0c5; font-size:13px; }
.btn-light { background:#fff; color:#08111f; margin-top:15px; }
.achievement-media { padding:35px; display:grid; place-items:center; background:rgba(255,255,255,.035); }
.achievement-media img { max-height:380px; width:100%; object-fit:contain; border-radius:10px; }

.cert-section { background:#f8fafc; }
.cert-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.cert-card { border:1px solid var(--line); background:#fff; border-radius:18px; padding:12px; text-align:left; cursor:pointer; position:relative; transition:.25s; }
.cert-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:#c8d7ec; }
.cert-index { position:absolute; right:15px; top:13px; z-index:2; color:#fff; background:rgba(8,17,31,.62); border-radius:999px; padding:4px 7px; font-size:8px; font-weight:800; }
.cert-image { height:180px; border-radius:12px; overflow:hidden; background:#eef2f7; display:grid; place-items:center; }
.cert-image img { width:100%; height:100%; object-fit:contain; }
.cert-info { padding:14px 4px 5px; }
.cert-info strong { display:block; font-size:12px; line-height:1.35; }
.cert-info span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }

.contact-section { background:var(--navy); color:#fff; padding-bottom:80px; }
.contact-card { min-height:360px; padding:55px; border:1px solid rgba(255,255,255,.10); border-radius:28px; background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025)); display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:50px; }
.contact-card .section-kicker { color:#61d8ff; }
.contact-card h2 { font-size:clamp(42px,5vw,68px); line-height:.98; letter-spacing:-.06em; margin:14px 0 18px; }
.contact-card p { color:#8fa0b7; max-width:480px; font-size:14px; }
.contact-actions { justify-self:end; width:min(100%,440px); }
.contact-email { display:flex; justify-content:space-between; align-items:center; padding:20px 0; border-bottom:1px solid rgba(255,255,255,.12); font-size:18px; font-weight:700; }
.contact-email span { color:#61d8ff; }
.social-links { display:flex; gap:20px; flex-wrap:wrap; margin-top:20px; }
.social-links a { color:#9aaabe; font-size:12px; }
.social-links a:hover { color:#fff; }
.site-footer { background:#050c16; color:#617188; padding:24px 0; font-size:10px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.footer-inner a { color:#91a2b7; }

.cert-modal { position:fixed; inset:0; z-index:2000; display:none; }
.cert-modal.open { display:grid; place-items:center; }
.modal-backdrop { position:absolute; inset:0; background:rgba(3,8,15,.82); backdrop-filter:blur(10px); }
.modal-dialog { position:relative; z-index:2; width:min(900px,calc(100% - 30px)); max-height:90vh; background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 30px 100px rgba(0,0,0,.4); }
.modal-image-wrap { max-height:74vh; background:#eef2f7; display:grid; place-items:center; padding:20px; }
.modal-image-wrap img { max-height:68vh; width:auto; max-width:100%; object-fit:contain; }
.modal-caption { padding:18px 22px; }
.modal-caption h3 { margin:0; font-size:16px; }
.modal-caption p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.modal-close { position:absolute; z-index:3; right:12px; top:12px; width:38px; height:38px; border:0; border-radius:50%; background:rgba(8,17,31,.75); color:#fff; font-size:24px; cursor:pointer; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
    .main-nav { gap:16px; }
    .hero-inner { grid-template-columns:1fr .8fr; gap:20px; }
    .hero-visual { min-height:500px; }
    .hero-card { width:80%; }
    .portrait-wrap { height:390px; }
    .project-grid { grid-template-columns:repeat(2,1fr); }
    .cert-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 760px) {
    .container { width:min(var(--max),calc(100% - 30px)); }
    .nav-toggle { display:block; }
    .main-nav { display:none; position:absolute; top:70px; left:15px; right:15px; padding:15px; border:1px solid rgba(255,255,255,.1); border-radius:18px; background:rgba(8,17,31,.95); backdrop-filter:blur(18px); flex-direction:column; align-items:stretch; }
    .main-nav.open { display:flex; }
    .main-nav a { padding:10px; }
    .hero-inner { grid-template-columns:1fr; padding-top:120px; }
    .hero h1 { font-size:clamp(46px,13vw,70px); }
    .hero-visual { min-height:500px; }
    .hero-card { width:min(360px,78%); }
    .floating-chip { display:none; }
    .scroll-cue { display:none; }
    .section { padding:85px 0; }
    .section-head { display:block; margin-bottom:36px; }
    .section-head > p { margin-top:18px; }
    .bento { grid-template-columns:1fr 1fr; }
    .about-main { grid-column:span 2; grid-row:auto; }
    .education-timeline::before { left:10px; }
    .edu-item { grid-template-columns:22px 1fr; min-height:110px; }
    .edu-year { grid-column:2; text-align:left; padding-left:22px; padding-top:18px; }
    .edu-dot { grid-column:1; grid-row:1 / span 2; }
    .edu-content { grid-column:2; grid-row:2; padding:0 22px 22px; }
    .experience-list::before { left:6px; }
    .experience-item { grid-template-columns:13px 1fr; }
    .experience-year { display:none; }
    .experience-line { grid-column:1; }
    .experience-card { grid-column:2; grid-template-columns:1fr; margin-left:15px; }
    .experience-image { height:120px; }
    .project-grid { grid-template-columns:1fr; }
    .skill-groups { grid-template-columns:1fr; }
    .achievement-card, .contact-card { grid-template-columns:1fr; }
    .achievement-media { min-height:300px; }
    .contact-actions { justify-self:stretch; }
    .cert-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 460px) {
    .hero-meta { flex-direction:column; gap:6px; }
    .bento { grid-template-columns:1fr; }
    .about-main { grid-column:auto; }
    .stat-card { min-height:150px; }
    .cert-grid { grid-template-columns:1fr; }
    .achievement-copy { padding:35px 25px; }
    .contact-card { padding:35px 25px; }
    .footer-inner { flex-direction:column; align-items:flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    *, *::before, *::after { animation:none!important; transition:none!important; }
    .reveal { opacity:1; transform:none; }
}
