:root{
  --bg:#f6f8ff;
  --bg2:#eef2ff;
  --card: rgba(255,255,255,.72);
  --card2: rgba(255,255,255,.90);
  --text:#0b1220;
  --muted:#51607a;
  --border: rgba(15,23,42,.10);
  --shadow: 0 18px 54px rgba(2,6,23,.10);
  --radius: 20px;
  --blue:#3b82f6;
  --purple:#8b5cf6;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 700px at 20% 10%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(900px 700px at 80% 15%, rgba(139,92,246,.16), transparent 55%),
    radial-gradient(900px 700px at 50% 95%, rgba(59,130,246,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:22px}
.nav{
  position:sticky;top:0;z-index:30;
  backdrop-filter: blur(14px);
  background: rgba(246,248,255,.65);
  border-bottom:1px solid var(--border);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;padding:14px 0}
.logo{
  width:40px;height:40px;border-radius:14px;
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(139,92,246,.92));
  box-shadow: 0 14px 40px rgba(59,130,246,.22);
  display:grid;place-items:center;
  font-weight:900;color:white;
}
.brand-name{font-weight:900;line-height:1}
.brand-title{color:var(--muted);font-size:12px;margin-top:4px}
.nav-links{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav-links a{color:var(--muted);font-size:14px}
.nav-links a:hover{color:var(--text)}
.hero{padding:28px 0 10px}
.hero-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;align-items:stretch}
.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad{padding:22px}
.kicker{
  color: rgba(59,130,246,.95);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  font-weight:900;
}
.profile-card{
  display:flex;gap:16px;align-items:center;
  margin-top:14px;
}
.avatar{
  width:96px;height:96px;border-radius:26px;
  background: linear-gradient(135deg, rgba(59,130,246,.20), rgba(139,92,246,.18));
  border:1px solid rgba(59,130,246,.18);
  overflow:hidden;
  flex:0 0 auto;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-main{min-width:0}
.name{font-weight:950;font-size:22px;letter-spacing:-.01em}
.title{color:var(--muted);margin-top:6px;line-height:1.45}
.meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.pill{
  font-size:12px;color:var(--muted);
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.h1{
  margin:10px 0 10px;
  font-size:38px;
  line-height:1.07;
  letter-spacing:-.02em;
}
.sub{color:var(--muted);font-size:16px;line-height:1.65}
.mini-note{font-size:13px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  color:var(--text);
  transition: transform .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px);border-color: rgba(59,130,246,.22)}
.btn.primary{
  border-color: rgba(59,130,246,.22);
  background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(139,92,246,.10));
}
.section{padding:26px 0}
.section h2{font-size:20px;margin:0 0 12px;letter-spacing:-.01em}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.item{
  padding:14px;border-radius:18px;border:1px solid var(--border);
  background: rgba(255,255,255,.62);
}
.skill{display:flex;justify-content:space-between;gap:10px;align-items:center}
.skill .name{font-weight:780}
.skill .level{color:var(--muted);font-size:13px}
.project-card{overflow:hidden}
.project h3{margin:0;font-size:16px}
.project p{margin:8px 0 0;color:var(--muted);line-height:1.55;font-size:14px}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tag{font-size:12px;color:var(--muted);border:1px solid var(--border);background:rgba(255,255,255,.6);padding:6px 8px;border-radius:999px}
.hr{height:1px;background:var(--border);margin:14px 0}
.footer{padding:22px 0;color:var(--muted);border-top:1px solid var(--border);margin-top:22px}
.float{position:fixed;right:16px;bottom:16px;z-index:50;display:flex;flex-direction:column;gap:10px}
.float a{
  width:50px;height:50px;border-radius:18px;
  display:grid;place-items:center;
  border:1px solid var(--border);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(2,6,23,.10);
}
.float a:hover{border-color: rgba(59,130,246,.22)}
.icon{width:22px;height:22px;display:inline-block}
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .h1{font-size:34px}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}

