:root {
  --bg-dark: linear-gradient(160deg, #0f001e, #2a003f, #47006b);
  --bg-light: #fdf5ff;
  --text-dark: #1a001f;
  --text-light: #f2e9ff;
  --accent: #ff00cc;
  --accent-hover: #ff66ff;
}
[data-theme="dark"] body {
  background: var(--bg-dark);
  color: var(--text-light);
}
[data-theme="light"] body {
  background: var(--bg-light);
  color: var(--text-dark);
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
h1, h2, h3, h4 {
  text-align: center;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}
nav {
  text-align: center;
  margin: 20px 0;
}
nav a {
  color: inherit;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}
nav a.active,
nav a:hover {
  border-color: var(--accent-hover);
}
.card {
  display: none;
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--accent);
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.service-card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 15px var(--accent);
}
.service-card:hover {
  transform: translateY(-5px);
  background: var(--accent-hover);
  color: #000;
  box-shadow: 0 0 25px var(--accent-hover);
}
.service-card h4 {
  margin-bottom: 10px;
}
.service-card button {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}
.service-card button:hover {
  background: var(--accent-hover);
}
.order-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  filter: drop-shadow(0 0 3px var(--accent));
  transition: transform 0.3s ease;
  z-index: 1000;
}
.order-icon:hover {
  transform: scale(1.1);
}
.order-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  transform: translate(-50%, -50%);
  padding: 25px;
  color: #fff;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  box-shadow: 0 0 25px var(--accent);
}
.order-popup.show {
  opacity: 1;
  pointer-events: auto;
}
#orderForm {
  display: flex;
  flex-direction: column;
}
#orderForm label {
  margin-top: 12px;
  font-weight: 600;
}
#orderForm input,
#orderForm select {
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  background: #47006b;
  color: #fff;
  outline: none;
  box-shadow: 0 0 5px #000 inset, 0 0 8px var(--accent);
}
#orderForm input:focus,
#orderForm select:focus {
  background: #61008f;
  box-shadow: 0 0 10px var(--accent-hover);
}
#orderForm button[type="submit"] {
  margin-top: 20px;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}
#orderForm button[type="submit"]:hover {
  background: var(--accent-hover);
}
#closeOrder {
  margin-top: 10px;
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  display: block;
  margin-left: auto;
}
.promo-popup {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  padding: 12px 20px;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 15px var(--accent-hover);
  z-index: 1200;
}
.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 0 5px #00000044;
  z-index: 1300;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
