/* =============================================
   THINLEY WANGCHUK — ONLINE CV
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --saffron: #F4A024;
  --crimson: #E63946;
  --indigo:  #2D3A8C;
  --teal:    #0E9AA7;
  --green:   #3BB273;
  --bg:      #FAFAF7;
  --dark:    #1A1A2E;
  --gray:    #F0F0EA;
  --text:    #2E2E2E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── HERO ── */
header {
  position: relative;
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(244,160,36,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(14,154,167,.30) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(45,58,140,.40) 0%, transparent 70%);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp .9s ease both;
}

/* Profile photo */
.profile-photo-wrap {
  position: relative;
  margin-bottom: 28px;
}
.profile-photo-wrap::before {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--saffron), var(--teal), var(--crimson), var(--saffron));
  animation: spin 6s linear infinite;
  z-index: 0;
}
.profile-photo-wrap::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  background: var(--dark);
  z-index: 1;
}
.profile-photo {
  position: relative; z-index: 2;
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  display: block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.badge {
  display: inline-block;
  background: var(--saffron);
  color: var(--dark);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 16px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: #fff; line-height: 1.05;
  margin-bottom: 10px;
}
h1 span { color: var(--saffron); }

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-subtitle span {
  color: var(--teal);
  margin: 0 8px;
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Social links */
.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-size: .85rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  border: 2px solid transparent;
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.youtube  { background: #FF0000; color: #fff; }
.social-btn.youtube:hover  { box-shadow: 0 8px 20px rgba(255,0,0,.4); }
.social-btn.tiktok   { background: #010101; color: #fff; border-color: #69C9D0; }
.social-btn.tiktok:hover   { box-shadow: 0 8px 20px rgba(105,201,208,.3); }
.social-btn.facebook { background: #1877F2; color: #fff; }
.social-btn.facebook:hover { box-shadow: 0 8px 20px rgba(24,119,242,.4); }
.social-icon { font-size: 1.1rem; }

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px; margin-bottom: 36px;
}
.meta-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-size: .88rem;
}
.meta-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ic-s { background: rgba(244,160,36,.2); color: var(--saffron); }
.ic-t { background: rgba(14,154,167,.2);  color: var(--teal); }
.ic-c { background: rgba(230,57,70,.2);   color: #ff8f96; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta a {
  display: inline-block;
  background: var(--saffron); color: var(--dark);
  font-weight: 600; font-size: .95rem;
  padding: 13px 30px; border-radius: 100px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,160,36,.4); }
.hero-cta a.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3); color: #fff;
}
.hero-cta a.outline:hover { border-color: #fff; box-shadow: none; }

/* ── STICKY NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,26,46,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: center;
  flex-wrap: wrap;
}
nav a {
  color: rgba(255,255,255,.6);
  text-decoration: none; font-size: .82rem;
  font-weight: 500; letter-spacing: .5px;
  padding: 15px 18px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover { color: var(--saffron); border-bottom-color: var(--saffron); }

/* ── LAYOUT ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
section    { padding: 80px 0; }
section + section { border-top: 1px solid #E8E8E0; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 44px;
}
.section-label .dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.section-label h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem; color: var(--dark);
}
.section-label .line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, #ddd, transparent);
}

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
.about-text { font-size: 1rem; line-height: 1.85; color: #444; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card {
  background: var(--gray); border-radius: 14px;
  padding: 22px; border-left: 4px solid;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card.c1 { border-color: var(--saffron); }
.stat-card.c2 { border-color: var(--teal); }
.stat-card.c3 { border-color: var(--crimson); }
.stat-card.c4 { border-color: var(--green); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 900; }
.stat-card.c1 .stat-num { color: var(--saffron); }
.stat-card.c2 .stat-num { color: var(--teal); }
.stat-card.c3 .stat-num { color: var(--crimson); }
.stat-card.c4 .stat-num { color: var(--green); }
.stat-label { font-size: .75rem; color: #888; margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--saffron), var(--teal));
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 44px; }
.tl-dot {
  position: absolute; left: -29px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px currentColor;
}
.tl-item:nth-child(1) .tl-dot { color: var(--saffron); background: var(--saffron); }
.tl-item:nth-child(2) .tl-dot { color: var(--teal);    background: var(--teal); }
.tl-item:nth-child(3) .tl-dot { color: var(--green);   background: var(--green); }
.tl-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tl-role   { font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.tl-org    { font-size: .88rem; color: #777; }
.tl-date   {
  margin-left: auto; font-size: .75rem; font-weight: 600;
  letter-spacing: .5px; padding: 3px 12px; border-radius: 100px; color: #fff;
}
.tl-item:nth-child(1) .tl-date { background: var(--saffron); }
.tl-item:nth-child(2) .tl-date { background: var(--teal); }
.tl-item:nth-child(3) .tl-date { background: var(--green); }
.tl-body   { font-size: .93rem; line-height: 1.75; color: #555; }
.tl-body ul { padding-left: 18px; }
.tl-body li { margin-bottom: 4px; }

/* ── EDUCATION ── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.edu-card {
  background: var(--dark); color: #fff;
  border-radius: 18px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform .2s;
}
.edu-card:hover { transform: translateY(-4px); }
.edu-card::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; opacity: .18;
}
.edu-card.e1::before { background: var(--saffron); }
.edu-card.e2::before { background: var(--teal); }
.edu-card.e3::before { background: var(--crimson); }
.edu-card.e4::before { background: var(--green); }
.edu-badge {
  font-size: .68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 14px;
}
.e1 .edu-badge { background: rgba(244,160,36,.2); color: var(--saffron); }
.e2 .edu-badge { background: rgba(14,154,167,.2);  color: var(--teal); }
.e3 .edu-badge { background: rgba(230,57,70,.2);   color: #ff8f96; }
.e4 .edu-badge { background: rgba(59,178,115,.2);  color: #5ee49a; }
.edu-degree { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 6px; }
.edu-school { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 10px; line-height: 1.5; }
.edu-score  { font-size: 1.4rem; font-family: 'Playfair Display', serif; font-weight: 900; }
.e1 .edu-score { color: var(--saffron); }
.e2 .edu-score { color: var(--teal); }
.e3 .edu-score { color: #ff8f96; }
.e4 .edu-score { color: #5ee49a; }
.edu-year { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 2px; }

/* ── SKILLS ── */
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  padding: 9px 20px; border-radius: 100px;
  font-size: .86rem; font-weight: 500;
  transition: transform .2s, box-shadow .2s; cursor: default;
}
.skill-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.sp-s { background: rgba(244,160,36,.13); color: #a06810; border: 1.5px solid rgba(244,160,36,.38); }
.sp-t { background: rgba(14,154,167,.11);  color: #097580; border: 1.5px solid rgba(14,154,167,.32); }
.sp-c { background: rgba(230,57,70,.09);   color: #b81c29; border: 1.5px solid rgba(230,57,70,.28); }
.sp-g { background: rgba(59,178,115,.11);  color: #238050; border: 1.5px solid rgba(59,178,115,.32); }
.sp-i { background: rgba(45,58,140,.09);   color: var(--indigo); border: 1.5px solid rgba(45,58,140,.28); }

/* ── ACHIEVEMENTS ── */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.ach-card {
  border-radius: 14px; padding: 22px;
  border: 1.5px solid #E8E8E0; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.ach-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-3px); }
.ach-icon  { font-size: 1.7rem; margin-bottom: 10px; }
.ach-title { font-weight: 700; font-size: .93rem; color: var(--dark); margin-bottom: 5px; }
.ach-desc  { font-size: .83rem; color: #777; line-height: 1.6; }

/* ── MEMBERSHIPS ── */
.mem-list { columns: 2; column-gap: 32px; }
.mem-item {
  break-inside: avoid; padding: 9px 0;
  border-bottom: 1px dashed #ddd;
  font-size: .88rem; color: #555;
  display: flex; align-items: flex-start; gap: 8px;
}
.mem-item::before {
  content: '◆'; color: var(--saffron);
  font-size: .5rem; margin-top: 6px; flex-shrink: 0;
}

/* ── REFERENCES ── */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ref-card {
  background: linear-gradient(135deg, var(--dark) 0%, #2D3A8C 100%);
  color: #fff; border-radius: 18px; padding: 26px;
  transition: transform .2s;
}
.ref-card:hover { transform: translateY(-3px); }
.ref-name    { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 4px; }
.ref-role    { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 14px; line-height: 1.5; }
.ref-contact a {
  display: block; color: var(--saffron);
  font-size: .83rem; text-decoration: none; margin-bottom: 4px;
}
.ref-contact a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 30px 20px; font-size: .8rem;
}
footer span { color: var(--saffron); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .about-grid, .ref-grid { grid-template-columns: 1fr; }
  .mem-list { columns: 1; }
  nav a { padding: 12px 10px; font-size: .75rem; }
  h1    { font-size: 2.6rem; }
  .profile-photo { width: 120px; height: 120px; }
  .hero-content  { padding: 60px 20px; }
}

/* Active nav link */
nav a.active { color: var(--saffron); border-bottom-color: var(--saffron); }

/* Cursor blink */
.cursor {
  display: inline-block;
  color: var(--saffron);
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Skill pill initial state for animation */
.skill-pill { opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s, box-shadow .2s; }
.skill-pill.pill-show { opacity: 1; transform: scale(1); }
