:root {
  --primary-color: #4a148c; /* Deep Purple for brain/cognitive vibe */
  --secondary-color: #00acc1; /* Vibrant Teal */
  --text-color: #333333;
  --bg-color: #f4f6f9;
  --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 fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 172, 193, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 172, 193, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 172, 193, 0); }
}

header {
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeInDown 0.8s ease-out;
}

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

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

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

.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);
}

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

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

.btn:hover, .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-pulse {
  animation: pulse 2s infinite;
}

main {
  padding: 60px 0;
}

.hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(to right, #fdfbfb 0%, #ebedee 100%);
  border-radius: 12px;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: #555;
}

article {
  background: var(--white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  animation: fadeInUp 1s ease-out;
}

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

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

h2 {
  font-size: 2rem;
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
}

h3 {
  font-size: 1.5rem;
}

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

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

li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

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

.blog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  animation: fadeInUp 1s ease-out both;
}

/* Stagger card animations */
.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 12px 30px rgba(0,0,0,0.1);
}

.blog-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}

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

.read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color var(--transition-speed);
}

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

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.cta-section {
  background: linear-gradient(135deg, #ede7f6 0%, #f3e5f5 100%);
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  margin: 50px 0;
  border: 1px solid #d1c4e9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cta-section h2 {
  margin-top: 0;
  border-left: none;
  padding-left: 0;
  color: var(--primary-color);
}

footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 50px 0;
  margin-top: 80px;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

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