/* Global theme: animations, backgrounds, shared components */

:root {
  --cat-energy: #10b981;
  --cat-finance: #f59e0b;
  --cat-lease: #8b5cf6;
  --cat-default: #3b82f6;
  --cat-enterprise: #6366f1;
  --cat-other: #64748b;
  --glow-blue: rgba(59, 130, 246, 0.45);
  --glow-purple: rgba(139, 92, 246, 0.4);
  --glow-cyan: rgba(34, 211, 238, 0.35);
}

/* ===== Animations ===== */
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(16px, -22px) scale(1.08); }
  66% { transform: translate(-12px, 14px) scale(0.95); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.08); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes text-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(147,197,253,0.6)); }
}

@keyframes border-spin {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  25% { transform: translate(30px, -20px) rotate(5deg); opacity: 0.7; }
  50% { transform: translate(-20px, 30px) rotate(-3deg); opacity: 0.55; }
  75% { transform: translate(15px, 15px) rotate(2deg); opacity: 0.65; }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.4), 0 4px 15px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 0 35px rgba(139,92,246,0.55), 0 4px 20px rgba(0,0,0,0.15); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-icon-bounce { animation: icon-bounce 2s ease-in-out infinite; }
.animate-text-glow { animation: text-glow 3s ease-in-out infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Aurora background ===== */
.bg-mesh {
  position: relative;
  background: #f0f4ff;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-mesh::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(167, 139, 250, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 70% at 50% 90%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(251, 191, 36, 0.08), transparent 50%);
  animation: aurora-drift 20s ease-in-out infinite;
}

.bg-mesh::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(59,130,246,0.35), transparent),
    radial-gradient(1px 1px at 30% 75%, rgba(139,92,246,0.3), transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(34,211,238,0.35), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(251,191,36,0.25), transparent),
    radial-gradient(1px 1px at 90% 85%, rgba(59,130,246,0.3), transparent),
    radial-gradient(1.5px 1.5px at 20% 45%, rgba(167,139,250,0.3), transparent),
    radial-gradient(1px 1px at 65% 90%, rgba(52,211,153,0.25), transparent);
  animation: star-twinkle 4s ease-in-out infinite alternate;
}

.bg-mesh > main,
.bg-mesh > div:not(.page-orbs):not(.sticky) {
  position: relative;
  z-index: 1;
}

.bg-mesh > .sticky {
  position: relative;
  z-index: 50;
}

.bg-grid {
  background-image: radial-gradient(circle, rgba(191,219,254,0.6) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ===== Hero ===== */
.hero-aurora {
  position: relative;
  background: linear-gradient(135deg, #0c1a4a 0%, #1e1b6e 30%, #312e81 55%, #1e3a8a 100%);
  background-size: 300% 300%;
  animation: gradient-shift 10s ease infinite;
}

.hero-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(16,185,129,0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.3), transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(59,130,246,0.2), transparent 35%);
  animation: aurora-drift 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-border {
  position: relative;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
  background-size: 300% 300%;
  animation: gradient-shift 4s ease infinite;
  box-shadow: 0 0 40px rgba(99,102,241,0.35), 0 20px 50px rgba(30,58,138,0.3);
}

.hero-glow-border > .hero-inner {
  border-radius: calc(1rem - 2px);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-blob-1 {
  width: 320px; height: 320px;
  background: rgba(56, 189, 248, 0.55);
  top: -80px; right: 5%;
  animation: blob-float 7s ease-in-out infinite;
}

.hero-blob-2 {
  width: 240px; height: 240px;
  background: rgba(167, 139, 250, 0.5);
  bottom: -60px; left: 0%;
  animation: blob-float 9s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 180px; height: 180px;
  background: rgba(52, 211, 153, 0.45);
  top: 30%; left: 35%;
  animation: blob-float 11s ease-in-out infinite 1.5s;
}

.hero-blob-4 {
  width: 140px; height: 140px;
  background: rgba(251, 191, 36, 0.35);
  top: 10%; right: 30%;
  animation: blob-float 8s ease-in-out infinite 3s;
}

.hero-illustration-wrap {
  position: relative;
}

.hero-illustration-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  animation: pulse-ring 3s ease-in-out infinite;
}

.hero-illustration-wrap::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.2), transparent 70%);
  animation: pulse-ring 3s ease-in-out infinite 0.5s;
}

