/* Vithu Cloud Portfolio - professional UI (no build) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg0:#070A12;
  --bg1:#0B1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --text:#EAF1FF;
  --muted:#B9C6E6;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --shadow2: 0 10px 30px rgba(0,0,0,0.35);
  --accent:#7DD3FC;
  --accent2:#A78BFA;
  --good:#34D399;
  --warn:#FBBF24;
  --danger:#FB7185;
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --ring: 0 0 0 4px rgba(125,211,252,0.22);
  --codeBg: rgba(234,241,255,0.06);
}

[data-theme="light"]{
  --bg0:#F3F6FF;
  --bg1:#FFFFFF;
  --panel: rgba(17,24,39,0.04);
  --panel2: rgba(17,24,39,0.06);
  --text:#0B1020;
  --muted:#46506A;
  --border: rgba(17,24,39,0.12);
  --shadow: 0 18px 60px rgba(12,18,32,0.12);
  --shadow2: 0 10px 30px rgba(12,18,32,0.10);
  --codeBg: rgba(11,16,32,0.05);
  --ring: 0 0 0 4px rgba(125,211,252,0.24);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(125,211,252,0.22), transparent 55%),
    radial-gradient(1000px 700px at 95% 5%, rgba(167,139,250,0.20), transparent 60%),
    radial-gradient(900px 650px at 40% 120%, rgba(52,211,153,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  line-height:1.55;
  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
a:hover{ color: var(--accent); }

.container{ width:min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link{
  position:absolute; left:-999px; top: 10px;
  padding:10px 12px; border-radius: 999px;
  background: var(--panel2); border:1px solid var(--border);
}
.skip-link:focus{ left: 16px; z-index: 9999; outline:none; box-shadow: var(--ring); }

.site-header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,14,28,0.72), rgba(10,14,28,0.45));
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header{
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 240px;
}
.brand .mark{
  width: 40px; height:40px; border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, rgba(125,211,252,0.9), rgba(167,139,250,0.8));
  box-shadow: var(--shadow2);
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,0.18);
}
.brand .mark svg{ width: 22px; height:22px; fill: white; opacity: 0.95; }
.brand .title{
  display:flex; flex-direction:column; line-height: 1.2;
}
.brand .title strong{ font-weight: 700; letter-spacing: -0.02em; }
.brand .title span{ font-size: 13px; color: var(--muted); }

.nav{
  display:flex; align-items:center; gap: 10px;
}
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav a:hover{
  color: var(--text);
  border-color: var(--border);
  background: var(--panel);
}

.actions{ display:flex; align-items:center; gap: 10px; }

.btn{
  appearance:none; border:1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: var(--panel2); border-color: rgba(255,255,255,0.18); }
.btn:active{ transform: translateY(0px); }
.btn:focus{ outline:none; box-shadow: var(--ring); }

.btn-primary{
  background: linear-gradient(135deg, rgba(125,211,252,0.28), rgba(167,139,250,0.22));
  border-color: rgba(125,211,252,0.35);
}
.btn-ghost{
  background: transparent;
}

.hamburger{
  display:none;
  width: 42px; height:42px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--panel);
}
.hamburger svg{ width:22px; height:22px; fill: var(--text); opacity: 0.9; }

.mobile-drawer{
  display:none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border);
}
.mobile-drawer a, .mobile-drawer button{
  width:100%;
  justify-content:flex-start;
  margin-top: 10px;
}
.mobile-drawer .row{ display:grid; gap:10px; }

.main{ padding: 28px 0 64px; min-height: calc(100vh - 72px); }

.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}
.hero-card{
  position: relative;
  padding: 26px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(900px 400px at 20% 10%, rgba(125,211,252,0.22), transparent 55%),
              radial-gradient(700px 400px at 90% 30%, rgba(167,139,250,0.18), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.hero-card > *{ position: relative; }

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.dot{ width:8px; height:8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 6px rgba(52,211,153,0.12); }

.h1{
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.lede{ margin: 0; color: var(--muted); font-size: 16px; max-width: 62ch; }

.hero-ctas{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 18px; }

.panel{
  border:1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.stat strong{ display:block; font-size: 18px; letter-spacing:-0.02em; }
.stat span{ color: var(--muted); font-size: 13px; }

.section{
  margin-top: 26px;
}
.section h2{
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.section .sub{
  color: var(--muted);
  margin: -6px 0 14px;
  font-size: 14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 16px;
  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(125,211,252,0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
}
.card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.card p{ margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.meta{ display:flex; flex-wrap:wrap; gap: 8px; }
.badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.card .card-actions{
  display:flex; gap: 10px; margin-top: 12px; align-items:center;
}
.link{
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  display:inline-flex; align-items:center; gap: 8px;
}
.link:hover{ color: var(--accent); }

.toolbar{
  display:flex; gap: 10px; align-items:center; flex-wrap:wrap;
  margin: 14px 0 16px;
}
.input{
  flex: 1 1 280px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 11px 14px;
  color: var(--text);
  font-weight: 600;
}
.input::placeholder{ color: rgba(185,198,230,0.75); font-weight: 600; }
.chips{ display:flex; gap: 8px; flex-wrap:wrap; }
.chip{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
}
.chip[aria-pressed="true"]{
  color: var(--text);
  border-color: rgba(125,211,252,0.38);
  background: rgba(125,211,252,0.12);
}

.md{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 22px;
}
.md h1,.md h2,.md h3{ letter-spacing: -0.02em; }
.md h1{ margin-top: 0; font-size: 28px; }
.md h2{ margin-top: 24px; font-size: 18px; }
.md h3{ margin-top: 18px; font-size: 16px; }
.md p, .md li{ color: var(--muted); }
.md a{ color: var(--accent); font-weight: 800; }
.md pre{
  background: var(--codeBg);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 16px;
  overflow:auto;
}
.md code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 0.95em; }
.md img{
  width:100%;
  height:auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  cursor: zoom-in;
}

.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

.site-footer{
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer-links{ display:flex; gap: 12px; flex-wrap:wrap; }
.footer-links a{ color: var(--muted); font-weight: 700; }
.footer-links a:hover{ color: var(--text); }

.toast{
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  opacity: 0; pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
}
[data-theme="light"] .toast{ background: rgba(17,24,39,0.88); }
.toast.show{ opacity:1; transform: translateX(-50%) translateY(-2px); }

.lightbox{
  position: fixed; inset: 0; display:none; place-items:center;
  background: rgba(0,0,0,0.68);
  z-index: 1000;
  padding: 24px;
}
.lightbox.show{ display:grid; }
.lightbox .frame{
  width: min(1040px, 96vw);
  background: rgba(10,14,28,0.60);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.lightbox img{
  width:100%; height:auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
}
.lightbox .bar{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 8px 6px 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 800;
}
.lightbox .bar button{
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  cursor:pointer;
}

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .nav{ display:none; }
  .hamburger{ display:inline-grid; place-items:center; }
  .mobile-drawer{ display:none; }
  .mobile-drawer.open{ display:block; }
  .stats{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}
