/* Enhanced CSS with modern improvements */
:root {
  --brand: #ff6006;
  --brand-light: #ff7a2f;
  --brand-lighter: #ffaa5f;
  --bg: #0b0f17;
  --bg-lighter: #1a1f2e;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

/* Enhanced navbar styles */
.header-glass {
  background: rgba(11, 15, 23, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

.header-glass.is-scrolled {
  background: rgba(11, 15, 23, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Enhanced navigation links */
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.nav-link.nav-active {
  color: var(--brand) !important;
}

.nav-link.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--brand);
}

/* Enhanced hamburger menu */
.hamburger-lines {
  position: relative;
  width: 24px;
  height: 18px;
}

.hamburger-lines span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform-origin: left center;
  transition: all 0.3s ease;
}

.hamburger-lines span:nth-child(1) {
  top: 0px;
}

.hamburger-lines span:nth-child(2) {
  top: 8px;
}

.hamburger-lines span:nth-child(3) {
  top: 16px;
}

#hamburger.active .hamburger-lines span:nth-child(1) {
  transform: rotate(45deg);
  top: 3px;
  left: 8px;
}

#hamburger.active .hamburger-lines span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#hamburger.active .hamburger-lines span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
  left: 8px;
}

/* Enhanced mobile menu */
.mobile-menu {
  background: rgba(11, 15, 23, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.3s ease;
}

.mobile-nav-link {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--brand);
  padding-left: 1rem;
}

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

/* Enhanced buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: white;
  box-shadow: 0 8px 32px rgba(255, 96, 6, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass);
  color: white;
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}

/*--- CORRECTED HOVER RULE --- */
.btn-ghost:hover {
  background: transparent;
  transform: translateY(-2px);
  box-shadow: none;
}
/* --- END CORRECTED HOVER RULE ---

.btn-ghost:hover::before {
    opacity: 1;
}

/* Tech cards */
.tech-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 96, 6, 0.3);
  transform: translateY(-2px);
}

.tech-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(
      ellipse 1200px 600px at 65% 15%,
      rgba(255, 96, 6, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 800px 400px at 30% 80%,
      rgba(24, 34, 53, 0.8) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 1000px 500px at 90% 70%,
      rgba(14, 22, 39, 0.6) 0%,
      transparent 50%
    ),
    var(--bg);
}

#hero-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 23, 0.1) 0%,
    rgba(11, 15, 23, 0.3) 40%,
    rgba(11, 15, 23, 0.6) 100%
  );
}

/* Enhanced orbit animation */
.orbit-wrap {
  position: relative;
  width: clamp(340px, 36vw, 480px);
  aspect-ratio: 1/1;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 96, 6, 0.8) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 122, 47, 0.9) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    rgba(255, 96, 6, 0.8) 100%
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 0);
  box-shadow: inset 0 0 0 1px rgba(255, 96, 6, 0.4),
    0 0 24px rgba(255, 96, 6, 0.3), 0 0 48px rgba(255, 96, 6, 0.2);
  animation: orbit-rotate 20s linear infinite;
  z-index: 0;
}

@keyframes orbit-rotate {
  to {
    transform: rotate(360deg);
  }
}

.orbit-items {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  --orbit-radius: clamp(125px, 16vw, 230px);
  transform: rotate(var(--angle)) translate(var(--orbit-radius))
    rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
}

.orbit-chip {
  display: block;
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  object-fit: contain;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.orbit-item:hover .orbit-chip {
  transform: translateZ(0) scale(1.1);
  border-color: rgba(255, 96, 6, 0.6);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 96, 6, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
}

.orbit-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.center-badge {
  width: clamp(96px, 11vw, 130px);
  height: clamp(96px, 11vw, 130px);
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: radial-gradient(
      50% 50% at 50% 40%,
      rgba(255, 96, 6, 0.12),
      rgba(255, 96, 6, 0.04) 60%,
      transparent 70%
    ),
    rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 96, 6, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(255, 96, 6, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.center-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--brand),
    var(--brand-light),
    var(--brand),
    var(--brand-light)
  );
  z-index: -1;
  animation: orbit-rotate 15s linear infinite reverse;
}

