/* =============================================
   Shreya Khadka — Basketball Athlete Portfolio
   Theme: Dark navy · Orange · Court lines
   ============================================= */

:root {
  --navy: #0b1426;
  --navy-mid: #111d35;
  --navy-light: #1a2d4d;
  --black: #050810;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-glow: rgba(249, 115, 22, 0.35);
  --cream: #faf7f0;
  --white: #ffffff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(17, 29, 53, 0.85);
  --max: 1200px;
  --nav-h: 72px;
  --section-y: 40px;
  --section-y-sm: 24px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(249, 115, 22, 0.04) 49.5%, rgba(249, 115, 22, 0.04) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(249, 115, 22, 0.04) 49.5%, rgba(249, 115, 22, 0.04) 50.5%, transparent 50.5%);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-label .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  font-size: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}

.section-head {
  margin-bottom: 24px;
  text-align: center;
}

.section-head p {
  margin-top: 14px;
  max-width: 560px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Layout ---------- */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-y) 0;
  position: relative;
  z-index: 1;
}

section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(11, 20, 38, 0.6) 50%, transparent);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(5, 8, 16, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.nav-logo span {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.12);
}

.nav-links a.active {
  color: var(--orange);
}

/* ---------- Hero ---------- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 var(--section-y-sm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--black));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
}

.hero h1 .accent {
  color: var(--orange);
  display: block;
}

.hero-role {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  color: var(--cream);
}

.hero-bio {
  margin-top: 22px;
  max-width: 520px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-quote {
  margin-top: 18px;
  max-width: 480px;
  padding-left: 14px;
  border-left: 2px solid rgba(249, 115, 22, 0.5);
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  color: rgba(148, 163, 184, 0.95);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 4px 24px var(--orange-glow);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--orange-glow);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  opacity: 0.4;
  transform: rotate(3deg);
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: -16px;
  background: var(--orange);
  color: var(--black);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px var(--orange-glow);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  padding: 0;
}

.stats-strip {
  width: 100%;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, transparent 30%, transparent 70%, rgba(249, 115, 22, 0.06) 100%),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  border-block: 1px solid rgba(249, 115, 22, 0.2);
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange) 20%, var(--orange) 80%, transparent);
  opacity: 0.7;
}

.stats-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.02) 79px,
      rgba(255, 255, 255, 0.02) 80px
    );
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

.stat-card {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}

.stat-card:last-child {
  border-right: none;
}

.stat-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.35s var(--ease);
}

.stat-card:hover {
  background: rgba(249, 115, 22, 0.08);
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.stat-card:hover::before {
  width: 60%;
  opacity: 1;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-shadow: 0 0 40px var(--orange-glow);
}

.stat-card .label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
}

.stat-card:hover .label {
  opacity: 1;
  color: var(--white);
}

/* ---------- Horizontal Timeline ---------- */
#journey {
  padding-top: var(--section-y-sm);
}

#journey .section-head {
  margin-top: 20px;
}

.timeline-section {
  margin-top: 0;
  position: relative;
}

.timeline-section::before,
.timeline-section::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 48px;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.timeline-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--black), transparent);
}

.timeline-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--black), transparent);
}

.timeline-controls {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: var(--black);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.timeline-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--orange-glow);
}

.timeline-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.timeline-progress {
  flex: 1;
  height: 3px;
  background: var(--navy-light);
  border-radius: 999px;
  overflow: hidden;
}

.timeline-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 999px;
  transition: width 0.15s var(--ease);
}

.timeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 12px 0 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--navy-mid);
}

.timeline-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: var(--navy-mid);
  border-radius: 999px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 999px;
}

.timeline-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2 + 20px));
  position: relative;
  align-items: flex-start;
}

.timeline-line {
  position: absolute;
  left: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  right: max(20px, calc((100vw - var(--max)) / 2 + 20px));
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--navy-light) 40%, var(--orange));
  pointer-events: none;
  z-index: 0;
}

