/* Personal portfolio • visual direction inspired by Varad Bhogayata's MIT-licensed template.
   Primary content lives in assets/js/data.js. No CSS build step is needed. */

:root {
  --teal: #009e94;
  --teal-bright: #37d7bf;
  --teal-pale: #e6f8f5;
  --ink: #17293b;
  --ink-muted: #5c6b7d;
  --hero: #0a1d2b;
  --paper: #ffffff;
  --surface: #f6f9fa;
  --line: #dfe8e9;
  --shadow: 0 10px 34px rgba(18, 48, 57, .09);
  --sidebar-width: 254px;
  --content-max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 10px; }
body { margin: 0; min-width: 320px; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #0eb6a8; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 15px; z-index: 1000; background: var(--teal); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); background: #fff; box-shadow: 4px 0 24px rgba(9, 31, 44, .065); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 34px 18px 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(140deg, #0c3746, #009e94); color: white; display: grid; place-items: center; font-size: 35px; font-weight: 780; letter-spacing: -.06em; border: 5px solid #f2fbf9; box-shadow: 0 0 0 1px #cceee9, 0 9px 24px rgba(4, 108, 104, .18); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { color: var(--ink); margin-top: 15px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.brand-subtitle { color: var(--ink-muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 720; margin-top: 9px; }
.nav-links { padding: 24px 0; display: flex; flex-direction: column; }
.nav-link { display: flex; align-items: center; gap: 17px; padding: 13px 24px; font-size: 14px; color: #445768; font-weight: 680; transition: background .2s, color .2s, border-color .2s; border-left: 3px solid transparent; }
.nav-link:hover, .nav-link.active { background: var(--teal-pale); color: #08766d; border-left-color: var(--teal); }
.nav-index { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #d4e5e2; border-radius: 8px; color: var(--teal); font-size: 11px; font-weight: 800; flex: none; }
.nav-link.active .nav-index, .nav-link:hover .nav-index { background: var(--teal); color: white; border-color: var(--teal); }
.sidebar-footer { margin-top: auto; padding: 20px 23px 24px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 720; color: #486173; }
.sidebar-footer p { color: #8d9ba4; font-weight: 400; margin: 9px 0 0; font-size: 10px; line-height: 1.5; }
.online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px #e0f5f0; }
.mobile-menu-button, .sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar-width); min-width: 0; }
.hero { position: relative; background: radial-gradient(circle at 85% 20%, #174957 0, transparent 37%), linear-gradient(122deg, #091a2a 5%, #112f40 70%, #0d3440 100%); min-height: 610px; height: min(810px, 100vh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .17; pointer-events: none; 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: 54px 54px; mask-image: linear-gradient(90deg, transparent 2%, #000 100%); }
.hero-content { position: relative; z-index: 2; width: min(80%, 790px); padding: 95px clamp(36px, 6.8vw, 95px); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--teal-bright); letter-spacing: .23em; text-transform: uppercase; font-size: 11px; font-weight: 760; margin: 0 0 28px; }
.eyebrow-line { width: 34px; height: 2px; background: var(--teal-bright); }
.hero h1 { color: #fff; font-weight: 800; letter-spacing: -.065em; line-height: 1.07; font-size: clamp(48px, 5.8vw, 83px); margin: 0 0 22px; }
.hero-name { display: block; color: #69decd; }
.hero-role { color: #e1f3f3; font-size: clamp(18px, 2vw, 25px); font-weight: 450; margin: 0 0 22px; }
#typed-role { color: #fff; font-weight: 710; }
.caret { display: inline-block; vertical-align: -3px; height: 24px; width: 2px; background: var(--teal-bright); margin-left: 5px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { max-width: 570px; color: #b8ccd2; font-size: 15px; line-height: 1.8; margin: 0 0 31px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { border-radius: 5px; padding: 12px 22px; min-height: 47px; font-size: 13px; font-weight: 760; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 16px; transition: transform .2s, background .2s, border-color .2s; border: 1px solid transparent; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: #13b7a5; }
.button-outline { color: #fff; border-color: #607882; background: rgba(255,255,255,.035); }
.button-outline:hover { border-color: var(--teal-bright); }
.hero-note { margin: 36px 0 0; font-size: 11px; font-weight: 690; color: #78949d; letter-spacing: .1em; text-transform: uppercase; }
.sparkle { color: var(--teal-bright); margin-right: 6px; }
.hero-decoration { position: absolute; width: 440px; height: 440px; right: -100px; top: 50%; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(63,215,192,.2); background: radial-gradient(circle, rgba(20,196,173,.09), transparent 65%); pointer-events: none; }
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(72,229,210,.23); }
.hero-ring-one { inset: 52px; }
.hero-ring-two { inset: 105px; border-style: dashed; }
.hero-orbit { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; color: #72b4b4; transform: rotate(-32deg); }
.hero-orbit span { color: var(--teal-bright); font-size: 18px; }
.scroll-cue { position: absolute; bottom: 26px; left: clamp(36px, 6.8vw, 95px); color: #90acb2; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scroll-cue span { display: block; height: 22px; width: 1px; background: var(--teal-bright); }

.content-section { scroll-margin-top: 0; }
.section-banner { display: flex; align-items: baseline; gap: 18px; background: var(--teal); min-height: 75px; padding: 17px clamp(30px, 6vw, 80px); color: white; }
.section-banner h2 { font-size: 31px; line-height: 1.3; font-weight: 780; margin: 0; letter-spacing: -.035em; }
.section-number { opacity: .55; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.section-body { max-width: 1250px; padding: clamp(36px, 5vw, 68px) clamp(30px, 6vw, 80px) clamp(48px, 6vw, 86px); margin: 0 auto; }
.surface { background: var(--surface); }
.section-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; font-weight: 840; color: var(--teal); margin: 0 0 10px; }
.section-lead { font-size: clamp(22px, 2.5vw, 32px); font-weight: 790; letter-spacing: -.045em; line-height: 1.3; margin: 0 0 30px; }
.body-copy { color: var(--ink-muted); line-height: 1.9; font-size: 15px; max-width: 700px; white-space: pre-line; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, .9fr); gap: 50px; }
.about-facts { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: var(--shadow); padding: 26px; align-self: start; }
.small-title { color: var(--teal); font-size: 11px; font-weight: 830; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 20px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.fact span { font-size: 11px; font-weight: 760; color: #84909c; text-transform: uppercase; letter-spacing: .09em; }
.fact strong, .fact a { font-size: 13px; color: var(--ink); font-weight: 740; overflow-wrap: anywhere; }
.fact a { color: var(--teal); }
.fact a:hover { text-decoration: underline; }
.timeline { border-left: 2px solid #b2e2db; padding: 4px 0 4px 24px; display: grid; gap: 24px; }
.timeline-item { position: relative; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 23px 27px; box-shadow: var(--shadow); }
.timeline-item::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 2px #b2e2db; position: absolute; top: 28px; left: -33px; }
.item-meta { font-size: 11px; font-weight: 770; color: var(--teal); letter-spacing: .07em; text-transform: uppercase; }
.item-heading { font-size: 20px; letter-spacing: -.025em; margin: 7px 0 3px; }
.item-org { display: block; color: #465d6c; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.item-org a:hover { color: var(--teal); }
.item-description { font-size: 14px; color: var(--ink-muted); margin: 6px 0 0; line-height: 1.85; }
.item-list { margin: 12px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-muted); line-height: 1.8; }
.item-list li + li { margin-top: 5px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(10, 44, 47, .14); }
.project-cover { min-height: 168px; background: linear-gradient(125deg, #0c2534, #087d78); position: relative; display: grid; place-items: center; color: white; overflow: hidden; }
.project-cover::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; }
.project-cover::after { content: "✧"; position: absolute; top: -30px; right: 15px; font-size: 180px; color: rgba(255,255,255,.07); }
.project-cover img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; z-index: 1; }
.project-cover-label { font-weight: 800; font-size: 24px; line-height: 1.3; text-align: center; padding: 20px; z-index: 1; }
.project-inner { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-inner h4 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.03em; }
.project-inner p { color: var(--ink-muted); margin: 0 0 19px; font-size: 14px; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.chip { background: #e6f7f3; color: #076e66; border: 1px solid #ccece5; border-radius: 3px; padding: 4px 10px; font-size: 11px; font-weight: 680; }
.card-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 13px; }
.card-links a { color: var(--teal); font-size: 12px; font-weight: 770; }
.card-links a:hover { text-decoration: underline; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.skill-group { background: #fff; padding: 24px; border: 1px solid var(--line); border-top: 3px solid #14a89d; border-radius: 5px; box-shadow: var(--shadow); }
.skill-group h4 { margin: 0 0 16px; font-size: 15px; }
.skill-group .chips { margin: 0; }
.empty-state { color: #6b7d89; padding: 27px; border: 1px dashed #b9d1d0; border-radius: 6px; background: rgba(255,255,255,.55); font-size: 14px; }
.empty-state strong { display: block; color: #2d535b; margin-bottom: 6px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-links { display: grid; gap: 12px; align-content: start; }
.contact-link { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 4px; min-width: 0; transition: background .2s; }
.contact-link:hover { background: var(--teal-pale); }
.contact-link span { overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.contact-link em { font-size: 12px; color: var(--teal); font-style: normal; flex: none; padding-left: 10px; }
.site-footer { border-top: 1px solid var(--line); color: #7a8994; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 25px clamp(30px, 6vw, 80px); font-size: 11px; }
.site-footer a { color: #138a81; font-weight: 770; }
.footer-star { color: var(--teal); padding: 0 4px; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 225px; }
  .hero-content { width: 92%; }
  .hero-decoration { opacity: .45; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 20px; }
  .sidebar { transform: translateX(-103%); transition: transform .25s ease; width: 272px; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(1,21,30,.55); z-index: 35; }
  .main { margin-left: 0; }
  .mobile-menu-button { display: flex; position: fixed; z-index: 50; right: 16px; top: 16px; width: 44px; height: 44px; background: white; box-shadow: 0 5px 18px rgba(0,0,0,.17); border: 0; border-radius: 6px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
  .mobile-menu-button span { width: 19px; height: 2px; background: #126d69; transition: transform .2s; }
  body.nav-open .mobile-menu-button span:first-child { transform: translateY(7px) rotate(45deg); }
  body.nav-open .mobile-menu-button span:nth-child(2) { opacity: 0; }
  body.nav-open .mobile-menu-button span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .hero { height: auto; min-height: min(700px, 95svh); }
  .hero-content { width: 100%; padding: 95px 40px; }
  .scroll-cue { left: 40px; }
}
@media (max-width: 650px) {
  .hero { min-height: 620px; }
  .hero-content { padding: 100px 26px 90px; }
  .hero h1 { font-size: clamp(45px, 11vw, 65px); }
  .hero-decoration { width: 280px; height: 280px; right: -175px; opacity: .28; }
  .hero-intro { font-size: 14px; }
  .scroll-cue { left: 26px; }
  .section-banner { padding: 15px 24px; min-height: 67px; }
  .section-banner h2 { font-size: 26px; }
  .section-body { padding: 36px 24px 54px; }
  .about-grid, .projects-grid, .skills-grid, .contact-layout { grid-template-columns: 1fr; }
  .about-grid, .contact-layout { gap: 22px; }
  .timeline { padding-left: 17px; }
  .timeline-item { padding: 20px; }
  .timeline-item::before { left: -26px; }
  .site-footer { padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