.center-badge img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 1;
}

/* Animation utilities */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out;
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .orbit-wrap {
    width: clamp(280px, 45vw, 360px);
  }

  .orbit-chip {
    width: clamp(36px, 6vw, 48px);
    height: clamp(36px, 6vw, 48px);
    padding: 8px;
  }

  .center-badge {
    width: clamp(80px, 12vw, 100px);
    height: clamp(80px, 12vw, 100px);
  }
}

@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .tech-card {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

  .tech-icon {
    width: 2rem;
    height: 2rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }
}

/* Improved scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-light));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
}

/* Selection styling */
::selection {
  background: rgba(255, 96, 6, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(255, 96, 6, 0.3);
  color: white;
}

/* Focus styles for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  to {
    left: 100%;
  }
}

/* Enhanced glass effect utilities */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

.glass-card-hover:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 96, 6, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Gradient text utilities */
.gradient-text-brand {
  background: linear-gradient(
    135deg,
    var(--brand),
    var(--brand-light),
    var(--brand-lighter)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Enhanced hero stats animation */
@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-stat {
  animation: count-up 0.6s ease-out;
  animation-fill-mode: both;
}

.hero-stat:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-stat:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-stat:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-stat:nth-child(4) {
  animation-delay: 0.4s;
}

/* Improved form styling (for future use) */
.form-input {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 96, 6, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Print styles */
@media print {
  .header-glass,
  .btn,
  #hamburger,
  .mobile-menu {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-bg,
  .bg-overlay {
    display: none !important;
  }
}

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

  .orbit-ring,
  .center-badge::before {
    animation: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header-glass {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: white;
  }

  .btn-ghost {
    border-color: white;
  }

  .glass-card {
    border-color: rgba(255, 255, 255, 0.5);
  }
}

/* Dark mode support (if implementing theme switching) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-lighter: #1a1f2e;
  }
}

/* --- NEW STYLES FOR "WHY CHOOSE US" SECTION --- */

/* Subtle background grid pattern */
/* ---------- Why Choose Us: Compact, modern ---------- */
/* Two equal columns, matched height */
.wc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .wc-two-col {
    grid-template-columns: 1fr;
  }
}

/* Image frame (left) */
.wc-frame {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  display: flex;
}
.wc-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10; /* consistent vertical rhythm */
}
@media (min-width: 1025px) {
  /* match the visual height of the feature column on large screens */
  .wc-frame {
    min-height: 520px;
  }
  .wc-image {
    height: 100%;
    aspect-ratio: auto;
  }
}
.wc-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-radius: 0.5rem;
  background: rgba(11, 15, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

/* Feature column container uses a tidy grid */
/* Feature column stacked vertically */
.wc-features {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between cards */
  align-items: stretch; /* cards take full width */
  justify-content: flex-start;
}
@media (max-width: 640px) {
  .wc-features {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.wc-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  padding: 0.9rem;
  width: 100%;
  width: 100%;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.wc-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 96, 6, 0.35);
}

/* Card head: icon + title + plus */
.wc-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}
.wc-chip {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.wc-title {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.1px;
  font-size: 1.02rem;
  line-height: 1.25;
}

/* Plus button */
.wc-card__toggle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.wc-card__toggle:hover {
  background: rgba(255, 96, 6, 0.12);
  border-color: rgba(255, 96, 6, 0.45);
}
.wc-plus,
.wc-plus::before {
  content: "";
  display: block;
  background: #fff;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.wc-plus::before {
  position: absolute;
  transform: rotate(90deg);
}

/* Body (collapsed by default) */
.wc-card__body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Show on hover */
.wc-card:hover .wc-card__body {
  max-height: 200px; /* adjust based on content length */
  opacity: 1;
  margin-top: 0.5rem;
}
.wc-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.6rem 0.2rem 0.2rem 0.2rem;
}

/* Open state */
.wc-card[data-open="true"] .wc-card__body {
  max-height: 200px; /* enough for 3-4 lines */
  opacity: 1;
}
.wc-card[data-open="true"] .wc-plus {
  transform: rotate(45deg); /* turns plus into X */
  background: var(--brand);
}
.wc-card[data-open="true"] .wc-plus::before {
  background: var(--brand);
}
/* Smooth transitions */
.wc-frame {
  will-change: transform, box-shadow;
  transition: box-shadow 0.45s ease, border-color 0.3s ease,
    transform 0.45s ease;
}
.wc-image {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.6s ease;
}

/* Hover effects for the image frame */
.wc-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft sheen + subtle warm vignette */
  background: linear-gradient(
      110deg,
      transparent 35%,
      rgba(255, 255, 255, 0.14) 50%,
      transparent 65%
    ),
    radial-gradient(
      120% 60% at 20% 10%,
      rgba(255, 96, 6, 0.08),
      transparent 60%
    );
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  mix-blend-mode: screen;
}

.wc-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 96, 6, 0.22) inset,
    0 0 36px rgba(255, 96, 6, 0.18) inset;
  border-color: rgba(255, 255, 255, 0.18);
}
.wc-frame:hover::after {
  transform: translateX(120%);
}
.wc-frame:hover .wc-image {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1.02);
}

