/*
Theme Name: Isaiah Chua Portfolio
Theme URI: https://ikechua.com
Description: Custom portfolio theme for Isaiah Chua, B2B Content Marketing Manager. Built for full-page portfolio display with embedded assets, animations, and SEO/AEO schema.
Version: 1.1
Author: Isaiah Chua
Author URI: https://ikechua.com
Template: blocksy
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1D3557;
  --teal: #2A9D8F;
  --amber: #E9C46A;
  --amber2: #F4A261;
  --bg: #EEF3F8;
  --bg2: #ffffff;
  --text: #1C2833;
  --text2: #5D6D7E;
  --border: #D5E1EA;
  --navy-light: #EBF2FA;
  --teal-light: #E0F5F3;
  --blue-light: #E3F2FD;
  --coral-light: #FFF0EC;
  --purple: #5C6BC0;
  --purple-light: #EDE7F6;
}
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 20px; line-height: 1.6; }
a { color: var(--teal); text-decoration: none; }
img { display: block; }

/* ── NAV ── */
nav {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.logo { display: flex; align-items: baseline; gap: 2px; }
.logo-f { color: #fff; font-size: 21px; font-weight: 900; letter-spacing: -0.5px; }
.logo-l { color: var(--amber); font-size: 21px; font-weight: 900; letter-spacing: -0.5px; }
nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
nav ul li a {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 5px;
  transition: all 0.2s;
}
nav ul li a:hover { color: #fff; background: rgba(255,255,255,0.12); }
nav ul li a.blog-link {
  color: var(--amber);
  border: 1px solid rgba(233,196,106,0.4);
  font-weight: 700;
}
nav ul li a.blog-link:hover { background: var(--amber2); color: #fff; border-color: var(--amber2); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 64px 40px 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 100%;
  background: var(--teal);
  opacity: 0.07;
  clip-path: ellipse(250px 350px at 85% 50%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  background: var(--amber);
  opacity: 0.04;
  border-radius: 50%;
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: stretch;
}
.hero-text { opacity: 0; animation: fadeUp 0.7s 0.15s forwards; }
.hero-tag {
  display: inline-block;
  background: rgba(42,157,143,0.22);
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.hero h1 .nf { color: #ffffff; }
.hero h1 .nl { color: var(--amber); }
.hero-vp {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  line-height: 1.78;
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-vp strong { color: #ffffff; font-weight: 700; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: #238276; color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.32);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.btn-amber {
  background: var(--amber);
  color: #1a1a1a;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-amber:hover { background: #d4aa3a; color: #1a1a1a; }
.btn-blog {
  background: var(--amber2);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-blog:hover { background: #d4893f; color: #fff; }
.hero-photo { display: flex; justify-content: center; align-items: stretch; opacity: 0; animation: fadeUp 0.7s 0.4s forwards; }
.hero-photo img {
  width: 260px;
  height: 100%;
  min-height: 330px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(233,196,106,0.5);
  outline: none;
  display: block;
}

/* ── METRICS ── */
.metrics {
  background: var(--teal);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.metric {
  flex: 1;
  min-width: 160px;
  max-width: 240px;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.metric:last-child { border-right: none; }
.metric .num { font-size: 30px; font-weight: 900; color: #fff; }
.metric .lbl { font-size: 13px; color: rgba(255,255,255,0.82); margin-top: 4px; line-height: 1.4; }

/* ── SECTIONS ── */
.section-wrap { padding: 64px 40px; }
.section-wrap.alt { background: var(--bg2); }
.section-inner { max-width: 960px; margin: 0 auto; }
.sec-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.sec-title { font-size: 30px; font-weight: 700; color: var(--navy); margin-bottom: 30px; }
.sec-title span { color: var(--teal); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.about-body p { font-size: 16px; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lang-chip {
  background: var(--navy-light);
  color: var(--navy);
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
}
.sidebar-box { background: var(--navy-light); border-radius: 12px; padding: 22px; }
.sidebar-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}
.skill-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 3px 2px;
}

/* ── EXPERIENCE ── */
.exp-item {
  margin-bottom: 18px;
  padding: 24px;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}
.exp-item:hover { border-color: var(--teal); background: var(--teal-light); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.exp-role { font-size: 17px; font-weight: 700; color: var(--navy); }
.exp-company { font-size: 15px; color: var(--teal); font-style: italic; margin-top: 2px; }
.exp-date { font-size: 14px; color: var(--text2); white-space: nowrap; margin-left: 16px; padding-top: 3px; }
.exp-desc { font-size: 15px; color: var(--text2); line-height: 1.75; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.exp-tag {
  background: var(--navy-light);
  color: var(--navy);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ── PROJECTS ── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.proj-card {
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { border-color: var(--purple); background: var(--blue-light); }
.proj-type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}
.proj-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.proj-org { font-size: 14px; color: var(--text2); margin-bottom: 12px; }
.proj-desc { font-size: 15px; color: var(--text); line-height: 1.75; flex-grow: 1; margin-bottom: 16px; }
.proj-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; margin-bottom: 0; }
.proj-media { margin-top: 0; }
.proj-stat {
  background: var(--amber);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ── VIDEO PLAYER ── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0d1f33;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1D3557 0%, #0d1f33 100%);
  transition: background 0.2s;
}
.video-wrap:hover .video-poster { background: linear-gradient(135deg, #254571 0%, #152b44 100%); }
.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(42,157,143,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-wrap:hover .play-btn { background: var(--teal); transform: scale(1.08); }
.play-icon {
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 5px;
}
.video-label { color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 700; letter-spacing: 0.3px; }
.video-sub { color: rgba(255,255,255,0.45); font-size: 13px; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── RECOMMENDATIONS ── */
.recs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.rec-card {
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 0.25s, background 0.25s;
  display: flex;
  flex-direction: column;
}
.rec-card:hover { border-color: var(--amber2); background: var(--coral-light); }
.rec-quote {
  font-size: 72px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  opacity: 0.75;
}
.rec-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0;
  font-style: italic;
  flex-grow: 1;
}
.rec-author { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; margin-top: 24px; }
.rec-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.rec-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.rec-role { font-size: 13px; color: var(--text2); margin-top: 1px; }
.rec-rel {
  display: inline-block;
  background: var(--navy-light);
  color: var(--navy);
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 4px;
  margin-top: 6px;
}

/* ── SKILLS ── */
.skills-table { width: 100%; border-collapse: collapse; }
.skills-table tr { border-bottom: 1px solid var(--border); }
.skills-table tr:last-child { border-bottom: none; }
.skills-table td { padding: 12px 0; font-size: 15px; vertical-align: top; }
.skills-table td:first-child { width: 180px; font-weight: 700; color: var(--navy); padding-right: 24px; }
.skills-table td:last-child { color: var(--text2); }

/* ── CONTACT ── */
.contact-strip {
  background: var(--navy);
  border-radius: 14px;
  padding: 48px;
  text-align: center;
  color: #fff;
}
.contact-strip h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.contact-strip p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 520px; margin: 0 auto 28px; line-height: 1.7; }
.contact-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cl {
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.cl:hover { background: rgba(255,255,255,0.22); color: #fff; }
.cl.blog {
  background: rgba(244,162,97,0.18);
  border-color: rgba(244,162,97,0.5);
  color: var(--amber);
}
.cl.blog:hover { background: var(--amber2); color: #fff; border-color: var(--amber2); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 16px 40px;
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  font-style: italic;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav ul { gap: 0; }
  nav ul li a { font-size: 13px; padding: 5px 7px; }
  .hero { padding: 40px 20px 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 140px; height: 140px; min-height: unset; border-radius: 50%; }
  .about-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 48px 20px; }
  .proj-grid, .recs-grid { grid-template-columns: 1fr; }
  .contact-strip { padding: 32px 20px; }
}
