/* ═══════════ PORTAL 3D — Theme Variables ═══════════ */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, .05);
  --bg-card-hover: rgba(255, 255, 255, .08);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, .7);
  --text-muted: rgba(255, 255, 255, .4);
  --border-card: rgba(255, 255, 255, .08);
  --border-card-hover: rgba(255, 255, 255, .15);
  --accent: #14b8a6;
  --accent2: #6366f1;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, .3);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, .4);
  --ticker-bg: rgba(255, 255, 255, .03);
  --footer-bg: rgba(0, 0, 0, .3);
  --glass-blur: 20px;
  --particle-color1: rgba(20, 130, 135, .15);
  --particle-color2: rgba(99, 102, 241, .1)
}

[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, .75);
  --bg-card-hover: rgba(255, 255, 255, .9);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-card: rgba(0, 0, 0, .08);
  --border-card-hover: rgba(0, 0, 0, .15);
  --accent: #0d9488;
  --accent2: #4f46e5;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, .08);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, .12);
  --ticker-bg: rgba(0, 0, 0, .03);
  --footer-bg: rgba(0, 0, 0, .05);
  --glass-blur: 16px;
  --particle-color1: rgba(20, 130, 135, .08);
  --particle-color2: rgba(99, 102, 241, .06)
}

/* ═══════════ Reset & Base ═══════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body.portal-3d {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .5s, color .5s
}

/* ═══════════ Animated Background ═══════════ */
.p3d-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  transition: background .5s
}

.p3d-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, var(--particle-color1) 0%, transparent 50%), radial-gradient(ellipse at 70% 60%, var(--particle-color2) 0%, transparent 50%);
  animation: bgDrift 20s ease-in-out infinite alternate
}

@keyframes bgDrift {
  0% {
    transform: translate(0, 0) rotate(0)
  }

  100% {
    transform: translate(-3%, 2%) rotate(2deg)
  }
}

/* Particles */
.p3d-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0
}

.p3d-particle:nth-child(1) {
  width: 4px;
  height: 4px;
  background: var(--accent);
  top: 12%;
  left: 18%;
  animation: pFloat1 8s infinite
}

.p3d-particle:nth-child(2) {
  width: 3px;
  height: 3px;
  background: var(--accent2);
  top: 68%;
  left: 12%;
  animation: pFloat2 10s 1s infinite
}

.p3d-particle:nth-child(3) {
  width: 5px;
  height: 5px;
  background: var(--accent);
  top: 35%;
  left: 78%;
  animation: pFloat1 12s 2s infinite
}

.p3d-particle:nth-child(4) {
  width: 3px;
  height: 3px;
  background: var(--accent2);
  top: 82%;
  left: 65%;
  animation: pFloat2 9s .5s infinite
}

.p3d-particle:nth-child(5) {
  width: 4px;
  height: 4px;
  background: var(--accent);
  top: 22%;
  left: 88%;
  animation: pFloat1 11s 3s infinite
}

.p3d-particle:nth-child(6) {
  width: 2px;
  height: 2px;
  background: var(--accent2);
  top: 55%;
  left: 42%;
  animation: pFloat2 7s 1.5s infinite
}

.p3d-particle:nth-child(7) {
  width: 3px;
  height: 3px;
  background: var(--accent);
  top: 90%;
  left: 30%;
  animation: pFloat1 9s 2.5s infinite
}

.p3d-particle:nth-child(8) {
  width: 4px;
  height: 4px;
  background: var(--accent2);
  top: 8%;
  left: 55%;
  animation: pFloat2 13s .8s infinite
}

@keyframes pFloat1 {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0)
  }

  20% {
    opacity: .7;
    transform: translateY(-30px) scale(1)
  }

  80% {
    opacity: .4;
    transform: translateY(-140px) scale(.7)
  }

  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0)
  }
}

@keyframes pFloat2 {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0)
  }

  25% {
    opacity: .6;
    transform: translate(15px, -40px) scale(1)
  }

  75% {
    opacity: .3;
    transform: translate(-20px, -110px) scale(.6)
  }

  100% {
    opacity: 0;
    transform: translate(10px, -170px) scale(0)
  }
}

