
:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --ink:#222;
  --muted:#5a6470;
  --primary:#0a66c2;
  --primary-ink:#003366;
  --rule:#dfe5ee;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius:16px;
  --space: clamp(16px, 2vw, 24px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}

.wrapper{
  max-width:1200px;
  margin-inline:auto;
  padding: clamp(16px, 3vw, 32px);
}

.resume{
  display:grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(16px, 2.5vw, 32px);
  align-items:start;
}

/* left column (profile) */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space);
}

.profile{
  position:sticky;
  top: clamp(12px, 2.5vw, 24px);
}

.headshot{
  display:block;
  width:160px;
  height:160px;
  border-radius:50%;
  object-fit:cover;
  margin: 0 auto clamp(12px,2vw,16px);
  border: 4px solid #e8eef6;
}

.name{
  text-align:center;
  margin:0 0 4px 0;
  font-size: clamp(22px, 2.4vw, 28px);
  color:var(--primary-ink);
  letter-spacing:.2px;
  font-weight:700;
}

.title{
  text-align:center;
  margin:0 0 18px 0;
  color:var(--primary);
  font-weight:600;
  line-height:1.4;
  font-size: clamp(14px, 1.6vw, 16px);
}

.contact{
  display:grid;
  gap:8px;
  margin-block: 16px 20px;
  color:var(--muted);
  font-size:15px;
}
.contact b{color:var(--primary-ink)}

.about{
  color:#39424e;
  font-size:15.5px;
  margin-bottom: 14px;
}

/* Tech Stack icons */
.stack-icons{
  margin-top: 14px;
}
.stack-icons .stack-title{
  margin: 8px 0 10px;
  color: var(--primary-ink);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-size: 14px;
}
.icons-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.icon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#f0f4fa;
  border-radius:12px;
  padding:10px 8px;
  transition: transform .08s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.icon:hover{transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.08)}
.icon img{
  width:22px;
  height:22px;
  display:block;
}
.icon span{
  font-size: 13px;
  color:#2f3a49;
  font-weight:600;
}

/* right column */
.topbar{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.btn{
  appearance:none;
  border:0;
  background:var(--primary);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(10,102,194,.22);
}
.btn:hover{background:#0756a5}
.btn:active{transform:translateY(1px)}

.section-title{
  margin: 18px 0 12px;
  color:var(--primary-ink);
  font-size: 15px;
  letter-spacing:.8px;
  text-transform:uppercase;
  font-weight:800;
}

.rule{height:1px; background:var(--rule); border:0; margin: 10px 0 18px}

.job{
  display:grid;
  grid-template-columns: 1fr;
  gap:6px;
  padding: 12px 0 18px;
  border-bottom: 1px dashed var(--rule);
}
.job:last-child{border-bottom:0}
.job .role{font-weight:700; color:var(--primary-ink); font-size:16px}
.job .company{color:var(--primary); font-weight:600}
.job .time{color:var(--muted); font-size:14px}
.job p{margin:4px 0 0 0; color:#3b4350; font-size:15px}

.stack, .strengths, .languages{
  display:grid;
  gap:6px;
  padding-left:0;
  list-style:none;
}
.stack li, .strengths li, .languages li{
  position:relative;
  padding-left:22px;
}
.stack li::before, .strengths li::before, .languages li::before{
  content:"•";
  color:var(--primary);
  position:absolute;
  left:0;
  top:0;
}

/* responsive */
@media (max-width: 980px){
  .resume{
    grid-template-columns: 1fr;
  }
  .profile{
    position:static;
  }
  .icons-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px){
  .icons-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* print (PDF-friendly) */
@media print {
  :root{
    --bg:#fff; --card:#fff; --shadow:none;
  }
  a{text-decoration:none; color:inherit}
  .btn{display:none}
  .wrapper{padding:0}
  .resume{gap:16px}
  .card{box-shadow:none; padding:16px; border:1px solid #ddd; border-radius:10px}
}


/* Floating WhatsApp Button */
.fab-whatsapp{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
  z-index: 999;
}
.fab-whatsapp:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  filter: brightness(1.05);
}
.fab-whatsapp img{
  width: 26px;
  height: 26px;
  display: block;
}
@media print{
  .fab-whatsapp{ display: none; }
}

/* Life Journey Card */
.journey {
  margin-top: 24px;
}
.journey h3 {
  color: var(--primary-ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 4px;
}
.journey small {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}
.timeline {
  position: relative;
  margin-top: 16px;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--primary);
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 16px;
  transition: all 0.2s ease;
  border-radius: 8px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.timeline-item:hover {
  background: rgba(10,102,194,0.08);
}
.timeline-item:hover::before {
  box-shadow: 0 0 10px var(--primary);
  transform: scale(1.1);
}
.timeline-item strong {
  display: block;
  color: var(--primary-ink);
}
.timeline-item span {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 600px){
  .timeline::before {left:4px;}
  .timeline-item{padding-left:12px;}
}
