/* ========== BASE ========== */
html {
  scroll-behavior: auto;
}

body {
  overflow-x: hidden;
}

/* ========== GLASSMORPHISM ========== */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  border: 0.0625rem solid rgba(255, 255, 255, 0.12);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
  border: 0.0625rem solid rgba(255, 255, 255, 0.18);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(1.25rem);
  -webkit-backdrop-filter: blur(1.25rem);
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(184, 7, 66, 0.4);
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5625rem 3.125rem rgba(184, 7, 66, 0.15);
}

/* ========== TEXT GRADIENT ========== */
.text-gradient {
  background: linear-gradient(135deg, #b80742, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== HERO ========== */
.hero-bg {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(26, 10, 26, 0.8) 40%,
    rgba(30, 41, 59, 0.85) 100%
  );
  position: relative;
}

/* ========== SECTION BACKGROUNDS ========== */
.section-dark {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(19, 27, 46, 0.85) 100%
  );
}

.section-darker {
  background: linear-gradient(
    180deg,
    rgba(19, 27, 46, 0.85) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

/* ========== GRID PATTERN ========== */
.grid-pattern {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.03) 0.0625rem,
    transparent 0.0625rem
  );
  background-size: 2.5rem 2.5rem;
}

/* ========== NAVBAR ========== */
#navbar,
#menu-toggle,
#mobile-menu {
  pointer-events: auto;
}

#mobile-menu-state:checked ~ #mobile-menu {
  display: block !important;
}

#mobile-menu-state:checked ~ div #menu-icon {
  display: none !important;
}

#mobile-menu-state:checked ~ div #close-icon {
  display: block !important;
}

#menu-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  #navbar {
    position: sticky !important;
    transform: none !important;
    top: 0;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: none !important;
  }

  #mobile-menu {
    background: rgba(15, 23, 42, 0.98);
    border: 0.0625rem solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
  }

  .hero-bg {
    min-height: calc(100vh - 5.5rem);
  }
}

.nav-scrolled {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(1.25rem) !important;
  -webkit-backdrop-filter: blur(1.25rem) !important;
  box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.5s,
    box-shadow 0.5s;
}

/* ========== JOIN MODAL ========== */
#join-modal {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#join-modal.modal-visible {
  opacity: 1;
}

#join-modal > .relative {
  transform: scale(0.92) translateY(1.25rem);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#join-modal.modal-visible > .relative {
  transform: scale(1) translateY(0);
}

@media (max-width: 767px) {
  #join-modal > .relative {
    max-height: 95vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4.5rem;
  }
  #join-modal > .relative::-webkit-scrollbar {
    display: none;
  }
}

/* ========== DROP ZONE ========== */
#drop-zone {
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

#drop-zone:hover {
  background: rgba(184, 7, 66, 0.05);
}

/* ========== CONTACT (card grid) ========== */
.contact-card {
  text-decoration: none;
}

/* ========== CHATBOT (temporarily hidden) ========== */
#chat-toggle,
#chat-window {
  display: none !important;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #b80742;
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4295e;
}

/* ========== KEYFRAMES ========== */
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(1.875rem, -1.875rem) scale(1.1);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(184, 7, 66, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(184, 7, 66, 0.6);
  }
}

/* ========== PARALLAX BACKGROUND ========== */
#parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

nav,
section,
footer {
  position: relative;
  z-index: 1;
}

.p-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4rem);
  will-change: transform;
  animation: float 14s ease-in-out infinite;
}

.p-orb:nth-child(2) {
  animation-delay: -3s;
}
.p-orb:nth-child(3) {
  animation-delay: -7s;
}
.p-orb:nth-child(4) {
  animation-delay: -5s;
}
.p-orb:nth-child(5) {
  animation-delay: -10s;
}

.p-dot {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  box-shadow: 0 0 0.75rem rgba(184, 7, 66, 0.5);
}

.p-line {
  position: absolute;
  height: 0.125rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 7, 66, 0.35),
    transparent
  );
  will-change: transform;
}

.p-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.0625rem solid rgba(184, 7, 66, 0.12);
  will-change: transform;
}