/* ═══════════ Theme Toggle ═══════════ */
.p3d-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15)
}

.p3d-theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(20, 130, 135, .2)
}

.p3d-theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  transition: stroke .3s
}

.p3d-theme-toggle .icon-sun {
  display: none
}

.p3d-theme-toggle .icon-moon {
  display: block
}

[data-theme="light"] .p3d-theme-toggle .icon-sun {
  display: block
}

[data-theme="light"] .p3d-theme-toggle .icon-moon {
  display: none
}

/* ═══════════ Social Bar ═══════════ */
.p3d-social {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  gap: 8px
}

.p3d-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: all .3s
}

.p3d-social a:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05)
}

/* ═══════════ Main Content ═══════════ */
.p3d-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden
}

/* ═══════════ Header / Hero ═══════════ */
.p3d-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 22px 40px;
  margin: 0 0 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  animation: fadeUp .8s ease-out
}

.p3d-seal {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(20, 130, 135, .3), rgba(99, 102, 241, .2));
  margin: 0 auto 24px;
  position: relative;
  animation: sealGlow 3s ease-in-out infinite alternate
}

.p3d-seal::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(20, 130, 135, .3), transparent, rgba(99, 102, 241, .2), transparent);
  animation: sealSpin 8s linear infinite;
  z-index: 0
}

.p3d-seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 6px
}

@keyframes sealGlow {
  0% {
    box-shadow: 0 0 30px rgba(20, 130, 135, .15)
  }

  100% {
    box-shadow: 0 0 50px rgba(20, 130, 135, .3)
  }
}

@keyframes sealSpin {
  to {
    transform: rotate(360deg)
  }
}

.p3d-hero-govt {
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px
}

.p3d-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px
}

.p3d-hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.p3d-hero-dept {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 8px
}

.p3d-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(20, 130, 135, .1);
  border: 1px solid rgba(20, 130, 135, .2);
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600
}

.p3d-hero-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2s infinite
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(20, 130, 135, .4)
  }

  50% {
    opacity: .8;
    box-shadow: 0 0 0 6px transparent
  }
}

/* ═══════════ Top Banner ═══════════ */
.p3d-top-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: clamp(340px, 42vw, 560px);
  overflow: hidden;
  border-bottom: 1px solid var(--border-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01))
}

.p3d-top-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, .18) 0%, rgba(10, 14, 26, .06) 40%, rgba(10, 14, 26, .28) 100%);
  pointer-events: none;
  z-index: 1
}

.p3d-top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  filter: saturate(.9) brightness(1.05) contrast(1.03);
  display: block
}

/* ═══════════ Ticker ═══════════ */
.p3d-ticker {
  margin: 24px 0 40px;
  padding: 12px 0;
  background: var(--ticker-bg);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  overflow: hidden;
  position: relative
}

.p3d-ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center
}

.p3d-ticker-track {
  display: flex;
  gap: 40px;
  animation: tickerScroll 30s linear infinite;
  padding-left: 140px;
  white-space: nowrap
}

.p3d-ticker-track span {
  color: var(--text-secondary);
  font-size: .82rem
}

.p3d-ticker-track .sep {
  color: var(--accent);
  font-weight: 700
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ═══════════ Section Title ═══════════ */
.p3d-section-title {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeUp .8s .3s ease-out backwards
}

.p3d-section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px
}

.p3d-section-title p {
  color: var(--text-muted);
  font-size: .88rem
}

/* ═══════════ Cards Grid ═══════════ */
.p3d-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  perspective: 1200px
}

/* ═══════════ 3D Card ═══════════ */
.p3d-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
  animation: cardIn .6s ease-out backwards
}

.p3d-card:nth-child(1) {
  animation-delay: .1s
}

.p3d-card:nth-child(2) {
  animation-delay: .2s
}

.p3d-card:nth-child(3) {
  animation-delay: .3s
}

.p3d-card:nth-child(4) {
  animation-delay: .4s
}

.p3d-card:nth-child(5) {
  animation-delay: .5s
}

