/* ================================================
   RALPH PEREZ v7
   Fonts  : Manrope · DM Sans
   Accent : Sky blue  #38bdf8
   Modes  : [data-theme="dark"] default
             [data-theme="light"] toggle
   ================================================ */

/* ---- Design tokens ---- */
:root {
  --accent:    #38bdf8;
  --accent-h:  #7dd3fc;
  --accent-bg: rgba(56,189,248,0.1);
  --accent-bd: rgba(56,189,248,0.25);
  --nav-h:     66px;
  --r:         10px;
  --r2:        16px;
  --ease:      cubic-bezier(0.4,0,0.2,1);
  --trans:     background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

/* ---- Dark theme (default) ---- */
[data-theme="dark"] {
  --bg:       #0f1117;
  --bg2:      #181c27;
  --bg3:      #1e2235;
  --surf:     rgba(255,255,255,0.04);
  --surf2:    rgba(255,255,255,0.07);
  --text:     #c9d1e0;
  --text-hi:  #f0f3fa;
  --muted:    rgba(201,209,224,0.52);
  --faint:    rgba(201,209,224,0.18);
  --bdr:      rgba(255,255,255,0.08);
  --bdr2:     rgba(255,255,255,0.13);
  --shadow:   0 6px 28px rgba(0,0,0,0.45);
  --glow:     0 4px 20px rgba(56,189,248,0.2);
}

/* ---- Light theme — warm, soft, easy on the eyes ---- */
[data-theme="light"] {
  /* Blue-tinted backgrounds */
  --bg:       #eef4fb;
  --bg2:      #e3edf7;
  --bg3:      #d6e5f3;
  --surf:     rgba(2,132,199,0.05);
  --surf2:    rgba(2,132,199,0.09);
  /* Text unchanged */
  --text:     #3c3a36;
  --text-hi:  #1e1c19;
  --muted:    #6e6a62;
  --faint:    #9c9890;
  --bdr:      rgba(2,132,199,0.12);
  --bdr2:     rgba(2,132,199,0.2);
  --shadow:   0 4px 20px rgba(2,132,199,0.1);
  --glow:     0 4px 18px rgba(2,132,199,0.18);
  --accent:    #0284c7;
  --accent-h:  #0369a1;
  --accent-bg: rgba(2,132,199,0.1);
  --accent-bd: rgba(2,132,199,0.25);
}

/* ---- Base ---- */
*,*::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);
  line-height:1.7;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  transition:var(--trans);
}

::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--accent); border-radius:5px; }

a { color:var(--accent); text-decoration:none; transition:color .2s var(--ease); }
a:hover { color:var(--accent-h); }
img { max-width:100%; display:block; }

.container {
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position:fixed;
  top:0; left:0; right:0;
  height:var(--nav-h);
  z-index:900;
  transition:background .3s var(--ease), box-shadow .3s var(--ease);
}

#navbar.stuck {
  background:rgba(15,17,23,0.93);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 1px 0 var(--bdr2);
}

[data-theme="light"] #navbar.stuck {
  background:rgba(255,255,255,0.93);
}

.nav-wrap {
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
  height:100%;
  display:flex;
  align-items:center;
  gap:20px;
}

.brand {
  font-family:'Manrope', sans-serif;
  font-size:18px;
  font-weight:800;
  color:var(--text-hi);
  letter-spacing:-.3px;
  flex-shrink:0;
  transition:color .2s;
}
.brand:hover { color:var(--accent); }

.desktop-nav {
  display:flex;
  align-items:center;
  gap:2px;
  margin-left:auto;
}

.nl {
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  padding:7px 14px;
  border-radius:var(--r);
  transition:.2s var(--ease);
}
.nl:hover { color:var(--text-hi); background:var(--surf2); }
.nl.active { color:var(--accent); }

