/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #2d3748;
  line-height: 1.6;
}

/* Container for responsive layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
header {
  background: #1a202c;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #63b3ed;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background: #2d3748;
  color: #63b3ed;
  transform: translateY(-2px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: #63b3ed;
}

.menu-toggle .hamburger {
  width: 25px;
  height: 3px;
  background: currentColor;
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: currentColor;
  transition: all 0.3s ease;
}

.menu-toggle .hamburger::before {
  top: -8px;
}

.menu-toggle .hamburger::after {
  bottom: -8px;
}

/* Hamburger animation */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a202c;
  border-top: 1px solid #2d3748;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 1rem 2rem;
  color: #e2e8f0;
  text-decoration: none;
  border-bottom: 1px solid #2d3748;
  transition: all 0.3s ease;
  font-weight: 500;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  background: #2d3748;
  color: #63b3ed;
  padding-left: 2.5rem;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: white;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #e2e8f0;
}

.button {
  display: inline-block;
  background: #3182ce;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
  background: #2c5aa0;
}

/* Content Blocks Section */
.content-blocks {
  padding: 3rem 1rem;
  background: #f7fafc;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.content-blocks h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a202c;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-block {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background: #ebf8ff;
  border-color: #3182ce;
}

.content-block h4 {
  color: #3182ce;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #3182ce;
  padding-bottom: 0.5rem;
}

.block-content {
  color: #4a5568;
}

.block-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.block-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.block-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.block-content li:last-child {
  border-bottom: none;
}

.block-content li:before {
  content: "•";
  color: #3182ce;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.block-link {
  display: inline-block;
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 2px solid #3182ce;
  border-radius: 5px;
  background: transparent;
}

.block-link:hover {
  background: #3182ce;
  color: white;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #1a202c;
  color: #e2e8f0;
  margin-top: 3rem;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  /* Mobile styles */
  .header-content {
    flex-direction: row;
    gap: 1rem;
  }
  
  /* Hide desktop navigation on mobile */
  nav {
    display: none;
  }
  
  /* Show mobile menu toggle */
  .menu-toggle {
    display: block;
  }
  
  /* Show mobile menu when active */
  .mobile-menu {
    display: block;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .content-blocks {
    padding: 2rem 1rem;
  }
  
  .blocks-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .content-block {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  /* Small mobile styles */
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .content-blocks h3 {
    font-size: 1.5rem;
  }
  
  .content-block {
    padding: 0.8rem;
  }
  
  .content-block h4 {
    font-size: 1.1rem;
  }
  
  .block-content li {
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet styles */
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  /* Desktop styles */
  .container {
    padding: 0 2rem;
  }
  
  .hero {
    padding: 5rem 2rem;
  }
  
  .hero h2 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .content-blocks {
    padding: 4rem 2rem;
  }
  
  .content-blocks h3 {
    font-size: 2.5rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .button {
    border: 2px solid currentColor;
  }
  
  nav a:hover {
    background: #4a5568;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a202c;
    color: #e2e8f0;
  }
  
  .content-blocks {
    background: #2d3748;
  }
  
  .content-block {
    background: #4a5568;
    border-color: #3182ce;
  }
  
  .content-block:hover {
    background: #2d3748;
  }
  
  .block-content {
    color: #a0aec0;
  }
  
  .block-content li {
    border-color: #4a5568;
  }
}
