
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root{
  --bg1:#0f172a;      
  --bg2:#f0f9ff;      
  --bg3:#e0f2fe;      
  --ink:#1f2937;      
  --muted:#64748b;
  --card:#ffffff;     
  --brand:#2563eb;    
  --brand-2:#38bdf8;  
}


.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}


.page{
  min-height:100vh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  grid-template-areas:"header" "main" "footer";
  background: linear-gradient(180deg, var(--bg2), var(--bg3));
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}


.site-header{
  grid-area: header;
  background: var(--bg1);
  color:#fff;
  border-bottom:3px solid var(--brand-2);
}
.navbar{
  max-width: 900px; margin: 0 auto; padding: 16px 20px;
  display:flex; flex-direction: column; gap:10px; align-items:center;
}
.site-title{ font-size:26px; font-weight:700; margin:0; }
.nav-links{
  list-style:none; display:flex; flex-wrap:wrap; gap:18px; padding:0; margin:0;
}
.nav-links a{
  color:#fff; text-decoration:none; padding:6px 10px; border-radius:6px;
  transition: background-color .25s ease, transform .15s ease;
}
.nav-links a:hover{ background:var(--brand-2); }
.nav-links a:visited{ color:#d1fae5; }
.nav-links a:active{ transform: scale(0.97); }


.site-main{
  grid-area: main;
  display:grid;
  grid-template-columns: 1fr;
  justify-items:center;
  padding: 32px 16px;
}


.float-bubble{
  float: right; width: 80px; height: 80px; margin: 4px 8px 8px 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff66d9, #7c3aed);
  opacity:.25;
}
.links-section{ clear: both; }


.profile-card{
  width: min(100%, 720px);
  display: grid; place-items: center; gap: 14px;
  margin-bottom: 20px; padding: 12px 0;
}
.avatar-wrap{
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid var(--brand-2); overflow: hidden; background: #00000010;
  display:grid; place-items:center;
}
.avatar{ width: 100%; height: 100%; object-fit: cover; display:block; }
.bio{ max-width: 620px; text-align:center; font-size: 1rem; line-height: 1.6; padding: 0 8px; }


.links-section{ width: min(100%, 520px); margin-top: 14px; }
.links{
  list-style: none; padding: 0; margin: 0;
  display:flex; flex-direction: column; gap: 12px;
}
.links a{
  display:block; background: var(--card); color: var(--ink);
  border: 1px solid #d1d5db; border-left: 6px solid var(--brand);
  border-radius: 10px; padding: 12px 14px; text-align: center; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.links a:hover{ background: var(--brand-2); color:#fff; transform: translateY(-2px); }
.links a:visited{ color:#4f46e5; }
.links a:active{ transform: scale(0.98); }
.links li:first-child a{ border-left-color:#2563eb; }
.links li:nth-of-type(2) a{ border-left-color:#0077b5; }
.links li:nth-of-type(3) a{ border-left-color:#a855f7; }
.links li:nth-of-type(4) a{ border-left-color:#f97316; }
.links li:nth-of-type(5) a{ border-left-color:#1877f2; }
.links li:last-child a{ border-left-color:#16a34a; }


.social-section{ margin-top: 24px; }
.social-icons{ list-style:none; display:flex; gap:14px; padding:0; margin:0; }
.social-icons img{ width:40px; height:40px; display:block; transition: transform .2s ease; }
.social-icons img:hover{ transform: scale(1.15); }


.site-footer{ grid-area: footer; background: var(--bg1); color:#fff; text-align:center; padding: 18px 12px; font-size: 14px; }


@media (min-width: 700px){
  .navbar{ flex-direction: row; justify-content: space-between; }
  .nav-links{ gap:22px; }
}


.hero{
  width: 100%; display: grid; place-items: center;
  padding: 40px 16px; text-align: center;
  background: linear-gradient(135deg, var(--bg3), #dbeafe);
}
.hero--image{ background: var(--bg3) center/cover no-repeat; background-image: var(--hero-url, none); }
.hero-inner{ max-width: 860px; display: grid; gap: 10px; }
.hero h2{ font-size: clamp(1.4rem, 2.5vw, 2rem); }


.divider{
  height: 2px; width: min(96%, 980px);
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 18px auto;
}


.project-grid{
  width: min(100%, 980px);
  margin: 10px 16px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.project-card{
  background: var(--card); border: 1px solid #d1d5db; border-radius: 12px;
  padding: 12px; display: grid; gap: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: 0 10px 18px rgba(0,0,0,.12); }
.project-card img{ width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; }


.content-split{
  width: min(100%, 980px);
  margin: 12px 16px 24px;
  display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center;
}
.content-split img{ width:100%; border-radius: 10px; }
@media (min-width: 820px){ .content-split{ grid-template-columns: 1.1fr .9fr; } }


.btn-secondary, .btn-primary{
  display:inline-block; border-radius: 10px; padding: 10px 14px; text-decoration: none; font-weight: 600;
  transition: transform .15s ease, background-color .25s ease, color .25s ease, box-shadow .2s ease;
}
.btn-primary{ background: var(--brand); color: #fff; }
.btn-secondary{ background: #e2e8f0; color: var(--ink); }
.btn-primary:hover{ background:#1d4ed8; }
.btn-secondary:hover{ background:#cbd5e1; }
.btn-primary:active, .btn-secondary:active{ transform: scale(.98); }
.btn-primary:focus-visible, .btn-secondary:focus-visible{ outline: 3px solid var(--brand-2); outline-offset: 3px; }


.post-list{ width: min(100%, 860px); margin: 10px 16px 32px; }
.post-list ol{ padding-left: 18px; line-height: 1.8; }


.about-cards{
  width: min(100%, 900px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; padding: 8px 16px 24px;
}
.about-card{
  background: var(--card); border: 1px solid #d1d5db; border-radius: 12px; padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.about-card h3{ margin-bottom: 8px; font-size: 1.05rem; }
.about-card ul{ padding-left: 18px; line-height: 1.6; }

.contact-form{
  width: min(100%, 560px); background: var(--card); border: 1px solid #d1d5db; border-radius: 12px;
  padding: 18px; margin: 8px 16px 16px; box-shadow: 0 4px 10px rgba(0,0,0,.06);
  display: grid; gap: 10px;
}
.contact-form label{ font-weight: 600; }
.contact-form input, .contact-form textarea{
  width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; font: inherit; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus{
  border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(56,189,248,.25);
}
.btn-primary{ cursor:pointer; }


.stats{ width: min(100%, 980px); margin: 6px 16px 26px; }
.table-wrap{ width: 100%; overflow-x: auto; }
.table{
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
}
.table thead th{
  text-align: left; background: #eff6ff; color: #0f172a; font-weight: 700;
  padding: 12px; border-bottom: 1px solid #e2e8f0;
}
.table tbody td{ padding: 12px; border-bottom: 1px solid #eef2f7; }
.table tbody tr:nth-child(even){ background: #f8fafc; }


.matches{ width: min(100%, 980px); margin: 6px 16px 32px; }
.match-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.match-list li{
  background: var(--card); border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.badge{
  background: #22c55e; color: #fff; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: .9rem;
}
.muted{ color: var(--muted); font-size: .95rem; }
