:root{
  --bg: #fbfbfe;
  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.92);
  --text: #101114;
  --muted: #5b5f6a;
  --border: rgba(17,17,17,.10);
  --shadow: 0 18px 50px rgba(17,17,17,.10);
  --shadow2: 0 10px 30px rgba(17,17,17,.10);
  --radius: 22px;
  --radius2: 16px;
  --accent: #7c5cff;
  --accent2: #a88bff;
  --max: 1100px;
}

*{ 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(900px 500px at 25% 0%, rgba(124,92,255,.15), transparent 60%),
    radial-gradient(900px 500px at 80% 15%, rgba(168,139,255,.10), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

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

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand__dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,92,255,.12);
}

/* Nav */
.nav{ position:relative; }
.nav__toggle{
  display:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer;
}
.nav__menu{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.nav__link{
  padding:10px 12px;
  border-radius: 999px;
  font-weight:700;
  color: rgba(16,17,20,.85);
}
.nav__link:hover{
  background: rgba(124,92,255,.10);
}

/* Dropdown */
.dd{ position:relative; }
.dd__btn{
  border:none;
  background: transparent;
  padding:10px 12px;
  border-radius: 999px;
  font-weight:800;
  cursor:pointer;
  color: rgba(16,17,20,.85);
}
.dd__btn:hover{ background: rgba(124,92,255,.10); }
.dd__menu{
  position:absolute;
  top:44px;
  left:0;
  min-width: 220px;
  list-style:none;
  margin:0;
  padding:10px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow2);
  display:none;
}
.dd__menu a{
  display:block;
  padding:10px 12px;
  border-radius: 12px;
  font-weight:700;
  color: rgba(16,17,20,.85);
}
.dd__menu a:hover{ background: rgba(124,92,255,.10); }
.dd.open .dd__menu{ display:block; }