/* Connect nav button — same active behaviour as other links */
.nl-connect {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--r);
  font-weight: 600;
  margin-left: 6px;
}
.nl-connect:hover { background: var(--accent-h); color: #fff !important; }
/* When active (scrolled to #contact), darken slightly */
.nl-connect.active { background: var(--accent-h); color: #fff !important; }
/* nl-connect never shows the underline pseudo-element */
.nl-connect::after { display: none !important; }

/* Nav right (toggle + hamburger) — sits after desktop-nav */
.nav-right {
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

/* Theme toggle button */
.theme-toggle {
  width:38px; height:38px;
  border-radius:var(--r);
  background:var(--surf2);
  border:1px solid var(--bdr2);
  color:var(--muted);
  display:flex; align-items:center; justify-content:center;
  font-size:17px;
  cursor:pointer;
  transition:.2s var(--ease);
  flex-shrink:0;
}
.theme-toggle:hover { color:var(--accent); background:var(--accent-bg); border-color:var(--accent-bd); }

/* Hamburger */
.hbg {
  display:none;
  flex-direction:column;
  gap:5px;
  width:42px; height:42px;
  background:var(--surf2);
  border:1px solid var(--bdr2);
  border-radius:var(--r);
  align-items:center; justify-content:center;
  cursor:pointer;
  padding:10px;
  flex-shrink:0;
}
.hbg span {
  display:block;
  width:20px; height:2px;
  background:var(--text);
  border-radius:2px;
  transition:.25s var(--ease);
}
.hbg.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hbg.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mob-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); z-index:901; }
.mob-bg.open { display:block; }

.mob-menu {
  position:fixed; top:0; right:0; bottom:0;
  width:min(280px,85vw);
  background:var(--bg2);
  border-left:1px solid var(--bdr2);
  z-index:902;
  transform:translateX(100%);
  transition:transform .3s var(--ease);
  display:flex; flex-direction:column;
  box-shadow:var(--shadow);
}
.mob-menu.open { transform:translateX(0); }

.mob-top {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid var(--bdr);
}
.mob-brand { font-family:'Manrope',sans-serif; font-size:16px; font-weight:800; color:var(--text-hi); }
.mob-x {
  width:34px; height:34px;
  background:var(--surf2); border:1px solid var(--bdr2); border-radius:8px;
  color:var(--text); display:flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer; transition:.2s;
}
.mob-x:hover { color:var(--accent); }

.mob-nav { display:flex; flex-direction:column; padding:10px 0; flex:1; }
.mn {
  padding:13px 22px; font-size:15px; font-weight:600;
  color:var(--muted); border-left:3px solid transparent; transition:.2s var(--ease);
}
.mn:hover { color:var(--text-hi); background:var(--surf); border-left-color:var(--accent); }

.mob-soc {
  padding:18px 22px; border-top:1px solid var(--bdr); display:flex; gap:10px;
}
.mob-soc a {
  width:36px; height:36px; background:var(--surf2); border:1px solid var(--bdr2);
  border-radius:8px; display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:16px; transition:.2s;
}
.mob-soc a:hover { color:var(--accent); background:var(--accent-bg); border-color:var(--accent-bd); }

/* ================================================
   SECTIONS
   ================================================ */
.section { padding:96px 0; background:var(--bg); transition:var(--trans); }
.s-alt   { background:var(--bg2); }

.sh { margin-bottom:44px; }

.stag {
  display:inline-block;
  font-family:'Manrope',sans-serif;
  font-size:11px; font-weight:700;
  letter-spacing:2.5px; text-transform:uppercase;
  color:var(--accent);
  background:var(--accent-bg); border:1px solid var(--accent-bd);
  border-radius:100px; padding:4px 14px; margin-bottom:12px;
}

.stitle {
  font-family:'Manrope',sans-serif;
  font-size:clamp(26px,4vw,40px); font-weight:800;
  color:var(--text-hi); letter-spacing:-.5px; line-height:1.15;
}

.sdesc {
  margin-top:10px; font-size:15px; color:var(--muted);
  line-height:1.8; max-width:560px;
}

.sub-sec { margin-top:56px; }

.sub-title {
  font-family:'Manrope',sans-serif; font-size:17px; font-weight:700;
  color:var(--text-hi); margin-bottom:20px;
  padding-bottom:12px; border-bottom:1px solid var(--bdr2);
}

/* ================================================
   HERO — centered layout
   ================================================ */
.hero {
  min-height:100vh;
  display:flex; align-items:center;
  padding-top:var(--nav-h);
  background:var(--bg);
  position:relative;
  overflow:hidden;
}

.hero::before {
  content:'';
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,189,248,0.07) 0%, transparent 70%);
  pointer-events:none;
}

.hero-inner {
  position:relative; z-index:1;
  display:flex; flex-direction:column;
  align-items:center; text-align:center;
  padding:80px 0 60px;
  max-width:700px; margin:0 auto;
}

.hero-photo-wrap {
  width:140px; height:140px;
  border-radius:50%;
  overflow:hidden;
  border:3px solid var(--accent);
  box-shadow:0 0 0 6px var(--accent-bg), var(--glow);
  margin-bottom:28px;
  flex-shrink:0;
}
.hero-photo { width:100%; height:100%; object-fit:cover; }

.hero-name {
  font-family:'Manrope',sans-serif;
  font-size:clamp(32px,5.5vw,56px); font-weight:800;
  color:var(--text-hi); letter-spacing:-.5px; line-height:1.1;
  margin-bottom:10px;
}

.hero-role {
  font-family:'Manrope',sans-serif;
  font-size:clamp(15px,2vw,18px); font-weight:600;
  color:var(--accent); margin-bottom:14px;
}

.hero-desc {
  font-size:15px; color:var(--muted); line-height:1.8;
  max-width:480px; margin-bottom:24px; font-weight:300;
}

.hero-tags {
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  margin-bottom:28px;
}
.htag {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600;
  color:var(--text); background:var(--surf2); border:1px solid var(--bdr2);
  border-radius:100px; padding:5px 13px;
  transition:.2s var(--ease);
}
.htag i { font-size:13px; color:var(--accent); }
.htag:hover { border-color:var(--accent-bd); background:var(--accent-bg); color:var(--accent); }

.hero-cta { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-bottom:28px; }

.btn-fill {
  background:var(--accent); color:#fff;
  padding:12px 26px; border-radius:var(--r);
  font-size:14px; font-weight:600;
  transition:.22s var(--ease);
  display:inline-block;
}
.btn-fill:hover { background:var(--accent-h); color:#fff; transform:translateY(-2px); box-shadow:var(--glow); }

.btn-line {
  background:transparent; color:var(--text);
  padding:11px 24px; border-radius:var(--r);
  font-size:14px; font-weight:500;
  border:1px solid var(--bdr2);
  transition:.22s var(--ease);
  display:inline-block;
}
.btn-line:hover { border-color:var(--accent-bd); color:var(--accent); background:var(--accent-bg); }

.hero-soc { display:flex; gap:10px; justify-content:center; }
.hero-soc a {
  width:40px; height:40px; border-radius:var(--r);
  background:var(--surf2); border:1px solid var(--bdr2);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:18px; transition:.2s var(--ease);
}
.hero-soc a:hover { color:var(--accent); background:var(--accent-bg); border-color:var(--accent-bd); transform:translateY(-2px); }

/* ================================================
   ABOUT
   ================================================ */

/* Top row: photo left | bio right */
.about-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 24px;
}