.p3d-card:nth-child(6) {
  animation-delay: .6s
}

.p3d-card:nth-child(7) {
  animation-delay: .7s
}

.p3d-card:nth-child(8) {
  animation-delay: .8s
}

.p3d-card:nth-child(9) {
  animation-delay: .9s
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(8deg) scale(.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1)
  }
}

.p3d-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-card-hover)
}

.p3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  transition: left .6s;
  pointer-events: none;
  z-index: 5
}

.p3d-card:hover::before {
  left: 150%
}

.p3d-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-gradient);
  transition: height .3s
}

.p3d-card:hover .p3d-card-accent {
  height: 4px
}

.p3d-card-img {
  height: 160px;
  overflow: hidden;
  position: relative
}

.p3d-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s
}

.p3d-card:hover .p3d-card-img img {
  transform: scale(1.08)
}

.p3d-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-primary) 100%);
  opacity: .7;
  transition: opacity .3s
}

.p3d-card:hover .p3d-card-img::after {
  opacity: .5
}

.p3d-card-body {
  padding: 20px;
  position: relative
}

.p3d-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -38px 0 14px;
  position: relative;
  z-index: 3;
  border: 2px solid var(--border-card);
  backdrop-filter: blur(10px);
  transition: all .3s
}

.p3d-card:hover .p3d-card-icon {
  transform: scale(1.1) rotate(-5deg);
  border-color: var(--accent)
}

.p3d-card-icon svg {
  width: 20px;
  height: 20px
}

.p3d-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3
}

.p3d-card-body p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px
}

.p3d-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  position: relative;
  overflow: hidden
}

.p3d-card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transition: left .5s
}

.p3d-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2)
}

.p3d-card-btn:hover::before {
  left: 100%
}

.p3d-card-btn svg {
  width: 16px;
  height: 16px
}

/* CCI dual buttons */
.p3d-cci-btns {
  display: flex;
  gap: 8px
}

.p3d-cci-btns .p3d-card-btn {
  flex: 1;
  padding: 9px 8px;
  font-size: .78rem
}

.p3d-cci-btns .p3d-card-btn.outline {
  background: transparent !important;
  border: 1.5px solid;
  box-shadow: none
}

/* ═══════════ Image Slider ═══════════ */
.p3d-slider {
  margin: 0 -24px 50px;
  width: calc(100% + 48px);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  animation: fadeUp .8s .2s ease-out backwards
}

.p3d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s;
  background-size: cover;
  background-position: center
}

.p3d-slide.active {
  opacity: 1
}

.p3d-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary));
  pointer-events: none
}

.p3d-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3
}

.p3d-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: none;
  cursor: pointer;
  transition: all .3s
}

.p3d-slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px
}

/* ═══════════ Footer — Cyber Neon ═══════════ */
.p3d-footer {
  position: relative;
  margin-top: 60px;
  padding: 48px 32px 36px;
  background: linear-gradient(180deg, rgba(2,6,23,0.97) 0%, rgba(4,10,30,0.99) 100%);
  border-top: 2px solid transparent;
  background-clip: padding-box;
  text-align: center;
  overflow: hidden;
  z-index: 10;
}

/* Neon top border glow */
.p3d-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #10b981, #f59e0b, #e879f9, #06b6d4, #7c3aed);
  background-size: 300% 100%;
  animation: neonBorder 4s linear infinite;
  box-shadow: 0 0 18px #06b6d4, 0 0 40px rgba(6,182,212,0.4);
}

/* Animated scan line overlay */
.p3d-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(6, 182, 212, 0.015) 2px,
    rgba(6, 182, 212, 0.015) 4px
  );
  pointer-events: none;
}

@keyframes neonBorder {
  0%   { background-position: 0% 0% }
  100% { background-position: 300% 0% }
}

/* Grid line decorative divider */
.p3d-footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

