:root {
  --dawe-primary: #7c4dff;
  --dawe-accent: #00d2ff;
  --dawe-dark: #12101a;
}

body {
  background: var(--dawe-dark);
  color: #e8e6f0;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Override text-muted for better readability on dark background */
.text-muted {
  color: #b8b4c6 !important;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(124, 77, 255, 0.25), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 210, 255, 0.15), transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
}

.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--dawe-primary), var(--dawe-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  max-width: 520px;
  margin: 1.5rem auto 2rem;
  color: #b8b4c6;
  font-size: 1.15rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-hero {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.7);
  color: #fff;
  transform: translateY(-2px);
}

.btn-discord {
  background: #5865f2;
  border: none;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-discord:hover {
  filter: brightness(1.15);
  transform: scale(1.03);
  color: #fff;
  background: #5865f2;
}

/* ===== BRAND BUTTONS ===== */

/* Google Play – light store look with dark text */
.btn-gplay {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gplay:hover {
  background: #f1f3f4;
  color: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* Google Play icon keeps the brand's playful colour */
.btn-gplay .bi-google-play {
  color: #1a73e8;
}

/* YouTube – signature red with white text */
.btn-youtube {
  background: #ff0000;
  border: none;
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-youtube:hover {
  background: #cc0000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }

.section-title {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #b8b4c6;
  margin-bottom: 3rem;
}

/* Heading used above a card list inside a tab pane */
.subsection-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #b8b4c6;
  margin-bottom: 1.5rem;
}

/* ===== TABS ===== */
.nav-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  color: #b8b4c6;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

.nav-tabs .nav-link.active {
  color: #fff;
  background: rgba(124, 77, 255, 0.15);
  border: none;
  border-bottom: 2px solid var(--dawe-primary);
}

/* Smaller tabs on phones */
@media (max-width: 575.98px) {
  .nav-tabs {
    gap: 0.25rem;
  }

  .nav-tabs .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
  }

  /*
  .nav-tabs .nav-link i {
    display: none;
  }
  */
}

.tab-content {
  padding-top: 2rem;
}

.tab-pane .section-subtitle {
  margin-bottom: 2rem;
}

/* ===== CARDS (shared base – no hover effects) ===== */
.project-card,
.cta-card {
  height: 100%;
  padding: 2rem;
  border-radius: 16px;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-card {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

/* ===== CARD HEADER ===== */
.project-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Text block takes the remaining space and may shrink without pushing the badge out */
.project-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(124, 77, 255, 0.15);
  color: #b39dff;
  flex-shrink: 0;
}

.cta-card .project-icon {
  background: rgba(88, 101, 242, 0.15);
  color: #aab2ff;
}

/* Flag variant – rectangular chip in the official 2:3 ratio,
   vertically centred next to the heading (unlike the square glyph slots) */
.project-icon.flag-icon {
  width: 54px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: none;
  overflow: hidden;
  align-self: center;
}

.project-icon.flag-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.project-domain {
  font-size: 0.85rem;
  color: #6c6878;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Status pill – pinned to the right, never wrapped or squashed */
.badge-status {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid rgba(0, 210, 255, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7de3ff;
}

/* ===== FEATURE TAGS (inside project cards) ===== */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none; /* removes the bullet markers */
}

.feature-tags li {
  list-style: none;
  margin: 0;
}

.feature-tags .badge {
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.35);
  color: #cbbcff;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  padding: 0.45rem 0.85rem;
}

/* ===== CARD ACTIONS (button row inside a card) =====
   Wrap every button/link in a card in <div class="card-actions">.
   Spacing between the buttons is handled here, so the buttons themselves
   carry no vertical margins. */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ===== STANDALONE CTA BANNER =====
   Full-width variant of .cta-card used as its own block above a card list. */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  height: auto;
}

.cta-banner-body {
  flex: 1 1 360px;
  min-width: 0;
}

.cta-banner .project-header {
  margin-bottom: 0.75rem;
}

.cta-banner .card-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

/* Stack the banner vertically on narrow screens */
@media (max-width: 767.98px) {
  .cta-banner {
    padding: 1.75rem;
  }

  .cta-banner .card-actions {
    width: 100%;
  }

  .cta-banner .card-actions .btn {
    width: 100%;
  }
}

/* ===== PROJECT LINK BUTTON ===== */
.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #b39dff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(124, 77, 255, 0.4);
  border-radius: 10px;
  background: rgba(124, 77, 255, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-link-btn:hover {
  background: rgba(124, 77, 255, 0.15);
  border-color: rgba(124, 77, 255, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

.project-link-btn .bi-arrow-up-right {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.project-link-btn:hover .bi-arrow-up-right {
  transform: translate(2px, -2px);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  color: #918c9e;
  font-size: 0.9rem;
}
