:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --border: rgba(255,255,255,0.12);
  --accent: #7c5cff;
  --accent2: #00d4ff;

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.35);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124,92,255,0.28), transparent 55%),
    radial-gradient(900px 600px at 90% 30%, rgba(0,212,255,0.18), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(124,92,255,0.14), transparent 60%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.95; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,0.55);
  border-bottom: 1px solid var(--border);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(124,92,255,0.12);
}
.brand-text{ font-size: 16px; }

.nav-links{
  display: none;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a:hover{ color: var(--text); }

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.btn:hover{ background: rgba(255,255,255,0.07); }
.btn-primary{
  border-color: rgba(124,92,255,0.45);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(0,212,255,0.75));
  color: #0b1220;
}
.btn-ghost{
  color: var(--text);
}
.btn-sm{
  padding: 8px 12px;
  font-size: 14px;
}

/* Hero */
.hero{
  padding: 56px 0 18px;
}
.hero-grid{
  display: grid;
  gap: 18px;
}
.hero-title{
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  margin: 12px 0 10px;
}
.hero-subtitle{
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  margin: 0 0 18px;
}

.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill{
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.hero-cta{ display: flex; gap: 10px; flex-wrap: wrap; }

.hero-meta{
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.meta-card{
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.meta-label{ color: var(--muted); font-size: 12px; font-weight: 700; }
.meta-value{ margin-top: 4px; font-weight: 800; }

/* Panels / Cards */
.panel, .card, .mini-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel{
  padding: 18px;
}
.panel-title{
  margin: 0 0 10px;
  font-size: 16px;
}
.checklist{
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.checklist li{
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.5;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0,212,255,0.9);
  font-weight: 900;
}

.panel-links{
  display: grid;
  gap: 10px;
}
.link-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
}
.link-row:hover{ background: rgba(255,255,255,0.07); color: var(--text); }
.arrow{ opacity: 0.8; }

/* Sections */
.section{
  padding: 46px 0;
}
.section-alt{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 26px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Layout grids */
.grid{
  display: grid;
  gap: 14px;
}
.cards{
  grid-template-columns: 1fr;
}

.cols-1{
  grid-template-columns: 1fr;
}
.cols-2{
  grid-template-columns: 1fr;
}
.cols-3{
  grid-template-columns: 1fr;
}

.card{
  padding: 16px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,0.03));
}
.tag{
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.card h3{
  margin: 8px 0 6px;
  font-size: 18px;
}
.muted{ color: var(--muted); line-height: 1.65; margin: 0; }

.card-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card-foot{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.mini-card{
  padding: 16px;
  background: rgba(255,255,255,0.045);
}
.mini-card h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  line-height: 1.6;
}

.contact-grid{
  display: grid;
  gap: 14px;
}

.footer{
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 13px;
}

/* ==============================
   PROJECT LINK BUTTON SYSTEM
   ============================== */

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Base Button */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* GitHub Badge */
.btn-github {
  background: #24292e;
  color: white;
}

.btn-github:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Backend Badge */
.btn-backend {
  background: linear-gradient(135deg, #6c63ff, #5a54d6);
  color: white;
}

.btn-backend:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(90, 84, 214, 0.4);
}

/* Live Demo Badge */
.btn-live {
  background: linear-gradient(135deg, #00c853, #00a844);
  color: white;
}

.btn-live:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

/* GitHub SVG icon */
.github-icon {
  width: 16px;
  height: 16px;
}

/* ==============================
   RESPONSIVE BEHAVIOR
   ============================== */

@media (max-width: 768px) {
  .project-links {
    justify-content: center;
  }

  .btn-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn-link {
    font-size: 13px;
    padding: 9px 14px;
  }
}

/* Desktop */
@media (min-width: 860px){
  .nav-links{ display: flex; }
  .hero-grid{ grid-template-columns: 1.25fr 0.75fr; align-items: start; }
  .hero-meta{ grid-template-columns: repeat(3, 1fr); }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .cols-2{ grid-template-columns: repeat(2, 1fr); }
  .cols-3{ grid-template-columns: repeat(3, 1fr); }
  .contact-grid{ grid-template-columns: 1fr 1fr; }
}