:root {
  --bg: #ffffff;
  --bg-elev: #f7f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6473;
  --border: #e5e7eb;
  --primary: #b91c1c;
  --primary-600: #991b1b;
  --primary-foreground: #ffffff;
  --accent: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --container: 1180px;
  --header-h: 72px;
  --font:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --transition: 200ms ease;
}
[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-elev: #111827;
  --surface: #131a26;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --border: #1f2937;
  --primary: #ef4444;
  --primary-600: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-600);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { 
  width: 115px;
  height: auto;
  max-width: 100%;  
}
.logo-link {
  display: inline-flex;
  align-items: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.primary-nav a,
.primary-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.primary-nav a.active,
.primary-nav .nav-item.has-dropdown.active > .nav-dropdown-toggle {
  color: var(--primary);
}
.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.primary-nav .nav-item.has-dropdown.active > .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-item.has-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown-toggle .chevron {
  transition: transform var(--transition);
}
.nav-item.has-dropdown:hover .nav-dropdown-toggle .chevron,
.nav-item.has-dropdown.open .nav-dropdown-toggle .chevron,
.nav-item.has-dropdown:focus-within .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
  z-index: 60;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.open .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}
.nav-dropdown a.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.nav-dropdown a.active::after {
  display: none;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-elev);
  border-color: var(--primary);
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elev);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ========== Page transitions ========== */
.app-main {
  min-height: calc(100vh - var(--header-h) - 280px);
}
.page {
  animation: fade 0.3s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(
      900px 400px at 90% -10%,
      rgba(245, 158, 11, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 380px at -10% 0%,
      rgba(185, 28, 28, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  color: var(--primary);
}
.hero p.lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 56ch;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.hero-card h3 {
  margin-top: 0;
}
.hero-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.hero-card li {
  margin: 0.35rem 0;
}

/* ========== Stats ========== */
.stats {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== Sections ========== */
.section {
  padding: 4.5rem 0;
}
.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section .eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.section .section-intro {
  color: var(--muted);
  max-width: 64ch;
  margin: 0.25rem 0 2.5rem;
}

/* ========== Cards / Services ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0.25rem 0 0.5rem;
}
.card p {
  color: var(--muted);
  margin: 0;
}

/* ========== Process timeline ========== */
.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.timeline-step h4 {
  margin: 0 0 0.25rem;
}
.timeline-step p {
  margin: 0;
  color: var(--muted);
}

/* ========== Forms ========== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 720px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-weight: 500;
  font-size: 0.95rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.field.valid input,
.field.valid textarea {
  border-color: var(--success);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}
.help-text {
  font-size: 0.825rem;
  color: var(--muted);
  min-height: 1.1em;
}
.field.invalid .help-text {
  color: var(--danger);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.success {
  background: color-mix(in srgb, var(--success) 10%, transparent);
  border-color: var(--success);
  color: var(--success);
}
.form-status.error {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: var(--danger);
  color: var(--danger);
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Contact info ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-info h3 {
  margin-top: 0;
}
.contact-info p {
  margin: 0.35rem 0;
  color: var(--muted);
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-grid h2 {
  margin-top: 0;
}
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.value-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.value-list strong {
  color: var(--primary);
}

/* ========== LPG Service page ========== */
.section-alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}
.lpg-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.lpg-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.lpg-feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.lpg-feature p {
  margin: 0;
  color: var(--muted);
}
.lpg-feature .value-list li {
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}
.lpg-choose-list {
  max-width: 900px;
}
.client-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}
.client-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-weight: 500;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.client-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ========== CTA banner ========== */
.cta-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #7f1d1d 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.cta-banner h3 {
  margin: 0;
  font-size: 1.5rem;
}
.cta-banner p {
  margin: 0.25rem 0 0;
  opacity: 0.9;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-banner .btn-primary:hover {
  background: #fef2f2;
  color: var(--primary-600);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 2rem;
}
.footer-logo {
  width: 115px;
  height: auto;
  max-width: 100%; 
}
.footer-grid h4 {
  margin-top: 0;
  font-size: 1rem; 
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.link-list a {
  color: var(--muted);
}
.link-list a:hover {
  color: var(--primary);
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

/* ========== Responsive ========== */
@media (max-width: 1023px) {
  .hero-grid,
  .about-grid,
  .contact-layout,
  .lpg-feature-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .logo {
    height: 40px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.open {
    transform: translateY(0);
  }
  .primary-nav a,
  .primary-nav .nav-dropdown-toggle {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
  }
  .primary-nav a:last-of-type {
    border-bottom: 0;
  }
  .nav-item.has-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-item.has-dropdown.active > .nav-dropdown-toggle::after,
  .primary-nav a.active::after {
    display: none;
  }
  .nav-dropdown {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: 0 0 0.35rem;
    padding: 0 0 0 0.75rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .nav-item.has-dropdown.open .nav-dropdown,
  .nav-item.has-dropdown:focus-within .nav-dropdown {
    display: block;
    transform: none;
  }
  /* Disable hover-open on touch; use click/tap via .open */
  .nav-item.has-dropdown:hover .nav-dropdown {
    display: none;
  }
  .nav-item.has-dropdown.open:hover .nav-dropdown {
    display: block;
  }
  .nav-dropdown a {
    white-space: normal;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-dropdown a:last-child {
    border-bottom: 0;
  }
  .theme-toggle {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    padding: 1.75rem;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
}

/* ========== Team Section ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.team-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.05);
}
.team-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 12%, transparent),
    var(--bg-elev)
  );
  color: var(--primary);
  padding: 1rem;
  text-align: center;
}
.team-avatar-initials {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.team-avatar-icon {
  margin-bottom: 0.25rem;
}
.team-name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.team-designation {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.team-bio {
  font-size: 0.925rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex-grow: 1;
}
.team-card-contact {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.team-card-contact .team-contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.team-card-contact .contact-value {
  font-size: 0.85rem;
  word-break: break-all;
}
.team-skills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.skill-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}
.team-details-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.925rem;
  padding: 0.65rem 1rem;
}

/* ========== Team Detail Page ========== */
.team-detail-page {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}
.team-back-bar {
  margin-bottom: 2.25rem;
}
.team-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}
.team-back-btn:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  transform: translateX(-2px);
}
.team-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)) 0%, var(--surface) 55%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 24px;
  padding: 2.75rem 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.team-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 14%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.team-detail-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 3px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.team-detail-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-detail-hero-content {
  position: relative;
  z-index: 1;
}
.team-detail-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.team-detail-hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.team-detail-designation {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.team-detail-intro {
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.75;
  margin: 0 0 2rem;
  max-width: 68ch;
}
.team-detail-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.team-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  align-items: start;
}
.team-detail-grid--sidebar-only {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.team-detail-main,
.team-detail-sidebar {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.team-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.team-detail-card:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}
.team-detail-card h3 {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.team-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}
.team-detail-card.contact-card {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 10%, var(--surface)) 0%,
    var(--surface) 100%
  );
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

/* Contact & Direct Communication */
.team-contact-list {
  display: grid;
  gap: 0.65rem;
}
.team-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition:
    border-color var(--transition),
    background var(--transition);
}
.team-contact-item:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background: color-mix(in srgb, var(--primary) 5%, var(--bg-elev));
}
.contact-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}
.contact-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-value:hover {
  color: var(--primary);
}

.team-skills-detail {
  margin-bottom: 0;
  gap: 0.55rem;
}
.team-skills-detail .skill-badge {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
}

/* Timeline / Experience */
.exp-timeline {
  display: grid;
  gap: 1.75rem;
  position: relative;
}
.exp-item {
  position: relative;
  padding: 0 0 0 1.75rem;
  border-left: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.exp-item:last-child {
  padding-bottom: 0;
}
.exp-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.exp-position {
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  color: var(--text);
  line-height: 1.35;
}
.exp-meta {
  font-size: 0.925rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.45;
}
.exp-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* Education & Affiliations */
.edu-list,
.affil-list {
  display: grid;
  gap: 0.85rem;
}
.edu-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.edu-item:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  transform: translateY(-1px);
}
.edu-degree {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.edu-meta {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.affil-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.affil-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Responsive Team Section */
@media (max-width: 1023px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-detail-grid {
    grid-template-columns: 1fr;
  }
  .team-detail-grid--sidebar-only {
    max-width: none;
  }
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-detail-page {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
  }
  .team-detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .team-detail-photo-wrap {
    max-width: 260px;
    margin: 0 auto;
  }
  .team-detail-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .team-detail-actions {
    justify-content: center;
  }
  .team-detail-card {
    padding: 1.5rem 1.35rem;
  }
  .team-detail-card h3 {
    font-size: 1.1rem;
  }
}