.about-img-frame {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--bdr2);
}
.about-img-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(8%);
  transition: filter .4s;
}
.about-img-frame:hover img { filter: none; }

.about-bio-col {
  display: flex;
  flex-direction: column;
}

.about-role {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-p1 {
  font-size: 16px;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-p2 {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.9;
}

/* Full-width info strip — 5 columns spanning entire section width */
.about-info-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--bdr2);
  border-radius: var(--r2);
  overflow: hidden;
}

.aib {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid var(--bdr);
  transition: background .2s;
}
.aib:last-child { border-right: none; }
.aib:hover { background: rgba(56,189,248,0.05); }

.aib > i {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.aib > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.aib-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.aib-val {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

/* Skills — 8-per-row single line, big icons */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.skills-one-row { grid-template-columns: repeat(8, 1fr); }

.skill {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 26px 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transition: .2s var(--ease);
  cursor: default;
  overflow: hidden;
}
.skill img { width: 90px; height: 90px; object-fit: contain; transition: transform .35s var(--ease); }
.skill span { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.skill:hover { border-color: var(--accent-bd); background: var(--accent-bg); transform: translateY(-3px); box-shadow: var(--glow); }
.skill:hover img { transform: scale(1.5); }
.skill:hover span { color: var(--accent); }

/* Interests */
.interests-flex {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.interests-track {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  animation: marquee-scroll 35s linear infinite;
  padding-right: 10px;
}
.interests-flex:hover .interests-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.ispot {
  display:inline-flex; align-items:center; gap:9px;
  background:var(--surf2); border:1px solid var(--bdr);
  border-radius:8px; padding:10px 16px;
  font-size:15px; font-weight:500; color:var(--text);
  transition:.2s var(--ease); cursor:default;
}
.ispot i { font-size:20px; }
.ispot:hover { background:var(--bg3); border-color:var(--bdr2); }

/* Testimonials */
.ts-outer {
  overflow:hidden; border-radius:var(--r2);
  border:1px solid var(--bdr2); background:var(--bg3);
  user-select: none;
  -webkit-user-select: none;
}
.ts-track { display:flex; transition:transform .38s var(--ease); }
.ts-card {
  min-width:100%; padding:28px 32px; position:relative;
}
.ts-q { font-size:32px; color:var(--accent); opacity:.2; display:block; margin-bottom:10px; line-height:1; }
.ts-card p { font-size:13.5px; color:var(--muted); line-height:1.75; margin-bottom:18px; }
.ts-who { display:flex; align-items:center; gap:12px; }
.ts-who img { width:99px; height:99px; border-radius:50%; object-fit:cover; border:2px solid var(--accent); box-shadow:0 0 0 3px var(--accent-bg); }
.ts-who strong { display:block; font-size:14px; font-weight:700; color:var(--text-hi); }
.ts-who span { font-size:12px; color:var(--accent); font-weight:500; }

.ts-ctrl { display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.ts-dots { display:flex; gap:7px; }
.tsdot { width:8px; height:8px; border-radius:50%; background:var(--faint); border:none; cursor:pointer; transition:.2s; }
.tsdot.on { background:var(--accent); width:22px; border-radius:4px; }
.ts-arrows { display:flex; gap:8px; }
.ts-arr {
  width:38px; height:38px; border-radius:8px;
  background:var(--surf2); border:1px solid var(--bdr2);
  color:var(--muted); display:flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer; transition:.2s;
}
.ts-arr:hover { background:var(--accent-bg); border-color:var(--accent-bd); color:var(--accent); }

/* ================================================
   RESUME
   ================================================ */
.res-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }

.rc-head {
  display:flex; align-items:center; gap:9px;
  font-family:'Manrope',sans-serif; font-size:16px; font-weight:700;
  color:var(--text-hi); margin-bottom:28px;
  padding-bottom:14px; border-bottom:2px solid var(--accent);
}
.rc-head i { color:var(--accent); font-size:22px; flex-shrink:0; }

.tline { display:flex; flex-direction:column; }
.te {
  display:flex; gap:16px;
  padding-bottom:28px; position:relative;
}
.te:last-child { padding-bottom:0; }

/* Vertical line runs through every item including the last one */
.te::before {
  content:''; position:absolute;
  left:5px; top:14px; width:2px;
  height:calc(100% - 14px);
  background:var(--bdr2);
}
/* On the last item the line stops at the bottom of its own content */
.te:last-child::before {
  height:100%;
}
.te-dot {
  width:12px; height:12px; border-radius:50%;
  background:var(--bg); border:2px solid var(--accent);
  flex-shrink:0; margin-top:3px; position:relative; z-index:1;
}
.te-body { flex:1; }
.te-date {
  display:inline-block;
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:var(--accent); background:var(--accent-bg); border:1px solid var(--accent-bd);
  border-radius:100px; padding:2px 10px; margin-bottom:8px;
}
.te-body h4 { font-family:'Manrope',sans-serif; font-size:16px; font-weight:700; color:var(--text-hi); margin-bottom:4px; }
.te-sub { font-size:14px; color:var(--muted); margin-bottom:10px; }
.te-body ul { list-style:none; }
.te-body ul li {
  font-size:14px; color:var(--muted); line-height:1.75;
  padding:2px 0 2px 13px; position:relative;
}
.te-body ul li::before {
  content:''; position:absolute; left:0; top:11px;
  width:5px; height:5px; border-radius:50%;
  background:var(--accent); opacity:.6;
}

/* Certifications — single AZ-900 card */
.cert-single-wrap {
  display:flex;
}
.cert-single {
  display:flex;
  align-items:center;
  gap:24px;
  background:var(--surf);
  border:1px solid var(--bdr2);
  border-radius:var(--r2);
  padding:24px 28px;
  text-decoration:none;
  color:inherit;
  transition:.25s var(--ease);
  width:fit-content;
}
.cert-single:hover {
  border-color:var(--accent-bd);
  background:var(--accent-bg);
  transform:translateY(-3px);
  box-shadow:var(--glow);
}
.cert-single-img {
  width:120px;
  height:auto;
  border-radius:var(--r);
  flex-shrink:0;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.3));
  transition:transform .3s var(--ease);
}
.cert-single:hover .cert-single-img { transform:scale(1.05); }
.cert-single-info {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cert-single-info strong {
  font-family:'Manrope',sans-serif;
  font-size:18px;
  font-weight:700;
  color:var(--text-hi);
}
.cert-single-info > span:first-of-type {
  font-size:14px;
  color:var(--muted);
}
.cert-single-link {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:13px;
  font-weight:600;
  color:var(--accent);
  margin-top:4px;
}
.cert-single-link i { font-size:14px; }

/* ================================================
   SERVICES
   ================================================ */
.svc-row {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:0;
}
.svc-box {
  background:var(--bg3); border:1px solid var(--bdr);
  border-radius:var(--r2); padding:30px 24px;
  transition:.25s var(--ease); position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.svc-box::after {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-h));
  transform:scaleX(0); transform-origin:left; transition:.28s var(--ease);
}
.svc-box:hover { border-color:var(--accent-bd); transform:translateY(-4px); box-shadow:var(--glow); }
.svc-box:hover::after { transform:scaleX(1); }
.svc-icon {
  width:48px; height:48px;
  background:var(--accent-bg); border:1px solid var(--accent-bd);
  border-radius:var(--r); display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; transition:.25s;
}
.svc-icon i { font-size:22px; color:var(--accent); transition:.25s; }
.svc-box:hover .svc-icon { background:var(--accent); }
.svc-box:hover .svc-icon i { color:#fff; }
.svc-box h3 { font-family:'Manrope',sans-serif; font-size:16px; font-weight:700; color:var(--text-hi); margin-bottom:9px; }
.svc-box p { font-size:13.5px; color:var(--muted); line-height:1.75; margin-bottom:16px; }

.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: var(--r);
  padding: 7px 14px;
  text-decoration: none;
  transition: .2s var(--ease);
  margin-top: auto;
}
.svc-btn i { font-size: 14px; }
.svc-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

/* ── videoWrapper — responsive Google Drive embeds (16:9) ──
 *
 * The iframe is set to 1920×1080 (its native resolution).
 * The wrapper is positioned relative with padding-bottom 56.25% (16:9).
 * CSS scales the iframe down to fit via width/height 100% on a
 * position:absolute child — identical to the standard YouTube embed trick,
 * but the large fixed dimensions ensure Drive's controls render at full
 * resolution and scale down cleanly instead of reflowing/breaking.
 * The tiny overlay div hides the Google Drive "open in new tab" button.
 */
.vid-embed {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--bdr2);
  background: var(--bg3);
  transition: border-color .25s, box-shadow .25s;
}
.vid-embed:hover { border-color: var(--accent-bd); box-shadow: var(--glow); }

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: inherit;
}
.videoWrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vw-overlay {
  width: 80px;
  height: 80px;
  position: absolute;
  opacity: 0;
  right: 0;
  top: 0;
  pointer-events: none;
}

