:root {
  --primary-color: #6a1b9a; /* Deep purple for brain/cognitive health */
  --secondary-color: #00acc1; /* Vibrant teal for clarity/balance */
  --text-color: #37474f;
  --bg-color: #f3e5f5; /* Very light purple background */
  --white: #ffffff;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatElement {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 5px rgba(0, 172, 193, 0.4); }
  50% { box-shadow: 0 0 20px rgba(0, 172, 193, 0.8); }
  100% { box-shadow: 0 0 5px rgba(0, 172, 193, 0.4); }
}

header {
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--primary-color);
  animation: fadeIn 0.5s ease-out;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -1px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color var(--transition-speed);
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn, .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00838f 100%);
  color: var(--white) !important;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover, .cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 172, 193, 0.3);
}

.btn-glow {
  animation: glowPulse 2.5s infinite;
}

main {
  padding: 60px 0;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e1bee7 100%);
  border-radius: 12px;
  margin-bottom: 60px;
  animation: slideUpFade 0.8s ease-out forwards;
  box-shadow: 0 10px 25px rgba(106, 27, 154, 0.1);
  border: 1px solid #f3e5f5;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto;
  color: #546e7a;
}

article {
  background: var(--white);
  padding: 60px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  animation: slideUpFade 0.8s ease-out 0.2s forwards;
  opacity: 0;
  border-top: 5px solid var(--secondary-color);
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 35px;
  font-weight: 700;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  margin-top: 0;
  border-bottom: 2px solid #f3e5f5;
  padding-bottom: 15px;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-left: 20px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 5px;
  background-color: var(--secondary-color);
  border-radius: 10px;
}

h3 {
  font-size: 1.5rem;
  color: #4a148c;
}

p {
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: #455a64;
}

ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #455a64;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideUpFade 0.8s ease-out forwards;
  opacity: 0;
  border: 1px solid #ede7f6;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(106, 27, 154, 0.1);
  border-color: var(--secondary-color);
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 1.05rem;
  color: #78909c;
  margin-bottom: 25px;
}

.read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px dashed #b39ddb;
  background-color: #fafafa;
  padding: 40px;
  border-radius: 12px;
}

.related-posts h3 {
  margin-top: 0;
}

.cta-section {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  padding: 60px;
  text-align: center;
  border-radius: 12px;
  margin: 50px 0;
  border: 2px solid #ce93d8;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cta-section h2 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
}

.cta-section h2::before {
  display: none;
}

footer {
  background-color: #311b92;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 60px 0;
  margin-top: 80px;
  border-top: 4px solid var(--secondary-color);
}

footer a {
  color: #80deea;
  text-decoration: none;
}

footer p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
