/* =========================
   Buduka Cherish Nchelem Website
   Global Styles (Deep Orange + Black Theme)
========================= */

:root {
  --primary: #c2410c;         /* deep orange */
  --primary-hover: #ea580c;   /* orange hover */
  --dark: #0b0b0c;            /* near black */
  --dark-2: #161618;          /* charcoal */
  --text: #111827;            /* main text */
  --text-light: #6b7280;      /* muted text */
  --bg: #fffaf5;              /* warm off-white */
  --surface: #ffffff;         /* white cards */
  --surface-soft: #fff7ed;    /* soft orange tint */
  --border: #e5e7eb;          /* border */
  --border-strong: #d1d5db;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  --radius: 16px;
  --radius-lg: 18px;
  --max-width: 1120px;
}

/* =========================
   Reset / Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* =========================
   Utilities / Layout
========================= */
.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #fff4ea;
  border-top: 1px solid rgba(194, 65, 12, 0.06);
  border-bottom: 1px solid rgba(194, 65, 12, 0.06);
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 0.35rem;
}

.section-heading p {
  color: var(--text-light);
  max-width: 780px;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

/* =========================
   Header / Navigation
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.site-header.scrolled {
  background: rgba(11, 11, 12, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.nav-container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.03rem;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.main-nav a {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
  color: #ffffff;
  background: rgba(194, 65, 12, 0.18);
  border: 1px solid rgba(234, 88, 12, 0.32);
  border-radius: 10px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Hero Sections
========================= */
.hero,
.page-hero {
  background: linear-gradient(180deg, #0b0b0c 0%, #161618 100%);
  color: #ffffff;
}

.hero {
  padding: 4.6rem 0 4rem;
}

.page-hero {
  padding: 3.2rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.hero-subtitle,
.page-hero-subtitle {
  color: #e5e7eb;
  max-width: 760px;
  font-size: 1rem;
}

.eyebrow,
.page-hero-eyebrow {
  color: #fdba74;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.page-hero .page-hero-subtitle .rotating-text {
  color: #fff;
}

/* Dynamic hero text */
.hero-dynamic-line {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: #fbe7d5;
  font-weight: 600;
}

.hero-role-prefix {
  margin-right: 0.35rem;
  color: #fdba74;
}

.rotating-text {
  display: inline-block;
  color: #ffffff;
  min-height: 1.4em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.rotating-text.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.rotating-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Buttons / Links
========================= */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #fff7ed;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline-dark {
  color: var(--text) !important;
  border-color: #d1d5db !important;
  background: #fff !important;
}
.btn-outline-dark:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary-hover);
}

/* =========================
   Generic Cards
========================= */
.card,
.content-card,
.venture-card,
.pub-card,
.contact-method-card,
.contact-form-wrap,
.slider,
.highlight-box,
.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.content-card,
.highlight-box,
.update-card {
  padding: 1rem;
}

.card h3,
.content-card h3,
.highlight-box h3,
.update-card h3 {
  margin-bottom: 0.35rem;
}

.card p,
.content-card p,
.highlight-box p,
.update-card p {
  color: var(--text-light);
}

.about-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

/* Profile card in hero */
.profile-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(194, 65, 12, 0.15);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.profile-card h2 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.profile-card p {
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.profile-image-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #9a3412;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid #fdba74;
  margin-bottom: 0.75rem;
}

.about-avatar {
  width: 88px;
  height: 88px;
  font-size: 1.35rem;
}

.mini-highlights {
  padding-left: 1rem;
  color: var(--text-light);
}

.mini-highlights li + li {
  margin-top: 0.25rem;
}

.sidebar-card .sidebar-name {
  margin-bottom: 0.2rem;
}

.sidebar-role {
  color: var(--text-light);
  margin-bottom: 0.7rem;
}

.sidebar-section {
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.sidebar-section h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.sidebar-list {
  color: var(--text-light);
  padding-left: 1rem;
}

.sidebar-list li + li {
  margin-top: 0.25rem;
}

/* =========================
   Tags / Pills / Badges
========================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-pill {
  display: inline-flex;
  margin-top: 0.6rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 600;
}

/* =========================
   Home Page Extras
========================= */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.highlight-box h3 {
  font-size: 1rem;
}

.highlight-box p {
  margin: 0;
}

.cta-section {
  padding: 0 0 4rem;
}

.cta-box {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(194, 65, 12, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  text-align: left;
}

.cta-box h2 {
  margin-bottom: 0.35rem;
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

/* Slider */
.slider {
  padding: 1.2rem;
}

.slider-track {
  position: relative;
  min-height: 220px;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
  animation: fadeSlide 0.35s ease;
}

.slide h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.15rem;
}

.slide p {
  color: var(--text-light);
  margin-bottom: 0.7rem;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.slider-btn:hover {
  background: #fff7ed;
  border-color: #fdba74;
}

.slider-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: var(--primary);
}

/* =========================
   About Page Extras
========================= */
.timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #fed7aa;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #fdba74;
  margin-top: 0.4rem;
  z-index: 1;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.timeline-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.timeline-card p {
  margin: 0;
  color: var(--text-light);
}

.education-grid {
  display: grid;
  gap: 1rem;
}

.education-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
}

.edu-badge {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.edu-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.edu-school {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-meta {
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.styled-list {
  color: var(--text-light);
  padding-left: 1rem;
}

.styled-list li + li {
  margin-top: 0.25rem;
}

.vision-box {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(194, 65, 12, 0.14);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.vision-box h2 {
  margin-bottom: 0.35rem;
}

.vision-box p {
  color: var(--text-light);
}

/* Optional updates cards (used in earlier about/home versions) */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.update-date {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* =========================
   Research Page Extras
========================= */
.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.feature-content h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.08rem;
}

.feature-content p {
  color: var(--text-light);
}

.research-pipeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pipeline-step {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.pipeline-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.pipeline-step h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.pipeline-step p {
  color: var(--text-light);
}

.pub-list {
  display: grid;
  gap: 1rem;
}

.pub-card {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.pub-left h3 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.08rem;
}

.pub-left p {
  color: var(--text-light);
}

.pub-meta {
  font-weight: 600;
  color: var(--primary) !important;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 170px;
  justify-content: flex-end;
}

.pub-actions .btn {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.interest-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  color: var(--text);
}

/* =========================
   Projects Page Extras
========================= */
.venture-grid {
  display: grid;
  gap: 1rem;
}

.venture-card {
  border-radius: 18px;
  padding: 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venture-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.1);
}

.venture-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.venture-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.venture-subtitle {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.venture-card p {
  color: var(--text-light);
}

.venture-card p + p {
  margin-top: 0.55rem;
}

.venture-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.venture-meta h4 {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.venture-meta p {
  font-size: 0.92rem;
  color: var(--text-light);
}

.venture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.95rem;
}

/* Project image/logo layout */
.venture-card-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}

.venture-image-link {
  display: block;
  text-decoration: none;
}

.venture-image-box {
  position: relative;
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.venture-image {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  padding: 1rem;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.venture-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.64);
  color: #ffffff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-weight: 700;
  text-align: center;
  padding: 0.8rem;
}

.venture-image-box:hover .venture-image-overlay,
.venture-image-link:focus .venture-image-overlay,
.venture-image-link:focus-visible .venture-image-overlay {
  opacity: 1;
}

.venture-image-box:hover .venture-image {
  transform: scale(1.03);
  opacity: 0.95;
}

.venture-content {
  min-width: 0;
}

.venture-image-fallback {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  border: 1px dashed #fdba74;
  background: #fff7ed;
  display: grid;
  place-items: center;
  color: #9a3412;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* =========================
   Writing Page / Medium Feed
========================= */
.medium-status {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  color: var(--text-light);
}

.medium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.medium-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.1);
}

.medium-card-image-link {
  display: block;
  text-decoration: none;
  background: #fff7ed;
}

.medium-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.medium-card-image-fallback {
  height: 190px;
  display: grid;
  place-items: center;
  color: #9a3412;
  font-weight: 700;
  background: linear-gradient(135deg, #fff7ed, #fffaf5);
  border-bottom: 1px solid var(--border);
}

.medium-card-body {
  padding: 1rem;
}

.medium-card-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.medium-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.medium-card-body p {
  color: var(--text-light);
  margin-bottom: 0.7rem;
}

/* =========================
   Contact Page Extras
========================= */
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-method-card {
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.1);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.contact-method-card h3 {
  margin-bottom: 0.35rem;
}

.contact-method-card p {
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

/* Form */
.contact-form-wrap {
  border-radius: 18px;
  padding: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.form-group {
  display: grid;
  gap: 0.35rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.6rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  padding: 0;
}

.checkbox-group label {
  font-weight: 500;
  color: var(--text-light);
}

.form-error {
  color: #b91c1c;
  font-size: 0.84rem;
  min-height: 1em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.form-note {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.success-message {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: var(--dark);
  color: #e5e7eb;
  padding: 1.25rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer p {
  color: #d1d5db;
  margin: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links a {
  color: #e5e7eb;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fdba74;
}

/* =========================
   Reveal Animations
========================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

/* =========================
   Back to Top
========================= */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #fed7aa;
  background: #ffffff;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .hero-grid,
  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .updates-grid {
    grid-template-columns: 1fr;
  }

  .research-pipeline {
    grid-template-columns: 1fr;
  }

  .pub-card {
    flex-direction: column;
  }

  .pub-actions {
    justify-content: flex-start;
    min-width: auto;
  }

  .venture-card-layout {
    grid-template-columns: 1fr;
  }

  .venture-image-box {
    min-height: 180px;
  }

  .venture-image {
    max-height: 180px;
    padding: 0.9rem;
  }

  .contact-methods-grid {
    grid-template-columns: 1fr;
  }

  .medium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-container {
    align-items: center;
    min-height: 74px;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 12, 0.99);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem 0;
    display: none;
  }

  .main-nav.nav-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: min(92%, var(--max-width));
    margin: 0 auto;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .venture-meta {
    grid-template-columns: 1fr;
  }

  .venture-actions .btn {
    width: 100%;
    text-align: center;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.2rem 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .page-hero {
    padding: 2.6rem 0 2.2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .medium-grid {
    grid-template-columns: 1fr;
  }

  .medium-card-image,
  .medium-card-image-fallback {
    height: 180px;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .edu-badge {
    width: 60px;
    height: 60px;
  }

  .slider-track {
    min-height: 260px;
  }

  .hero-dynamic-line {
    font-size: 1rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}