/* ===== Buttons ===== */
.btn-glow {
  position: relative;
  animation: btn-glow-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.btn-glow:hover {
  transform: scale(1.04);
  animation: none;
  box-shadow: 0 0 40px rgba(139,92,246,0.6), 0 8px 25px rgba(0,0,0,0.15) !important;
}

.btn-neon {
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.25s ease;
}
.btn-neon:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,0.5), 0 4px 20px rgba(59,130,246,0.3);
  transform: translateY(-1px);
}

/* ===== Marquee stats strip ===== */
.stats-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.stats-marquee {
  display: flex;
  gap: 2rem;
  animation: marquee-scroll 25s linear infinite;
  width: max-content;
}

.stats-marquee:hover { animation-play-state: paused; }

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== Cards ===== */
.card-shine {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.card-shine::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(59,130,246,0.3) 50%, transparent 70%);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card-shine:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(59,130,246,0.1);
}

.card-shine:hover::before { opacity: 1; animation: shimmer 1.5s ease; }
.card-shine:hover::after { opacity: 1; animation: shimmer 1.5s ease 0.1s; }

/* Gradient border cards */
.gradient-border-card {
  position: relative;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  overflow: hidden;
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--card-accent, #3b82f6), transparent 40%, var(--card-accent2, #8b5cf6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.gradient-border-card:hover::before { opacity: 1; }

.card-accent-emerald { --card-accent: #10b981; --card-accent2: #34d399; }
.card-accent-amber { --card-accent: #f59e0b; --card-accent2: #fbbf24; }
.card-accent-violet { --card-accent: #8b5cf6; --card-accent2: #c084fc; }
.card-accent-blue { --card-accent: #3b82f6; --card-accent2: #60a5fa; }

.feature-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon {
  animation: icon-bounce 0.5s ease;
  box-shadow: 0 0 20px var(--icon-glow, rgba(59,130,246,0.3));
}

.feature-icon-glow-emerald { --icon-glow: rgba(16,185,129,0.4); }
.feature-icon-glow-amber { --icon-glow: rgba(245,158,11,0.4); }
.feature-icon-glow-violet { --icon-glow: rgba(139,92,246,0.4); }
.feature-icon-glow-blue { --icon-glow: rgba(59,130,246,0.4); }

/* ===== Project cards ===== */
.project-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
}

.project-card-enhanced::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  box-shadow: inset 0 0 30px rgba(59,130,246,0.08);
  pointer-events: none;
}

.project-card-enhanced:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(99,102,241,0.15);
}

.project-card-enhanced:hover::after { opacity: 1; }

.project-card-stripe {
  height: 4px;
  width: 100%;
  position: relative;
}

.project-card-stripe::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: blur(4px);
  opacity: 0.6;
}

.stripe-energy { background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7); }
.stripe-energy::after { background: inherit; }
.stripe-finance { background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d); }
.stripe-finance::after { background: inherit; }
.stripe-lease { background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd); }
.stripe-lease::after { background: inherit; }
.stripe-enterprise { background: linear-gradient(90deg, #6366f1, #818cf8, #a5b4fc); }
.stripe-enterprise::after { background: inherit; }
.stripe-default { background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd); }
.stripe-default::after { background: inherit; }
.stripe-other { background: linear-gradient(90deg, #64748b, #94a3b8, #cbd5e1); }
.stripe-other::after { background: inherit; }
.stripe-govt { background: linear-gradient(90deg, #e11d48, #fb7185, #fda4af); }
.stripe-govt::after { background: inherit; }

.project-card-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-enhanced:hover .project-card-cover img {
  transform: scale(1.06);
}

.project-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.35) 0%, transparent 50%);
  pointer-events: none;
}

.project-cover-tag {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: calc(100% - 1.2rem);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.project-cover-tag svg {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.project-cover-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      hsla(var(--hue, 210), 72%, 42%, 0.50) 0%,
      hsla(calc(var(--hue, 210) + 35), 60%, 30%, 0.28) 50%,
      transparent 100%),
    linear-gradient(to top, rgba(15,23,42,0.40) 0%, transparent 42%);
}

.project-cover-title {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 0.55rem;
  z-index: 3;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6), 0 0 1px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-energy, .cover-finance, .cover-lease, .cover-enterprise, .cover-other, .cover-default, .cover-govt {
  background: #e2e8f0;
  border-bottom: none;
}

.cover-energy::before, .cover-finance::before, .cover-lease::before,
.cover-enterprise::before, .cover-other::before, .cover-default::before, .cover-govt::before {
  display: none;
}

/* Hero with gradient background */
.hero-photo-section {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  background: linear-gradient(135deg, #0c1a4a 0%, #1e1b6e 32%, #312e81 58%, #1e3a8a 100%);
  background-size: 200% 200%;
  animation: gradient-shift 12s ease infinite;
}

.hero-photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 80%, rgba(16,185,129,0.22), transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(139,92,246,0.28), transparent 42%),
    radial-gradient(circle at 60% 55%, rgba(59,130,246,0.20), transparent 38%);
  animation: aurora-drift 14s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero-photo-section { min-height: 360px; }
}

.hero-photo-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
}

