/* ================= TFS UNIVERSE - HOME PAGE STYLES ================= */
:root {
  --text: #e9f6ff;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.3);
  --accent-secondary: #3b82f6;
  --muted: rgba(226, 232, 240, 0.86);
  --max-width: 1200px;
  --fs-base: 16px;
  --fs-lg: 20px;
  --fs-sm: 14px;
}

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

html,
body {
  height: 100%;
}

html {
  font-size: var(--fs-base);
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  color: var(--text);
  background: #020617; /* Dark navy to match the space theme */
  background-attachment: fixed;
  animation: bgFloat 30s ease-in-out infinite alternate;
  overflow-x: hidden;
}

@keyframes bgFloat {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  50% {
    background-position: 18px -18px, -20px 16px, 0 0;
  }

  100% {
    background-position: -12px 8px, 20px -12px, 0 0;
  }
}

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

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Desktop: reduce side padding for wider cards */
@media (min-width: 601px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

#cosmos-section.container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #020617 0%, #1e1030 50%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-content img {
  width: 180px;
  margin: 0 auto 24px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

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

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.loader-text {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================= SCROLL PROGRESS BAR ================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--accent);
}

/* ================= GRAIN OVERLAY ================= */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ================= BACKGROUND VIDEO ================= */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -999;
  overflow: hidden;
  pointer-events: none;
}

.bg-video img,
.bg-video video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  /* No solid override so the space background shows on mobile */
  .bg-video img {
    opacity: 0.6;
  }
}

/* ================= HERO VIDEO ================= */
#heroWrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent !important;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 1.2s ease;
}

#heroVideo.fade-out {
  opacity: 0;
  pointer-events: none;
}

#heroLogo {
  position: absolute;
  inset: 0;
  margin: auto;
  top: -10%;
  max-width: 100%;
  width: 60%;
  opacity: 0;
  z-index: 2;
  transition: opacity 1.2s ease;
}





/* ================= CONTINUE BUTTON SECTION ================= */
/* .continue-section {
  position: absolute;
  bottom: 40px;
  width: 100%;
  text-align: center;
  z-index: 10;
  display: block;
  /* visible by default */


/* Ensure same spacing like Join button */
/* .continue-section .btn-uni {
  margin: 0 auto;
} */

.continue-section {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 999;

  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hidden state */
.continue-section.hide {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

#continueWrapper {
  z-index: 5;
}


/*  This Other Section */
#heroLogo.show {
  opacity: 1;
}

/* ================= HERO TAGLINE ================= */
.hero-tagline {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: max-content;

  font-size: clamp(14px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(233, 246, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 4px 30px rgba(0, 0, 0, 0.6);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease, letter-spacing 1s ease;
}

.hero-tagline span {
  display: block;
  margin-top: 8px;
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: 0.35em;
  color: #5cf5e3;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-tagline.show {
  opacity: 1;
  pointer-events: auto;
  animation: taglineReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-tagline.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

@keyframes taglineReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    letter-spacing: 0.6em;
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    letter-spacing: 0.25em;
  }
}

#heroPlayBtn {
  position: fixed;
  right: 20px;
  bottom: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  z-index: 999;
  display: none;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

#heroPlayBtn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.15);
}

#heroPlayBtn.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE-EXTRA-CONTENT: hidden on desktop ===== */
.mobile-extra-content {
  display: none;
}

.mobile-fill-content {
  display: none;
}

