/* 
  Modern Design System 
  Theme: Premium Eco-Tech (Bhargav)
  Fonts: Outfit (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Colors - HSL for easy manipulation */
  --hue-primary: 150; /* Emerald Green */
  --hue-secondary: 200; /* Slate Blue */

  --color-bg: hsl(150, 20%, 97%);
  --color-bg-surface: hsl(0, 0%, 100%);
  --color-bg-surface-2: hsl(150, 20%, 95%);

  --color-text-main: hsl(200, 40%, 12%);
  --color-text-muted: hsl(200, 20%, 38%);
  --color-text-light: hsl(200, 10%, 60%);

  --color-primary: hsl(var(--hue-primary), 80%, 35%);
  --color-primary-hover: hsl(var(--hue-primary), 80%, 30%);
  --color-primary-light: hsl(var(--hue-primary), 60%, 92%);

  --color-accent: hsl(var(--hue-secondary), 80%, 50%);

  --color-border: hsl(200, 12%, 88%);
  --color-border-hover: hsl(var(--hue-primary), 30%, 80%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: 2.5rem;
  --text-2xl: 4rem;

  /* Effects */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 0 22px hsla(var(--hue-primary), 80%, 50%, 0.18);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ------------------ */
/* Modern Reset       */
/* ------------------ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

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

/* ------------------ */
/* Typography         */
/* ------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-2xl));
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  max-width: 70ch;
  color: var(--color-text-muted);
}

/* Colorful section headings */
.section-header h1,
.section-header h2 {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  color: transparent;
}

/* ------------------ */
/* Layout Utilities   */
/* ------------------ */

.container {
  width: min(100% - 2rem, 1400px);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-lg);
}

/* Card-like surface for all non-hero sections */
.section > .container {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.flex {
  display: flex;
  gap: var(--space-sm);
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* ------------------ */
/* Header / Nav       */
/* ------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Unified brand styling (works for index + profile) */
.brand,
.brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Gradient site title (anchor in profile, div in index) */
.brand a,
.brand-name {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 80%, 30%),
    hsl(var(--hue-secondary), 80%, 46%)
  );
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding-inline: 0.25rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-main);
}

/* ------------------ */
/* Responsive Header  */
/* ------------------ */

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-container {
    flex-direction: row;
    gap: var(--space-sm);
  }
}

/* ------------------ */
/* Buttons            */
/* ------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 85%, 35%),
    hsl(var(--hue-primary), 85%, 28%)
  );
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 85%, 32%),
    hsl(var(--hue-primary), 85%, 26%)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 18px hsla(var(--hue-primary), 80%, 35%, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-bg-surface-2);
  border-color: var(--color-text-muted);
}

/* ------------------ */
/* Cards              */
/* ------------------ */

.card {
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover::before {
  opacity: 1;
}

/* ------------------ */
/* Hero Section       */
/* ------------------ */

.hero {
  padding-block: var(--space-xl) var(--space-lg);
  background:
    radial-gradient(circle at top right, var(--color-primary-light), transparent 45%),
    radial-gradient(circle at bottom left, var(--color-bg-surface-2), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.hero-eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* Gradient hero title */
.hero-title {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 80%, 30%),
    hsl(var(--hue-secondary), 75%, 48%)
  );
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* Stronger hero subtitle */
.hero-subtitle {
  color: hsl(200, 22%, 32%) !important;
  font-weight: 400;
}

/* Hero image */
.hero-image-wrapper {
  display: flex;
  justify-content: flex-end;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
  max-width: 380px;
  margin-left: auto;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-image-frame:hover img {
  transform: scale(1.05);
}

/* ------------------ */
/* Stats (Profile)    */
/* ------------------ */

.stats-box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  margin-block: var(--space-md);
}

.stats-item {
  display: flex;
  flex-direction: column;
}

.stats-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.stats-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* ------------------ */
/* Forms              */
/* ------------------ */

.form-group {
  margin-bottom: var(--space-sm);
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-surface);
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ------------------ */
/* Footer             */
/* ------------------ */

.site-footer {
  background: var(--color-text-main);
  color: var(--color-bg-surface);
  padding-block: var(--space-md);
  text-align: center;
  margin-top: var(--space-xl);
}

.site-footer p {
  color: var(--color-bg-surface);
}

/* ------------------ */
/* Animations         */
/* ------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ------------------ */
/* Responsive Layout  */
/* ------------------ */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: var(--space-md);
  }

  .hero-image-frame {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .section > .container {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }

  :root {
    --text-2xl: 2.7rem;
  }
}

/* ----------------------------- */
/* Education Timeline (Profile)  */
/* ----------------------------- */

.edu-timeline-horizontal {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.edu-step {
  text-align: center;
  flex: 1;
  min-width: 240px;
  position: relative;
}

/* Circular Year Marker */
.edu-year-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem auto;
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-md);
}