@media (min-width: 1024px) {
  .hero-photo-grid { display: grid; }
}

.hero-photo-grid-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.2);
}

.hero-photo-grid-sub {
  aspect-ratio: 4 / 3;
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.15);
}

.hero-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-photo-grid > div:hover img {
  transform: scale(1.04);
}

/* Caption overlay on photos */
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.85rem 0.7rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.25) 60%, transparent 100%);
  pointer-events: none;
}

.photo-caption .photo-caption-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,0.9);
  flex-shrink: 0;
}

.hero-photo-grid-sub .photo-caption {
  font-size: 0.625rem;
  padding: 0.6rem 0.55rem 0.4rem;
}

/* Feature card photo header */
.feature-photo {
  height: 5.5rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .feature-photo { height: 6.5rem; }
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-photo img {
  transform: scale(1.06);
}

.feature-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 60%);
}

.feature-photo .feature-icon {
  position: absolute;
  bottom: 0.5rem;
  left: 0.75rem;
  z-index: 2;
  margin-bottom: 0 !important;
}

/* Carousel with photo backdrop */
.carousel-photo-slide {
  position: relative;
  min-height: 160px;
}

.carousel-photo-slide .slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-photo-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.65) 55%, rgba(30,58,138,0.5) 100%);
}

.carousel-photo-slide .slide-content {
  position: relative;
  z-index: 2;
}


/* ===== Stat cards ===== */
.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.25s; }
.stat-card:nth-child(4) { animation-delay: 0.35s; }

/* ===== Auth ===== */
.auth-split { min-height: calc(100vh - 200px); }

.auth-glow-wrap {
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  box-shadow: 0 0 50px rgba(99,102,241,0.25), 0 25px 60px rgba(30,58,138,0.15);
}

.auth-glow-wrap > .auth-glow-inner {
  border-radius: calc(1rem - 2px);
  overflow: hidden;
}

.auth-brand-panel {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #1e3a8a 100%);
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 45% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 75% 35%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.4), transparent);
  animation: star-twinkle 3s ease-in-out infinite alternate;
  pointer-events: none;
}

.auth-brand-panel .hero-blob-1 { background: rgba(255,255,255,0.12); filter: blur(80px); }
.auth-brand-panel .hero-blob-2 { background: rgba(167,139,250,0.35); filter: blur(80px); }

/* ===== Footer ===== */
.footer-wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: -1px;
}

