@import "tailwindcss";

:root {
  --background: #060a12;
  --foreground: #eef1f8;
  --color-red: #d4af37;
  --color-red-dark: #9a7720;
  --color-charcoal: #eef1f8;
  --color-off-white: rgba(255, 255, 255, 0.04);
  --color-grey: #9aa3b5;
  --color-grey-light: #6b7589;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-navy: #1a3a6b;
  --color-navy-deep: #0c1829;
  --color-gold: #d4af37;
  --color-gold-light: #e8c766;
  --glass-bg: rgba(12, 18, 32, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-red: var(--color-red);
  --color-red-dark: var(--color-red-dark);
  --color-charcoal: var(--color-charcoal);
  --color-off-white: var(--color-off-white);
  --color-grey: var(--color-grey);
  --color-grey-light: var(--color-grey-light);
  --color-border: var(--color-border);
  --color-navy: var(--color-navy);
  --color-gold: var(--color-gold);
  --color-gold-light: var(--color-gold-light);
  --font-sans: var(--font-brand);
}

html {
  color-scheme: dark;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-brand), system-ui, sans-serif;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(26, 58, 107, 0.55), transparent 50%),
    radial-gradient(ellipse 70% 45% at 95% 15%, rgba(212, 175, 55, 0.14), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(26, 58, 107, 0.35), transparent 55%),
    linear-gradient(180deg, #060a12 0%, #0a1020 45%, #060a12 100%);
}

.mesh-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-dark {
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.28);
}

.glass-input {
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--foreground);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.glass-input::placeholder {
  color: var(--color-grey-light);
}

.glass-input:focus {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(10, 16, 28, 0.85);
  outline: none;
}

.enquiry-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold-light);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    #f5f7fc 0%,
    #e8c766 45%,
    #d4af37 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, #eef1f8 0%, #b8c4dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 1px;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-orb-a {
  width: 360px;
  height: 360px;
  top: -100px;
  right: -60px;
  background: rgba(26, 58, 107, 0.65);
  animation: float 14s ease-in-out infinite;
}

.hero-orb-b {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: -80px;
  background: rgba(212, 175, 55, 0.22);
  animation: float 18s ease-in-out infinite reverse;
}

.hero-orb-c {
  width: 220px;
  height: 220px;
  top: 40%;
  right: 20%;
  background: rgba(154, 119, 32, 0.15);
  animation: float 22s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12px, -16px) scale(1.05);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes marquee-images {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-images {
  width: max-content;
  animation: marquee-images 45s linear infinite;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-in {
  animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-images,
  .hero-orb-a,
  .hero-orb-b,
  .hero-orb-c,
  .animate-modal-in {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .glass-card:hover {
    transform: none;
  }
}

.prose-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.prose-content p {
  margin-bottom: 1rem;
  line-height: 1.625;
  color: var(--color-grey);
}

.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
  color: var(--color-grey);
}

html {
  scroll-behavior: smooth;
}

/* Light theme */
[data-theme="light"] {
  color-scheme: light;
  --background: #eef1f8;
  --foreground: #0c1220;
  --color-charcoal: #0c1220;
  --color-grey: #4a5568;
  --color-grey-light: #64748b;
  --color-border: rgba(12, 18, 32, 0.1);
  --color-off-white: rgba(255, 255, 255, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 12px 36px rgba(26, 58, 107, 0.12);
}

[data-theme="light"] .mesh-bg {
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(26, 58, 107, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 45% at 95% 15%, rgba(212, 175, 55, 0.2), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(26, 58, 107, 0.1), transparent 55%),
    linear-gradient(180deg, #eef1f8 0%, #e4e9f4 45%, #eef1f8 100%);
}

[data-theme="light"] .mesh-bg::after {
  opacity: 0.2;
  background-image: linear-gradient(rgba(12, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 32, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .glass-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  border-color: rgba(26, 58, 107, 0.12);
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(26, 58, 107, 0.15);
}

[data-theme="light"] .glass-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(12, 18, 32, 0.12);
  color: var(--foreground);
}

[data-theme="light"] .glass-dark {
  background: rgba(12, 18, 32, 0.88);
  border-color: rgba(212, 175, 55, 0.25);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0c1220 0%, #1a3a6b 40%, #9a7720 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-orb-a {
  background: rgba(26, 58, 107, 0.35);
}

[data-theme="light"] .hero-orb-b {
  background: rgba(212, 175, 55, 0.28);
}
