/* Updated styles with bolder colors and checkerboard pattern */
:root {
  /* Primary Colors */
  --deep-purple: #4B0082;
  --vibrant-red: #C70039;
  --emerald-green: #046307;
  
  /* Secondary Colors */
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #F0F0F0;
  
  /* Accent Colors */
  --bright-red: #FF0000;
  --gold: #FFD700;
  --electric-blue: #0000FF;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Checkerboard pattern */
.checkerboard {
  background-image: 
    linear-gradient(45deg, var(--black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--black) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

.checkerboard-light {
  background-color: var(--white);
  background-image: 
    linear-gradient(45deg, var(--black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--black) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

.checkerboard-overlay {
  position: relative;
}

.checkerboard-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, var(--black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--black) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  opacity: 0.1;
  z-index: -1;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--deep-purple);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--vibrant-red);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--bright-red);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
}

/* Button Styles */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--deep-purple);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--vibrant-red);
  transform: scale(1.05);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--deep-purple);
  border: 2px solid var(--deep-purple);
}

.btn-secondary:hover {
  background-color: rgba(75, 0, 130, 0.1);
  transform: scale(1.05);
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 2px solid var(--black);
  transition: var(--transition-medium);
}

.header-scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  font-family: 'Alice', serif;
  font-size: 1.5rem;
  color: var(--deep-purple);
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: var(--spacing-md);
}

.nav-links a {
  color: var(--black);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--vibrant-red);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--deep-purple);
}

.mobile-menu-btn:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  background-color: var(--deep-purple);
  border-bottom: 5px solid var(--vibrant-red);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-lg);
  border: 2px solid var(--black);
  border-radius: 8px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--deep-purple);
}

.hero-subtitle {
  font-family: 'Alice', serif;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--vibrant-red);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Journey Sections */
.journey-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0;
}

.journey-section:nth-child(odd) {
  background-color: var(--white);
}

.journey-section:nth-child(even) {
  background-color: var(--light-gray);
}

.journey-section-divider {
  height: 40px;
  background-image: 
    linear-gradient(45deg, var(--black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--black) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  border-top: 5px solid var(--vibrant-red);
  border-bottom: 5px solid var(--vibrant-red);
}

.journey-content {
  position: relative;
  z-index: 2;
}

.journey-title {
  color: var(--deep-purple);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.journey-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--vibrant-red);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4, .col-md-6 {
  padding: 0 15px;
  margin-bottom: var(--spacing-md);
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Cards */
.card {
  background-color: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: var(--transition-medium);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, var(--black) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--black) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--black) 75%),
    linear-gradient(-45deg, transparent 75%, var(--black) 75%);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--vibrant-red);
}

.card:hover::before {
  opacity: 0.05;
}

.feature-card {
  background-color: var(--deep-purple);
  color: var(--white);
  border: 2px solid var(--vibrant-red);
  border-radius: 8px;
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.3) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0,0,0,0.3) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.3) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.3) 75%);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-card h3, .feature-card p {
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  color: var(--white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-bounce), transform var(--transition-bounce);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--vibrant-red);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--vibrant-red);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--white);
}

.footer-links a:hover {
  color: var(--vibrant-red);
}

.footer-links a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.social-links {
  display: flex;
  list-style: none;
}

.social-links li {
  margin-right: var(--spacing-sm);
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--vibrant-red);
}

.copyright {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: var(--spacing-sm);
}

.legal-links li {
  margin: 0 var(--spacing-sm);
}

.legal-links a {
  color: var(--white);
  font-size: 0.875rem;
}

.legal-links a:hover {
  color: var(--vibrant-red);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.reduce-motion {
  scroll-behavior: auto;
}

.reduce-motion * {
  transition: none !important;
  animation: none !important;
}

.reduce-motion-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--deep-purple);
  color: var(--white);
  border: 2px solid var(--vibrant-red);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.reduce-motion-toggle:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--deep-purple);
  color: var(--white);
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--gold);
}

/* Responsive Styles */
@media (max-width: 1023px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .col-md-4, .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--black);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: var(--spacing-xs) 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-column {
    flex: 100%;
  }
  
  .legal-links {
    flex-direction: column;
    align-items: center;
  }
  
  .legal-links li {
    margin: var(--spacing-xs) 0;
  }
}
