:root{
  /* Apple-minimal Blue Theme */
  --bg:#070d1a;
  --bg-alt:#0b1324;
  --surface:rgba(255,255,255,.03);
  --surface-2:rgba(255,255,255,.04);

  --text:#eaf0fb;
  --text-dim:rgba(234,240,251,.72);

  --primary:#3b82f6;
  --primary-strong:#2563eb;
  --accent:#22d3ee;

  --border:rgba(120,155,210,.16);
  --border-strong:rgba(59,130,246,.35);

  --radius:16px;
  --radius-sm:12px;

  --shadow-soft:0 10px 24px rgba(0,0,0,.28);
  --shadow:0 20px 60px rgba(0,0,0,.52);

  --max-width:1100px;
}

/* ===== Reset ===== */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(900px 600px at 80% 70%, rgba(34,211,238,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

img{ max-width:100%; display:block; }
strong{ font-weight: 750; }

/* ===== Links ===== */
a{
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover{ color:#7dd3fc; }

/* ===== Header ===== */
header{
  text-align:center;
  padding: 5rem 1.25rem 3.25rem;
}
header h1{
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline{
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 860px;
  margin-inline:auto;
}

/* ===== Pills ===== */
.pill{
  display:inline-flex;
  gap:.5rem;
  flex-wrap:wrap;
  justify-content:center;
  margin-top: 1.2rem;
}
.pill span{
  font-size: .84rem;
  color: var(--text-dim);
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Jump links inside pills (Volunteering page) */
.pill a.btn{
  padding: .42rem .8rem !important;
  font-size: .9rem;
}

/* ===== Buttons ===== */
.header-cta{
  margin-top: 1.65rem;
  display:flex;
  justify-content:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .68rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover{
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.btn.primary{
  border-color: rgba(59,130,246,.55);
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(34,211,238,.14));
}
.btn.cv{
  border-color: rgba(34,211,238,.45);
  background: linear-gradient(135deg, rgba(34,211,238,.16), rgba(59,130,246,.14));
}

/* ===== Tech Row ===== */
.tech-row{
  margin-top: 1.15rem;
  display:flex;
  justify-content:center;
}
.tech-row img{
  width: min(760px, 100%);
  height: auto;
  filter: saturate(1.06);
  opacity: .98;
}

/* ===== Navigation ===== */
nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  display:flex;
  justify-content:center;
  gap:.7rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7,13,26,.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
nav a{
  padding: .55rem .95rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
nav a:hover,
nav a.active{
  color:#fff;
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.18);
}

/* ===== Layout ===== */
main{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.25rem 1.2rem 5.25rem;
}
section{
  margin-bottom: 4.25rem;
}
section h2{
  font-size: 1.85rem;
  margin-bottom: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: #cfe1ff;
  position: relative;
}
section h2::after{
  content:"";
  display:block;
  width: 52px;
  height: 2px;
  margin-top: .55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.55), rgba(34,211,238,.55));
  opacity: .65;
}
.subtle{
  color: var(--text-dim);
  font-size: .98rem;
  max-width: 900px;
}

/* ===== Two Column ===== */
.two-col{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  align-items:start;
}

/* Better alignment inside cards when using nested .two-col */
.card .two-col{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

/* ===== Grid / Cards ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(59,130,246,.35);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}

/* ===== Premium subtle top glow for cards ===== */
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:2px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: linear-gradient(90deg, rgba(59,130,246,.6), rgba(34,211,238,.6));
  opacity:.35;
  transition: opacity .25s ease;
}
.card:hover::before{
  opacity:.85;
}

.card h3{
  color: #eaf0fb;
  font-size: 1.12rem;
  margin-bottom: .5rem;
}
.desc{
  color: var(--text-dim);
  font-size: .95rem;
  margin-top: .35rem;
}
.meta{
  margin-top: .95rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.tag{
  font-size:.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* ===== Lists (cleaner, more “designed”) ===== */
.bullets{
  margin-top: .75rem;
  padding-left: 0;
  list-style: none;
  color: var(--text-dim);
}
.bullets li{
  margin: .35rem 0;
  padding-left: 1.05rem;
  position: relative;
}
.bullets li::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(34,211,238,.75);
  opacity:.75;
}
.bullets.compact{ margin-top: .65rem; }

/* ===== Mini headings inside cards (Technical / Soft Skills) ===== */
.mini-title{
  font-size: .95rem;
  font-weight: 750;
  color: #eaf0fb;
  margin-bottom: .45rem;
  letter-spacing: -0.01em;
}

/* ===== Honors ===== */
.honor-item{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}
.honor-item h4{
  color:#eaf0fb;
  font-size: 1.03rem;
  margin-bottom: .25rem;
}
.honor-item .when{
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: .35rem;
}

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.4rem;
}
.contact-box{
  display:flex;
  align-items:center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact-box:hover{
  transform: translateY(-5px);
  border-color: rgba(34,211,238,.35);
  box-shadow: var(--shadow);
}

/* icon container (Lucide) */
.contact-icon{
  display:grid;
  place-items:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  flex: 0 0 auto;
}
.contact-icon svg{
  width: 20px;
  height: 20px;
  stroke: rgba(234,240,251,.9);
}

/* smaller text inside contact boxes */
.contact-box strong{
  display:block;
  color:#eaf0fb;
  font-size: .95rem;
}
.contact-box p{
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.35;
  word-break: break-word;
}

/* ===== Footer ===== */
footer{
  text-align:center;
  padding: 2.4rem 1rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}

/* ===== Filters ===== */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}
.filter-btn{
  cursor:pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text-dim);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .9rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.filter-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.35);
  color:#fff;
}
.filter-btn.active{
  color:#fff;
  border-color: rgba(59,130,246,.5);
  background: rgba(59,130,246,.22);
}

/* ===== Clickable project cards (Apple-like) ===== */
.project-grid > a.card{
  display:block;
  color: inherit !important;
  text-decoration:none !important;
}
.project-grid > a.card::after{
  content:"↗";
  position:absolute;
  top: 14px;
  right: 14px;
  font-weight: 700;
  color: rgba(234,240,251,.55);
  opacity: .6;
  transition: transform .2s ease, opacity .2s ease, color .2s ease;
}
.project-grid > a.card:hover::after{
  opacity: 1;
  transform: translateY(-1px);
  color: rgba(34,211,238,.9);
}

/* ===== Subtle animations ===== */
@media (prefers-reduced-motion: no-preference){
  .fade-up{ opacity: 0; transform: translateY(14px); }
  .reveal-in{
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity .7s ease, transform .7s ease;
  }

  header h1{ animation: headerIn .8s ease both; }
  header .tagline{ animation: headerIn .95s ease both; }
  header .pill{ animation: headerIn 1.1s ease both; }
  header .header-cta{ animation: headerIn 1.25s ease both; }
  header .tech-row{ animation: headerIn 1.4s ease both; }

  @keyframes headerIn{
    from{ opacity:0; transform: translateY(10px); }
    to{ opacity:1; transform: translateY(0); }
  }
}

/* ===== Focus states ===== */
a:focus-visible, button:focus-visible{
  outline: 2px solid rgba(34,211,238,.85);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 600px){
  header{ padding: 3.6rem 1rem 2.6rem; }
  .tagline{ font-size: 1rem; }
  nav{ flex-wrap:wrap; }
  .grid{ grid-template-columns: 1fr; }
}



