@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

/* RPM Corporate Design System - CSS Variables */
:root {
  /* Deep Navy Background - matching WDS banner */
  --background: 222 47% 11%;
  --foreground: 0 0% 95%;

  --card: 222 47% 14%;
  --card-foreground: 0 0% 95%;

  --popover: 222 47% 14%;
  --popover-foreground: 0 0% 95%;

  /* Deep Navy - RPM Brand */
  --primary: 222 47% 11%;
  --primary-foreground: 0 0% 100%;

  /* Slightly lighter navy */
  --secondary: 222 40% 18%;
  --secondary-foreground: 0 0% 95%;

  --muted: 222 35% 20%;
  --muted-foreground: 220 15% 65%;

  /* Gold Accent - matching WDS banner */
  --accent: 43 85% 55%;
  --accent-foreground: 222 47% 11%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 222 30% 25%;
  --input: 222 30% 25%;
  --ring: 43 85% 55%;

  --radius: 0.5rem;

  /* Custom RPM tokens */
  --navy-deep: 222 47% 8%;
  --navy-light: 222 40% 22%;
  --gold: 43 85% 55%;
  --gold-light: 43 75% 70%;
  --cream: 40 30% 97%;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(222 47% 8%) 0%, hsl(222 40% 16%) 100%);
  --gradient-gold: linear-gradient(135deg, hsl(43 85% 55%) 0%, hsl(40 80% 45%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(222 47% 11%) 0%, hsl(222 47% 8%) 100%);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Typography */
.font-display {
  font-family: 'Playfair Display', serif;
}

/* Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.h-screen {
  height: 100vh;
  overflow: hidden;
}

.bg-background {
  background-color: hsl(var(--background));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.text-gold {
  color: hsl(var(--gold));
}

.text-gold-light {
  color: hsl(var(--gold-light));
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-auto {
  width: auto;
}

.h-auto {
  height: auto;
}

.w-32 {
  width: 8rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-10 > * + * {
  margin-top: 2.5rem;
}

/* Reduce spacing for viewport fit */
.message-section > * + * {
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .message-section > * + * {
    margin-top: 1rem;
  }
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pt-4 {
  padding-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.leading-relaxed {
  line-height: 1.625;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-0 {
  opacity: 0;
}

.rounded-lg {
  border-radius: var(--radius);
}

.overflow-hidden {
  overflow: hidden;
}

.pointer-events-none {
  pointer-events: none;
}

.object-cover {
  object-fit: cover;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.inline-flex {
  display: inline-flex;
}

.hidden {
  display: none;
}

/* Responsive */
@media (min-width: 768px) {
  .md-hidden {
    display: none;
  }

  .md-block {
    display: block !important;
  }

  .md-flex {
    display: flex !important;
  }

  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .md\:space-y-14 > * + * {
    margin-top: 3.5rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .md\:h-20 {
    height: 5rem;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

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

@keyframes fadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px hsl(var(--gold) / 0.3); 
  }
  50% { 
    box-shadow: 0 0 40px hsl(var(--gold) / 0.5); 
  }
}

@keyframes shimmer {
  0% { 
    background-position: -200% 0; 
  }
  100% { 
    background-position: 200% 0; 
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.delay-100 { 
  animation-delay: 0.1s; 
}

.delay-200 { 
  animation-delay: 0.2s; 
}

.delay-300 { 
  animation-delay: 0.3s; 
}

.delay-400 { 
  animation-delay: 0.4s; 
}

.delay-500 { 
  animation-delay: 0.5s; 
}

/* Decorative elements */
.line-separator {
  width: 3px;
  height: 80px;
  background: linear-gradient(180deg, hsl(var(--primary)) 0%, hsl(var(--gold)) 100%);
}

.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, hsl(var(--gold)) 50%, transparent 100%);
}

/* Link underline animation */
.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(var(--gold));
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

.link-underline:hover {
  color: hsl(var(--gold-light));
}

/* Logo Styles */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: auto;
  width: auto;
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    max-height: 100px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-height: 60px;
  }
}

.logo-tagline {
  display: none;
  flex-direction: column;
  color: hsl(var(--gold));
  font-weight: 500;
  letter-spacing: 0.025em;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .logo-tagline {
    display: flex;
    font-size: 1rem;
  }
}

.logo-tagline-mobile {
  display: flex;
  flex-direction: column;
  color: hsl(var(--gold));
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .logo-tagline-mobile {
    display: none;
  }
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-section p {
  margin-bottom: 0.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--gold));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  .contact-email {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .contact-email {
    font-size: 0.9rem;
  }
}

.contact-email:hover {
  color: hsl(var(--gold-light));
}

.mail-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Event Banner */
.event-banner {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: 200px;
}

.event-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .event-banner {
    max-height: 250px;
    margin-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .event-banner {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .event-banner {
    max-height: 150px;
    margin-top: 0.75rem;
  }
}

/* Background Decorative Elements */
.bg-decorative {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-decorative-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 150vh;
  background: linear-gradient(to bottom, transparent, hsl(var(--gold)), transparent);
  opacity: 0.4;
  transform: rotate(-25deg);
  transform-origin: top right;
}

.bg-decorative-blur-1 {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 24rem;
  height: 24rem;
  background-color: hsl(var(--gold) / 0.05);
  border-radius: 50%;
  filter: blur(100px);
}

.bg-decorative-blur-2 {
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 500px;
  height: 500px;
  background-color: hsl(var(--navy-light) / 0.2);
  border-radius: 50%;
  filter: blur(120px);
}

.bg-decorative-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Main Content */
.main-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 1;
  overflow-y: auto;
  min-height: 0;
}

@media (min-width: 768px) {
  .main-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.content-wrapper {
  width: 100%;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .content-wrapper {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    gap: 0.5rem;
  }
}

/* Footer */
.footer {
  position: relative;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: center;
  z-index: 1;
  flex-shrink: 0;
}

.footer p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Message Section */
.message-section {
  text-align: center;
}

.message-section p {
  color: hsl(var(--foreground) / 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .message-section p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .message-section p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}

/* 404 Page Styles */
.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
}

.not-found-content {
  text-align: center;
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.not-found p {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.not-found a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.not-found a:hover {
  color: hsl(var(--primary) / 0.9);
}

