:root{
  --bg: #ffffff;
  --muted: #66686b;
  --primary: #0b76ef;
  --accent: #0b76ef22;
  --btn-bg: linear-gradient(135deg, #0b76ef, #5ab1ff);
  --btn-bg-hover: linear-gradient(135deg, #5ab1ff, #0b76ef);
  --card-shadow: 0 8px 24px rgba(11,118,239,0.08);
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Box model */
*{box-sizing:border-box}

/* Ensure root sizing and prevent page-level scrolling */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* prevent page-level scrolling so center column only scrolls */
}

body{
  background:var(--bg);
  color:#111;
  font-size:16px;
  line-height:1.5;
}

/* Grid container — height leaves room for pinned footer (56px) */
.container{
  height: calc(100vh - 56px); /* full viewport minus footer */
  max-width:1100px;
  margin:40px auto 0;
  padding:24px;
  display:grid;
  grid-template-columns:0.6fr 2fr 0.3fr;
  gap:30px;
  align-items:flex-start;
}

/* Ensure left & right columns remain fixed and don't scroll on desktop */
.left-col, .right-col {
  height: 100%;
  overflow: hidden;
}

/* =============================
   Buttons with gradient + hover
   ============================= */
.btn-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:12px;
  background:var(--btn-bg);
  background-size:200% 200%;
  text-decoration:none;
  color:#fff;
  font-weight:600;
  width:180px;
  text-align:center;
  box-shadow:0 6px 16px rgba(0,0,0,0.10);
  transition:all 0.35s ease;
}

.btn:hover{
  background:var(--btn-bg-hover);
  background-position:right bottom;
  transform:translateY(-4px) scale(1.03);
  box-shadow:0 12px 28px rgba(0,0,0,0.18);
}

/* =============================
   Social icon hover effects
   ============================= */
.social-col{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:flex-end;
}

.social-col a img{
  width:32px;
  height:32px;
  display:block;
  transition:transform 0.25s ease, filter 0.25s ease;
}

.social-col a:hover img{
  transform:scale(1.22);
  filter:drop-shadow(0 4px 10px rgba(11,118,239,0.35));
}

/* Center text alignment helper */
.center{text-align:center}

/* Avatar */
.avatar-frame{
  width:180px;
  height:180px;
  border-radius:50%;
  overflow:hidden;
  border:6px solid #fff;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  background:linear-gradient(135deg,#eef6ff,#fff);
}
.avatar-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Headings & bio */
h1{
  margin:6px 0 8px;
  font-size:26px;
}
p.bio{
  max-width:900px;
  margin:10px auto 0 auto;
  font-size:14px;
  color:var(--muted);
  padding:0 20px;
  text-align:justify;
}

/* FOOTER (pinned) */
footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color:#888;
  font-size:13px;
  background: transparent;
  z-index: 20;
  pointer-events: none;
}

/* Make the center column the only scrollable area */
.main-scroll {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 10px;

  /* Hide scrollbar completely */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.cv-download-btn {
    padding:10px 16px;
    border-radius:8px;
    background:#0b74de;
    color:white;
    border:0;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 10px rgba(0,0,0,0.12);
  }

  .cv-download-btn:disabled {
    opacity:0.6;
    cursor:not-allowed;
  }

/* =============================
   RESPONSIVE (OPTION B)
   ============================= */
@media (max-width:900px){

  .container{
    grid-template-columns:1fr; /* stack columns */
    gap:18px;
    padding:18px;
    height: calc(100vh - 56px);
  }

  /* Make side columns flow normally */
  .left-col, .right-col {
    height: auto;
    overflow: visible;
    position: static;
  }

  /* Make center column the only scrollable area (mobile) */
  .main-scroll {
    height: calc(100vh - 56px - 220px);
    /* 
      220px ≈ estimated height of top content (avatar + name + buttons).
      Adjust if your actual layout is taller/shorter.
    */
    overflow-y: auto;
    padding-right: 0;
  }

  .social-col{
    flex-direction:row;
    justify-content:center;
  }

  .btn{
    width:100%;
  }

  footer{
    height:48px;
  }
}
/* ---------- Mobile: let whole page scroll (override desktop-only rules) ---------- */
@media (max-width: 900px) {
  /* Allow whole-page scrolling on mobile */
  html, body {
    height: auto;        /* allow page to grow */
    overflow: auto;      /* enable page-level scrolling */
  }

  /* Container should expand with content instead of being viewport-locked */
  .container {
    height: auto;        /* let the container expand normally */
    max-width: 1100px;
    margin: 24px auto;   /* slightly smaller top margin on mobile */
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr; /* stack columns (your existing rule already does this) */
    gap: 18px;
    align-items: flex-start;
  }

  /* Side columns should flow with the document (already present but keep explicit) */
  .left-col, .right-col {
    height: auto;
    overflow: visible;
    position: static;
  }

  /* Center column should no longer force an inner scroll area */
  .main-scroll {
    height: auto;        /* don't trap the scroll inside this element */
    overflow: visible;   /* let the page handle scrolling */
    -webkit-overflow-scrolling: auto;
    padding-right: 0;
  }

  /* Adjust footer sizing and spacing if needed */
  footer {
    position: static;    /* allow footer to be part of page flow */
    left: auto;
    right: auto;
    bottom: auto;
    height: 48px;
    margin-top: 18px;
    pointer-events: auto; /* allow interactions if any (was none for pinned footer) */
  }
}

/* ----------------------------
   Timeline-specific styles
   ---------------------------- */

.timeline-wrapper{
  margin-top:28px;
  border-radius:12px;
  padding:18px;
  background:linear-gradient(180deg,#f8fbff, #ffffff);
  box-shadow:var(--card-shadow);
}
.timeline-header{display:flex;align-items:center;justify-content:space-between}
.timeline-title{font-size:18px;font-weight:700}
.timeline-sub{color:var(--muted);font-size:13px}

/* SVG road */
.road-svg{width:100%;height:320px;display:block;margin-top:12px}
.road-path{fill:none;stroke:#e6eefc;stroke-width:22;stroke-linecap:round;stroke-linejoin:round}
.road-stroke{fill:none;stroke:#cbdffd;stroke-width:6;stroke-linecap:round}

/* milestone styling */
.milestone{cursor:pointer;outline:none}
.milestone .dot{r:10}
.milestone .dot-fill{fill:#fff;stroke:var(--primary);stroke-width:3}
.milestone text.label{font-size:12px;pointer-events:none;dominant-baseline:middle}

/* tooltip */
.tooltip{
  position:fixed;
  z-index:40;
  max-width:320px;
  padding:10px 12px;
  border-radius:8px;
  background:#0f1724;
  color:#fff;
  font-size:13px;
  box-shadow:0 8px 24px rgba(2,6,23,0.5);
  display:none;
  pointer-events:none;
}
.tooltip .year{font-weight:700;margin-bottom:4px}
.tooltip .detail{font-size:13px;color:#d1d5db;margin-top:2px}

/* keep timeline responsive */
@media (max-width:600px){
  .road-svg{height:260px}
  .timeline-wrapper{padding:14px}
  .timeline-title{font-size:16px}
  .tooltip{max-width:240px;font-size:12px}
}
