:root {
  /* Cosmic Color Palette */
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a2e;
  --cosmic-bg: #0f0f23;
  --footer-bg: #000000;
  --accent-cyan: #00ffff;
  --section-alt: #16213e;
  --text-primary: #f8f9fa;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  
  /* Elegant Minimal Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Border Radius */
  --radius-pill: 9999px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  
  /* Shadows */
  --shadow-cosmic: 0 0 0 1px rgba(0, 255, 255, 0.1), 0 8px 32px rgba(0, 255, 255, 0.08);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--cosmic-bg) 0%, var(--secondary-dark) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-secondary);
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--accent-cyan);
  opacity: 0.8;
}

/* Container System */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section Layouts */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-cosmic {
  background: var(--section-alt);
}

.section-cosmic:nth-child(even) {
  background: var(--cosmic-bg);
}

/* Header Styles */
.header {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  border: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 255, 255, 0.1);
  border: none;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, rgba(0, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(0, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(0, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60% 10%, rgba(0, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 80% 80%, rgba(0, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--primary-dark);
  box-shadow: var(--shadow-cosmic);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.2), 0 12px 40px rgba(0, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--primary-dark);
}

/* Card Components */
.card {
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: rgba(0, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--accent-cyan);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 46, 0.4);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-textarea {
  border-radius: var(--radius-md);
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }

.display-none { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-sm);
  }
  
  .nav-links a {
    padding: var(--space-xs);
    font-size: 0.9rem;
  }
  
  .container,
  .container-wide {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  
  .nav {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }
  
  .hero {
    min-height: 70vh;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  to {
    left: 100%;
  }
}


/* 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;
    }
}