/* Timeline bar */
.edu-bar {
  width: 100%;
  height: 20px;
  border-radius: var(--radius-full);
  position: relative;
  margin-bottom: 2.5rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  box-shadow: var(--shadow-sm);
}

/* Pointer under each bar */
.edu-pointer {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-primary-hover);
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

/* University logo under bar */
.edu-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 0.75rem auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

/* Titles & Schools */
.edu-title {
  margin-top: 0.25rem;
  color: var(--color-text-main);
  font-size: 1.05rem;
  font-weight: 600;
}

.edu-school {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .edu-timeline-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .edu-step {
    width: 100%;
    max-width: 420px;
  }
}

/* ------------------ */
/* Publications       */
/* ------------------ */

.pub-item {
  margin-bottom: 1.5rem;
}

.pub-divider {
  height: 1px;
  width: 100%;
  background: var(--color-border);
  margin: 1rem 0;
  opacity: 0.6;
}

/* remove divider after last item */
.pub-divider:last-child {
  display: none;
}

.pub-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.pub-collab {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------- */
/* ABOUT SECTION ENHANCEMENTS — Accent Line + Bullet Fade-In */
/* --------------------------------------------------------- */

/* Soft left accent line for About lists */
.accent-list {
  border-left: 4px solid hsl(var(--hue-primary), 80%, 35%);
  padding-left: 1.6rem;
  margin-left: 0.2rem;
}

/* Bullet fade-in animation */
.bullet-anim li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: hsl(200, 25%, 26%);
  font-size: 1.05rem;
}

/* Animate when .reveal becomes .active */
.reveal.active .bullet-anim li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered timing for sequential bullet fade */
.reveal.active .bullet-anim li:nth-child(1) { transition-delay: 0.05s; }
.reveal.active .bullet-anim li:nth-child(2) { transition-delay: 0.12s; }
.reveal.active .bullet-anim li:nth-child(3) { transition-delay: 0.19s; }
.reveal.active .bullet-anim li:nth-child(4) { transition-delay: 0.26s; }
.reveal.active .bullet-anim li:nth-child(5) { transition-delay: 0.33s; }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-left p {
  margin-bottom: 1.2rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.achievements-title {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-right ul {
  margin: 0;
  padding-left: 1rem;
}

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

.text-accent {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 85%, 32%),
    hsl(var(--hue-secondary), 75%, 48%)
  );
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Achievements Section Box */
.achievements-box {
  background: hsl(var(--hue-primary), 45%, 97%);
  border: 1px solid hsl(var(--hue-primary), 40%, 85%);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
}

/* Title Styling */
.achievements-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--hue-primary), 60%, 30%);
}

/* List Styling */
.achievements-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.achievements-list li {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text-main);
  font-weight: 450;
  padding-left: 1.4rem;
  position: relative;
}

/* Custom bullet */
.achievements-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ============================= */
/* CONTACT SECTION – GRADIENT BAND */
/* ============================= */

#contact {
  /* Green → blue gradient band */
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 45%, 34%) 0%,
    hsl(var(--hue-secondary), 60%, 40%) 100%
  );
  padding-block: 4rem;
}

/* Inner container (light card over the gradient) */
#contact > .container {
  background: hsl(var(--hue-primary), 45%, 96%);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2.75rem;
}

/* Header styling */
#contact .section-header {
  margin-bottom: 1.75rem !important;
}

#contact .section-header h2 {
  background: none;
  color: hsl(var(--hue-primary), 60%, 28%);
  font-size: 2rem;
  font-weight: 700;
}

/* Two-column layout */
#contact .grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important;
  gap: 3rem !important;
  align-items: flex-start;
}

/* LEFT SIDE: information block */
#contact .grid > div:first-child p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

#contact .grid > div:first-child strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

#contact .grid > div:first-child a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

#contact .grid > div:first-child a:hover {
  text-decoration: underline;
}

/* RIGHT SIDE: form card */
#contact #contact-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 1.9rem;
  border: none;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Inputs */
#contact #contact-form input,
#contact #contact-form textarea {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  padding-inline: 1.1rem;
}