.t-item {
  position: relative;
  flex: 0 0 min(340px, 82vw);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  z-index: 1;
}

.t-dot {
  width: 16px;
  height: 16px;
  margin: 0 auto 18px;
  background: var(--black);
  border: 3px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--orange-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.t-item.active .t-dot {
  transform: scale(1.25);
  box-shadow: 0 0 20px var(--orange-glow);
  background: var(--orange);
}

.t-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 200px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.t-item.active .t-card {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.12);
  transform: translateY(-4px);
}

.t-item:hover .t-card {
  border-color: rgba(249, 115, 22, 0.25);
}

.t-year {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 10px;
  line-height: 1;
}

.t-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.t-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.t-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.timeline-hint {
  width: min(var(--max), calc(100% - 40px));
  margin: 4px auto 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Gallery Tabs & Grid ---------- */
.gallery-wrap {
  margin-bottom: 20px;
  text-align: center;
}

.gallery-tabs,
.business-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.gallery-tab,
.business-tab {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.gallery-tab:hover,
.business-tab:hover {
  color: var(--cream);
  border-color: rgba(249, 115, 22, 0.35);
}

.gallery-tab.active,
.business-tab.active {
  color: var(--black);
  background: var(--orange);
  border-color: var(--orange);
}

.gallery-panel {
  display: none;
  width: 100%;
  overflow: hidden;
}

.gallery-panel.active {
  display: block;
}

.business-wrap {
  margin-bottom: 28px;
  text-align: center;
}

.business-panel {
  display: none;
}

.business-panel.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  line-height: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--navy-mid);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

/* Portrait photos — keep faces visible in square crops */
.gallery-item--portrait img,
#panel-legends .gallery-item img {
  object-position: top center;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(5, 8, 16, 0.88));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ---------- Business / Roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.roles-grid .role-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.roles-grid .role-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.25);
}

.roles-grid .role-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

.roles-grid .role-thumb--portrait {
  aspect-ratio: 4 / 3;
}

.roles-grid .role-thumb--portrait img {
  object-position: top center;
}

.roles-grid .role-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.roles-grid .role-card h3 {
  font-size: 16px;
}

.roles-grid .role-card li {
  font-size: 13px;
}

.role-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.role-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.role-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.role-org {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.role-card ul {
  list-style: disc;
  padding-left: 18px;
}

.role-card li {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

.tag {
  display: inline-block;
  margin-top: 12px;
  margin-right: 8px;
  padding: 5px 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- Trophy / Achievements ---------- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.achievement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.achievement-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.achievement-card p {
  font-size: 13px;
  color: var(--muted);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.impact-card {
  background: linear-gradient(145deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.impact-card .big {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.impact-card .lbl {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  padding: 24px 20px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
}

.cert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.cert-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cert-org {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.cert-year {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
}

.subsection-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: center;
}

/* ---------- Floating Social ---------- */
.floating-social {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-social-link {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 38, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 50%;
  color: var(--orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.floating-social-link:hover {
  background: var(--orange);
  color: var(--black);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--orange-glow);
}

.floating-social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Footer / Contact ---------- */
.footer {
  padding: var(--section-y) 0 32px;
  background: var(--navy);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer > .container > p {
  max-width: 520px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 15px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cream);
  text-decoration: none;
}

a.contact-item:hover {
  color: var(--orange);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.fineprint {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover {
  background: var(--orange);
  color: var(--black);
}

.lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: var(--orange);
  color: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 24px var(--orange-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }

  .hero-photo-wrap {
    max-width: 420px;
    margin-inline: auto;
  }

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

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .role-thumb {
    max-width: none;
    aspect-ratio: 16/10;
  }

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

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

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

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

  .hero {
    padding-bottom: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5, 8, 16, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .stats-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .hero-badge {
    left: 12px;
    bottom: 12px;
  }

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

  .gallery-tabs {
    gap: 6px;
  }

  .gallery-tab {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 10px 12px;
    font-size: 10px;
  }

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

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