/* Footer neon badge row */
.p3d-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 18px;
  border-radius: 30px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 16px;
  font-size: 0.67rem;
  color: #67e8f9;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15), inset 0 0 8px rgba(6, 182, 212, 0.05);
  animation: badgePulse 3s ease-in-out infinite;
}
.p3d-footer-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee, 0 0 16px #06b6d4;
  animation: dotBlink 1.4s infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(6,182,212,0.15), inset 0 0 8px rgba(6,182,212,0.05); }
  50%       { box-shadow: 0 0 22px rgba(6,182,212,0.35), inset 0 0 14px rgba(6,182,212,0.1); }
}
@keyframes dotBlink {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%       { opacity: 1; transform: scale(1.2); }
}

.p3d-footer p {
  color: rgba(186, 230, 253, 0.85);
  font-size: 0.8rem;
  line-height: 2;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.p3d-footer strong {
  color: #22d3ee;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.7), 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Colored name highlights */
.p3d-footer .name-dev  { color: #a78bfa; font-weight: 700; text-shadow: 0 0 8px rgba(167,139,250,0.7); }
.p3d-footer .name-mod  { color: #34d399; font-weight: 700; text-shadow: 0 0 8px rgba(52,211,153,0.7); }

/* Neon divider line between rows */
.p3d-footer-divider {
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.5), rgba(139,92,246,0.5), transparent);
  margin: 8px auto;
  position: relative;
  z-index: 2;
}

/* Copyright note */
.p3d-footer-copy {
  font-size: 0.7rem !important;
  color: rgba(100, 180, 210, 0.5) !important;
  letter-spacing: 1.5px;
  font-family: 'Courier New', monospace !important;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 640px) {
  .p3d-footer { padding: 36px 16px 28px; }
  .p3d-footer p { font-size: 0.75rem; }
}

/* ═══════════ Feedback (override for dark) ═══════════ */
.p3d-feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 130, 135, .3);
  transition: all .3s;
  animation: fabBounce 2s 3s ease-in-out
}

.p3d-feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(20, 130, 135, .4)
}

@keyframes fabBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  25% {
    transform: translateY(-8px)
  }

  50% {
    transform: translateY(0)
  }

  75% {
    transform: translateY(-4px)
  }
}

/* ═══════════ Animations ═══════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

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

  100% {
    background-position: 200% 0
  }
}

/* ═══════════ Responsive ═══════════ */
@media(max-width:1024px) {
  .p3d-cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .p3d-cards {
    grid-template-columns: 1fr
  }

  .p3d-hero {
    padding: 88px 16px 34px
  }

  .p3d-hero h1 {
    font-size: 1.6rem
  }

  .p3d-top-banner {
    height: clamp(300px, 72vw, 460px)
  }

  .p3d-slider {
    max-height: 220px
  }

  .p3d-social {
    top: auto;
    bottom: 80px;
    left: auto;
    right: 24px;
    flex-direction: column
  }
}

/* ═══════════ Upcoming Cards & Badges ═══════════ */
.p3d-card:nth-child(10) {
  animation-delay: 1s
}

.p3d-card:nth-child(11) {
  animation-delay: 1.1s
}

.p3d-card-upcoming {
  opacity: 0.95;
}

.p3d-card-upcoming:hover {
  opacity: 1;
}

.p3d-upcoming-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: var(--badge-bg, rgba(99, 102, 241, 0.15));
  border: 1px solid var(--badge-border, rgba(99, 102, 241, 0.4));
  backdrop-filter: blur(10px);
  color: var(--badge-color, #a5b4fc);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--badge-border, rgba(99, 102, 241, 0.2));
  animation: badgeGlow 3s ease-in-out infinite alternate;
}

.p3d-upcoming-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--badge-color, #a5b4fc);
  box-shadow: 0 0 8px var(--badge-color, #a5b4fc);
  animation: dotPulse 1.5s infinite;
}

@keyframes badgeGlow {
  0% {
    box-shadow: 0 0 10px var(--badge-border, rgba(99, 102, 241, 0.2));
    transform: translateY(0);
  }

  100% {
    box-shadow: 0 0 18px var(--badge-border, rgba(99, 102, 241, 0.5)), 0 0 5px var(--badge-border, rgba(99, 102, 241, 0.3));
    transform: translateY(-2px);
  }
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
