:root{
  --bg:#0b1220;
  --surface:#101a2e;
  --surface2:#0f1830;
  --text:#e7eefc;
  --muted:#a9b6d3;
  --primary:#2f6fed;
  --primary2:#5b8dff;
  --border: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(47,111,237,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(91,141,255,.14), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.75);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.brand{
  font-weight:800;
  letter-spacing:.2px;
}

.nav-links{
  display:flex;
  gap:16px;
  color:var(--muted);
  font-size:14px;
}

.nav-links a{
  padding:8px 10px;
  border-radius:10px;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap:18px;
  padding:46px 0 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
  background: rgba(16,26,46,.55);
  width: fit-content;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing: -.02em;
}

.accent{ color:var(--primary2); }

.lead{
  color:var(--muted);
  line-height:1.7;
  font-size:16px;
  max-width: 62ch;
}

.cta{
  display:flex;
  gap:12px;
  margin:18px 0 10px;
  flex-wrap:wrap;
}

.btn{
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
  user-select:none;
  cursor:pointer;
}

.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: linear-gradient(180deg, rgba(47,111,237,1), rgba(47,111,237,.85));
  border-color: rgba(47,111,237,.35);
}

.btn.primary:hover{
  background: linear-gradient(180deg, rgba(91,141,255,1), rgba(47,111,237,.9));
}

.btn.secondary{
  background: rgba(16,26,46,.55);
}

.btn.secondary:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(16,26,46,.75);
}

.mini{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:14px;
  flex-wrap:wrap;
}

.mini-link{
  color:var(--muted);
  padding:6px 10px;
  border-radius:10px;
  border:1px solid transparent;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.mini-link:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.05);
}

.dot{ opacity:.6; }

.hero-right{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* PROFILE (FOTO) */
.profile-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,26,46,.9), rgba(15,24,48,.75));
  box-shadow: var(--shadow);
}

.avatar-wrap{
  width:92px;
  height:92px;
  border-radius:999px;
  padding:3px;
  background: linear-gradient(180deg, rgba(47,111,237,.9), rgba(91,141,255,.45));
  flex: 0 0 auto;
}

.avatar{
  width:100%;
  height:100%;
  border-radius:999px;
  object-fit: cover;
  display:block;
  background: rgba(5,10,22,.65);
}

.profile-info{
  min-width: 0;
}

.profile-name{
  margin:0;
  font-weight:800;
  letter-spacing:.2px;
}

.profile-role{
  margin:6px 0 10px;
  color: var(--muted);
  font-size:14px;
}

/* SECTIONS */
.section{
  padding:38px 0 14px;
  border-top:1px solid var(--border);
}

.section h2{
  margin:0 0 12px;
  font-size:22px;
  letter-spacing: -.01em;
}

.text{
  color:var(--muted);
  line-height:1.75;
}

/* CARDS */
.card{
  background: linear-gradient(180deg, rgba(16,26,46,.9), rgba(15,24,48,.75));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.card h3{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing: -.01em;
}

.list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

.list li{ margin:6px 0; }

/* TAGS */
.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag{
  border:1px solid var(--border);
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--muted);
  background: rgba(11,18,32,.35);
}

/* EXPERIENCE - timeline */
.timeline{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.item{
  position:relative;
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: rgba(16,26,46,.55);
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
}

.item:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(16,26,46,.70);
}

.item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, rgba(47,111,237,.95), rgba(91,141,255,.55));
  opacity:.9;
}

.item h3{
  margin:0 0 6px;
  font-size:16px;
}

.muted{
  color:var(--muted);
  margin:0 0 10px;
  font-size:14px;
}

.bullets{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

.bullets li{ margin:6px 0; }

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

/* PROJECTS */
.projects{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.project{
  border-radius:var(--radius);
  border:1px solid var(--border);
  background: rgba(16,26,46,.55);
  padding:16px;
}

.project.featured{
  grid-column: 1 / -1;
  padding:18px;
  background: linear-gradient(180deg, rgba(16,26,46,.85), rgba(15,24,48,.65));
  border-color: rgba(47,111,237,.25);
}

.project-kicker{
  margin:0 0 6px;
  font-size:13px;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.project-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(47,111,237,.10);
  color: var(--muted);
  font-size:13px;
}

/* CONTACT */
.contact{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:12px;
}

.contact-actions{
  display:flex;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* FOOTER */
.footer{
  text-align:center;
  padding:30px 0 44px;
  border-top:1px solid var(--border);
  margin-top: 18px;
}
.footer .muted{ margin:0; }

/* RESPONSIVE */
@media(max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
  .projects{ grid-template-columns:1fr; }
  .contact{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
}