/* ── videoWrapperPortrait — 9:16 portrait for BTS videos ──
 *
 * Same trick but aspect ratio is 9:16 (177.78% padding-bottom).
 * Iframe dimensions 1080×1920 match the portrait source resolution.
 * This keeps native Drive controls fully intact at any container width.
 */
.vid-portrait {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--bdr2);
  background: var(--bg3);
  transition: border-color .25s, box-shadow .25s;
}
.vid-portrait:hover { border-color: var(--accent-bd); box-shadow: var(--glow); }

.videoWrapperPortrait {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 */
  height: 0;
  overflow: hidden;
  border-radius: inherit;
}
.videoWrapperPortrait iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* All video embeds (Drive + YouTube) use .videoWrapper/.videoWrapperPortrait inside .vid-embed */

/* ── Ralph Studios header row + Facebook button ── */
.ralph-studios-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ralph-studios-title-block { flex: 1; min-width: 0; }
.ralph-studios-head .sub-title { margin-bottom: 6px; }
.ralph-studios-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.rs-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--r);
  text-decoration: none;
  transition: .2s var(--ease);
  flex-shrink: 0;
}
.rs-fb-btn i { font-size: 16px; }
.rs-fb-btn:hover { background: #1464d8; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(24,119,242,.35); }

/* ================================================
   PORTFOLIO — Accordion
   ================================================ */

/* Accordion list */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Each accordion item */
.acc-item {
  border: 1px solid var(--bdr2);
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surf);
  transition: border-color .25s var(--ease);
}
.acc-item:has(.acc-head[aria-expanded="true"]) {
  border-color: var(--accent-bd);
}

