:root {
  --page-bg: linear-gradient(180deg, #f8fbff 0%, #eaf2ff 32%, #eef3ff 100%);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-border: rgba(148, 163, 184, 0.22);
  --text: #12233d;
  --muted: #5f6f86;
  --brand: #1d4ed8;
  --brand-strong: #0f2f84;
  --brand-soft: rgba(29, 78, 216, 0.12);
  --accent: #e11d48;
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 24%),
    var(--page-bg) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 32%),
    radial-gradient(circle at center, rgba(37, 99, 235, 0.06), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.container {
  position: relative;
}

nav {
  backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.82)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
}

nav a,
nav button {
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover,
nav button:hover {
  transform: translateY(-1px);
}

nav .text-accent {
  color: #fda4af !important;
  background: rgba(225, 29, 72, 0.14);
}

nav .text-gray-100,
nav .text-gray-300,
nav .text-gray-400 {
  color: rgba(248, 250, 252, 0.92) !important;
}

nav .bg-blue-600,
nav .bg-\[\#1a1a2e\] {
  background: rgba(15, 23, 42, 0.82) !important;
}

nav .bg-\[\#93C1FC\] {
  background: linear-gradient(180deg, #f8fbff 0%, #dbeafe 100%) !important;
}

nav .text-\[\#FD0E86\] {
  color: var(--brand-strong) !important;
}

nav .hover\:bg-blue-600:hover {
  background: var(--brand) !important;
}

nav .hover\:text-yellow-300:hover,
nav .hover\:text-white:hover {
  color: #ffffff !important;
}

.container > div.mt-6.rounded-2xl.overflow-hidden.shadow-2xl.relative,
.container > div.mt-6.rounded-2xl.overflow-hidden.shadow-2xl.relative.bg-black {
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lg) !important;
}

.container > div.mt-6.rounded-2xl.overflow-hidden.shadow-2xl.relative img {
  filter: saturate(1.03) contrast(1.02);
}

h1.text-center.my-12,
.text-center.mt-12.mb-8 h2,
.text-center.mt-12.mb-8 h1,
.max-w-2xl.mx-auto.bg-white h1,
.mt-8.mb-16 h1 {
  letter-spacing: -0.03em;
}

h1.text-center.my-12 {
  font-size: clamp(2.4rem, 4vw, 4.8rem) !important;
  line-height: 1.05;
  margin-top: 3.5rem !important;
  margin-bottom: 3rem !important;
}

.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8.mb-16 > div,
.max-w-4xl.mx-auto.space-y-4.mb-16 > div,
.max-w-2xl.mx-auto.bg-white.rounded-2xl.shadow-xl,
.text-center.mt-12.mb-8 > .max-w-3xl,
.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4.gap-6 > div,
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 > div {
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
}

.bg-white {
  background: var(--surface) !important;
}

.bg-gray-50 {
  background: rgba(248, 250, 252, 0.92) !important;
}

.border-gray-100,
.border-gray-200 {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

.text-gray-700 {
  color: #334155 !important;
}

.text-gray-600 {
  color: var(--muted) !important;
}

.text-gray-800 {
  color: var(--text) !important;
}

.text-blue-600,
.text-blue-700,
.text-blue-800 {
  color: var(--brand-strong) !important;
}

.bg-blue-600 {
  background: linear-gradient(135deg, #2563eb, #173ea7) !important;
}

.hover\:bg-blue-700:hover {
  background: linear-gradient(135deg, #1d4ed8, #112f82) !important;
}

.focus\:ring-blue-500:focus,
.focus\:ring-blue-500\/50:focus,
.focus\:ring-4:focus {
  --tw-ring-color: rgba(37, 99, 235, 0.22) !important;
}

.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8.mb-16 > div,
.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4.gap-6 > div,
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 > div {
  overflow: hidden;
}

.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8.mb-16 > div:hover,
.grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4.gap-6 > div:hover,
.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 > div:hover {
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18) !important;
}

.max-w-4xl.mx-auto.space-y-4.mb-16 button {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.max-w-4xl.mx-auto.space-y-4.mb-16 button:hover {
  filter: brightness(1.04);
}

form input,
form textarea {
  border-radius: 1rem !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

form input:focus,
form textarea:focus {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

footer {
  margin-top: 4rem !important;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a, #172554 60%, #1d4ed8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

footer span,
footer p,
footer a {
  color: rgba(248, 250, 252, 0.92);
}

footer img {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.26);
}

[x-show="modalOpen"] .relative.bg-white,
[x-show="lightboxOpen"] .relative.max-w-5xl {
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35) !important;
}

[x-show="lightboxOpen"] img {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  nav {
    border-radius: 1.5rem !important;
  }

  h1.text-center.my-12 {
    margin-top: 2.5rem !important;
    margin-bottom: 2rem !important;
  }

  .container > div.mt-6.rounded-2xl.overflow-hidden.shadow-2xl.relative.bg-black {
    height: 60vh !important;
  }

  footer {
    border-radius: 1.75rem !important;
  }
}