/* =========================
   PREMIUM 2026 UI (v3)
   ========================= */

/* Better typography + rhythm */
:root{
  --max: 1024px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 28px;
  --space-6: 36px;

  --ring: 0 0 0 4px rgba(59,130,246,.14);
  --shadow-soft: 0 10px 30px rgba(2,6,23,.08);
  --shadow-hover: 0 18px 50px rgba(2,6,23,.14);
}

body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  max-width: var(--max);
  padding: 18px;
}

@media (max-width: 640px){
  .container{ padding: 14px; }
}

/* NAV: cleaner + premium */
.nav{
  background: rgba(246,248,255,.78);
}
.nav-inner{ position: relative; }
.brand{ padding: 12px 0; }
.logo{
  width: 42px; height: 42px;
  border-radius: 16px;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: 12px;
}
.nav-links a:hover{
  background: rgba(59,130,246,.10);
}

/* Burger menu */
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.70);
  border-radius: 14px;
  width: 44px; height: 44px;
  align-items:center; justify-content:center;
}
@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .nav-drawer{
    display:none;
    position:absolute;
    right: 0;
    top: 64px;
    width: min(340px, calc(100vw - 28px));
    background: rgba(255,255,255,.95);
    border:1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    padding: 10px;
    backdrop-filter: blur(10px);
  }
  .nav-drawer.open{ display:block; }
  .nav-drawer a{
    display:flex;
    padding: 12px 12px;
    border-radius: 14px;
    color: var(--text);
  }
  .nav-drawer a:hover{ background: rgba(59,130,246,.10); }
}

/* HERO: more premium */
.hero{ padding: 18px 0 8px; }
.hero-grid{ gap: 14px; }
.kicker{ font-weight: 950; }
.h1{
  font-size: 40px;
  letter-spacing: -0.03em;
}
@media (max-width: 520px){ .h1{ font-size: 30px; } }

/* Cards: stronger depth + hover */
.card{
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59,130,246,.18);
}
.card-pad{ padding: 18px; }
@media (max-width: 640px){ .card-pad{ padding: 14px; } }

/* Profile card alignment */
.profile-card{ margin-top: 14px; }
.avatar{
  width: 98px; height: 98px;
  border-radius: 26px;
}
@media (max-width: 520px){
  .profile-card{ align-items:flex-start; gap: 12px; }
  .avatar{ width: 86px; height: 86px; border-radius: 22px; }
}

/* Buttons: cleaner */
.btn{
  border-radius: 14px;
  font-weight: 700;
}
.btn:focus{ outline: none; box-shadow: var(--ring); }
.btn.primary{
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.14));
}

/* Sections: add subtle separators */
.section{ padding: 18px 0; }
.section h2{
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section h2::after{
  content:"";
  display:block;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(59,130,246,.25), rgba(139,92,246,.18), transparent);
}

/* Grids: auto-fit perfect responsive */
.grid-3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

/* Items: consistent height and premium feel */
.item{
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.item:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,6,23,.10);
}

/* Skills layout */
.skill{ min-height: 62px; align-items:center; }
.skill .name{ font-size: 15px; font-weight: 850; }
.skill .level{ font-size: 12px; }

/* Tags: nicer */
.tag{
  border-radius: 999px;
  padding: 6px 10px;
  border-color: rgba(59,130,246,.18);
  background: rgba(59,130,246,.06);
}

/* Projects: consistent height + image rounding */
.project-card{ display:flex; flex-direction:column; height:100%; overflow:hidden; }
.project-card img{ border-bottom: 1px solid var(--border); }
.project-card .card-pad{ flex:1 1 auto; display:flex; flex-direction:column; }
.project-card .project p{ flex:1 1 auto; }

/* Floating buttons: smaller + elegant */
.float a{
  width: 48px; height: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.float a:hover{ box-shadow: var(--shadow-hover); }

/* Mobile: full width buttons in hero */
@media (max-width: 520px){
  .actions .btn{ width: 100%; }
}