/* Accordion trigger button */
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.acc-head:hover { background: var(--accent-bg); }

.acc-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Accent icon circle */
.acc-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.acc-ico--creative {
  background: rgba(168,85,247,.12);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,.25);
}
.acc-ico--dev {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-bd);
}
.acc-ico--smm {
  background: rgba(34,197,94,.1);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
}
.acc-card-tag--smm {
  background: rgba(34,197,94,.1);
  color: #22c55e;
  border-color: rgba(34,197,94,.2);
}
.acc-card-thumb--smm {
  background: linear-gradient(135deg, rgba(34,197,94,.1) 0%, rgba(34,197,94,.03) 100%);
  color: rgba(34,197,94,.5);
  border-bottom: 1px solid var(--bdr);
}

.acc-head-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.acc-title {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
}
.acc-subtitle {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron arrow — rotates when open */
.acc-arrow {
  font-size: 22px;
  color: var(--muted);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.acc-head[aria-expanded="true"] .acc-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Accordion body — animated open/close */
.acc-body {
  overflow: hidden;
  max-height: 5000px;
  transition: max-height .45s var(--ease), opacity .3s var(--ease);
  opacity: 1;
}
.acc-body--collapsed {
  max-height: 0;
  opacity: 0;
}

/* Card grid inside accordion */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 24px 28px;
}

/* Individual project card */
.acc-card {
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .22s var(--ease);
  cursor: pointer;
  position: relative;
}
.acc-card:hover {
  border-color: var(--accent-bd);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Invisible full-cover link overlay — makes the whole card clickable */
.acc-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Thumbnail area */
.acc-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.acc-card-thumb--placeholder {
  background: linear-gradient(135deg, rgba(168,85,247,.1) 0%, rgba(168,85,247,.03) 100%);
  color: rgba(168,85,247,.5);
  border-bottom: 1px solid var(--bdr);
}
.acc-card-thumb--dev {
  background: linear-gradient(135deg, var(--accent-bg) 0%, transparent 100%);
  color: var(--accent);
  opacity: .7;
}
/* Image thumbnail — replaces icon placeholder */
.acc-card-thumb--img {
  background: var(--bg3);
  border-bottom: 1px solid var(--bdr);
  overflow: hidden;
  padding: 0;
}
.acc-card-thumb--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s var(--ease);
}
.acc-card:hover .acc-card-thumb--img img { transform: scale(1.04); }

/* Card body */
.acc-card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* Tag pill */
.acc-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgba(168,85,247,.1);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,.2);
  width: fit-content;
}
.acc-card-tag--dev {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-bd);
}
.acc-card-tag--smm {
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
}

.acc-card-info h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hi);
}
.acc-card-info p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) { .acc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .acc-subtitle { display: none; }
  .acc-head { padding: 16px 18px; }
  .acc-grid { padding: 20px 18px 24px; }
}
@media (max-width: 480px)  {
  .acc-grid { grid-template-columns: 1fr; padding: 20px 14px 20px; }
  .acc-ico { width: 40px; height: 40px; font-size: 18px; }
  .acc-title { font-size: 15px; }
}

/* ================================================
   CONTACT
   ================================================ */
.contact-layout {
  display:grid; grid-template-columns:1fr 1.5fr; gap:48px; align-items:start;
}
.contact-desc { font-size:15px; color:var(--muted); line-height:1.8; margin-bottom:24px; }
.ci-list { display:flex; flex-direction:column; gap:11px; }
.ci {
  display:flex; align-items:flex-start; gap:13px;
  background:var(--bg3); border:1px solid var(--bdr);
  border-radius:var(--r); padding:14px 16px; transition:.2s;
}
.ci:hover { border-color:var(--accent-bd); background:var(--accent-bg); }
.ci-ico {
  width:40px; height:40px;
  background:var(--accent-bg); border:1px solid var(--accent-bd);
  border-radius:9px; display:flex; align-items:center; justify-content:center;
  font-size:18px; color:var(--accent); flex-shrink:0; transition:.2s;
}
.ci:hover .ci-ico { background:var(--accent); color:#fff; }
.ci-txt { display:flex; flex-direction:column; gap:2px; }
.ci-txt strong { font-size:13px; font-weight:700; color:var(--text-hi); }
.ci-txt span   { font-size:13.5px; color:var(--text); }
.ci-soc { display:flex; gap:8px; margin-top:6px; }
.ci-soc a {
  width:32px; height:32px; border-radius:7px;
  background:var(--surf2); border:1px solid var(--bdr2);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:15px; transition:.2s;
}
.ci-soc a:hover { color:var(--accent); background:var(--accent-bg); border-color:var(--accent-bd); }

/* Form */
.cform {
  background:var(--bg3); border:1px solid var(--bdr2);
  border-radius:var(--r2); padding:28px;
  display:flex; flex-direction:column; gap:15px;
}
.cform-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.cfield { display:flex; flex-direction:column; gap:6px; }
.cfield label {
  font-size:12px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; color:var(--muted);
}
.cfield input, .cfield textarea {
  background:var(--bg2); border:1px solid var(--bdr2);
  border-radius:var(--r); padding:12px 14px;
  color:var(--text); font-family:'DM Sans',sans-serif;
  font-size:14px; outline:none; width:100%;
  transition:.2s var(--ease);
}
.cfield input::placeholder, .cfield textarea::placeholder { color:var(--faint); }
.cfield input:focus, .cfield textarea:focus {
  border-color:var(--accent-bd); background:rgba(56,189,248,0.04);
  box-shadow:0 0 0 3px rgba(56,189,248,0.1); color:var(--text-hi);
}
.cfield textarea { resize:vertical; min-height:120px; }

#submitBtn {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent); color:#fff; border:none;
  padding:12px 26px; border-radius:var(--r);
  font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600;
  cursor:pointer; transition:.22s var(--ease); align-self:flex-start;
}
#submitBtn:hover { background:var(--accent-h); transform:translateY(-2px); box-shadow:var(--glow); }

