* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* --- GLOBAL --- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #e2e8f0; /* pale star blue */
  background: radial-gradient(ellipse at top, #0b0f29 0%, #050712 70%);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 24px 0;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 40, 0.6); /* translucent dark space */
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(100, 116, 139, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 200px;
  height: 59px;
  object-fit: contain;
  display: block;
}

/* --- NAV LINKS --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #94a3b8; /* muted star blue */
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.nav-links a.active {
  background: linear-gradient(135deg, #6366f1, #7c3aed); /* nebula purple-blue */
  color: white;
}

.nav-links a:active {
  transform: translateY(1px);
}

/* --- HERO SECTION --- */
.hero {
  padding: 28px 0 36px;
}

/* --- FRAME (CARD) --- */
.frame {
  padding: 12px;
  background: rgba(10, 12, 30, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.25); /* purple-blue glow border */
  border-radius: 16px;

  box-shadow:
    0 4px 16px rgba(99,102,241,0.15),      /* soft nebula glow */
    0 20px 50px rgba(0,0,0,0.45);

  position: relative;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.05);
}

/* --- SECTION BLOCK --- */
.section {
  margin-top: 28px;
  background: rgba(10, 12, 30, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 24px;

  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.section h2 { margin-top: 0; }

/* --- SLIDESHOW --- */
.slideshow { position: relative; overflow: hidden; }

.slideshow .viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #1e1b4b, #0f0a32); /* outer space panel */
  border-radius: 12px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
  display: grid;
  place-items: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- SLIDESHOW BUTTONS --- */
.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;

  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 999px;

  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 160ms ease, transform 120ms ease;
}

.ctrl:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ctrl:active {
  transform: translateY(-50%) scale(0.97);
}

.ctrl.prev { left: 12px; }
.ctrl.next { right: 12px; }

.ctrl:focus-visible {
  outline: 3px solid #7c3aed;
}

/* --- DOTS --- */
.dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #475569; /* muted blue */
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease;
}

.dot:hover {
  transform: scale(1.15);
}

.dot.active {
  background: #818cf8; /* electric nebula */
}

/* --- FORMS --- */
form { display: grid; gap: 14px; max-width: 720px; }

label {
  font-weight: 600;
  font-size: 14px;
  color: #cbd5e1;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(124, 58, 237, 0.35); /* purple nebula line */
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #e0e7ff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.3);
}

button[type="submit"] {
  justify-self: start;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: 1px solid #4338ca;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

/* --- FOOTER --- */
.footer {
  margin-top: 48px;
  padding: 24px 0 40px;
  color: #94a3b8;
  border-top: 1px solid rgba(148,163,184,0.2);
}

/* --- SMALL SCREENS --- */
@media (max-width: 640px) {
  .nav-links { gap: 6px; }
  .nav-links a { padding: 8px 10px; }
  .ctrl {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .dots {
    bottom: 10px;
  }
}
