/**
 * Startups.php Redesign - Premium Glassmorphism & Neon UI
 */

:root {
  --brand-primary: #7c3aed;
  /* Purple */
  --brand-secondary: #3b82f6;
  /* Blue */
  --brand-accent: #10b981;
  /* Teal */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

/* Reset and base */
.startups-page {
  background-color: #0a0a0b;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Animated Background Elements */
.hero-glow-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
}

.orb-2 {
  bottom: 20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

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

/* Grid Overlay */
.bg-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphic Components */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.1);
}

.glass-card:hover::before {
  left: 150%;
}

/* Badges & Pills */
.st-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-badge-purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
}

.st-badge-blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.st-badge-teal {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.st-badge-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* Buttons */
.btn-premium {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-premium-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-premium-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-premium-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-premium-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Bento Grid Layouts */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-tall {
    grid-row: span 2;
  }

  .bento-full {
    grid-column: 1 / -1;
  }
}

/* Interactive filtering (Stage Buttons) */
.filter-btn {
  transition: all 0.3s;
}

.filter-btn.is-active {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.filter-btn.is-active span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.st-stage-card.is-hidden {
  display: none !important;
}

/* Accordion styles */
.st-acc-item .st-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}

.st-acc-item.is-open .st-acc-panel {
  grid-template-rows: 1fr;
}

.st-acc-inner {
  overflow: hidden;
}

.st-acc-btn i {
  transition: transform 0.4s ease;
}

.st-acc-item.is-open .st-acc-btn i {
  transform: rotate(45deg) scale(1.1);
  color: var(--brand-primary);
}

/* Icon Box */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Glowing borders for specific items */
.glow-border-blue {
  border-left: 3px solid #3b82f6;
}

.glow-border-teal {
  border-left: 3px solid #10b981;
}

.glow-border-amber {
  border-left: 3px solid #f59e0b;
}

@media (max-width: 767px) {
  html,
  body.startups-page {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .startups-page *,
  .startups-page *::before,
  .startups-page *::after {
    box-sizing: border-box;
    min-width: 0;
  }

  .startups-page #main-content {
    width: 100%;
    max-width: 100%;
    padding-top: 6.25rem !important;
    padding-bottom: 4rem !important;
    overflow: hidden;
    overflow: clip;
  }

  .startups-page #main-content > section {
    margin-bottom: 4.5rem !important;
  }

  .startups-page #main-content > section:last-child {
    margin-bottom: 0 !important;
  }

  .startups-page h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem) !important;
    line-height: 1.06 !important;
    overflow-wrap: anywhere;
  }

  .startups-page h2 {
    font-size: clamp(1.95rem, 9vw, 2.45rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere;
  }

  .startups-page p,
  .startups-page li {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }

  .st-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
  }

  .btn-premium {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.95rem 1.25rem;
    text-align: center;
  }

  .bento-grid,
  .startups-page .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .bento-wide,
  .bento-full {
    grid-column: auto;
  }

  .bento-tall {
    grid-row: auto;
  }

  .glass-card {
    border-radius: 18px;
  }

  .startups-page .glass-card {
    padding: 1.25rem !important;
  }

  .filter-btn {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    line-height: 1.35;
  }

  .icon-box {
    flex: 0 0 3rem;
  }

  .st-acc-btn {
    align-items: flex-start !important;
    gap: 1rem;
    padding: 1.1rem !important;
  }

  .st-acc-btn i {
    flex: 0 0 auto;
    margin-top: 0.25rem;
  }

  .orb {
    filter: blur(70px);
    opacity: 0.28;
  }
}

@media (max-width: 380px) {
  .startups-page #main-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .startups-page .glass-card {
    padding: 1rem !important;
  }
}
