@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --gold: #e8b84b;
  --gold2: #f5d07a;
  --red: #c0392b;
  --red2: #e74c3c;
  --text: #f0eee8;
  --muted: #7a7a8a;
  --border: rgba(232, 184, 75, 0.15);
  --card: rgba(255, 255, 255, 0.03);
  --radius: 12px;
  --nav-h: 64px;
  --nav-bg: rgba(10, 10, 15, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] {
  --bg: #f5f3ef;
  --bg2: #ffffff;
  --bg3: #e8e6e1;
  --text: #1a1a24;
  --muted: #6b6b7a;
  --border: rgba(232, 184, 75, 0.25);
  --card: rgba(0, 0, 0, 0.03);
  --nav-bg: rgba(245, 243, 239, 0.9);
  --overlay-bg: rgba(255, 255, 255, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 0%,
      rgba(232, 184, 75, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 100%,
      rgba(192, 57, 43, 0.07) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}

.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(232, 184, 75, 0.08);
}

.nav-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #0a0a0f;
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 184, 75, 0.25);
}

.btn-red {
  background: var(--red);
  color: white;
  font-weight: 600;
}

.btn-red:hover {
  background: var(--red2);
  transform: translateY(-1px);
}

main {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 2px;
}

.gold {
  color: var(--gold);
}
.red {
  color: var(--red2);
}
.muted {
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(232, 184, 75, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(232, 184, 75, 0.12);
  color: var(--gold);
}
.tag-red {
  background: rgba(192, 57, 43, 0.15);
  color: var(--red2);
}

input,
textarea,
select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.08);
}

input::placeholder {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.modal p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.modal-footer a {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

.stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0f;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.3);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--gold2);
  transform: translateY(-2px);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(232, 184, 75, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(192, 57, 43, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .nav-links.open {
  background: rgba(245, 243, 239, 0.98);
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 50px 0;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}
