/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #090617;
  --surface: rgba(18, 20, 42, 0.92);
  --surface-strong: rgba(15, 18, 34, 0.96);
  --surface-frost: rgba(18, 22, 48, 0.88);
  --surface-soft: rgba(17, 18, 42, 0.44);
  --accent: #ff8b37;
  --accent-strong: #a450ff;
  --accent-soft: rgba(255, 139, 55, 0.18);
  --accent-dark: #4b4fd8;
  --text: #f8f9fb;
  --muted: #c3c7e8;
  --muted-strong: #d8c9ff;
  --border: rgba(255, 139, 55, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  background: radial-gradient(circle at top, rgba(255, 139, 55, 0.14), transparent 28%),
              linear-gradient(180deg, #060613 0%, #09091f 40%, #120437 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 139, 55, 0.14), transparent 18%),
                    radial-gradient(circle at 80% 15%, rgba(164, 93, 255, 0.12), transparent 15%);
  opacity: 0.8;
  z-index: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. TOPBAR & NAVIGATION
   ========================================================================== */
.topbar {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 1.5rem;
  backdrop-filter: blur(22px);
  background: rgba(9, 8, 21, 0.24);
  border-bottom: 1px solid rgba(255, 139, 55, 0.14);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-links a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topbar-links a:hover {
  background: var(--accent-soft);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 139, 55, 0.22), transparent 24%),
                    radial-gradient(circle at 80% 15%, rgba(164, 93, 255, 0.2), transparent 22%),
                    linear-gradient(180deg, rgba(6, 9, 26, 0.95), rgba(12, 8, 46, 0.98));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 139, 55, 0.26), transparent 24%),
              linear-gradient(135deg, rgba(164, 93, 255, 0.14), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(79, 108, 255, 0.18), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231a4d73' opacity='0.18'%3E%3Cpath d='M0 0h160v160H0z'/%3E%3Cpath d='M0 40h160M0 80h160M0 120h160M40 0v160M80 0v160M120 0v160'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 3.5rem 2.5rem;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(10, 8, 31, 0.96), rgba(22, 14, 61, 0.92));
  border: 1px solid var(--border);
  border-radius: 42px;
  box-shadow: 0 50px 160px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px);
}

.hero-avatar {
  margin: 0 auto 1.75rem;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at top left, rgba(255, 139, 55, 0.32), rgba(164, 93, 255, 0.38) 40%, rgba(54, 63, 197, 0.9) 100%);
  border: 3px solid rgba(255, 139, 55, 0.35);
  box-shadow: 0 24px 80px rgba(255, 139, 55, 0.16);
  position: relative;
  overflow: hidden;
}

.hero-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.24), transparent 45%),
                    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 42%);
}

.hero-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 211, 164, 0.18), transparent 55%);
  filter: blur(12px);
}

.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.subtitle {
  margin: 1.4rem auto 2.2rem;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.8;
}

.scroll-hint {
  margin-top: 2.75rem;
}

.scroll-hint a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.82;
}

.scroll-hint a span {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(123, 211, 164, 0.9);
  border-radius: 999px;
  animation: floatDown 1.8s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ==========================================================================
   4. BUTTONS & UI ELEMENTS
   ========================================================================== */
.hero-buttons {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons .button {
  min-width: 170px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #ff8b37, #a450ff);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(164, 93, 255, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 139, 55, 0.45);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.button-secondary:hover {
  background: rgba(123, 211, 164, 0.16);
}

.hero-info {
  margin-top: 2.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: var(--muted);
  font-size: 1rem;
}

.hero-info span {
  background: rgba(13, 33, 55, 0.82);
  border: 1px solid rgba(123, 211, 164, 0.12);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  min-width: 8rem;
}

/* ==========================================================================
   5. SECTIONS & HEADERS
   ========================================================================== */
.section {
  padding: 6rem 1.5rem;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
}

.section-header span {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: calc(50% - 45px);
  bottom: -20px;
  width: 90px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 139, 55, 0.95), rgba(164, 93, 255, 0.9));
}

.section-join,
.section-contact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-join {
  display: grid;
  place-items: center;
}

.section-contact {
  background: rgba(12, 19, 35, 0.88);
}

/* ==========================================================================
   6. CARDS & CONTAINERS
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.team-card,
.join-panel,
.detail-card,
.developer-card,
.contact-panel {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(20, 18, 46, 0.98), rgba(18, 16, 42, 0.94));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.card {
  min-height: 240px;
}

.card:hover,
.team-card:hover,
.join-panel:hover,
.detail-card:hover,
.developer-card:hover,
.contact-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 90px rgba(164, 93, 255, 0.28);
  border-color: rgba(255, 139, 55, 0.28);
}

.card h3,
.team-card h3,
.join-panel h2,
.contact-panel h2,
.detail-card h3,
.developer-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #ffffff;
  font-size: 1.5rem;
}

.card p,
.team-card p,
.join-panel p,
.content p,
.rules-list li,
.contact-panel p,
.detail-list li,
.team-members li {
  color: var(--muted);
  line-height: 1.8;
}

/* ==========================================================================
   7. TEAM & ABOUT SPECIFICS
   ========================================================================== */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-members {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.team-members li {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(123, 211, 164, 0.18);
  color: #f4fff7;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.team-role-card {
  padding: 2rem 1.5rem;
}

.team-role-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
}

.section-about .content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(10, 14, 34, 0.9);
  border: 1px solid rgba(255, 139, 55, 0.16);
}

.feature-list li::before {
  content: "✔";
  margin-right: 0.75rem;
  color: var(--accent-strong);
}

.rules-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: rgba(8, 18, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rules-list li::before {
  content: "★";
  color: var(--accent);
  margin-top: 0.2rem;
}

/* ==========================================================================
   8. DEVELOPER & JOIN PANELS
   ========================================================================== */
.join-panel {
  max-width: 620px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-code {
  margin: 1.75rem auto 0;
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 139, 55, 0.18), rgba(164, 93, 255, 0.2));
  color: #f4fff7;
  border: 1px solid rgba(255, 139, 55, 0.18);
  border-radius: 999px;
  padding: 1.05rem 1.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 18px 38px rgba(164, 93, 255, 0.18);
}

.join-note {
  margin-top: 1rem;
  color: var(--muted);
}

.developer-panel {
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1.4fr 1fr;
}

.profile-badge {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 211, 164, 0.24), rgba(232, 192, 134, 0.18));
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.profile-badge span {
  font-size: 2.4rem;
  color: #f8f9fb;
  font-weight: 900;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.skill-list span {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6f6ea;
  font-size: 0.95rem;
}

.developer-details {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.detail-list li::before {
  content: "•";
  color: var(--accent);
  display: inline-block;
  width: 1rem;
}

.section-developer .developer-card p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.8;
}

/* ==========================================================================
   9. CONTACT & FOOTER
   ========================================================================== */
.contact-panel {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 28px 70px rgba(164, 93, 255, 0.18);
}

.contact-panel span {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
}

.contact-panel p {
  color: var(--muted);
  max-width: 760px;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-actions .button {
  width: auto;
}

.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 139, 55, 0.14);
  background: linear-gradient(180deg, rgba(6, 8, 24, 0.9), rgba(10, 7, 33, 0.95));
}

.footer p {
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.96rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 860px) {
  .section-about .content,
  .developer-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .topbar-links {
    justify-content: center;
  }

  .developer-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 2rem 1rem;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}