#contact #contact-form textarea {
  border-radius: 16px;
}

/* Button */
#contact #contact-form button {
  width: 100% !important;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* Status text */
#contact #contact-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem !important;
}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
  #contact > .container {
    padding: 2rem 1.5rem;
    border-radius: 14px;
  }

  #contact .grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
}

/* ======================================= */
/* UNIVERSAL PAGE HEADER GRADIENT (REUSABLE) */
/* ======================================= */

.page-header {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 45%, 34%) 0%,
    hsl(var(--hue-secondary), 60%, 40%) 100%
  );
  padding-block: 4rem;
}

/* Inner card matching Projects and Contact style */
.page-header .container {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2.75rem;
}

.page-header h1 {
  color: hsl(var(--hue-primary), 70%, 28%);
  font-size: 2.2rem;
  font-weight: 700;
}

/* ============================= */
/* Collapsible Professional Experience */
/* ============================= */

.card.experience-item {
  padding: 0; /* summary/body handle spacing */
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-fast);
}

/* Remove default marker */
.card.experience-item summary {
  list-style: none;
}

.card.experience-item .experience-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.6rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Hide default marker (Safari/Chrome) */
.card.experience-item .experience-summary::-webkit-details-marker {
  display: none;
}

/* Hover Glow Effect */
.card.experience-item .experience-summary:hover {
  background: hsl(var(--hue-primary), 45%, 96%);
  box-shadow: 0 0 14px hsla(var(--hue-primary), 60%, 45%, 0.22);
}

.experience-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.timeline-meta {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ============================= */
/* Icon Styling (Strong + Visible) */
/* ============================= */

.experience-toggle-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 2px solid hsl(var(--hue-primary), 70%, 35%);
  background: hsl(var(--hue-primary), 45%, 92%);
  color: hsl(var(--hue-primary), 70%, 30%);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.experience-toggle-icon::before {
  content: "+";
}

/* Hover effect on icon */
.card.experience-item .experience-summary:hover .experience-toggle-icon {
  box-shadow: 0 0 10px hsla(var(--hue-primary), 60%, 45%, 0.35);
}

/* OPEN STATE */
.card.experience-item[open] .experience-toggle-icon {
  transform: rotate(45deg);
  background: hsl(var(--hue-primary), 80%, 40%);
  border-color: hsl(var(--hue-primary), 85%, 28%);
  color: white;
  box-shadow: 0 0 8px hsla(var(--hue-primary), 80%, 40%, 0.5);
}

/* ============================= */
/* Body Area */
/* ============================= */

.card.experience-item .experience-body {
  padding: 1.2rem 1.6rem 1.5rem;
  background: white;
  animation: slideDown 0.3s ease;
}

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

.card.experience-item .experience-body ul {
  padding-left: 1.2rem;
  margin: 0;
  color: var(--color-text-muted);
}

.card.experience-item .experience-body li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

/* ============ Experience Logos ============ */

.experience-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.experience-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.experience-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
  padding: 4px;
}
/* ============================= */
/* Profile Sub-Navigation Tabs   */
/* ============================= */

.profile-subnav-wrapper {
  padding-block: 1.5rem;
}

/* Flex row for inline pills */
.profile-subnav-inline {
  margin-top: 1.25rem;  /* vertical gap below the title */
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Reusable pills */
.profile-subnav-link {
  font-size: 0.9rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-muted);
  font-weight: 500;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Hover effect */
.profile-subnav-link:hover {
  background: hsl(var(--hue-primary), 45%, 96%);
  border-color: hsl(var(--hue-primary), 60%, 50%);
  color: hsl(var(--hue-primary), 70%, 25%);
  box-shadow: 0 0 12px hsla(var(--hue-primary), 60%, 45%, 0.25);
}

/* Mobile full-width layout */
@media (max-width: 768px) {
  .profile-subnav-inline {
    gap: 0.6rem;
  }
  .profile-subnav-link {
    flex: 1 1 calc(50% - 0.6rem);
    text-align: center;
  }
}

/* ============================= */
/* Section Background Variants   */
/* ============================= */

.section-alt {
  background: hsl(var(--hue-primary), 45%, 96%);
}

.section-band {
  background: linear-gradient(
    90deg,
    hsl(var(--hue-primary), 45%, 34%) 0%,
    hsl(var(--hue-secondary), 60%, 40%) 100%
  );
}

.section-band > .container {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2.5rem;
}