@media (max-width: 600px) {

  /* ===== PREVENT BACKGROUND SCROLL ON TOUCH ===== */
  html, body {
    overflow-x: hidden;
    overscroll-behavior: none;
  }

  /* ===== HERO WRAPPER: FLEXBOX COLUMN ===== */
  #heroWrapper {
    position: relative;
    width: 100%;
    height: auto; /* Let content determine height — no forced 100vh gap */
    min-height: auto;
    overflow: hidden;
    touch-action: pan-y;

    /* FLEXBOX: stack content vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 20px;
    box-sizing: border-box;
  }

  .bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }

  .bg-video img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: none; /* Reset the desktop translate(-50%,-50%) */
    opacity: 0.7;
  }

  /* ===== VIDEO: stays as background layer ===== */
  #heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* ===== DARK OVERLAY: removed so background is seamless like desktop ===== */
  #heroWrapper::after {
    display: none;
  }

  /* ===== LOGO: in the flow, at top ===== */
  #heroLogo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: unset !important;
    margin: 0 auto 8px !important;
    width: 65%;
    max-width: 260px;
    z-index: 2;
    opacity: 0;
    display: block;
  }

  #heroLogo.show {
    opacity: 1;
  }

  /* ===== TAGLINE: in the flow, below logo ===== */
  .hero-tagline {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 90vw;
    font-size: clamp(11px, 3.2vw, 14px);
    white-space: normal;
    text-align: center;
    margin: 0 auto 16px;
    z-index: 2;
  }

  .hero-tagline span {
    font-size: 10px;
    letter-spacing: 0.2em;
    white-space: nowrap;
  }

  /* ===== MOBILE FILL CONTENT: fills space between tagline and button ===== */
  .mobile-fill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 88%;
    z-index: 2;
    margin: 12px auto;
    text-align: center;
    transition: opacity 0.6s ease;
  }

  .mobile-fill-content.hide {
    opacity: 0;
    pointer-events: none;
  }

  .fill-heading {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(92, 245, 227, 0.7);
    margin: 0 0 12px;
  }

  .fill-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
  }

  .fill-brand-item {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(233, 246, 255, 0.9);
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 253, 0.2);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .fill-divider {
    color: rgba(148, 163, 253, 0.4);
    font-size: 10px;
  }

  .fill-desc {
    font-size: 11px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(233, 246, 255, 0.55);
    max-width: 280px;
    margin: 0;
    letter-spacing: 0.02em;
  }

  /* ===== MOBILE EXTRA CONTENT: in the flow ===== */
  .mobile-extra-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 88%;
    z-index: 5;
    margin: auto auto 12px;
    left: auto;
    transform: none;
    bottom: auto;
    transition: opacity 0.6s ease;
  }

  /* Hide during video playback */
  .mobile-extra-content.hide {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-highlight {
    flex: 0 0 calc(50% - 8px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 253, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .mobile-highlight .highlight-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

  .mobile-highlight .highlight-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(233, 246, 255, 0.85);
    line-height: 1.3;
  }

  .mobile-subtitle {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(92, 245, 227, 0.8);
    margin: 0 0 4px;
    line-height: 1.5;
  }

  .mobile-founder {
    width: 100%;
    text-align: center;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(233, 246, 255, 0.45);
    margin: 4px 0 0;
  }

  /* ===== CTA BUTTON: in the flow, at bottom ===== */
  .continue-section {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 6;
    margin-top: 12px;
    text-align: center;
  }

  .continue-section.hide {
    opacity: 0;
    pointer-events: none;
  }

  .continue-section .btn-uni {
    padding: 8px 18px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* ===== PLAY BUTTON MOBILE ===== */
  #heroPlayBtn {
    position: fixed;
    right: 14px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    z-index: 6;
  }

}



/* ================= MAIN SECTION ================= */
main {
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  main {
    background: transparent; /* Let fixed bg-video show through on mobile */
  }
}

section {
  padding: 40px 0;
}

h2.section-title {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.7)) drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

p.lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 560px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ================= BUSINESS GRID ================= */
.business-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.business-grid>a {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
}

@media(max-width:768px) {
  .business-grid>a {
    flex: 0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}

@media(max-width:500px) {
  .business-grid>a {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ================= CARDS WITH SCROLL ANIMATION ================= */
.biz-card {
  padding: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  /* Scroll animation initial state */
  opacity: 0;
  transform: translateY(50px);
}

.biz-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animation for cards */
.biz-card:nth-child(1) {
  transition-delay: 0s;
}

.biz-card:nth-child(2) {
  transition-delay: 0.1s;
}

.biz-card:nth-child(3) {
  transition-delay: 0.2s;
}

.biz-card:nth-child(4) {
  transition-delay: 0.15s;
}

.biz-card:nth-child(5) {
  transition-delay: 0.25s;
}

.hover-card {
  width: 100%;
  height: 254px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 253, 0.6);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(45, 212, 191, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.hover-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(148, 163, 253, 0.45);
  transition: transform 0.5s ease;
}

.hover-card:hover img {
  transform: scale(1.05);
}

.card-title {
  text-align: center;
}

.card-sub {
  text-align: center;
}

.hover-card .card-title {
  color: #f9fafb;
  font-weight: 700;
  margin: 10px 12px 2px;
  font-size: 15px;
  /* align-self: flex-start; */
  transition: color 0.3s ease;
  text-align: center;
}

.hover-card:hover .card-title {
  color: var(--accent);
  text-align: center;
}

.hover-card .card-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 12px 10px;
  /* align-self: flex-start; */
  text-align: center;
}

.hover-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 22px 46px rgba(15, 23, 42, 1),
    0 0 40px rgba(45, 212, 191, 0.5);
  transform: translateY(-8px);
}

.secondAnimation {
  --hoverContorno: #ffffff;
}

.secondAnimation:hover,
.secondAnimation:focus {
  animation: cardAnimacion 1.0s;
  box-shadow: 0 0 0 0.8em rgba(255, 255, 255, 0);
}

@keyframes cardAnimacion {
  0% {
    box-shadow: 0 0 0 0 var(--hoverContorno);
  }
}

/* ================= LIGHT EFFECT BUTTON ================= */
.btn-uni {
  position: relative;
  display: inline-block;
  padding: 10px 25px;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: 0.5s;
  letter-spacing: 3px;
  background: transparent;
  border: 1px solid #1303f4;
  border-radius: 999px;
}

.btn-uni:hover {
  background: #034ff4;
  color: #fff;
  box-shadow:
    0 0 5px #083deb,
    0 0 25px #0317f4,
    0 0 50px #033bf4,
    0 0 100px #0327f4;
}

.btn-uni span {
  position: absolute;
  display: block;
  bottom: 2px;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fcfcfc);
  animation: btn-anim1 1s linear infinite;
}

