/* =========================================================
   Adebowale Johnson Bademosi — Portfolio
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --surface: #111c33;
  --surface-2: #16233f;
  --border: rgba(148, 163, 184, 0.15);
  --text: #e5eaf3;
  --text-muted: #97a3ba;
  --primary: #4f8cff;
  --primary-2: #7c5cff;
  --accent: #22d3ee;
  --success: #22c55e;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.45);

  --container: 1180px;
  --nav-h: 72px;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 25px rgba(79, 140, 255, .35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(79, 140, 255, .5); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(148, 163, 184, .35);
}
.btn-outline:hover { border-color: var(--primary); color: #fff; background: rgba(79,140,255,.08); }

.btn-ghost {
  background: rgba(148, 163, 184, .1);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(148, 163, 184, .18); }

.btn-small { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 8px 20px rgba(79,140,255,.35);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.nav-menu ul { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(148,163,184,.08); }
.nav-link.active { color: #fff; background: rgba(79,140,255,.14); }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  background: rgba(148,163,184,.06);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 15% 10%, rgba(79,140,255,.18), transparent 60%),
    radial-gradient(600px 400px at 85% 20%, rgba(124,92,255,.15), transparent 60%),
    radial-gradient(600px 500px at 50% 100%, rgba(34,211,238,.08), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 75%);
  opacity: .5;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  margin: 0 0 14px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff 0%, #c9d4ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 22px;
}
.hero-title .divider { color: var(--primary); margin: 0 8px; }
.hero-intro {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 560px;
  margin: 0 0 24px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
}
.hero-tags li {
  font-size: .82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(148,163,184,.08);
  border: 1px solid var(--border);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hero-tags li:hover {
  border-color: rgba(79,140,255,.5);
  background: rgba(79,140,255,.1);
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-cv-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: .85rem;
  margin: 0;
}
.hero-cv-note i { color: var(--accent); margin-top: 3px; }

.hero-photo { display: flex; justify-content: center; align-items: center; }
.photo-wrapper { position: relative; display: inline-block; }
.photo-wrapper::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, #4f8cff, #7c5cff, #22d3ee, #4f8cff);
  filter: blur(18px);
  opacity: .45;
  z-index: -1;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 4px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  background: #0f172a;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 1.02rem;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,140,255,.4);
  box-shadow: var(--shadow);
}
.about-card i { color: var(--accent); font-size: 1.3rem; margin-bottom: 10px; }
.about-card h3 { font-size: 1rem; margin: 0 0 6px; }
.about-card p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity .3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255,.35);
  box-shadow: var(--shadow);
}
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(79,140,255,.12);
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list li {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,.08);
  border: 1px solid var(--border);
  transition: color .2s ease, border-color .2s ease;
}
.skill-card:hover .skill-list li { color: var(--text); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,140,255,.4);
  box-shadow: var(--shadow-lg);
}
.project-card.featured { border-color: rgba(34,211,238,.35); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.75);
  color: #fff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  transition: transform .3s ease, background .3s ease;
  z-index: 3;
}
.play-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-cat {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-title { font-family: var(--font-display); font-size: 1.12rem; margin: 0; }
.project-desc { color: var(--text-muted); font-size: .93rem; margin: 0; }
.project-meta { font-size: .86rem; color: var(--text-muted); }
.project-meta p { margin: 4px 0; }
.project-meta strong { color: var(--text); }
.project-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  flex-wrap: wrap;
}

/* ---------- eBook ---------- */
.ebook-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.ebook-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
  aspect-ratio: 3 / 4;
}
.ebook-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ebook-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.ebook-sub {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
  font-size: 1rem;
}
.ebook-desc {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,92,255,.4);
  box-shadow: var(--shadow);
}
.service-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(148,163,184,.35);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79,140,255,.18), rgba(124,92,255,.18));
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 0 0 8px; }
.service-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ---------- Certifications ---------- */
.cert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.cert-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,140,255,.4);
  box-shadow: var(--shadow);
}
.cert-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,140,255,.2), rgba(124,92,255,.2));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.cert-date {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.3);
  margin-bottom: 10px;
}
.cert-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.cert-issuer {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  margin: 0 0 10px;
}
.cert-desc { color: var(--text-muted); font-size: .9rem; margin: 0; }

.cert-cta {
  text-align: center;
  margin-top: 40px;
}
.cert-cta p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}
.contact-info h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 12px; }
.contact-info p { color: var(--text-muted); margin: 0 0 24px; }

.contact-list { display: grid; gap: 14px; margin-bottom: 26px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-muted);
  word-break: break-word;
}
.contact-list i {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(79,140,255,.12);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-list a { color: var(--text); transition: color .2s ease; }
.contact-list a:hover { color: var(--accent); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(148,163,184,.08);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}
.social-row a:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: var(--primary);
  background: rgba(79,140,255,.15);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(148,163,184,.55); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,140,255,.18);
  background: rgba(15, 23, 42, 0.85);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { margin: 14px 0 0; font-size: .9rem; min-height: 1.2em; }
.form-note.success { color: var(--success); }
.form-note.error { color: #f87171; }
.form-hint {
  margin: 12px 0 0;
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-hint i { color: var(--accent); margin-top: 3px; }

/* ---------- Footer ---------- */
.footer {
  background: #080e1a;
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand h4 { margin: 4px 0 4px; font-family: var(--font-display); font-size: 1.05rem; }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: .88rem; }

.footer-links h5,
.footer-social h5 {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-links ul { display: grid; gap: 8px; }
.footer-links a { color: var(--text); font-size: .92rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(79,140,255,.4);
  background: rgba(11,18,32,.9);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease, color .3s ease;
  z-index: 900;
  backdrop-filter: blur(8px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); color: #fff; }

/* ---------- Video Modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  z-index: 2;
}
.video-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  z-index: 3;
}
.video-modal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { order: 2; }
  .hero-text { order: 1; }
  .profile-image { width: 220px; height: 220px; }

  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-list { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .ebook-card { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
  .ebook-thumb { max-width: 260px; margin: 0 auto; }
  .ebook-info { text-align: center; }
  .ebook-info .btn { margin-top: 8px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 620px; }
  .nav-menu ul {
    flex-direction: column;
    padding: 18px 24px 26px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .hamburger { display: flex; }
  .logo-text { display: none; }

  .profile-image { width: 200px; height: 200px; }

  .skills-grid,
  .projects-grid,
  .services-grid { grid-template-columns: 1fr; }

  .about-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero-buttons .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 72px; }

  .profile-image { width: 180px; height: 180px; border-width: 3px; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  .about-cards { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .ebook-card { padding: 22px; }
  .back-to-top { bottom: 18px; right: 18px; }
  .video-modal-close { top: -14px; right: -6px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}