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

/* Root & Body Styles */
:root {
  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --bg: #f9f9fb;
  --text: #1a1a1a;
  --text-muted: #555;
  --primary: #111;
  --primary-hover: #333;
  --accent: #0070f3;
  --accent-hover: #0051c2;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding: 2rem;
}

/* Containers */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* Logo + Intro */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.logo {
  width: 100%;
  max-width: 560px;
  height: auto;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.intro {
  font-size: 1.25rem;
  text-align: center;
  color: black;
  max-width: 720px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

h2, h3, h4 {
  font-weight: 600;
  color: var(--primary);
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

p {
  font-size: 1.125rem;
  margin: 1.25rem 0;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.btn:hover {
  background-color: var(--primary-hover);
}

/* Utilities */
.text-muted {
  color: var(--text-muted);
}
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Blog Feed Wrapper */
.blog-feed {
  padding-top: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


/* Blog Content */
.blog-content {
  padding: 1.75rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.blog-content h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.blog-content h3 {
  margin: 0;
  font-weight: 500;
  color: #888;
  font-size: 1rem;
}

.meta {
  color: #aaa;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.blog-content p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #444;
}

.read-more {
  margin-top: 1rem;
  font-weight: bold;
  color: var(--accent);
  transition: color 0.2s ease;
}
.read-more:hover {
  color: var(--accent-hover);
}

/* Blog Post Page */
.blog-post {
  text-align: left;
  padding: 2rem 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.blog-post h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.blog-post h2 {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-post .meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.post-body p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #333;
}
.post-body h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.post-body p {
  margin: 1rem 0;
  line-height: 1.6;
}

.post-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}
.share-buttons {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}
.share-buttons {
  margin-top: auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.share-buttons p {
  margin: 0;
  font-weight: 500;
}

.share-buttons a {
  text-decoration: none;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}

.share-buttons a:hover {
  opacity: 1;
}
.search-box {
  margin: 2rem auto;
  text-align: center;
}

.search-box input {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}
.category-button.reveal-button {
  font-weight: bold;
  background-color: var(--accent);
  color:black;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.category-button {
  background: linear-gradient(to right, #f5f7fa, #e4eaf1);
  border: 1px solid #ccd6e0;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  white-space: nowrap;
}

.category-button:hover {
  background: linear-gradient(to right, #e1eaff, #d4e1ff);
  border-color: #0070f3;
  color: #0070f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,112,243,0.15);
}

.category-button.active {
  background: #0070f3;
  color: white;
  border-color: #0059c1;
  font-weight: 500;
}

.fade-in {
  animation: fadeIn 0.4s ease-in;
}
.ai-news-section {
  background: var(--background);
  color: var(--foreground);
  padding: 2rem 1rem 3rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.ai-news-title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.ai-news-container {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ai-news-card {
  background: #f5f5f5;
  color: #111;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ai-news-headline {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.ai-news-snippet {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.ai-news-link {
  font-weight: 600;
  color: var(--accent-hover);
  text-decoration: none;
}

.ai-news-link:hover {
  text-decoration: underline;
}
/* Image Credit */
.image-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
}
.image-credit a {
  color: var(--text-muted);
  text-decoration: none;
}
.image-credit a:hover {
  text-decoration: underline;
}

/* AI Insight Section */
.ai-perspective {
  background: #eef3ff;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.ai-perspective h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-hover);
}
.ai-perspective p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

/* Source Article Link */
.source-link {
  font-size: 0.9rem;
  text-align: right;
  color: var(--text-muted);
}
.source-link a {
  color: var(--accent-hover);
  text-decoration: none;
}
.source-link a:hover {
  text-decoration: underline;
}
.blog-index {
  padding: 2rem 0;
}

.blog-index .intro {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 2rem auto;
  color: var(--text-muted);
}

.blog-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.blog-post-preview {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.blog-post-preview img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.blog-post-preview h2 {
  font-size: 1.4rem;
  margin: 1rem 1.25rem 0.5rem;
  color: var(--primary);
  text-align: left;
}

.blog-post-preview .meta {
  font-size: 0.85rem;
  color: #888;
  margin: 0 1.25rem;
  text-align: left;
}

.blog-post-preview p {
  font-size: 1rem;
  margin: 0.75rem 1.25rem 1.25rem;
  color: #444;
  text-align: left;
}
.thank-you-section {
  text-align: center;
  padding: 4rem 2rem;
}

.thank-you-logo {
  margin: 0 auto 2rem;
}

.thank-you-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.thank-you-home-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.thank-you-home-button:hover {
  background-color: var(--primary-hover);
}

.embeddable-buttondown-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.embeddable-buttondown-form input[type="email"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.embeddable-buttondown-form input[type="submit"] {
  padding: 0.5rem 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--accent, #0070f3);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.about-link:hover {
  color: var(--accent-hover, #0051c2);
  text-decoration: underline;
}
.about.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text);
}

.about-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-image-block {
  text-align: center;
  margin-bottom: 2rem;
}

.about-profile-image {
  max-width: 160px;
  border-radius: 90%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-section a {
  color: var(--accent, #0070f3);
  text-decoration: underline;
}
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

.contact-form label {
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  width: fit-content;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: var(--accent, #0070f3);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background-color: var(--accent-hover, #0051c2);
}

.featured-article-section {
  margin-bottom: 3rem;
  background: #f0f4ff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  padding: 1rem;
}

.featured-article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.featured-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.featured-content .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.featured-content p.read-more {
  font-weight: bold;
  margin-top: 1rem;
  color: #0070f3;
}
.subscribe-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.subscribe-hero .logo {
  margin: 0 auto 1rem;
}

.subscribe-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subscribe-hero .lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.subscribe-hero .bio {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.subscribe-hero .benefits {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 1.05rem;
}

.subscribe-hero .benefits li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscribe-hero .no-fluff {
  color: #333;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.embeddable-buttondown-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.embeddable-buttondown-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 360px;
  background: #fff;
  color: #000;
}

.embeddable-buttondown-form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.embeddable-buttondown-form input[type="submit"]:hover {
  background: #222;
}

.fine-print {
  font-size: 0.85rem;
  color: #666;
}
.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.contact-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.contact-intro,
.contact-footer {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-box {
  background-color: #f9f9f9;
  border-left: 4px solid #333;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-email {
  color: #0066cc;
  text-decoration: underline;
}
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #444;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #4a4a4a;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.privacy-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.last-updated {
  text-align: center;
  color: #888;
  margin-bottom: 2rem;
}

.privacy-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.privacy-image {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.privacy-content p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.privacy-content a {
  color: #4460f1;
  text-decoration: underline;
}
/* ----------------------
   Desktop Back Button
---------------------- */
.back-button {
  position: fixed;
  left: 30px;
  top: 40px;
  z-index: 1000;
  display: none;
  opacity: 0;
  animation: fadeInBackButton 0.8s ease-out 0.2s forwards;
  transition: top 0.4s ease;
}

@media screen and (min-width: 1024px) {
  .back-button {
    display: block;
  }
}

@keyframes fadeInBackButton {
  to {
    opacity: 1;
  }
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.65);
  color: #0d1b2a;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease, transform 0.2s ease;
}

.back-link:hover {
  background-color: rgba(13, 27, 42, 0.9);
  color: white;
  transform: scale(1.05);
}

.back-link:active {
  transform: scale(0.96);
}

.back-link svg {
  transition: transform 0.25s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* ✨ Satisfying squash effect */
.back-button.squashed .back-link {
  animation: squashPop 0.6s ease-out;
}

@keyframes squashPop {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.3, 0.7); }
  50% { transform: scale(0.9, 1.1); }
  100% { transform: scale(1, 1); }
}

/* ----------------------
   Mobile Back Button
---------------------- */
.mobile-back-button {
  display: none;
}

/* ✨ Newsletter Reminder Styling */
.newsletter-reminder {
  position: fixed;
  left: 40px;
  bottom: 100px;
  background: #0d1b2a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 1.2s ease-in, opacity 1.2s ease-in;
}

/* Wings split for flapping motion */
.newsletter-wing-left,
.newsletter-wing-right {
  display: inline-block;
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.newsletter-wing-left {
  animation-name: flapWingLeft;
}

.newsletter-wing-right {
  animation-name: flapWingRight;
}

/* Optional: Emoji or center dot as "bird body" */
.newsletter-bird-body {
  font-size: 1.4rem;
  transform-origin: center;
  animation: pulseBody 2s ease-in-out infinite;
}

/* Left wing flaps slightly upward and rotates inward */
@keyframes flapWingLeft {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-5px) rotate(-6deg); }
}

/* Right wing flaps slightly upward and rotates outward */
@keyframes flapWingRight {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-5px) rotate(6deg); }
}

/* Subtle pulse of the "body" if used */
@keyframes pulseBody {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Fly-away exit */
.newsletter-reminder.fly-away {
  animation: flyAway 1.4s forwards ease-in-out;
}

@keyframes flyAway {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  40% { transform: translateY(-80px) rotate(-10deg); opacity: 0.9; }
  70% { transform: translateY(-160px) translateX(60px) rotate(10deg); opacity: 0.5; }
  100% { transform: translateY(-300px) translateX(120px) rotate(20deg); opacity: 0; }
}


@media screen and (max-width: 1023px) {
  .mobile-back-button {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
  }

  .mobile-back-link {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 0.6rem;
    border-radius: 9999px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease, transform 0.2s ease;
  }

  .mobile-back-link:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
  }

  .mobile-back-link:active {
    transform: scale(0.95);
  }
}


.read-more-button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  color: #0779eb; /* Dark blue */
  overflow: hidden;
  padding: 0.5rem 1rem;
}

.read-more-text {
  position: relative;
  z-index: 2;
}

.read-more-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  height: 160%;
  background: none;
  border: 2px solid black;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 1;
  transition: none;
  pointer-events: none;
}

.read-more-arrow {
  opacity: 0;
  margin-left: 0.5rem;
  transform: translateX(-0.5rem);
  transition: opacity 0.3s ease 0.9s, transform 0.3s ease 0.9s;
  display: inline-block;
  font-weight: bold;
  color: #001133; /* Rich deep navy */
}

/* Underline lines */
.read-more-button::before,
.read-more-button::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #001133, #ccc); /* Deep blue to silver */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.read-more-button::before {
  bottom: 6px;
}

.read-more-button::after {
  bottom: 0;
  transition-delay: 0.4s;
}

/* Trigger everything on hover */
.read-more-button:hover .read-more-circle {
  animation: drawCircleOnce 1.8s ease-out forwards;
}
.read-more-button:hover::before {
  transform: scaleX(1);
  transition-delay: 0.6s;
}

.read-more-button:hover::after {
  transform: scaleX(1);
  transition-delay: 1s;
}

.read-more-button:hover .read-more-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Ellipse pencil-style animation */
@keyframes drawCircleOnce {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .logo {
    width: 50%;
  }

  h1 {
    font-size: 2.2rem;
  }

  .intro {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1rem;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .blog-content h2 {
    font-size: 1.25rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.1rem;
  }
}
.overlay-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #222;
}

.score-line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 1rem;
}

.score-line span {
  margin-right: 8px;
}


.highscores {
  background: #121212;
  color: #f8f8f8;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

.highscores h2 {
  font-size: 1.4rem;
  color: #ffe100;
  margin-bottom: 1.5rem;
}

.highscores ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highscores li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  margin: 0.3rem 0;
  background: #1f1f1f;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.highscores .rank {
  color: #00ffcc;
  font-weight: bold;
}

.highscores .name {
  flex-grow: 1;
  text-align: left;
  margin-left: 1rem;
  color: #ffffff;
}

.highscores .score {
  font-weight: bold;
  color: #ff4081;
}

.submit-score {
  margin-top: 1.5rem;
}

.submit-score input {
  padding: 0.5rem;
  border: 2px solid #ffe100;
  border-radius: 0.5rem;
  background: #181818;
  color: #fff;
  font-family: inherit;
  margin-right: 0.5rem;
}

.submit-score button {
  background: #ffe100;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #121212;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-score button:hover {
  background: #fff200;
}

.thanks {
  margin-top: 1rem;
  color: #00ffcc;
}



@keyframes pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 8px #ff9800;
  }
  100% {
    transform: scale(1.05);
    text-shadow: 0 0 14px #ffc107;
  }
}

/* Overlay styling (if not handled elsewhere) */
.overlay-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px #000;
  text-align: center;
  animation: fadeInScale 0.3s ease-out;
 
}

.overlay-box h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.overlay-box p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.overlay-button {
  margin-top: 1rem;
  background: #111;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.overlay-button:hover {
  background: #333;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.memory-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  background: rgba(28, 28, 46, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 20px 32px;
  margin-top: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
              0 0 24px rgba(0, 0, 0, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-block {
  background: linear-gradient(145deg, #181826, #10101a);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 120px;
  flex: 1;
  max-width: 160px;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { transform: rotate(25deg) translateX(-100%); }
  100% { transform: rotate(25deg) translateX(100%); }
}

.stat-block:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #aaa;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffe066;
  text-shadow: 0 0 2px #ffc107, 0 0 10px rgba(255, 208, 0, 0.4);
}

.stat-block.highlight {
  background: linear-gradient(135deg, #4a3600, #2c1f00);
  border: 1px solid #ffda6a;
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.4);
}

.overlay-card {
  background-color: #1f1f2f;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  color: #ffffff; /* Make all text bright */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  opacity: 1;
  filter: none;
}

.overlay-title {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 12px;
}

.overlay-description {
  font-size: 16px;
  line-height: 1.6;
  color: #dddddd;
  margin-bottom: 32px;
}

.overlay-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 24px;
  opacity: 1;
  filter: none;
}
.overlay-wrapper {
  display: flex;
  justify-content: center;
  align-items: center; /* optional for vertical centering */
  flex-direction: column;
  padding: 2rem;
}

.overlay-card {
  background-color: #1f1f2f;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  margin-top: 24px; /* or remove if using align-items center */
}

