/* 
  Quantora Analytics – Global Styles
  Dark, modern, responsive layout with reusable components.
*/

:root {
  --bg-main: #050814;
  --bg-elevated: #0b1020;
  --bg-soft: #101629;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --accent: #3b82f6; /* electric blue */
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-strong: #4f46e5; /* indigo accent */
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #f97373;
  --success: #22c55e;
  --warning: #fbbf24;
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --nav-height: 72px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #111827, #020617 48%, #020617 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

main {
  padding-top: var(--nav-height);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 720px;
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.25), transparent 52%),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
}

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

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 620px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Typography */

h1,
h2,
h3 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
}

h2 {
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

small,
.small-muted {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Grid utilities */

.grid {
  display: grid;
  gap: 1.75rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mt-xl {
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-sidecard {
    justify-content: center; /* Centered on mobile */
    margin-top: 2rem;
  }

  .results-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .hero {
    padding-top: 4.6rem;
  }

  .page-hero {
    padding-top: 4.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-metrics {
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .container {
    padding: 0 1.25rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px; /* Better touch target */
  }

  .card {
    padding: 1.4rem 1.2rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Fix for 1 Year Fellowship tile alignment */
  .program-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      justify-content: space-between;
  }
  
  /* Ensure proper spacing for long content in mobile */
  .hero-subtitle {
    word-wrap: break-word; 
    max-width: 100%;
  }

  /* Prevent footer overflow */
  .footer-grid {
      width: 100%;
      overflow-x: hidden;
  }
}

@media (max-width: 520px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1.2rem;
  }


  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-intro {
    font-size: 0.95rem;
  }

  .results-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-date {
    font-size: 0.85rem;
  }
  
  /* Live pipeline snapshot responsiveness */
  .floating-card {
      width: 100%;
      max-width: 100%;
      padding: 1.2rem;
  }
  
  .floating-list li {
      flex-wrap: wrap;
      gap: 0.5rem;
  }
  
  .floating-footer {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .badge-soft {
      white-space: normal;
      text-align: left;
      height: auto;
      padding: 0.4rem 0.6rem;
  }
}

/* Navbar */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.nav-container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #3b82f6 48%, #4f46e5 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.nav-logo-text {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.nav-logo-faded {
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.3rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transition: width 0.18s ease-out;
}

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

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

.nav-link-active {
  color: var(--text-main);
}

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

.nav-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.45), rgba(15, 23, 42, 0.8));
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

  .site-nav {
    position: fixed;
    inset-inline: 0;
    top: var(--nav-height);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    padding: 1.1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.32);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    z-index: 1000;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
    font-size: 0.95rem;
    min-height: 44px; /* Better touch target */
    display: flex;
    align-items: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.58rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease,
    border-color 0.16s ease;
  text-decoration: none;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #38bdf8, #3b82f6 45%, #4f46e5 100%);
  color: #f9fafb;
  box-shadow: 0 14px 45px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 60px rgba(37, 99, 235, 0.9);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* Cards & surface */

.card {
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.44), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card-compact {
  padding: 1.25rem 1.1rem;
}

.card-profile p {
  margin-bottom: 0.3rem;
}

.profile-role {
  font-size: 0.86rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transform: translateY(-50%);
}

.card-list.ordered {
  list-style: decimal;
  padding-left: 1rem;
}

.card-list.ordered li {
  padding-left: 0.3rem;
}

.card-list.ordered li::before {
  content: none;
}

.card-footnote {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
}

/* Pills, badges, metrics */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.pill-success {
  border-color: rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.18);
}

.pill-warning {
  border-color: rgba(251, 191, 36, 0.7);
  color: #facc15;
  background: rgba(180, 83, 9, 0.22);
}

.pill-neutral {
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 500;
}

.badge-soft {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
}

.metric-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-large {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.metric-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.8), 0 0 0 1px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Hero */

.hero {
  padding-top: 5.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-sidecard {
  display: flex;
  justify-content: flex-end;
}

.floating-card {
  width: 100%;
  max-width: 320px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), rgba(15, 23, 42, 0.96));
  border-radius: 1.6rem;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.92);
}

.floating-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.floating-card h3 {
  margin-bottom: 0.9rem;
}

.floating-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
}

.floating-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.floating-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

/* Logos row */

.logos {
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  overflow: hidden;
}

.logos-kicker {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.2rem;
  text-align: center;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-row {
  display: flex;
  gap: 2rem;
  animation: scroll 40s linear infinite;
  padding-left: 2rem;
}

/* Pause animation on hover */
.marquee-wrapper:hover .logos-row {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Moves half the width since we duplicate content */
  }
}

.logo-faux {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

/* Results */

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2.6rem;
  align-items: center;
}

.results-metrics {
  display: grid;
  gap: 0.9rem;
}

/* CTA */

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.9rem 1.6rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-soft);
}

.cta-inner p {
  margin-bottom: 0.7rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Page hero */

.page-hero {
  padding-top: 5rem;
}

/* Services layout */

.service-layout {
  align-items: stretch;
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Case studies */

.case-study-header {
  margin-bottom: 1.4rem;
}

.case-meta {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.tools-line {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.case-results {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.95rem;
}

.case-results li {
  padding-left: 0.95rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.case-results li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.2rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--text-main);
}

input[type="text"],
input[type="email"],
select,
textarea {
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-footnote {
  margin-top: -0.4rem;
}

.form-status {
  margin: 0.5rem 0 0;
  min-height: 1rem;
  font-size: 0.8rem;
}

.form-status.error {
  color: var(--danger);
}

.form-status.success {
  color: #bbf7d0;
}

.contact-aside .small-muted {
  margin-top: 0.6rem;
}

/* Footer */

.site-footer {
  margin-top: 2.2rem;
  padding: 2.5rem 0 2.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.6), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2.4rem;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo-text {
  margin-left: 0.5rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.86rem;
  margin-top: 0.6rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  font-size: 0.86rem;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.footer-links a,
.footer-links span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
}

/* Scroll animation */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Consultancy page styles */

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card-experience {
  padding: 2rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1.5rem;
}

.experience-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.experience-company {
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.experience-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.experience-list {
  margin: 1.25rem 0;
}

.experience-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.experience-list li:last-child {
  margin-bottom: 0;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 720px) {
  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .experience-date {
    white-space: normal;
  }

  .card-experience {
    padding: 1.5rem;
  }
}

/* Internship page specific */

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

.featured-program {
  border-color: var(--accent);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.98));
  box-shadow: 0 25px 80px rgba(37, 99, 235, 0.2);
}

.program-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.badge-highlight {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.program-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive elements */

.interactive-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
}

.pulse-cta {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Tool Marquee Specifics */

.tool-marquee {
  margin-top: 1rem;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.tool-marquee .pill {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-marquee .pill:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  cursor: default;
}

/* Stack Section Background Animation */
.stack-section {
  position: relative;
  overflow: hidden;
  /* Ensure it stands out slightly from the main bg */
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
}

.stack-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.stack-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-blob 10s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: var(--accent);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: var(--accent-strong);
  animation-delay: -5s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, 30px) scale(1.1);
  }
  100% {
    transform: translate(-20px, -10px) scale(0.95);
  }
}
