/* ============================================
   AMBEP 360 — Design System
   Colors from brand art: purple, yellow, cyan, magenta on gray brick
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --purple: #9B30FF;
  --purple-dark: #7B1FA2;
  --purple-light: #CE93D8;
  --yellow: #FFD700;
  --yellow-dark: #FFC107;
  --cyan: #00CED1;
  --cyan-light: #4DD0E1;
  --magenta: #FF1493;
  --magenta-dark: #C2185B;

  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #BDBDBD;
  --gray-400: #9E9E9E;
  --gray-500: #757575;
  --gray-600: #616161;
  --gray-700: #424242;
  --gray-800: #2D2D2D;
  --gray-900: #1A1A1A;

  --bg-primary: #1A1A1A;
  --bg-secondary: #242424;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.08);

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-input: rgba(255, 255, 255, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow-purple: 0 0 40px rgba(155, 48, 255, 0.3);
  --shadow-glow-yellow: 0 0 40px rgba(255, 215, 0, 0.3);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cyan-light);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ---- Background Texture ---- */
.bg-wall {
  background-image: url('../assets/wall-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.bg-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(26, 26, 26, 0.92) 0%,
      rgba(26, 26, 26, 0.8) 40%,
      rgba(26, 26, 26, 0.85) 70%,
      rgba(26, 26, 26, 0.95) 100%);
  z-index: 0;
}

.bg-wall>* {
  position: relative;
  z-index: 1;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../assets/backdrop_2.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(26, 26, 26, 0.4) 0%,
      rgba(26, 26, 26, 0.6) 50%,
      rgba(26, 26, 26, 0.95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__logo {
  width: min(500px, 80vw);
  margin-bottom: 32px;
  animation: fadeInScale 1s ease-out;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__title strong {
  font-weight: 800;
  background: linear-gradient(135deg, var(--yellow), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero__meta-item:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.hero__meta-item .icon {
  font-size: 1.3rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--gray-900);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(155, 48, 255, 0.15);
  transform: translateY(-3px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  box-shadow: var(--shadow-glow-purple);
}

.btn-purple:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(155, 48, 255, 0.5);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(155, 48, 255, 0.3);
  box-shadow: var(--shadow-md);
}

/* ---- About Section ---- */
.about {
  text-align: center;
}

.about__text {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.highlight-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  transition: width var(--transition-smooth);
}

.highlight-card:nth-child(1)::before {
  background: var(--purple);
}

.highlight-card:nth-child(2)::before {
  background: var(--yellow);
}

.highlight-card:nth-child(3)::before {
  background: var(--cyan);
}

.highlight-card:nth-child(4)::before {
  background: var(--magenta);
}

.highlight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.highlight-card:hover::before {
  width: 100%;
}

.highlight-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.highlight-card h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- Info Section ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.info-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition-smooth);
}

.info-card:hover {
  transform: translateX(8px);
  border-color: var(--cyan);
}

.info-card .icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 48, 255, 0.15);
  border-radius: var(--radius-md);
}

.info-card h4 {
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.95rem;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(155, 48, 255, 0.15);
  border: 1px solid rgba(155, 48, 255, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Form Section ---- */
.form-section {
  max-width: 720px;
  margin: 0 auto;
}

.form-container {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease-out both;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--magenta);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple);
  background: rgba(155, 48, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(155, 48, 255, 0.15);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--gray-800);
  color: var(--text-primary);
}

/* Radio & Checkbox (Pill Buttons) */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-bounce);
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
  background: rgba(155, 48, 255, 0.08);
}

.radio-option input,
.checkbox-option input {
  display: none;
}

/* Hide dots completely for button look */
.radio-option .radio-dot,
.checkbox-option .checkbox-box {
  display: none !important;
}

/* Checked state using :has() for modern browsers */
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-2px);
}

.radio-option input:checked~span,
.checkbox-option input:checked~span {
  color: #FFFFFF;
  font-weight: 700;
}

.form-error {
  color: var(--magenta);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
  animation: shakeX 0.4s ease;
}

/* ---- Success Screen ---- */
.success-screen {
  text-align: center;
  padding: 60px 24px;
  display: none;
}

.success-screen.visible {
  display: block;
  animation: fadeInScale 0.6s ease-out;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: pulse 2s ease-in-out infinite;
}

.success-screen h2 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--yellow), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-screen p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Closed Registration ---- */
.closed-banner {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(155, 48, 255, 0.15));
  border: 1px solid rgba(255, 20, 147, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  display: none;
}

.closed-banner.visible {
  display: block;
}

/* ---- Loading ---- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-glass);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--purple-light);
}

/* ---- Error Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 20, 147, 0.4);
  max-width: 420px;
  width: 90%;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 20, 147, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-bounce);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(255, 20, 147, 0.4));
}

.modal-title {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ---- Gradient Dividers ---- */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  border: none;
  margin: 0;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 48, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(155, 48, 255, 0);
  }
}

@keyframes shakeX {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

@keyframes float {

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

  50% {
    transform: translateY(-10px);
  }
}

/* Splash decorative elements */
.splash-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .form-container {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .hero {
    padding: 40px 16px;
    min-height: 90vh;
  }

  .hero__meta {
    flex-direction: column;
    align-items: center;
  }

  .hero__meta-item {
    width: 100%;
    justify-content: center;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
  }

  .radio-option,
  .checkbox-option {
    min-width: unset;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glass-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero__logo {
    width: 85vw;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    width: 100%;
    padding: 16px;
  }
}