* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --bg: #f7f7f8;
  --soft: #f0f1f3;
  --line: #e5e7eb;
  --text: #0f172a;
  --muted: #6b7280;
  --dark: #0b1020;
  --chip: #f3f4f6;
  --shadow: 0 12px 30px rgba(15,23,42,.08);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 999; }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand {   font-family: 'Great Vibes', cursive; text-decoration: none; color: var(--text); font-size: 2rem;  }
nav { display: flex; gap: 2.4rem; }
nav a { text-decoration: none; color: var(--muted); font-size: .93rem; }
nav a.active, nav a:hover { color: var(--text); }
.menu-btn { display: none; background: transparent; border: 0; }
.menu-btn span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--text); border-radius: 3px; }
.hero { padding: 42px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 2rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.5; letter-spacing: -0.03em; margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: #374151; max-width: 560px; margin-bottom: 1.8rem; }
.sublead { color: var(--muted); max-width: 560px; margin-bottom: 1.4rem; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .92rem 1.2rem; border-radius: 12px; text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.social-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.social-pill { font-size: .88rem; padding: .55rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; }
/* .portrait-wrap { width: min(430px, 100%); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at center, #ebedef 0%, #d8dadd 100%); box-shadow: 0 20px 40px rgba(0,0,0,.08); } */
.portrait { width: 100%; height: 100%; object-fit: cover; }
.portrait-wrap {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at center, #ebedef 0%, #d8dadd 100%);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.15); /* control opacity here */
  pointer-events: none;
}
.availability { position: absolute; right: 15px; bottom: 45px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem .95rem; box-shadow: var(--shadow); font-size: .9rem; color: #166534; }
.hero-stats { margin-top: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.stat-box strong { display: block; font-size: 2rem; }
.stat-box span { color: var(--muted); font-size: .92rem; }
.scroll-note { display: flex; align-items: center; justify-content: center; }
.scroll-note span { color: var(--muted); }
.section { padding: 82px 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .55rem; }
.section-head p { color: var(--muted); }
.skills-grid,.project-grid,.cert-grid,.contact-grid { display: grid; gap: 1rem; }
.skills-grid { grid-template-columns: repeat(3, 1fr); }
.skill-card,.exp-card,.project-card,.cert-card,.info-card,.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.skill-card { padding: 1.15rem; }
.skill-card h3 { font-size: 1rem; margin-bottom: .85rem; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chips span { font-size: .78rem; padding: .38rem .6rem; border-radius: 999px; background: var(--chip); color: #374151; border: 1px solid #e5e7eb; }
.experience-list { display: grid; gap: 1rem; max-width: 980px; margin: 0 auto; }
.exp-card { padding: 1.3rem; }
.exp-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.exp-top h3 { font-size: 1.08rem; }
.exp-top h4 { color: var(--muted); font-size: .95rem; font-weight: 600; }
.exp-meta { text-align: right; color: var(--muted); font-size: .9rem; display: grid; gap: .1rem; }
.exp-card p { color: var(--muted); margin-bottom: .8rem; }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { overflow: hidden; margin-bottom: 20px; }
.project-thumb { aspect-ratio: 1.25 / 0.9; background-size: cover; background-position: center; }
.thumb-1 { background-image: linear-gradient(135deg,#dbeafe,#e0f2fe); }
.thumb-2 { background-image: linear-gradient(135deg,#ede9fe,#ddd6fe); }
.thumb-3 { background-image: linear-gradient(135deg,#dcfce7,#d1fae5); }
.project-body { padding: 1.8rem; }
.project-body h3 { margin-bottom: .6rem; }
.project-body p { color: var(--muted); margin-bottom: .9rem; }
.cert-grid { grid-template-columns: repeat(2, 1fr); }
.cert-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem; }
.cert-badge img { width: 90px; height: 90px; display: grid; place-items: center;flex-shrink: 0; }
.cert-card p { color: var(--muted); }
.contact-grid { grid-template-columns: .95fr 1.05fr; }
.contact-info { display: grid; gap: 1rem; }
.info-card { padding: 1.2rem; }
.info-card h3 { margin-bottom: .35rem; font-size: 1rem; }
.info-card p { color: var(--muted); }
.contact-form { padding: 1.2rem; display: grid; gap: .8rem; }
.contact-form input,.contact-form textarea { width: 100%; border: 1px solid var(--line); background: #fafafa; border-radius: 12px; padding: .92rem 1rem; font-family: inherit; color: var(--text); }
.form-msg { min-height: 24px; color: #166534; font-size: .95rem; }
.site-footer { padding: 26px 0 40px; }
.footer-inner { display: flex; justify-content: center; gap: 2rem; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 980px) {
  .hero-grid,.skills-grid,.project-grid,.cert-grid,.contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 70px; left: 1rem; right: 1rem; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  .hero { padding-top: 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .exp-top { flex-direction: column; }
  .exp-meta { text-align: left; }
}
.intro {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 2.5rem;
}

.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.95rem;
  top: 2.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
    background: #AAA;
    box-shadow: 0 0 0 6px rgb(176 176 176 / 20%);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.timeline-content {
  padding: 2rem 2rem;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.timeline-content h4 {
  font-size: 0.97rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.bullet-list {
  padding-left: 1.2rem;
}

.bullet-list li {
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.bullet-list li:last-child {
  margin-bottom: 0;
}

.project-body ul{
  list-style: none;
  padding: 0px 15px 5px;
}

.project-body li {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  list-style-type: square;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-list {
  list-style: none;
  padding-left: 0;
  margin: 0px 0 18px;
}

.project-list li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 24px;
}

.project-card {
  display: flex;
}

.project-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-body .chips {
  margin-top: auto;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Outline (Code) */
.btn-outline {
  border: 1px solid #e2e8f0;
  color: #1e293b;
  background: #ffffff;
}

.btn-outline:hover {
  background: #f1f5f9;
}

/* Dark (Demo) */
.btn-dark {
  background: #0f172a;
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
}

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-card h3 svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #64748b;
  flex-shrink: 0;
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 6px;
}

.info-card h3 svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #475569;
}

.info-card p {
  color: #475569;
  font-size: 0.95rem;
}

.info-card a {
  color: #475569;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Responsive (VERY important) */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr; /* mobile */
  }
}


@media (max-width: 760px) {
  .experience-section {
    padding: 64px 0;
  }

  .timeline {
    padding-left: 1.1rem;
  }

  .timeline-dot {
    left: -1.55rem;
    top: 1.15rem;
  }

  .timeline-content {
    padding: 1.15rem 1rem;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }
}