/* Caption lift */
.wc-caption {
  transition: transform 0.35s ease, background 0.35s ease, opacity 0.35s ease;
  opacity: 0.9;
}
.wc-frame:hover .wc-caption {
  transform: translateY(-3px);
  background: rgba(11, 15, 23, 0.7);
  opacity: 1;
}
/* --- END NEW STYLES FOR "WHY CHOOSE US" SECTION --- */

/* =========================================================
   Astronaut scene inside "Who we are?" (about-projects left)
   ========================================================= */
/* ==========================
   Astronaut inside Who we are?
   ========================== */

/* Reserve space *below* the badges so nothing overlaps text */
#about-projects .wc-bottom-canvas {
  position: relative;
  margin-top: 1rem;
  height: 210px; /* space for the astronaut */
  overflow: hidden;
  pointer-events: none; /* purely decorative */
}

@media (min-width: 1024px) {
  #about-projects .wc-bottom-canvas {
    height: 250px;
  }
}

/* Starfield that gently pans */
#about-projects .wc-bottom-canvas .astro-stars {
  position: absolute;
  inset: -18%;
  background: radial-gradient(
      2px 2px at 15% 20%,
      rgba(255, 255, 255, 0.45) 40%,
      transparent 60%
    ),
    radial-gradient(
      2px 2px at 72% 34%,
      rgba(255, 255, 255, 0.35) 40%,
      transparent 60%
    ),
    radial-gradient(
      1.6px 1.6px at 28% 78%,
      rgba(255, 255, 255, 0.35) 40%,
      transparent 60%
    ),
    radial-gradient(
      1.4px 1.4px at 86% 62%,
      rgba(255, 255, 255, 0.35) 40%,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 55% 10%,
      rgba(255, 255, 255, 0.3) 40%,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 42% 58%,
      rgba(255, 255, 255, 0.3) 40%,
      transparent 60%
    );
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  opacity: 0.35;
  animation: astro-star-pan 40s linear infinite;
}

/* Soft ground glow under the astronaut */
#about-projects .wc-bottom-canvas .astro-glow {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 380px;
  height: 260px;
  transform: translateX(-50%);
  filter: blur(18px);
  opacity: 0.6;
}

/* The astronaut itself */
#about-projects .wc-bottom-canvas .astro-float {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(42%, 320px);
  height: auto;
  animation: astro-bob 6.5s ease-in-out infinite;
  transition: transform 0.4s ease, filter 0.35s ease, opacity 0.35s ease;
  opacity: 0.98;
  z-index: 1;
}

