@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root{
  --bg0:#050711;
  --bg1:#070a12;
  --panel:rgba(255,255,255,.04);
  --panel2:rgba(255,255,255,.06);
  --text:#e9edf6;
  --muted:#a7b0c2;
  --line:rgba(255,255,255,.12);

  --c1:#22d3ee;
  --c2:#a78bfa;
  --c3:#fb923c;
  --c4:#3b82f6;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadowSoft: 0 12px 30px rgba(0,0,0,.28);

  --radius:20px;
  --radius2:26px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% 12%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(900px 520px at 80% 16%, rgba(167,139,250,.14), transparent 60%),
    radial-gradient(900px 520px at 55% 78%, rgba(251,146,60,.12), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 45%, var(--bg0) 100%);
}

a{color:inherit; text-decoration:none}
.container{max-width:1120px; margin:0 auto; padding:0 22px}

/* Top nav */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(7,10,18,.62);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  font-weight:900;
  letter-spacing:-.3px;
  font-size:15px;
  color: var(--text);
}
.nav-links{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.nav-links a{
  color:var(--muted);
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover{background:rgba(255,255,255,.06); color:var(--text)}

/* Hero */
.hero{
  position:relative;
  min-height:92vh;
  display:flex;
  align-items:center;
  padding:84px 0 34px;
  overflow:hidden;
}
.blobs{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.blob{
  position:absolute;
  width:520px; height:520px;
  border-radius:999px;
  filter: blur(60px);
  opacity:.55;
  animation: float 8s ease-in-out infinite;
}
.blob.b1{left:-120px; top:120px; background:rgba(34,211,238,.22)}
.blob.b2{right:-140px; top:90px; background:rgba(167,139,250,.22); animation-delay:1.2s}
.blob.b3{left:40%; bottom:-220px; background:rgba(251,146,60,.18); animation-delay:2.2s}

@keyframes float{
  0%{transform: translateY(0) translateX(0) scale(1)}
  50%{transform: translateY(-18px) translateX(10px) scale(1.04)}
  100%{transform: translateY(0) translateX(0) scale(1)}
}

.hero-card{
  position:relative;
  text-align:center;
}

.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
  box-shadow: var(--shadowSoft);
}

.h1{
  margin:18px 0 12px;
  font-size:64px;
  line-height:1.02;
  letter-spacing:-1.6px;
  font-weight:900;
  background: linear-gradient(90deg,var(--c1),var(--c2),var(--c3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
@media (max-width:720px){
  .h1{font-size:46px; letter-spacing:-1px}
}

.subtitle{
  margin:0 0 14px;
  font-size:22px;
  color:rgba(233,237,246,.92);
  font-weight:800;
}
.subtitle .dot{color:var(--c1); padding:0 10px}
.tagline{
  margin:0 auto;
  max-width:860px;
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
}

.cta{
  margin-top:28px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:14px 18px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color:rgba(255,255,255,.20);
}
.btn.primary{
  border:0;
  background: linear-gradient(90deg, rgba(34,211,238,.95), rgba(59,130,246,.95));
  box-shadow: 0 14px 35px rgba(34,211,238,.18);
}
.btn.primary:hover{
  box-shadow: 0 16px 40px rgba(34,211,238,.30);
}
.btn.outline{
  background:transparent;
  border:2px solid rgba(255,255,255,.14);
}
.btn.outline:hover{background:rgba(255,255,255,.06)}

.stats{
  margin:52px auto 0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  max-width:980px;
}
@media (max-width:860px){
  .stats{grid-template-columns:repeat(2,1fr)}
}
.stat{
  padding:18px 14px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadowSoft);
}
.stat .val{
  font-size:30px;
  font-weight:900;
  letter-spacing:-.6px;
  background: linear-gradient(90deg,var(--c1),var(--c2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.stat .lab{margin-top:6px; color:var(--muted); font-size:13px}

/* Sections */
.section{padding:74px 0}
.section h2{
  margin:0 0 14px;
  font-size:28px;
  letter-spacing:-.6px;
}
.kicker{
  color:var(--muted);
  margin:0 0 26px;
  max-width:820px;
  line-height:1.7;
}
.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  margin:0;
  border:0;
}

/* Grid and cards */
.grid{display:grid; gap:18px}
.grid.projects{grid-template-columns:repeat(2,1fr)}
@media (max-width:860px){
  .grid.projects{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius2);
  padding:18px;
  box-shadow: var(--shadowSoft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(255,255,255,.18);
}
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.card-title{font-weight:900; margin:0 0 6px; font-size:18px; letter-spacing:-.2px}
.card-sub{color:var(--muted); font-size:13px; line-height:1.4}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(233,237,246,.82);
  font-size:12px;
  white-space:nowrap;
}
.desc{margin:12px 0 12px; color:rgba(233,237,246,.90); line-height:1.6}

.metrics{display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 12px}
.metric{
  padding:10px 12px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
}
.metric .mval{font-weight:900}
.metric .mlab{display:block; color:var(--muted); font-size:12px; margin-top:2px}

.tags{display:flex; flex-wrap:wrap; gap:8px}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--muted);
}

/* Timeline */
.timeline{display:grid; gap:14px}
.role{display:grid; gap:10px}
.role-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.role h3{margin:0; font-size:18px; letter-spacing:-.2px}
.role .meta{color:var(--muted); font-size:13px}
.bullets{margin:0; padding-left:18px; color:rgba(233,237,246,.90); line-height:1.65}
.bullets li{margin:6px 0}

/* Skills */
.skills{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
@media (max-width:860px){
  .skills{grid-template-columns:1fr}
}
.skill-list{display:flex; flex-wrap:wrap; gap:10px}
.skill{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(233,237,246,.86);
  font-size:13px;
  font-weight:600;
}

/* Education */
.edu{display:grid; gap:12px}
.edu-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.edu-item .left{font-weight:800}
.edu-item .right{color:var(--muted)}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1.6fr;
  gap:18px;
}
.contact-chips{
  margin-top:12px;
  display:flex;
  flex-direction: column;   /* 🔑 stack vertically */
  gap:10px;                 /* consistent spacing */
}

/* allow non-link chip to look like link */
.contact .chip{
  cursor:default;
  user-select:none;
}

@media (max-width:920px){
  .contact{grid-template-columns:1fr}
}
.contact .link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 44px;                /* 🔑 force equal height */
  padding: 0 16px;             /* vertical padding removed */
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);

  font-size: 14px;
  line-height: 1;              /* 🔑 prevents text-driven height */
}
.contact a.link svg {
  width: 18px;
  height: 18px;
  display: block;              /* 🔑 removes inline SVG extra height */
}
.contact a.link .muted {
  color: rgba(233,237,246,.70);
}
.contact a.link:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}
.small{color:var(--muted); font-size:13px; line-height:1.7}

.summary-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(233,237,246,.90);
  line-height: 1.65;
}

