:root {
  /* Galactic Color Palette */
  --primary-dark: #0B1426;
  --secondary-space: #1E1B3E;
  --cosmic-background: #0F0D1A;
  --footer-void: #06050C;
  --indigo-accents: #6366F1;
  
  /* Derived Colors for Gradients */
  --galactic-blue: #1a2555;
  --deep-purple: #2d1b69;
  --nebula-gray: #2a2737;
  --star-white: #f8fafc;
  --cosmic-gray: #e2e8f0;
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Spacing Scale */
  --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;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-cosmic: 0 10px 25px -5px rgba(11, 20, 38, 0.3);
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cosmic-background);
  color: var(--cosmic-gray);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--star-white);
  line-height: 1.2;
  margin: 0 0 var(--space-lg) 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-xl);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

p {
  margin: 0 0 var(--space-lg) 0;
  color: var(--cosmic-gray);
  font-size: 1.1rem;
}

/* Links */
a {
  color: var(--indigo-accents);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--star-white);
  border-bottom-color: var(--indigo-accents);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Buttons - Pill Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-accents), var(--galactic-blue));
  color: var(--star-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--galactic-blue), var(--deep-purple));
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--cosmic-gray);
  border-color: var(--secondary-space);
}

.btn-secondary:hover {
  background: var(--secondary-space);
  color: var(--star-white);
  border-color: var(--indigo-accents);
}

/* Header */
.header {
  background: rgba(11, 20, 38, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 27, 62, 0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--star-white);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--cosmic-gray);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--star-white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
              linear-gradient(135deg, var(--primary-dark) 0%, var(--cosmic-background) 100%);
  position: relative;
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--star-white), var(--indigo-accents));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-2xl);
  color: var(--cosmic-gray);
  opacity: 0.9;
}

/* Section Layouts */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-dark {
  background: var(--primary-dark);
}

.section-mid {
  background: var(--secondary-space);
}

.section-light {
  background: var(--cosmic-background);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Cards */
.card {
  background: rgba(15, 13, 26, 0.8);
  border: 1px solid rgba(30, 27, 62, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-cosmic);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--indigo-accents);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.card-title {
  color: var(--star-white);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-content {
  color: var(--cosmic-gray);
  line-height: 1.6;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Forms */
.form-group {
  margin-bottom: var(--space-xl);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--star-white);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(11, 20, 38, 0.5);
  border: 2px solid rgba(30, 27, 62, 0.3);
  border-radius: var(--radius-md);
  color: var(--star-white);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--indigo-accents);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--footer-void);
  border-top: 1px solid rgba(30, 27, 62, 0.3);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: var(--space-4xl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.footer-text {
  color: var(--cosmic-gray);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.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); }
.mt-xl { margin-top: var(--space-xl); }

.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); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Focus States */
*:focus {
  outline: 2px solid var(--indigo-accents);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-menu {
    gap: var(--space-md);
  }
  
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .card {
    padding: var(--space-xl);
  }
  
  .grid {
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
  
  .card {
    padding: var(--space-lg);
  }
}

/* Animations & Micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Loading States */
.loading {
  animation: pulse 2s infinite;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .btn,
  .nav-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --cosmic-gray: #ffffff;
    --shadow-cosmic: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero,
  .section {
    background: white;
    box-shadow: none;
  }
}


/* 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;
    }
}