/* Tasteful lift when hovering the whole card */
#about-projects .glass-card.group:hover .wc-bottom-canvas .astro-float {
  transform: translate(-50%, -52%) scale(1.04);
}

/* Animations */
@keyframes astro-star-pan {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-4%, -6%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes astro-bob {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg);
  }
  50% {
    transform: translate(-50%, -54%) rotate(2deg);
  }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  #about-projects .wc-bottom-canvas .astro-float,
  #about-projects .wc-bottom-canvas .astro-stars {
    animation: none !important;
  }
}

/* ---------- Starfield layers ---------- */
/* --- Smooth, slow starfield drift + twinkle --- */
/* ===== Interaction: minimalist starfield ===== */
#interaction {
  position: relative;
}

/* Base chip */
#interaction .chip {
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover state */
#interaction .chip:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(255, 96, 6, 0.65);
  background: rgba(255, 96, 6, 0.1);
  box-shadow: 0 6px 14px -4px rgba(255, 96, 6, 0.45);
}

/* Active (click) feedback */
#interaction .chip:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px -3px rgba(255, 96, 6, 0.55);
}

/* Shared star layer props */

/* ===== Clients / Partners ===== */
#clients .clients-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}
#clients .clients-track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: 0.75rem;
  white-space: nowrap;
  will-change: transform;
  animation: clients-scroll 28s linear infinite;
}
#clients .clients-marquee[data-dir="right"] .clients-track {
  animation-direction: reverse;
}
#clients .clients-marquee .clients-track + .clients-track {
  margin-left: clamp(1.5rem, 4vw, 3rem);
}

#clients .client {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(140px, 15vw, 200px);
  height: clamp(86px, 9vw, 110px); /* taller to fit caption */
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 6px 22px rgba(0, 0, 0, 0.18);
}
#clients .client:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 96, 6, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#clients .client img {
  display: block;
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}
#clients .client-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

#clients .client-logo {
  display: block;
  max-height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

/* Text logo fallback (monogram) */
#clients .client-fallback {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 96, 6, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 96, 6, 0.4);
  box-shadow: 0 8px 22px rgba(255, 96, 6, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  user-select: none;
}

/* Pause on hover */
#clients .clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  #clients .clients-track {
    animation: none !important;
  }
}

/* Wrap each item: vertical stack (card + tiny caption) */
#clients .client-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: clamp(130px, 14vw, 180px);
  /* this min-width drives marquee spacing now */
}

/* Card ONLY contains the logo */
#clients .client {
  width: 100%;
  height: clamp(68px, 8vw, 92px); /* a bit shorter since caption moved out */
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 6px 22px rgba(0, 0, 0, 0.18);
}

#clients .client:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 96, 6, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Smaller logos (crisper inside the shorter card) */
#clients .client-logo {
  display: block;
  max-height: 28px; /* reduced from 34/36 */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

/* Text fallback block for no-logo entries */
#clients .client-fallback {
  display: inline-grid;
  place-items: center;
  width: 38px; /* a touch smaller */
  height: 38px;
  border-radius: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 96, 6, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 96, 6, 0.4);
  box-shadow: 0 8px 22px rgba(255, 96, 6, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  user-select: none;
}

/* Tiny caption OUTSIDE the card */
#clients .client-caption {
  margin-top: 0.4rem;
  font-size: 0.72rem; /* smaller */
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  max-width: 12rem; /* allow 2 lines for long names */
  white-space: normal;
}

/* (Optional) tighten marquee spacing now that items are shorter */
#clients .clients-track {
  gap: clamp(1.25rem, 3.2vw, 2.25rem);
}

/* Reusable pill for stacks (works on dark bg) */
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.stack-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 96, 6, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

/* Photo frame with subtle glass & shine */
.team-photo {
  aspect-ratio: 16/10;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: team-shine 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes team-shine {
  0%,
  10% {
    transform: translateX(-120%);
  }
  40% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}