.summary-list li {
  margin: 8px 0;
}
/* Footer */
.footer{
  padding:34px 0 54px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

/* Scroll reveal */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}
.brand-gradient{
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}

.contact a.link .label{
  color: rgba(233,237,246,.92);
  font-weight: 700;
}
/* LinkedIn SVG sizing + crisp alignment */
.contact a.link .li-icon{
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

/* =========================
   BLOG PAGE LAYOUT
========================= */
.card-link{
  display:block;
  height:100%;
  color:inherit;
}
.card-link:hover .card-title{
  text-decoration: underline;
}
/* Blog card layout */
.blog-card-row{
  display:flex;
  gap:20px;
  align-items:stretch;
}

/* Default = image right */
.blog-card-row.right{
  flex-direction:row;
}

/* Image left */
.blog-card-row.left{
  flex-direction:row;
}

/* Image right */
.blog-card-row.right{
  flex-direction:row-reverse;
}

.blog-card-text{
  flex:1;
}

.blog-card-thumb{
  width:160px;
  flex-shrink:0;
  border-radius:16px;
  overflow:hidden;
}

.blog-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Mobile stack */
@media (max-width:720px){
  .blog-card-row{
    flex-direction:column !important;
  }

  .blog-card-thumb{
    width:100%;
    height:180px;
  }
}

/* =========================
   BLOG LIST META + TAGS (scoped)
========================= */

.blog-list .post-topline{
  margin: 10px 0 10px;
}

.blog-list .post-meta{
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.blog-list .post-meta .dot{
  color: rgba(255,255,255,.35);
}

.blog-list .post-tags{
  justify-content: flex-start; /* looks better in list cards */
}

/* Pills on dark cards */
.blog-list .post-tag{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(233,237,246,.90);
  font-weight: 700;
}

/* =========================
   BLOG ARTICLE LAYOUT
========================= */

.blog-wrapper{
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 22px 120px;
}

.blog-card{
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  border-radius: 26px;
  overflow: hidden;
  line-height: 1.7;
}

/* Hero image inside blog */
.post-hero{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Inner content padding */
.blog-content{
  padding: 26px 42px 42px; /* top smaller; adds gap under image */
}

.blog-card h1,
.blog-card h2,
.blog-card h3{
  color: #020617;
}

.blog-card p,
.blog-card li{
  font-size: 17px;
}

.blog-card hr{
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  margin: 36px 0;
}

@media (max-width: 640px){
  .blog-content{
    padding: 26px;
  }
}

/* =========================
   BLOG META + TAGS
========================= */

.post-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 0 0 18px;
}

.post-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(15,23,42,.70);
  font-size: 13px;
  font-weight: 600;
}

.post-meta .dot{
  color: rgba(15,23,42,.35);
}

.post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.post-tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.75);
  font-weight:700;
}

@media (max-width: 640px){
  .post-topline{
    flex-direction:column;
    align-items:flex-start;
  }
  .post-tags{
    justify-content:flex-start;
  }
}

.post-author{
  font-size:14px;
  font-weight:600;
  color: rgba(15,23,42,.65);
  margin: 6px 0 18px;
}

/* =========================
   PODCAST LAYOUT
========================= */


.podcast-dropdown{
  margin: 18px 0 30px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.70);
}

.podcast-summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.podcast-summary::-webkit-details-marker{ display:none; }

.podcast-summary::after{
  content:"▾";
  opacity:.6;
  font-size:14px;
}

.podcast-dropdown[open] .podcast-summary::after{
  content:"▴";
}

.podcast-body{
  padding: 0 16px 16px;
}

.podcast-player{
  width:100%;
  height:166px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius:14px;
  overflow:hidden;
  display:block;
}
.podcast-dropdown[open]{
  box-shadow: 0 18px 30px rgba(0,0,0,.20);
}
.podcast-content{
  overflow: hidden;
  transition: 
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease;
  
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.podcast-dropdown[open] .podcast-content{
  max-height: 600px; /* larger than iframe height */
  opacity: 1;
  transform: translateY(0);
}
