/* ==========================================================================
   TEDxAl Kawthar — Collaboration Portal Stylesheet
   Design Ethos: Nocturnal Obsidian, Crimson Accent, Editorial Typography
   ========================================================================== */

:root {
  --bg-dark: #08090d;
  --bg-surface: #10131a;
  --bg-card: rgba(18, 22, 31, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(235, 0, 40, 0.4);
  --ted-red: #eb0028;
  --ted-red-glow: rgba(235, 0, 40, 0.35);
  --text-main: #f5f6fa;
  --text-muted: #8c93a8;
  --text-dim: #5a6175;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Ambient Red Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.35;
}
.glow-1 {
  top: -100px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--ted-red) 0%, transparent 70%);
}
.glow-2 {
  bottom: 10%;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(235,0,40,0.2) 0%, transparent 70%);
}

.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-links a:hover {
  color: #fff;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--ted-red);
  color: #fff;
  box-shadow: 0 4px 18px var(--ted-red-glow);
}
.btn-primary:hover {
  background: #cc0022;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(235, 0, 40, 0.5);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--ted-red);
  background: rgba(235, 0, 40, 0.08);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(235, 0, 40, 0.12);
  border: 1px solid rgba(235, 0, 40, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ted-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title .accent-red {
  color: var(--ted-red);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Categories Grid */
.categories-section {
  padding: 4rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  color: var(--ted-red);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--ted-red-glow);
}
.category-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(235, 0, 40, 0.1);
  color: var(--ted-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}
.category-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Process Section */
.process-section {
  padding: 4rem 0;
  background: rgba(16, 19, 26, 0.5);
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  border: 1px solid var(--border-subtle);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
}
.step-card {
  text-align: center;
}
.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--ted-red);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* Multi-Step Request Form */
.form-section {
  padding: 4rem 0 6rem;
  max-width: 860px;
  margin: 0 auto;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.stepper-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}
.step-indicator.active {
  color: var(--ted-red);
}
.step-indicator.active .step-dot {
  background: var(--ted-red);
  color: #fff;
  box-shadow: 0 0 14px var(--ted-red-glow);
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--ted-red);
  box-shadow: 0 0 0 3px rgba(235, 0, 40, 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Logo Upload Drag/Drop */
.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-surface);
  transition: var(--transition);
}
.upload-dropzone:hover {
  border-color: var(--ted-red);
}
.preview-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}
.preview-img {
  max-height: 50px;
  max-width: 100px;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
}

/* FAQ Accordion */
.faq-section {
  padding: 4rem 0;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
  line-height: 1.65;
}
.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-card { padding: 1.75rem 1.25rem; }
}
