:root {
  /* Galactic Minimalism Color Palette */
  --cosmic-primary: #1a1a2e;
  --cosmic-secondary: #16213e;
  --cosmic-background: #0f0f1e;
  --cosmic-footer: #0a0a15;
  --stellar-accent: #e94560;
  --stellar-light: #f8f9fa;
  --stellar-glow: #4a5568;
  
  /* Elegant Typography Scale */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing System */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Cosmic Elevation Shadows */
  --shadow-cosmic-sm: 0 2px 8px rgba(26, 26, 46, 0.3);
  --shadow-cosmic-md: 0 4px 16px rgba(26, 26, 46, 0.4);
  --shadow-cosmic-lg: 0 8px 32px rgba(26, 26, 46, 0.5);
  --shadow-stellar: 0 0 20px rgba(233, 69, 96, 0.2);
}

body {
  background: var(--cosmic-background);
  color: var(--stellar-light);
  font-family: var(--font-secondary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Galactic Typography System */
h1, h2, h3 {
  font-family: var(--font-primary);
  color: var(--stellar-light);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.005em;
}

p {
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  color: rgba(248, 249, 250, 0.85);
}

a {
  color: var(--stellar-accent);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: #ff6b8a;
}

a:focus {
  outline: 2px solid var(--stellar-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Cosmic Gradient Backgrounds */
.cosmic-gradient {
  background: linear-gradient(135deg, 
    var(--cosmic-primary) 0%, 
    var(--cosmic-secondary) 50%, 
    var(--cosmic-background) 100%);
}

.stellar-gradient {
  background: radial-gradient(ellipse at center, 
    rgba(233, 69, 96, 0.1) 0%, 
    var(--cosmic-background) 70%);
}

/* Cosmic Button System */
.btn-cosmic {
  background: var(--stellar-accent);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-xl);
  border-radius: 9999px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cosmic:hover {
  background: #ff6b8a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-stellar);
}

.btn-cosmic:focus {
  outline: 2px solid var(--stellar-accent);
  outline-offset: 2px;
}

.btn-outline-cosmic {
  background: transparent;
  color: var(--stellar-accent);
  border: 2px solid var(--stellar-accent);
  padding: calc(var(--space-sm) - 2px) var(--space-xl);
  border-radius: 9999px;
  font-family: var(--font-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-cosmic:hover {
  background: var(--stellar-accent);
  color: white;
  transform: translateY(-2px);
}

/* Underlined Link Style (Elegant & Minimal) */
.link-underlined {
  color: var(--stellar-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.link-underlined::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--stellar-accent);
  transition: width 0.3s ease;
}

.link-underlined:hover::after {
  width: 100%;
}

/* Stellar Card System */
.card-cosmic {
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 69, 96, 0.1);
  border-radius: 16px;
  padding: var(--space-2xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-cosmic:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-cosmic-lg);
  border-color: rgba(233, 69, 96, 0.3);
}

.card-cosmic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stellar-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-cosmic:hover::before {
  opacity: 1;
}

/* Cosmic Navigation */
.nav-cosmic {
  background: rgba(15, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.1);
  padding: var(--space-lg) 0;
}

.nav-cosmic a {
  color: var(--stellar-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-cosmic a:hover {
  color: var(--stellar-accent);
}

/* Stellar Form Elements */
.form-cosmic {
  background: rgba(22, 33, 62, 0.4);
  border: 1px solid rgba(233, 69, 96, 0.2);
  border-radius: 12px;
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
}

.input-cosmic {
  background: rgba(15, 15, 30, 0.6);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  color: var(--stellar-light);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.input-cosmic::placeholder {
  color: rgba(248, 249, 250, 0.5);
}

.input-cosmic:focus {
  outline: none;
  border-color: var(--stellar-accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.input-cosmic:hover {
  border-color: rgba(233, 69, 96, 0.5);
}

/* Galactic Section Backgrounds */
.section-primary {
  background: var(--cosmic-primary);
}

.section-secondary {
  background: var(--cosmic-secondary);
}

.section-cosmic {
  background: var(--cosmic-background);
}

.section-footer {
  background: var(--cosmic-footer);
}

/* Stellar Elements & Decorative */
.stellar-dot {
  width: 4px;
  height: 4px;
  background: var(--stellar-accent);
  border-radius: 50%;
  position: relative;
}

.stellar-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-cosmic {
    padding: var(--space-lg);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card-cosmic {
    padding: var(--space-md);
  }
  
  p {
    font-size: 1rem;
  }
}

/* Utility Classes for Galactical Spacing */
.space-cosmic-sm { margin-bottom: var(--space-sm); }
.space-cosmic-md { margin-bottom: var(--space-md); }
.space-cosmic-lg { margin-bottom: var(--space-lg); }
.space-cosmic-xl { margin-bottom: var(--space-xl); }
.space-cosmic-2xl { margin-bottom: var(--space-2xl); }
.space-cosmic-3xl { margin-bottom: var(--space-3xl); }

/* Accessibility & Focus States */
:focus-visible {
  outline: 2px solid var(--stellar-accent);
  outline-offset: 2px;
}

/* Selection Styling */
::selection {
  background: rgba(233, 69, 96, 0.3);
  color: var(--stellar-light);
}

::-moz-selection {
  background: rgba(233, 69, 96, 0.3);
  color: var(--stellar-light);
}

/* Scrollbar Styling (Webkit browsers) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cosmic-background);
}

::-webkit-scrollbar-thumb {
  background: var(--cosmic-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--stellar-accent);
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(22, 33, 62, 0.4) 25%, 
    rgba(233, 69, 96, 0.1) 50%, 
    rgba(22, 33, 62, 0.4) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Minimal Borders System */
.border-cosmic {
  border: 1px solid rgba(233, 69, 96, 0.2);
}

.border-cosmic-light {
  border: 1px solid rgba(248, 249, 250, 0.1);
}

/* Enhanced Hover States for Interactive Elements */
.interactive-cosmic:hover {
  background: rgba(233, 69, 96, 0.1);
  transition: background 0.3s ease;
}

/* Text Gradients for Stellar Effect */
.text-stellar {
  background: linear-gradient(135deg, var(--stellar-light) 0%, var(--stellar-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark Theme Optimizations */
@media (prefers-color-scheme: dark) {
  :root {
    --stellar-light: #f8f9fa;
    --stellar-glow: #718096;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}