@keyframes btn-anim1 {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

@media(max-width:768px) {
  .btn-holder {
    padding-top: 100px;
  }
}

/* ================= BACK TO TOP BUTTON ================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 253, 0.5);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

#business .section-title {
  margin-top: 20px;
  /* adjust value as you like */
}

/* ================= NEW COSMOS CARD SECTION ================= */
#cosmos-section {
  padding: 20px 0 60px;
}

.cosmos-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0; /* No side padding — full edge-to-edge cards */
  margin: 0 auto;
}

.cosmos-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 253, 0.2);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.cosmos-card:hover {
  transform: translateY(-8px);
  border-color: rgba(92, 245, 227, 0.5);
  box-shadow: 0 20px 40px -10px rgba(92, 245, 227, 0.2), 0 0 20px rgba(92, 245, 227, 0.1) inset;
  background: rgba(15, 23, 42, 0.6);
}

.cosmos-image {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
}

.cosmos-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.6s ease;
}

/* Desktop only: full images at controlled height */
@media (min-width: 601px) {
  .cosmos-image {
    height: auto;
    max-height: none;
    background: #0a0f1a; /* Dark fill for any gaps around contained image */
  }
  .cosmos-image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Show COMPLETE image, no cropping */
  }
}

.cosmos-card:hover .cosmos-image img {
  transform: scale(1.05);
}

.cosmos-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%; /* Shorter gradient, only at the bottom */
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
  z-index: 1;
}

.cosmos-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid rgba(148, 163, 253, 0.3);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
}

.cosmos-card:hover .cosmos-icon {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(92, 245, 227, 0.6);
  box-shadow: 0 0 30px rgba(92, 245, 227, 0.3);
}

.cosmos-content {
  position: relative;
  padding: 20px 28px 24px;
  z-index: 2;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 253, 0.3);
  border-radius: 0 0 20px 20px;
  text-align: center; /* Center all card content */
}

.cosmos-meta {
  justify-content: center; /* Center the buttons row */
}

.cosmos-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.cosmos-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 300;
}

.cosmos-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cosmos-btn {
  position: relative;
  display: inline-block;
  padding: 10px 25px;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: 0.5s;
  letter-spacing: 3px;
  background: transparent;
  border: 1px solid #1303f4;
  border-radius: 999px;
  cursor: pointer;
}

.cosmos-btn:hover {
  background: #034ff4;
  color: #fff;
  box-shadow:
    0 0 5px #083deb,
    0 0 25px #0317f4,
    0 0 50px #033bf4,
    0 0 100px #0327f4;
}

.cosmos-btn span {
  position: absolute;
  display: block;
  bottom: 2px;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fcfcfc);
  animation: btn-anim1 1s linear infinite;
}

.cosmos-episodes {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.cosmos-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 253, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.cosmos-social-label {
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}

@media(max-width: 600px) {
  .cosmos-stack {
    padding: 0 12px;
  }
  .cosmos-image {
    height: auto;
    max-height: 300px;
  }
  .cosmos-content {
    padding: 16px 18px 20px;
  }
  .cosmos-title {
    font-size: 18px;
  }
  .cosmos-sub {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

/* ================= SOOCHH CARD — crop top/bottom, keep center ================= */
.soochh-card .cosmos-image {
  height: 700px;
  max-height: 700px;
}

.soochh-card .cosmos-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* keep center visible, crop top & bottom */
}

@media (max-width: 600px) {
  .soochh-card .cosmos-image {
    height: 250px;
    max-height: 250px;
  }
}