/* Hero */
.hero{
  padding: 46px 0 18px;
}
.profile{
  width: 260px;            /* <-- NON gigante */
  max-width: 70vw;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.9);
}
.hero h1{
  margin: 12px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  text-align:center;
  letter-spacing: -.5px;
}
.subtitle{
  margin:0 auto;
  max-width: 70ch;
  text-align:center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* Gradient text */
.grad{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Buttons */
.menu{
  margin-top: 16px;
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{
  border-color: rgba(124,92,255,.35);
  background: rgba(124,92,255,.14);
}

/* Icons (same size) */
.iconbtn{
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.90);
  display:grid;
  place-items:center;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.iconbtn svg{ width:22px; height:22px; }
.iconbtn.brand.github svg{ fill:#181717; }
.iconbtn.brand.linkedin svg{ fill:#0A66C2; }
.iconbtn.brand.instagram svg{ fill: url(#ig-gradient); }

/* Section + cards */
.section{ padding: 18px 0 56px; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-items:start;
}
.col-12{ grid-column: span 12; }
.col-6{ grid-column: span 6; }

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow2);
  padding: 22px;
}
.card h2{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing:-.4px;
}
.card p{ margin: 0 0 10px; line-height: 1.6; color: rgba(16,17,20,.88); }
.muted{ color: var(--muted); }

.chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.chip{
  padding: 9px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.82);
  font-weight:800;
  color: rgba(16,17,20,.80);
  font-size: 13px;
}

/* Simple gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery img{
  border-radius: 18px;
  border:1px solid var(--border);
}

/* Footer */
footer{
  margin-top: 18px;
  padding: 18px 0 0;
  text-align:center;
  color: rgba(16,17,20,.55);
}

/* Responsive */
@media (max-width: 920px){
  .col-6{ grid-column: span 12; }
  .menu{ flex-wrap: wrap; }
}
@media (max-width: 860px){
  .nav__toggle{ display:inline-flex; }
  .nav__menu{
    display:none;
    position:absolute;
    right:0;
    top:56px;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    width: min(320px, calc(100vw - 24px));
    padding: 12px;
    border:1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
  }
  .nav__menu.open{ display:flex; }
  .dd__menu{ position:relative; top:0; left:0; min-width:auto; box-shadow:none; }
}

/* ===== Components added Oct 2026 ===== */
.card h3{ margin:0 0 6px; font-size:18px; letter-spacing:-.2px; }

/* Certification cards */
.certs{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:14px; margin-top:6px; }
.cert{ display:flex; gap:14px; align-items:flex-start; padding:16px; border:1px solid var(--border);
  border-radius:16px; background:rgba(255,255,255,.9); transition:transform .15s, box-shadow .15s; }
.cert:hover{ transform:translateY(-2px); box-shadow:var(--shadow2); }
.cert__logo{ width:44px; height:44px; flex:none; border-radius:12px; display:grid; place-items:center;
  background:#f4f2ff; border:1px solid var(--border); font-weight:800; font-size:14px; color:var(--accent); }
.cert__logo img{ width:24px; height:24px; }
.cert__title{ font-weight:800; line-height:1.3; margin:0 0 4px; }
.cert__meta{ font-size:13px; color:var(--muted); margin:0 0 8px; }
.cert__link{ font-size:12.5px; font-weight:700; color:var(--accent); }
.cert__link:hover{ text-decoration:underline; }

/* Posts */
.posts{ display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap:16px; }
.post{ border:1px solid var(--border); border-radius:18px; overflow:hidden; background:rgba(255,255,255,.92);
  display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.post:hover{ transform:translateY(-3px); box-shadow:var(--shadow2); }
.post img{ width:100%; height:220px; object-fit:cover; }
.post__body{ padding:14px 16px 16px; }
.post__date{ font-size:12px; font-weight:800; color:var(--accent); text-transform:uppercase; letter-spacing:.4px; }
.post__title{ font-weight:800; margin:4px 0 6px; line-height:1.3; }
.post__text{ font-size:14px; color:var(--muted); margin:0; line-height:1.5; }

/* Photo with caption */
.photo{ margin:0; }
.photo img{ width:100%; border-radius:18px; border:1px solid var(--border); object-fit:cover; }
.photo figcaption{ font-size:13px; color:var(--muted); margin-top:8px; }

/* Org chart */
.org{ display:flex; flex-direction:column; align-items:center; gap:0; margin:10px 0 4px; }
.org__node{ border:1px solid var(--border); background:rgba(255,255,255,.95); border-radius:14px;
  padding:12px 18px; text-align:center; min-width:220px; }
.org__node small{ display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
.org__node b{ font-size:15px; }
.org__node--me{ border-color:rgba(124,92,255,.5); background:rgba(124,92,255,.10); box-shadow:0 0 0 4px rgba(124,92,255,.08); }
.org__line{ width:2px; height:22px; background:rgba(124,92,255,.35); }
.org__logo{ height:34px; width:auto; margin:0 auto 6px; display:block; }

/* Tabs */
.tabs__bar{ display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 16px; }
.tabs__btn{ padding:8px 14px; border-radius:999px; border:1px solid var(--border); background:transparent;
  font-weight:700; font-size:13.5px; cursor:pointer; color:inherit; font-family:inherit; }
.tabs__btn[aria-selected="true"]{ background:var(--accent); border-color:var(--accent); color:#fff; }
.tabs__panel[hidden]{ display:none; }
.tabs__panel ul{ margin:6px 0 0; padding-left:18px; line-height:1.7; }

/* Timeline */
.timeline{ list-style:none; margin:6px 0 0; padding:0 0 0 18px; border-left:2px solid rgba(124,92,255,.25); }
.timeline li{ position:relative; padding:0 0 16px 14px; }
.timeline li::before{ content:""; position:absolute; left:-26px; top:4px; width:12px; height:12px; border-radius:50%;
  background:#fff; border:2px solid var(--accent); }
.timeline li.now::before{ background:var(--accent); }
.timeline .when{ font-size:12.5px; font-weight:800; color:var(--accent); }
.timeline .what{ font-weight:800; }
.timeline .desc{ font-size:14px; color:var(--muted); }

/* Course table */
.courses{ width:100%; border-collapse:collapse; font-size:14.5px; }
.courses th{ text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted);
  padding:8px 10px; border-bottom:1px solid var(--border); }
.courses td{ padding:9px 10px; border-bottom:1px solid var(--border); }
.courses td.num{ text-align:right; white-space:nowrap; }
.courses th.num{ text-align:right; }
.grade{ display:inline-block; min-width:40px; text-align:center; padding:2px 8px; border-radius:999px;
  font-weight:800; font-size:12.5px; background:#f1f0f6; }
.grade--top{ background:rgba(124,92,255,.14); color:#4b33d1; }
.table-wrap{ overflow-x:auto; }

/* Facts row */
.facts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:8px; }
.fact{ border:1px solid var(--border); border-radius:14px; padding:12px 14px; background:rgba(255,255,255,.9); }
.fact b{ display:block; font-size:17px; }
.fact span{ font-size:13px; color:var(--muted); }

.col-4{ grid-column: span 4; }
.col-8{ grid-column: span 8; }
@media (max-width: 920px){ .col-4, .col-8{ grid-column: span 12; } }

/* Onit group */
.group{ text-align:center; }
.group__parent img{ height:72px; width:auto; margin:4px auto 8px; display:block; }
.group__parent p{ max-width:60ch; margin:0 auto; color:var(--muted); }
.group__branch{ display:flex; flex-direction:column; align-items:center; margin:6px 0 4px; }
.group__cos{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-top:8px; text-align:left; }
.co{ border:1px solid var(--border); border-radius:14px; padding:14px; background:rgba(255,255,255,.9); }
.co img{ height:38px; width:auto; display:block; margin-bottom:8px; }
.co p{ font-size:13.5px; margin:0; color:var(--muted); line-height:1.5; }
.badge{ display:inline-block; font-size:11.5px; font-weight:800; padding:2px 8px; border-radius:999px; background:var(--accent); color:#fff; margin-left:6px; vertical-align:2px; }
.group__label{ font-size:12.5px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); margin:18px 0 0; text-align:left; }

/* Feature post */
.feature{ display:grid; grid-template-columns: 1.1fr 1fr; gap:20px; align-items:center; }
.feature__media{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.feature__media img{ width:100%; height:300px; object-fit:cover; border-radius:16px; border:1px solid var(--border); }
.feature__title{ font-size:24px !important; margin:6px 0 8px !important; }
.feature__body p{ color:var(--muted); }
@media (max-width: 920px){ .feature{ grid-template-columns:1fr; } .feature__media img{ height:220px; } }

/* Diploma supplement card */
.ds{ display:flex; gap:20px; align-items:flex-start; }
.ds__icon{ width:68px; height:68px; flex:none; border-radius:18px; display:grid; place-items:center;
  background:rgba(124,92,255,.10); color:var(--accent); border:1px solid rgba(124,92,255,.25); }
@media (max-width:600px){ .ds{ flex-direction:column; } }

/* Instagram-style post */
.feed{ display:flex; justify-content:center; }
.ig{ width:100%; max-width:470px; background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:var(--shadow2); }
.ig__head{ display:flex; align-items:center; gap:10px; padding:10px 14px; }
.ig__head b{ display:block; font-size:14px; }
.ig__head small{ display:block; font-size:12px; color:var(--muted); }
.ig__avatar{ width:36px; height:36px; border-radius:50%; object-fit:cover; object-position:center 20%;
  padding:2px; background:linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); }
.ig__media{ position:relative; aspect-ratio:4/5; overflow:hidden; background:#f2f2f2; }
.ig__track{ display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.ig__track::-webkit-scrollbar{ display:none; }
.ig__track img{ flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; }
.ig__nav{ position:absolute; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; border:0;
  background:rgba(255,255,255,.85); font-size:22px; line-height:28px; cursor:pointer; color:#222; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.ig__nav--prev{ left:10px; } .ig__nav--next{ right:10px; }
.ig__nav[hidden]{ display:none; }
.ig__count{ position:absolute; top:10px; right:10px; font-size:12px; font-weight:700; color:#fff; background:rgba(0,0,0,.55); padding:3px 8px; border-radius:999px; }
.ig__actions{ position:relative; display:flex; gap:14px; align-items:center; padding:10px 14px 4px; }
.ig__actions svg{ fill:none; stroke:#222; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; display:block; }
.ig__like{ border:0; background:none; padding:0; cursor:pointer; }
.ig__like[aria-pressed="true"] svg{ fill:#ed4956; stroke:#ed4956; }
.ig__dots{ position:absolute; left:50%; transform:translateX(-50%); display:flex; gap:4px; }
.ig__dots i{ width:6px; height:6px; border-radius:50%; background:#c7c7c7; }
.ig__dots i.on{ background:#0095f6; }
.ig__body{ padding:4px 14px 14px; font-size:14px; }
.ig__body p{ margin:0 0 6px; line-height:1.45; color:#262626; }
.ig__tags{ color:#00376b !important; }
.ig__date{ font-size:11px !important; text-transform:uppercase; letter-spacing:.3px; color:#8e8e8e !important; }