.sent-message {
  background:var(--accent-bg); border:1px solid var(--accent-bd);
  color:var(--accent); padding:12px 14px; border-radius:var(--r); font-size:14px;
}
.loading { font-size:14px; color:var(--muted); }
.validate { display:none; color:#f87171; font-size:12px; }
.g-recaptcha { display:inline-block; }

/* ================================================
   FOOTER
   ================================================ */
#footer { background:var(--bg2); border-top:1px solid var(--bdr2); padding:24px 0; }
.footer-row {
  max-width:1120px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.fname { font-family:'Manrope',sans-serif; font-size:16px; font-weight:800; color:var(--text-hi); }
.fcopy { font-size:13px; color:var(--faint); }
/* .fsoc removed — footer social icons removed */

/* Back to top */
.btt {
  position:fixed; bottom:26px; right:26px;
  width:42px; height:42px; background:var(--accent); color:#fff;
  border-radius:var(--r); display:flex; align-items:center; justify-content:center;
  font-size:18px; z-index:500; opacity:0; pointer-events:none;
  transition:.25s var(--ease); box-shadow:var(--glow);
}
.btt.show { opacity:1; pointer-events:all; }
.btt:hover { background:var(--accent-h); color:#fff; transform:translateY(-3px); }

/* ================================================
   RESPONSIVE — 1024px
   ================================================ */
@media (max-width:1024px) {
  .about-top     { grid-template-columns:220px 1fr; gap:36px; }
  .about-info-strip { grid-template-columns:repeat(3,1fr); }
  .skills-wrap   { grid-template-columns:repeat(8,1fr); }
  .res-grid      { grid-template-columns:1fr; gap:40px; }
  .svc-row       { grid-template-columns:1fr 1fr; }
  .contact-layout { grid-template-columns:1fr; gap:32px; }
  .cform-row     { grid-template-columns:1fr; }
  .cert-flex     { flex-direction:column; }
}

/* ================================================
   RESPONSIVE — 768px
   ================================================ */
@media (max-width:768px) {
  .desktop-nav   { display:none; }
  .hbg           { display:flex; }
  /* Push theme toggle + hamburger to far right when desktop nav is hidden */
  .nav-right     { margin-left:auto; }
  .section       { padding:72px 0 64px; }
  .hero-inner    { padding:56px 0 40px; }
  .hero-photo-wrap { width:120px; height:120px; }
  .hero-name     { font-size:30px; }
  .about-top     { grid-template-columns:1fr; }
  .about-info-strip { grid-template-columns:repeat(2,1fr); }
  .skills-wrap   { grid-template-columns:repeat(4,1fr) !important; }
  .svc-row       { grid-template-columns:1fr; }
  .pe            { grid-template-columns:1fr; }
  .ts-card       { padding:28px 22px; }
  .stitle        { font-size:24px; }
}

/* ================================================
   RESPONSIVE — 480px
   ================================================ */
@media (max-width:480px) {
  .container     { padding:0 16px; }
  .hero-name     { font-size:26px; }
  .hero-cta      { flex-direction:column; width:100%; }
  .btn-fill, .btn-line { text-align:center; width:100%; }
  .skills-wrap   { grid-template-columns:repeat(4,1fr); gap:8px; }
  .hero-tags     { gap:6px; }
  .cform         { padding:18px 14px; }
}

/* ── Light mode: ensure all text is clearly readable ── */
[data-theme="light"] .about-p1,
[data-theme="light"] .about-p2           { color: #1f2937; }
[data-theme="light"] .about-story,
[data-theme="light"] .about-body         { color: #374151; }
[data-theme="light"] .about-bio          { color: #1f2937; }
[data-theme="light"] .hero-desc,
[data-theme="light"] .hero-bio           { color: #374151; }
[data-theme="light"] .hero-sub           { color: #374151; }
[data-theme="light"] .htag               { color: #1f2937; }
[data-theme="light"] .ip-v,
[data-theme="light"] .aq-val             { color: #111827; }
[data-theme="light"] .testi-card p,
[data-theme="light"] .tcard p,
[data-theme="light"] .ts-card p          { color: #1f2937; }
[data-theme="light"] .te-role,
[data-theme="light"] .tl-role,
[data-theme="light"] .tl-sub             { color: #374151; }
[data-theme="light"] .tl-ul li,
[data-theme="light"] .te-body ul li,
[data-theme="light"] .tl-bullets li      { color: #374151; }
[data-theme="light"] .svc-box p,
[data-theme="light"] .svc-card p,
[data-theme="light"] .svc p              { color: #374151; }
[data-theme="light"] .port-meta p,
[data-theme="light"] .pe-info p,
[data-theme="light"] .we-meta p,
[data-theme="light"] .port-label p       { color: #374151; }
[data-theme="light"] .contact-desc,
[data-theme="light"] .contact-intro,
[data-theme="light"] .contact-lead,
[data-theme="light"] .contact-blurb      { color: #1f2937; }
[data-theme="light"] .ci-txt span,
[data-theme="light"] .cinfo-item span,
[data-theme="light"] .ci-detail span     { color: #1f2937; }
[data-theme="light"] .cfield label,
[data-theme="light"] .cf-field label     { color: #374151; }
[data-theme="light"] .cert-item span,
[data-theme="light"] .cg-item span,
[data-theme="light"] .ct-row span,
[data-theme="light"] .cert-entry span    { color: #374151; }
[data-theme="light"] .skill span,
[data-theme="light"] .skill-item span,
[data-theme="light"] .sk span,
[data-theme="light"] .st span            { color: #374151; }
[data-theme="light"] .ispot,
[data-theme="light"] .chip,
[data-theme="light"] .int-card span,
[data-theme="light"] .interests-list span { color: #1f2937; }
[data-theme="light"] .sec-sub,
[data-theme="light"] .sec-desc,
[data-theme="light"] .sdesc,
[data-theme="light"] .ps-sub             { color: #374151; }
[data-theme="light"] .mn                 { color: #374151; }
[data-theme="light"] .mn:hover           { color: #111827; }
[data-theme="light"] .footer-copy        { color: #4b5563; }
[data-theme="light"] blockquote          { color: #1f2937; }
[data-theme="light"] .tslide-text,
[data-theme="light"] .ts-text            { color: #1f2937; }
[data-theme="light"] .port-note          { color: #374151; }
[data-theme="light"] .tcard-person span  { color: var(--accent); }
[data-theme="light"] .about-p            { color: #1f2937; }

/* ================================================
   SKILLS UNDER PHOTO (About section left col)
   ================================================ */
.about-col-img {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skills-under-photo {
  width: 100%;
}

.skills-label {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* Override skills-wrap inside the left col: 2-per-row, smaller boxes */
.skills-under-photo .skills-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.skills-under-photo .skill {
  padding: 10px 6px 8px;
  border-radius: 8px;
}

.skills-under-photo .skill img {
  width: 44px;
  height: 44px;
}

.skills-under-photo .skill span {
  font-size: 11px;
}

/* ================================================
   TIMELINE — dot & date alignment fix
   ================================================ */
.te {
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
  position: relative;
  align-items: flex-start; /* ensure dot stays at top */
}

.te-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-top: 0; /* remove old top offset — now aligned with date badge */
  position: relative;
  z-index: 1;
  /* vertically center with the date badge height (~22px) */
  align-self: flex-start;
  margin-top: 5px; /* half of badge height minus half of dot = (22-12)/2 = 5 */
}

/* ================================================
   CERTIFICATIONS — card list (no image/table)
   ================================================ */
.cert-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 14px 16px;
  transition: .22s var(--ease);
  text-decoration: none;
  color: inherit;
}

.cert-card:hover {
  border-color: var(--accent-bd);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.cert-card-ico {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-card-body strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.3;
}

.cert-card-body span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ================================================
   EVENTS ATTENDED / FEATURED
   ================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 100%;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  border-radius: var(--r2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: .25s var(--ease);
}

.event-card:hover {
  border-color: var(--accent-bd);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

/* Fallback background if image fails to load */
.event-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg3);
}

.event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.event-card:hover .event-img-wrap img {
  transform: scale(1.04);
}

/* Placeholder shown when no real image is set */
.event-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg3);
  border-bottom: 1px solid var(--bdr2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  aspect-ratio: 4/3;
}

.event-img-placeholder i {
  font-size: 26px;
  color: var(--accent);
  opacity: .4;
}

.event-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.event-info h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
}

.event-info p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.event-link-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.event-link-label i { font-size: 12px; }

/* ================================================
   RESPONSIVE — events & certs
   ================================================ */
@media (max-width: 1024px) {
  .events-grid { grid-template-columns: repeat(4, 1fr); }
  .cert-cards  { grid-template-columns: repeat(2, 1fr); }
  .skills-under-photo .skills-wrap { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-cards  { grid-template-columns: 1fr; }
  .skills-under-photo .skills-wrap { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-cards  { grid-template-columns: 1fr; }
  .skills-under-photo .skills-wrap { grid-template-columns: repeat(2, 1fr); }
}

/* Light mode overrides for new components */
[data-theme="light"] .event-info p   { color: #374151; }
[data-theme="light"] .cert-card-body span { color: #374151; }
[data-theme="light"] .event-img-placeholder { color: #6b7280; }

/* Light mode — info-list text */
[data-theme="light"] .il-v           { color: #1f2937; }
[data-theme="light"] .cert-single-info > span:first-of-type { color: #374151; }

/* Resume: sub-heads inside right column (Work Exp + Internship) */
.rc-head-gap { margin-top: 36px; }
/* The FIRST rc-head in the right column should align with the left column's first rc-head */
.res-col:last-child .rc-head:first-of-type { margin-top: 0; }

/* Light mode overrides for new about layout */
[data-theme="light"] .aib-val      { color: #1f2937; }
[data-theme="light"] .about-p2     { color: #374151; }
[data-theme="light"] .about-p1     { color: #1f2937; }

/* Responsive: about layout */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 240px 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .about-layout  { grid-template-columns: 1fr; }
  .about-photo-col { max-width: 280px; margin: 0 auto; width: 100%; }
  .skills-wrap   { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 480px) {
  .skills-wrap   { grid-template-columns: repeat(4, 1fr) !important; }
  .about-photo-col { max-width: 240px; }
}

/* ── 4-col info strip (Hobbies removed) ── */
.about-info-strip-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* ── Nav link active underline ── */
.nl { position: relative; }
.nl::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: left .2s var(--ease), right .2s var(--ease);
}
.nl:not(.nl-connect).active::after  { left: 14px; right: 14px; }
.nl:not(.nl-connect):hover::after   { left: 14px; right: 14px; }
.nl:not(.nl-connect).active { color: var(--accent); background: none; }

/* Click-to-play poster removed — using direct iframes */

/* Light mode */
[data-theme="light"] .aib-val { color: #1f2937; }

/* ═══════════════════════════════════════════
   AVP BTS — portrait videos, matches .pe layout
   ═══════════════════════════════════════════ */

/*
 * .pe-bts overrides the standard .pe 2-col grid
 * so the right column holds TWO portrait videos side-by-side.
 * Left col stays 200px (same as all other .pe rows).
 * Right col = flex row of two portrait video frames.
 */
.pe-bts {
  /* Use same grid as .pe */
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--bdr);
}
.pe-bts:last-child { border-bottom: none; }

/* Two portrait video columns, equal width, side by side */
.bts-pair {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bts-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/*
 * Portrait video frame — 9:16 aspect ratio.
 *
 * Google Drive embeds a 16:9 HTML5 player into our 9:16 box.
 * We do NOT try to crop it — instead we show the entire
 * native Google Drive player as-is inside the portrait container.
 * The iframe fills 100% width and height of the 9:16 box.
 * Controls are fully visible and responsive because the iframe
 * naturally scales with the container.
 */
.vid-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.vid-portrait:hover {
  border-color: var(--accent-bd);
  box-shadow: var(--glow);
}
.vid-portrait iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.bts-day {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* ── Responsive BTS ── */

/* Tablet: narrow the info col slightly */
@media (max-width: 900px) {
  .pe-bts { grid-template-columns: 160px 1fr; }
}

/* Mobile: stack info above videos, videos side by side */
@media (max-width: 640px) {
  .pe-bts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bts-pair { gap: 12px; }
}

/* Very small: stack videos vertically, centered */
@media (max-width: 400px) {
  .bts-pair { flex-direction: column; align-items: center; }
  .bts-col { width: 100%; max-width: 240px; }
}

/* ── Contact CTA card (replaces inline Calendly) ── */
.contact-right-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-card {
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  border-radius: var(--r2);
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  transition: .25s var(--ease);
}
.cta-card:hover {
  border-color: var(--accent-bd);
  box-shadow: var(--glow);
}
.cta-ico {
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.cta-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
}
.cta-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 340px;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.cta-badge i { font-size: 15px; }

/* Book a Meeting button */
.cta-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--r);
  text-decoration: none;
  transition: .22s var(--ease);
  margin-top: 4px;
}
.cta-book-btn i { font-size: 18px; }
.cta-book-btn:hover {
  background: var(--accent-h);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* ── Info strip responsive ── */
@media (max-width: 860px) {
  .about-info-strip,
  .about-info-strip-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .about-info-strip .aib:nth-child(2n) { border-right: none; }
  .about-info-strip .aib:nth-child(n+3) { border-top: 1px solid var(--bdr); }
}
@media (max-width: 480px) {
  .about-info-strip,
  .about-info-strip-4 {
    grid-template-columns: 1fr !important;
  }
  .about-info-strip .aib { border-right: none !important; border-bottom: 1px solid var(--bdr); }
  .about-info-strip .aib:last-child { border-bottom: none; }
  .contact-layout { grid-template-columns: 1fr; }
}


/* Light mode */
[data-theme="light"] .aib-val { color: #1f2937; }


/* ── Other Certifications ── */
.cert-other-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 24px 0 12px;
}
.cert-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cert-other-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surf);
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: .22s var(--ease);
}
.cert-other-card:hover {
  border-color: var(--accent-bd);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.cert-other-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.cert-other-card:hover .cert-other-ico {
  background: var(--accent);
  color: #fff;
}
.cert-other-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cert-other-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-other-info span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1024px) { .cert-other-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cert-other-grid { grid-template-columns: 1fr; } }

/* ── Events See More ── */
.event-hidden {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height .5s cubic-bezier(0.4,0,0.2,1), opacity .4s ease, margin .4s ease;
  margin-top: 0 !important;
}
.event-hidden.visible {
  max-height: 600px;
  opacity: 1;
  pointer-events: all;
  margin-top: 18px !important;
}
.events-see-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.events-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: var(--r);
  padding: 9px 22px;
  cursor: pointer;
  transition: .22s var(--ease);
}
.events-see-more:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
}
.events-see-more i {
  font-size: 18px;
  transition: transform .4s cubic-bezier(0.4,0,0.2,1);
}
.events-see-more.expanded i { transform: rotate(180deg); }