.noscript-msg {
  text-align: center;
  padding: 2rem;
  font-family: sans-serif;
}

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --secondary: #ff6b6b;
  --accent: #4ecdc4;
  --dark: #181c2f;
  --dark-light: #2a2f4a;
  --light: #f5f7fa;
  --white: #ffffff;
  --gray: #666;
  --gray-light: #e0e0e0;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Global focus-visible */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  font-family: 'Inter', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.admin-link {
  display: none;
}

.admin-link::after {
  display: none;
}

.admin-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  filter: blur(20px);
  animation: pulse 2s infinite;
  will-change: transform, opacity;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.2s both;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--dark-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
  animation: fadeInUp 1s ease 0.4s both;
  min-height: 2.25rem;
}

/* Typing Animation */
.typing-cursor {
  font-weight: 300;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-location {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--dark-light);
  margin-bottom: 1rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.8s both;
}

.home-pinned-post {
  max-width: 28rem;
  margin: 1.75rem auto 0;
  padding: 0 0.5rem;
  animation: fadeInUp 1s ease 1.05s both;
}

.home-pinned-post-inner {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(108, 99, 255, 0.2);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.12);
  backdrop-filter: blur(8px);
}

.home-pinned-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.home-pinned-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.35;
}

.home-pinned-title:hover {
  color: var(--primary-dark);
}

.home-pinned-excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dark-light);
}

.home-pinned-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-pinned-link:hover {
  color: var(--primary-dark);
}

/* Hero copy legibility over gradient orbs (WCAG-friendly contrast aid) */
.hero .hero-subtitle,
.hero .hero-location,
.hero .hero-description {
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(24, 28, 47, 0.12);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Button loading state */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading { pointer-events: none; opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 1.2s both;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-md);
  background: var(--primary);
  color: var(--white);
}

.social-link-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.social-link-favicon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

.social-link-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: currentColor;
}

.social-link:hover .social-link-favicon {
  filter: brightness(0) invert(1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
  will-change: transform, opacity;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: arrow 2s infinite;
}

@keyframes arrow {
  0%, 20% {
    opacity: 0;
    transform: rotate(45deg) translateY(-10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translateY(10px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Section Styles */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: -3rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-summary {
  font-size: 1.2rem;
  color: var(--dark-light);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: left;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-group h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  padding: 0.5rem 0;
  color: var(--dark-light);
  position: relative;
  padding-left: 1.5rem;
}

.detail-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-tag {
  background: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1.5px solid transparent;
}

/* History section — highlights strip + collapsible full list */
.history-section {
  background: var(--light);
  overflow: hidden;
}

.history-root {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 0 1rem;
}

.history-strip-wrap {
  margin-bottom: 2rem;
}

.history-strip-eyebrow {
  text-align: center;
  margin-bottom: 0.5rem;
}

.history-strip-hint {
  text-align: center;
  font-size: 0.92rem;
  color: var(--dark-light);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.history-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.history-highlight-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(108, 99, 255, 0.12);
}

.history-highlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.history-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.history-highlight-icon svg {
  width: 18px;
  height: 18px;
}

.history-highlight-icon--experience {
  background: var(--primary);
}

.history-highlight-icon--education {
  background: var(--accent);
}

.history-highlight-icon--certification {
  background: var(--secondary);
}

.history-highlight-icon--default {
  background: var(--gray);
}

.history-highlight-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.history-highlight-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-light);
  margin: 0 0 0.5rem;
}

.history-highlight-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.history-highlight-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dark-light);
  margin: 0;
}

.history-empty {
  text-align: center;
  color: var(--dark-light);
  grid-column: 1 / -1;
  padding: 1rem;
}

.history-details {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(108, 99, 255, 0.15);
  background: var(--white);
  overflow: hidden;
}

.history-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--dark);
  user-select: none;
  transition: background 0.2s ease;
}

.history-summary::-webkit-details-marker {
  display: none;
}

.history-summary::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.history-details[open] .history-summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.history-summary:hover,
.history-details[open] .history-summary {
  background: rgba(108, 99, 255, 0.06);
}

.history-summary-label {
  font-size: 1.05rem;
}

.history-summary-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-full-list {
  padding: 0 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.history-full-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.history-full-row:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.history-full-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.history-full-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
}

.history-full-title {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.history-full-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-light);
  margin-bottom: 0.35rem;
}

.history-full-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dark-light);
  white-space: pre-wrap;
}

