:root{
  --bg-hero: #0b1220;
}

* { box-sizing: border-box; }
body{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.header{
  min-height: 92vh;
  background: radial-gradient(1200px 600px at 20% 20%, rgba(58, 134, 255, 0.35), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(131, 56, 236, 0.25), transparent 55%),
              linear-gradient(180deg, #0b1220, #070a12);
  position: relative;
  overflow: hidden;
}

.header .overlay{
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 0h120v120H0z' fill='none'/%3E%3Cpath d='M0 60h120M60 0v120' stroke='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  opacity: 1;
}

.text-container{
  min-height: 92vh;
}

.roles .dot{
  opacity: .8;
  padding: 0 .35rem;
}

.social{
  left: 1.5rem;
  bottom: 1.5rem;
}

.about-img{
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.6);
}

.badge-line .badge{
  margin: .25rem .35rem;
  font-weight: 600;
}

.skill-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}

.skill-item{
  padding: .55rem .65rem;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.skill-item i{
  color: #0d6efd;
}

.timeline{
  position: relative;
  margin-left: .75rem;
}

.timeline:before{
  content: "";
  position: absolute;
  top: .25rem;
  bottom: .25rem;
  left: .6rem;
  width: 2px;
  background: rgba(13,110,253,0.25);
}

.timeline-item{
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 2rem;
}

.timeline-dot{
  position: absolute;
  left: .35rem;
  top: .25rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 6px rgba(13,110,253,0.15);
}

.timeline-content{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 .35rem 1rem rgba(0,0,0,0.05);
}

@media (min-width: 768px){
  .skill-grid{ grid-template-columns: 1fr 1fr; }
  .social{ left: 2rem; bottom: 2rem; }
  .about-img{ width: 210px; height: 210px; }
}


/* Language selector */
.lang-switch{
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
}

.lang-link{
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .3rem .6rem;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: transform .12s ease, background-color .12s ease;
}

.lang-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
}

@media (max-width: 420px){
  .lang-switch{ top: .75rem; right: .75rem; }
  .lang-link{ padding: .28rem .5rem; font-size: .9rem; }
}


/* Flag icons inside language selector */
.lang-link .flag{
  width: 18px;
  height: 12px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  object-fit: cover;
}