.footer-link {
  position: relative;
  transition: color 0.2s;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

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

/* ===== Carousel ===== */
.carousel-aurora {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #1e3a8a 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  box-shadow: 0 8px 32px rgba(49,46,129,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.carousel-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.carousel-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: dot-pulse 3s ease-in-out infinite;
}

.carousel-particle-lg { width: 6px; height: 6px; }
.carousel-particle-sm { width: 3px; height: 3px; }

/* ===== Detail page ===== */
.detail-glow-wrap {
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  box-shadow: 0 12px 40px rgba(49,46,129,0.2);
}

.detail-glow-wrap > .detail-glow-inner {
  border-radius: calc(1rem - 2px);
  overflow: hidden;
  background: white;
}

.detail-banner { position: relative; overflow: hidden; }

.detail-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.detail-section {
  border-left: 3px solid #3b82f6;
  padding-left: 1rem;
}

.detail-section-energy { border-color: #10b981; }
.detail-section-finance { border-color: #f59e0b; }
.detail-section-lease { border-color: #8b5cf6; }

/* ===== Glass & pills ===== */
.glass-search {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #1e293b;
  transition: all 0.25s ease;
}

.glass-search::placeholder { color: #94a3b8; }

.glass-search:focus {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.auth-mobile-banner {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95, #1e3a8a);
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  box-shadow: 0 4px 20px rgba(49,46,129,0.3);
}

/* Hotline bar glow */
.hotline-bar {
  background: linear-gradient(90deg, #0f172a, #1e3a8a, #312e81);
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
  position: relative;
}

.hotline-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.5), rgba(167,139,250,0.5), transparent);
}

/* Section title */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.25rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,0.3), transparent);
}

/* Empty state glow */
.empty-state-glow {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99,102,241,0.15);
  box-shadow: 0 8px 32px rgba(99,102,241,0.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Project bar (horizontal list) ===== */
.project-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 0.85rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}

.project-bar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37,99,235,0.16), 0 0 0 1px rgba(99,102,241,0.12);
}

.project-bar-stripe {
  width: 5px;
  flex-shrink: 0;
}

.project-bar-thumb {
  position: relative;
  width: 118px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e2e8f0;
}

@media (min-width: 640px) {
  .project-bar-thumb { width: 190px; }
}

.project-bar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

.project-bar:hover .project-bar-thumb img {
  transform: scale(1.06);
}

.project-bar-tag {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: calc(100% - 0.8rem);
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.project-bar-tag svg {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.project-bar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.9rem;
}

@media (min-width: 640px) {
  .project-bar-body { padding: 0.85rem 1.1rem; }
}

.project-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.project-bar-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.1rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
}

.project-bar-date {
  font-size: 0.7rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.project-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.project-bar:hover .project-bar-title {
  color: #2563eb;
}

@media (min-width: 640px) {
  .project-bar-title { font-size: 1.05rem; }
}

.project-bar-intro {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.project-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-bar-author {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: auto;
}

/* Project bar enrichment */
.project-bar { min-height: 116px; }
@media (min-width: 640px) { .project-bar { min-height: 132px; } }

.project-bar-ident {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.08rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.project-bar-ident-funder { color: #b45309; background: #fef3c7; }
.project-bar-ident-demander { color: #047857; background: #d1fae5; }

.project-bar-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-bar-loc svg { width: 0.78rem; height: 0.78rem; flex-shrink: 0; color: #64748b; }

.project-bar-budget {
  font-size: 0.72rem;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.project-bar-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 1.7rem;
  flex-shrink: 0;
  color: #cbd5e1;
  padding-right: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.project-bar:hover .project-bar-chevron { color: #3b82f6; transform: translateX(3px); }
.project-bar-chevron svg { width: 1.1rem; height: 1.1rem; }

/* ===== Hero side photo columns ===== */
.hero-side-photos {
  flex-direction: column;
  gap: 0.6rem;
  width: 200px;
  flex-shrink: 0;
  justify-content: center;
}

@media (min-width: 1280px) {
  .hero-side-photos { width: 230px; }
}

.hero-side-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.18);
}

.hero-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-side-photo:hover img {
  transform: scale(1.05);
}