/* Type pills (history + shared) */
.timeline-type {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-type--experience {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
}

.timeline-type--education {
  background: rgba(78, 205, 196, 0.1);
  color: var(--accent);
}

.timeline-type--certification {
  background: rgba(255, 107, 107, 0.1);
  color: var(--secondary);
}

.timeline-type--default {
  background: rgba(136, 136, 136, 0.1);
  color: var(--gray);
}

/* Certifications Section — upgraded */
.certifications-section {
  background: var(--white);
  position: relative;
  border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.impact-section .section-title {
  margin-bottom: 2rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  contain: layout;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), #e55555);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.12);
}

.cert-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--secondary), #e55555);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon {
  transform: scale(1.08) rotate(-3deg);
}

.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.cert-card .cert-org {
  font-size: 0.88rem;
  color: var(--dark-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cert-card .cert-date {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
}

.cert-card .cert-verify {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.cert-card .cert-verify:hover {
  text-decoration: underline;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  contain: layout;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-1);
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-desc {
  color: var(--dark-light);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

/* Posts Section */
.posts-section {
  background: var(--white);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  contain: layout;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gradient-2);
}

.post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.post-excerpt {
  color: var(--dark-light);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}

.post-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.post-link:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

.posts-footer {
  text-align: center;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--dark-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--dark-light);
  padding: 0.5rem 0;
}

.contact-detail svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

/* Footer */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  font-size: 1.05rem;
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-brand strong {
  color: #fff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.85rem;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-nav a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-social a .social-link-visual {
  width: 22px;
  height: 22px;
}

.footer-social .social-link-favicon {
  width: 18px;
  height: 18px;
}

.footer-social a:hover .social-link-favicon {
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin: 0;
}

.footer-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0.65rem 0 0;
  text-align: center;
  line-height: 1.6;
}

.footer-meta a {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.footer-meta a:hover {
  color: #fff;
}

time.footer-revised {
  color: rgba(255,255,255,0.65);
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

/* Section title + inline link (e.g. Projects → all) */
.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title-row .section-title {
  margin-bottom: 0;
}

.section-title-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.section-title-link:hover {
  text-decoration: underline;
}

/* Honeypot (bot trap) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Page Transition */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: 2rem 0;
    visibility: hidden;
  }

  .nav-menu.active {
    left: 0;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 0.85rem 2rem;
    min-height: 44px;
  }

  /* Nav backdrop overlay */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    left: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    min-height: 3.6rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .history-full-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .history-full-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .projects-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

}

/* Skip to content (accessibility) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 10001;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 0;
}

/* Print stylesheet */
@media print {
  .navbar,
  .nav-toggle,
  .back-to-top,
  .page-transition,
  .hero-background,
  .social-links,
  .hero-buttons,
  .contact-form,
  .blog-filters,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 1.5rem 0;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gradient-orb,
  .typing-cursor {
    animation: none !important;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Prevent back-to-top / toast overlap on narrow screens */
@media (max-width: 480px) {
  .back-to-top { bottom: 5rem; }
}

/* PWA standalone mode — extra padding for notch/home bar */
@media (display-mode: standalone) {
  .navbar { padding-top: env(safe-area-inset-top); }
  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .pwa-install-banner { display: none; }
  .back-to-top { bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) and (display-mode: standalone) {
  .back-to-top { bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 10001;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast-container.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gray-light);
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon.success {
  background: linear-gradient(135deg, #28c840, #4ecdc4);
}

.toast-icon.error {
  background: linear-gradient(135deg, #ff6b6b, #f5576c);
}

.toast-icon.info {
  background: var(--gradient-1);
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: #fff;
  fill: none;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  flex: 1;
}

.toast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

.toast-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
}

/* ── CV Preview Modal ── */
.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cv-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cv-modal-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: layout paint;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cv-modal.visible .cv-modal-content {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.cv-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-download-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.cv-modal-close {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--light);
  color: var(--dark);
  font-size: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.cv-modal-close:hover {
  background: var(--primary);
  color: #fff;
}

.cv-modal-body {
  flex: 1;
  overflow: hidden;
}

.cv-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .cv-modal-content {
    width: 96vw;
    height: 90vh;
    border-radius: 14px;
  }
  .cv-modal-header {
    padding: 1rem 1.25rem;
  }
  .cv-modal-header h3 {
    font-size: 1rem;
  }
}

/* ── Loading Skeletons ── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, #ececec 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
.skeleton-tag {
  height: 42px;
  border-radius: 25px;
}
.skeleton-card {
  height: 280px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --dark: #e8eaf0;
    --dark-light: #b8bdd0;
    --light: #0f1117;
    --white: #1a1d2e;
    --gray: #9ca3b0;
    --gray-light: #2a2f42;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.4);
  }

  body { background: #0f1117; }

  .navbar {
    background: rgba(15, 17, 23, 0.85);
  }
  .navbar.scrolled {
    background: rgba(15, 17, 23, 0.95);
  }

  .nav-toggle span { background: var(--dark); }

  .hero-subtitle,
  .hero-location { color: var(--gray); }

  .skill-tag {
    background: var(--white);
    color: var(--dark);
    border-color: var(--gray-light);
  }

  .project-card,
  .post-card,
  .cert-card {
    background: var(--white);
    border-color: var(--gray-light);
  }

  .history-highlight-card,
  .history-details {
    background: var(--white);
    border-color: var(--gray-light);
  }

  .form-group input,
  .form-group textarea {
    background: var(--white);
    color: var(--dark);
    border-color: var(--gray-light);
  }

  .footer { background: #0a0c12; }

  .social-link {
    background: var(--white);
    color: var(--primary);
  }

  .toast-card,
  .cv-modal-content {
    background: #1a1d2e;
  }
  .toast-message { color: var(--dark); }
  .cv-modal-header { border-color: var(--gray-light); }
  .cv-modal-close { background: var(--gray-light); color: var(--dark); }

  .contact-form .btn-primary { color: #fff; }

  img { opacity: 0.92; }

  .nav-menu {
    background: var(--white);
  }

  .home-pinned-post-inner {
    background: rgba(26, 29, 46, 0.75);
    border-color: rgba(108, 99, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }

  .home-pinned-title {
    color: var(--dark);
  }

  .home-pinned-excerpt {
    color: var(--dark-light);
  }
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
  max-width: min(90vw, 420px);
  font-size: 0.9rem;
}
.pwa-install-banner.visible { bottom: 1.5rem; }
.pwa-install-text { flex: 1; }
.pwa-install-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-btn:hover { opacity: 0.9; }
.pwa-install-dismiss {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.pwa-install-dismiss:hover { color: #fff; }
@media (prefers-color-scheme: light) {
  .pwa-install-banner { background: #fff; color: var(--dark); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
  .pwa-install-dismiss { color: #999; }
  .pwa-install-dismiss:hover { color: var(--dark); }
}

/* Availability, impact, newsletter, contact enhancements */
.availability-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.06) 0%, transparent 100%);
}

.availability-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(108, 99, 255, 0.15);
  background: var(--white);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(108, 99, 255, 0.06),
    0 12px 40px rgba(102, 126, 234, 0.08);
}

.availability-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.availability-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin: 0 0 1rem;
}

.availability-sub {
  font-size: 1.05rem;
  color: var(--dark-light);
  line-height: 1.7;
  margin: 0;
}

.impact-section {
  background: var(--light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  opacity: 1;
  transition: opacity 0.38s ease;
}

.testimonials-grid.testimonials-grid--fading-out {
  opacity: 0;
}

.testimonials-grid.testimonials-grid--fading-in {
  opacity: 0;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-grid,
  .testimonials-grid.testimonials-grid--fading-out,
  .testimonials-grid.testimonials-grid--fading-in {
    transition: none;
  }
}

.testimonial-card {
  margin: 0;
  padding: 1.75rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.1);
}

.testimonial-outcome {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.testimonial-quote {
  margin: 0;
  padding-left: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dark);
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.15rem;
  top: -0.1rem;
  font-size: 2.75rem;
  line-height: 1;
  font-style: normal;
  color: rgba(108, 99, 255, 0.18);
  pointer-events: none;
}

.testimonial-cite {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
}

.testimonial-name {
  font-weight: 700;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--gray);
}

.home-newsletter-cta {
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 250, 0.98));
  border: 1px solid rgba(108, 99, 255, 0.14);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  backdrop-filter: blur(8px);
}

.home-newsletter-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.home-newsletter-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--dark);
}

.home-newsletter-desc {
  color: var(--dark-light);
  margin: 0 0 1.25rem;
  line-height: 1.65;
}

.contact-lead,
.contact-lead-secondary {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark-light);
}

.contact-lead {
  margin-bottom: 1rem;
}

.contact-lead-secondary {
  margin-bottom: 1.25rem;
}

.recruiter-note {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(108, 99, 255, 0.08);
  border-left: 4px solid var(--primary);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 1rem;
}

.privacy-contact-note {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.privacy-contact-note a {
  color: var(--primary);
  font-weight: 600;
}

.static-document {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.static-document h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.static-document p,
.static-document li {
  color: var(--dark-light);
  line-height: 1.75;
}

.static-document ul {
  padding-left: 1.25rem;
}

.privacy-prose .privacy-lead {
  font-size: 1.08rem;
}

.privacy-prose code {
  font-size: 0.88em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--dark);
}

.privacy-updated {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .availability-card {
    padding: 1.5rem 1rem;
  }
}
