/* 
 * Main CSS for anantasaurabh.com
 * Implements the scholarly, high-contrast design from the style guide
 */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Deep & Muted Palette */
  --bg-primary: #FCFBF6;        /* Off-White/Cream background */
  --bg-secondary: #FFFFFF;      /* White for cards */
  --bg-tertiary: #F8F9FA;      /* Light gray for subtle elements */
  --text-primary: #1A1A1A;      /* Deep Charcoal for main text */
  --text-secondary: #6B7280;    /* Gray for secondary text */
  --accent-primary: #304D6D;     /* Muted Navy for headers, links, buttons */
  --accent-secondary: #AA925E;   /* Dark Gold/Brass for highlights */
  --border-color: #E5E7EB;      /* Light gray for borders */
  
  /* Typography */
  --font-serif: 'Literata', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Source Code Pro', Consolas, monospace;
  
  /* Spacing & Layout */
  --max-width: 700px;
  --container-width: 1200px;
  --header-height: 70px;
  --section-spacing: 4rem;
  --element-spacing: 1.5rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.05);
  --shadow-md: 0 4px 6px rgba(26, 26, 26, 0.07);
  --shadow-lg: 0 10px 15px rgba(26, 26, 26, 0.1);
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--element-spacing);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.serif-title {
  font-family: var(--font-serif);
}

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

a {
  color: var(--accent-primary);
  text-decoration: underline;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--accent-secondary);
  transform: translateY(-1px);
}

blockquote {
  margin: calc(var(--element-spacing) * 2) 0;
  padding: var(--element-spacing);
  border-left: 4px solid var(--accent-secondary);
  background-color: rgba(170, 146, 94, 0.05);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: rgba(48, 77, 109, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre code {
  display: block;
  padding: var(--element-spacing);
  border-radius: 6px;
  overflow-x: auto;
}

/* ===== LAYOUT CONTAINERS ===== */
.content-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

.scholarly-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-primary);
}

/* ===== HEADER ===== */
.site-header {
  background-color: rgba(252, 251, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  transition: all var(--transition-normal);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-secondary);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-link {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo-link:hover {
  color: var(--accent-secondary);
}

.main-nav .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: all var(--transition-normal);
  border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-secondary);
  background-color: rgba(170, 146, 94, 0.1);
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--accent-secondary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-normal);
}

/* Reading Progress Bar */
.reading-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(170, 146, 94, 0.2);
}

.reading-progress-bar {
  height: 100%;
  background-color: var(--accent-secondary);
  width: 0%;
  transition: width var(--transition-fast);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  min-height: 100vh;
  padding-top: var(--header-height);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: calc(var(--header-height) + 3rem) 0 4rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(48, 77, 109, 0.05) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-size: var(--text-2xl);
  color: var(--accent-secondary);
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--accent-primary);
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: var(--font-sans);
}

.hero-description {
  font-size: var(--text-lg);
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.hero-image-container:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 30px 60px rgba(48, 77, 109, 0.25);
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(170, 146, 94, 0.1) 0%, 
    transparent 50%, 
    rgba(48, 77, 109, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.hero-image-container:hover::before {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  transition: transform var(--transition-smooth);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 60%, rgba(170, 146, 94, 0.1) 100%);
  transition: all var(--transition-normal);
  z-index: 1;
}

.hero-image-container:hover .image-overlay {
  background: linear-gradient(45deg, 
    rgba(170, 146, 94, 0.15) 0%, 
    transparent 40%, 
    rgba(48, 77, 109, 0.15) 100%);
}

/* ===== BUTTONS & CTAS ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-smooth);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.cta-button.primary {
  background-color: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cta-button.primary:hover {
  background-color: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(48, 77, 109, 0.4);
}

.cta-arrow {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.cta-button.secondary:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(48, 77, 109, 0.2);
}

.cta-icon {
  font-size: var(--text-lg);
}

.cta-link {
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.cta-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

/* ===== PAGE HEADERS ===== */
.page-header {
  padding: calc(var(--section-spacing) * 1.5) 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  margin-bottom: var(--section-spacing);
  margin-top: calc(var(--header-height) + 2rem);
}

.page-title {
  font-size: var(--text-4xl);
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: var(--text-xl);
  color: rgba(26, 26, 26, 0.7);
  margin: 0;
}

/* ===== LISTING PAGES ===== */
.projects-page,
.writes-page,
.gallery-page {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* Explorations page inherits imagines-section styling when using that class */

.projects-page .page-header,
.writes-page .page-header,
.explorations-page .page-header,
.gallery-page .page-header {
  margin-top: 0;
  padding: 3rem 0 2rem 0;
}

/* ===== ARTICLE/DETAIL PAGES ===== */
.article-container,
.project-container,
.exploration-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-primary);
  min-height: calc(100vh - var(--header-height));
}

.article-header {
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.article-title {
  font-size: var(--text-4xl);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: var(--text-base);
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.article-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: none;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* ===== ARTICLE AUTHOR STYLING ===== */
.article-authors {
  margin-bottom: 1rem;
  font-size: var(--text-base);
  color: var(--accent-primary);
  font-weight: 500;
}

.article-authors .author {
  color: var(--accent-primary);
  font-weight: 600;
}

.article-authors .co-author {
  color: var(--accent-secondary);
  font-weight: 500;
  margin-left: 0.5rem;
}

.card-author {
  color: var(--accent-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-right: 1rem;
}

.card-author::after {
  content: "•";
  margin-left: 1rem;
  color: rgba(26, 26, 26, 0.4);
}

/* Responsive author styling */
@media (max-width: 768px) {
  .article-authors {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .card-author::after {
    display: none;
  }
}

/* ===== CONTENT SECTIONS ===== */
.writes-section,
.writes-section,
.frames-section,
.now-section {
  padding: calc(var(--section-spacing) * 1.5) 0;
  background-color: var(--bg-primary);
}

.imagines-section {
  padding: calc(var(--section-spacing) * 2) 0;
  background: linear-gradient(135deg, 
    rgba(255, 107, 107, 0.03) 0%, 
    rgba(78, 205, 196, 0.03) 15%, 
    rgba(69, 183, 209, 0.03) 30%, 
    rgba(150, 206, 180, 0.03) 45%, 
    rgba(255, 234, 167, 0.03) 60%, 
    rgba(221, 160, 221, 0.03) 75%, 
    rgba(255, 159, 243, 0.03) 90%, 
    rgba(84, 160, 255, 0.03) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.imagines-section.explorations-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
}

.imagines-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(0.5px);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.codes-section {
  padding: calc(var(--section-spacing) * 2) 0;
  background-color: var(--text-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.codes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(48, 77, 109, 0.1) 0%, 
    transparent 50%, 
    rgba(170, 146, 94, 0.1) 100%);
  pointer-events: none;
}

.now-section {
  background-color: rgba(48, 77, 109, 0.03);
}

.section-header {
  margin-bottom: calc(var(--element-spacing) * 2);
  text-align: center;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.section-description {
  font-size: var(--text-lg);
  color: rgba(26, 26, 26, 0.7);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.codes-section .section-title {
  color: var(--accent-secondary);
}

.codes-section .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.section-cta {
  text-align: center;
  margin-top: calc(var(--element-spacing) * 2);
  position: relative;
  z-index: 2;
}

/* ===== CODES SECTION (DARK THEME) ===== */
.codes-section .content-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.codes-section .content-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.codes-section .card-title {
  color: white;
}

.codes-section .card-title a {
  color: white;
  transition: color var(--transition-normal);
}

.codes-section .card-title a:hover {
  color: var(--accent-secondary);
}

.codes-section .card-description {
  color: rgba(255, 255, 255, 0.8);
}

.codes-section .tech-tag {
  background-color: rgba(170, 146, 94, 0.2);
  color: var(--accent-secondary);
  border: 1px solid rgba(170, 146, 94, 0.3);
}

.codes-section .project-link {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.codes-section .project-link:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  background-color: rgba(170, 146, 94, 0.1);
}

.codes-section .cta-link {
  color: var(--accent-secondary);
  font-weight: 600;
}

.codes-section .cta-link:hover {
  color: white;
  transform: translateX(8px);
}

/* ===== IMAGINES SECTION (CRAZY THEME) ===== */
.imagines-section .section-header {
  position: relative;
  z-index: 3;
}

.imagines-section .section-title {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  position: relative;
}

.title-normal {
  color: var(--text-primary);
  font-weight: 400;
}

.title-crazy {
  color: #ff6b6b;
  font-weight: 700;
  font-style: italic;
  transform: rotate(-3deg);
  display: inline-block;
  text-shadow: 2px 2px 0 #4ecdc4, 4px 4px 0 #45b7d1;
  animation: crazyBounce 2s ease-in-out infinite alternate;
}

.title-sparkle {
  font-size: var(--text-2xl);
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes crazyBounce {
  0% { transform: rotate(-3deg) scale(1); }
  100% { transform: rotate(3deg) scale(1.05); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.2) rotate(180deg); }
}

.imagines-section .section-description {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-xl);
  position: relative;
  z-index: 2;
}

.thought-experiments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  align-items: start;
}

.thought-card {
  position: relative;
  margin-top: 2rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.thought-bubble {
  background: white;
  border-radius: 25px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: all var(--transition-bounce);
  transform-origin: center bottom;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.thought-bubble::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #ff6b6b, #ffb0b0, #f7d4d4, #ffffff);
  /* linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4); */
  border-radius: 28px;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.thought-card:hover .thought-bubble {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.thought-card:hover .thought-bubble::before {
  opacity: 1;
}

.thought-card:hover .thought-tail {
  border-top: 20px solid #ff6b6b;
  transform: rotate(2deg);
  transform-origin: top center;
}

.thought-tail {
  position: absolute;
  bottom: -15px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid white;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
  transition: all var(--transition-normal);
}

.what-if-label {
  font-size: var(--text-sm);
  color: #ff6b6b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  position: relative;
}

.what-if-label::after {
  content: '🤔';
  margin-left: 0.5rem;
  animation: thinking 2s ease-in-out infinite;
}

@keyframes thinking {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.thought-title {
  font-size: var(--text-lg);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
}

.thought-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.thought-title a:hover {
  /* color: #45b7d1; */
  color: #fe3838;
  text-shadow: 1px 1px 0 #4ecdc4;
}

.thought-excerpt {
  color: rgba(26, 26, 26, 0.8);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.mind-blown {
  position: absolute;
  top: -1rem;
  right: -1rem;
  z-index: 3;
  text-align: right;
  width: 60px;
  height: 60px;
}

.mind-blown-icon {
  width: 100%;
  height: 100%;
  opacity: 0.4;
  transition: all var(--transition-normal);
  animation: mindBlownFloat 3s ease-in-out infinite;
  font-size: 2rem;
}

.thought-card:hover .mind-blown-icon {
  opacity: 0.6;
  transform: scale(1.1) rotate(5deg);
}

@keyframes mindBlownFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% { 
    transform: translateY(-5px) rotate(2deg);
    opacity: 0.4;
  }
}

.thought-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(26, 26, 26, 0.6);
  margin-top: auto;
}

.thought-depth {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.thought-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-top: auto;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
}

.thought-tags .tech-tag {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.2);
  transition: all var(--transition-fast);
}

.thought-tags .tech-tag:hover {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
  transform: scale(1.05);
}

.crazy-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-xl);
  padding: 1rem 2rem;
  background: white;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-bounce);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.crazy-link::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  border-radius: 53px;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.crazy-link:hover {
  transform: scale(1.1) rotate(-2deg);
  color: white;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.crazy-link:hover::before {
  opacity: 1;
}

.link-icons {
  font-size: var(--text-2xl);
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== NOW SECTION ===== */
.now-section {
  padding: calc(var(--section-spacing) * 1.5) 0;
  background-color: rgba(48, 77, 109, 0.03);
  margin-top: var(--section-spacing);
}

.now-card {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.now-text {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--element-spacing);
}

.now-updated {
  font-size: var(--text-sm);
  color: rgba(26, 26, 26, 0.6);
  margin: 0;
  font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--text-primary);
  color: white;
  padding: calc(var(--section-spacing) * 1.5) 0 var(--section-spacing);
  /* margin-top: calc(var(--section-spacing) * 2); */
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: calc(var(--section-spacing) * 1.5);
}

.footer-section h4 {
  color: var(--accent-secondary);
  font-size: var(--text-base);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--accent-secondary);
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: var(--text-sm);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background-color: var(--accent-secondary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--element-spacing);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  font-style: italic;
}

/* ===== ANIMATION EFFECTS ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* AOS Custom Animations */
[data-aos="fade-up-stagger"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up-stagger"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .scholarly-layout,
  .article-container,
  .project-container,
  .exploration-container {
    padding: 1rem;
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .article-header {
    padding-top: 1rem;
    margin-bottom: 2rem;
  }
  
  .article-title {
    font-size: var(--text-3xl);
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .page-header {
    margin-top: calc(var(--header-height) + 1rem);
    padding: 2rem 0;
  }
  
  .page-title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .scholarly-layout,
  .article-container,
  .project-container,
  .exploration-container {
    padding: 0.5rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .article-content {
    font-size: var(--text-base);
  }
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-6);
  margin-top: var(--spacing-6);
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.project-card h3,
.project-card .card-title {
  color: var(--text-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-3);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

.project-card .card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.project-card .card-title a:hover {
  color: var(--accent-primary);
}

.project-card .description,
.project-card .card-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-4);
  line-height: 1.6;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-4);
}

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.tech-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-right: var(--spacing-2);
}

.tech-more {
  background: var(--accent-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--border-color);
}

.status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.status-active,
.status-badge.active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.status-completed,
.status-badge.completed {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.status-development,
.status-badge.development {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.status-planning,
.status-badge.planning {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.project-links {
  display: flex;
  gap: var(--spacing-3);
}

.project-links {
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
}

.project-links a,
.project-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.project-links a:hover,
.project-link:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.project-link.primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.project-link.primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

/* Content Container */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Card Content */
.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.project-card time {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Featured Projects */
.featured-projects {
  margin-bottom: calc(var(--section-spacing) * 1.5);
}

.featured-projects .projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: calc(var(--spacing-6) * 1.5);
}

.featured-card {
  border: 2px solid var(--accent-secondary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(170, 146, 94, 0.02) 100%);
}

.featured-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(170, 146, 94, 0.15);
}

.project-status {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-2);
  min-height: 2rem;
  align-items: flex-start;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }
  
  .content-container {
    padding: 0 var(--spacing-2);
  }
  
  .project-card {
    padding: var(--spacing-4);
  }
}

/* ===== CODES PAGE DARK THEME ===== */
.projects-page {
  background-color: var(--text-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.projects-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(48, 77, 109, 0.1) 0%, 
    transparent 50%, 
    rgba(170, 146, 94, 0.1) 100%);
  pointer-events: none;
}

.projects-page .page-header {
  position: relative;
  z-index: 2;
}

.projects-page .page-title {
  color: var(--accent-secondary);
}

.projects-page .page-description {
  color: rgba(255, 255, 255, 0.8);
}

.projects-page .section-title {
  color: var(--accent-secondary);
}

.projects-page .content-container {
  position: relative;
  z-index: 2;
}

/* Dark theme for project cards on codes page */
.projects-page .project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.projects-page .project-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.projects-page .project-card .card-title {
  color: white;
}

.projects-page .project-card .card-title a {
  color: white;
  transition: color var(--transition-normal);
}

.projects-page .project-card .card-title a:hover {
  color: var(--accent-secondary);
}

.projects-page .project-card .card-description {
  color: rgba(255, 255, 255, 0.8);
}

.projects-page .tech-tag {
  background-color: rgba(170, 146, 94, 0.2);
  color: var(--accent-secondary);
  border: 1px solid rgba(170, 146, 94, 0.3);
}

.projects-page .project-links a,
.projects-page .project-link {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.projects-page .project-links a:hover,
.projects-page .project-link:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  background-color: rgba(170, 146, 94, 0.1);
  transform: translateY(-1px);
}

.projects-page .project-link.primary {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
}

.projects-page .project-link.primary:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.projects-page .project-card time {
  color: rgba(255, 255, 255, 0.6);
}

.projects-page .status-badge.status-development {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.projects-page .status-badge.status-completed {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.projects-page .status-badge.status-active {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Dark theme for featured cards */
.projects-page .featured-card {
  border: 2px solid var(--accent-secondary);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(170, 146, 94, 0.05) 100%);
}

.projects-page .featured-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(170, 146, 94, 0.25);
}

/* ===== PROJECT FILTERS ===== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-3);
  margin: var(--spacing-6) 0;
  justify-content: center;
}

.projects-page .project-filters {
  position: relative;
  z-index: 2;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Dark theme for filter buttons on codes page */
.projects-page .filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.projects-page .filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-secondary);
  color: white;
}

.projects-page .filter-btn.active {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
}

/* ===== PROJECT DETAIL PAGE DARK THEME ===== */
.project-container {
  background-color: var(--text-primary);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.project-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(48, 77, 109, 0.1) 0%, 
    transparent 50%, 
    rgba(170, 146, 94, 0.1) 100%);
  pointer-events: none;
}

.project-container > * {
  position: relative;
  z-index: 2;
}

/* Breadcrumb styling for dark theme */
.project-container .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.project-container .breadcrumb:hover {
  color: var(--accent-secondary);
}

/* Project header styling */
.project-container .article-title {
  color: var(--accent-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.project-container .article-meta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.project-container .article-meta time {
  color: rgba(255, 255, 255, 0.7);
}

.project-container .status-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--text-sm);
}

/* Action buttons styling */
.project-container .cta-button {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-container .cta-button:hover {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(170, 146, 94, 0.3);
}

.project-container .cta-button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.project-container .cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
}

/* Content styling */
.project-container .article-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: none;
}

.project-container .article-content h1,
.project-container .article-content h2,
.project-container .article-content h3,
.project-container .article-content h4 {
  color: var(--accent-secondary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.project-container .article-content h1:first-child,
.project-container .article-content h2:first-child,
.project-container .article-content h3:first-child {
  margin-top: 0;
}

.project-container .article-content p {
  margin-bottom: 1.5rem;
}

.project-container .article-content ul,
.project-container .article-content ol {
  color: rgba(255, 255, 255, 0.8);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.project-container .article-content li {
  margin-bottom: 0.5rem;
}

.project-container .article-content strong {
  color: white;
  font-weight: 600;
}

/* Tech stack sidebar styling */
.project-container .tech-stack {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-container .tech-stack h3 {
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  font-size: var(--text-xl);
}

.project-container .tech-tag {
  background: rgba(170, 146, 94, 0.2);
  color: var(--accent-secondary);
  border: 1px solid rgba(170, 146, 94, 0.3);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: var(--text-sm);
}

.project-container .tech-tag:hover {
  background: rgba(170, 146, 94, 0.3);
  transform: translateY(-1px);
}

/* Links section styling */
.project-container .project-links {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.project-container .project-links h3 {
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
  font-size: var(--text-xl);
}

.project-container .project-link {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all var(--transition-fast);
}

.project-container .project-link:hover {
  background: var(--accent-secondary);
  color: white;
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Category section styling */
.project-container .category-badge {
  background: rgba(48, 77, 109, 0.3);
  color: #60a5fa;
  border: 1px solid rgba(48, 77, 109, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--text-sm);
  display: inline-block;
  margin: 1rem 0;
}

/* Responsive adjustments for project detail */
@media (max-width: 768px) {
  .project-container {
    padding: 1rem;
  }
  
  .project-container .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .project-container .tech-stack,
  .project-container .project-links {
    padding: 1.5rem;
  }
}

/* ===== EXPLORATION DETAIL PAGE (WILD THEME) ===== */
.exploration-detail-page {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.exploration-thought-bubble {
  background: white;
  border-radius: 25px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 3px solid transparent;
  background-clip: padding-box;
  max-width: 900px;
  width: 100%;
  margin: 2rem;
  animation: gentleFloat 6s ease-in-out infinite;
}

.exploration-thought-bubble::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, 
    rgba(255, 107, 107, 0.15), 
    rgba(78, 205, 196, 0.15), 
    rgba(69, 183, 209, 0.15), 
    rgba(150, 206, 180, 0.15), 
    rgba(255, 234, 167, 0.15), 
    rgba(221, 160, 221, 0.15));
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  border-radius: 28px;
  z-index: -1;
}

.exploration-thought-bubble .thought-tail {
  position: absolute;
  bottom: -18px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 25px solid white;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.1));
  z-index: 2;
}

.exploration-thought-bubble .mind-blown {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  z-index: 3;
  width: 80px;
  height: 80px;
}

.exploration-thought-bubble .mind-blown-icon {
  width: 100%;
  height: 100%;
  font-size: 3rem;
  animation: mindBlownFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-5px) rotate(0.5deg);
  }
}

.exploration-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid rgba(255, 107, 107, 0.2);
  padding-bottom: 2rem;
}

.exploration-header .crazy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.exploration-header .crazy-link:hover {
  transform: translateX(-5px);
}

.exploration-header .crazy-link:hover .title-crazy {
  animation: crazyBounce 0.6s ease-in-out;
}

.exploration-title {
  font-size: var(--text-3xl);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.exploration-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
}

.exploration-date {
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
}

.thought-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.thought-content h2,
.thought-content h3,
.thought-content h4,
.thought-content h5,
.thought-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.thought-content h1 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.thought-content h2 {
  font-size: var(--text-2xl);
  border-bottom: 2px solid #00000033;
  padding-bottom: 0.5rem;
}

.thought-content h3 {
  font-size: var(--text-xl);
  color: #4ecdc4;
}

.thought-content p {
  margin-bottom: 1.5rem;
}

.thought-content blockquote {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border-left: 4px solid #ff6b6b;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  position: relative;
}

.thought-content blockquote::before {
  content: '💭';
  position: absolute;
  top: -10px;
  left: -10px;
  background: white;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: var(--text-lg);
}

.thought-content ul,
.thought-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.thought-content li {
  margin-bottom: 0.75rem;
  position: relative;
}

.thought-content ul li::before {
  content: '🌟';
  position: absolute;
  left: -1.5rem;
  animation: sparkle 2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

.thought-content code {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  color: #ff6b6b;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.thought-content pre {
  background: var(--text-primary);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 3px solid #ff6b6b;
}

.thought-content pre code {
  background: none;
  color: var(--accent-secondary);
  padding: 0;
}

.exploration-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 107, 107, 0.2);
}

.exploration-footer .crazy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-lg);
  transition: all var(--transition-normal);
  padding: 1rem 2rem;
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 25px;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
}

.exploration-footer .crazy-link:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border-color: #ff6b6b;
}

.exploration-footer .crazy-link:hover .title-sparkle {
  animation: sparkle 0.8s ease-in-out;
}

/* ===== ABOUT PAGE STYLING ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  margin-bottom: calc(var(--section-spacing) * 1.5);
  text-align: center;
}

.about-intro .lead {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  line-height: 1.4;
}

.about-intro p:not(.lead) {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.8);
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.about-methodology {
  margin-bottom: calc(var(--section-spacing) * 1.5);
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.method-item {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 26, 26, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.method-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(170, 146, 94, 0.05), transparent);
  transition: left var(--transition-smooth);
}

.method-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(48, 77, 109, 0.12);
  border-color: var(--accent-secondary);
}

.method-item:hover::before {
  left: 100%;
}

.method-item h3 {
  font-size: var(--text-xl);
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.method-item p {
  color: rgba(26, 26, 26, 0.8);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

.about-vision {
  margin-bottom: calc(var(--section-spacing) * 1.5);
  background: rgba(48, 77, 109, 0.02);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(48, 77, 109, 0.1);
}

.vision-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(26, 26, 26, 0.8);
}

.philosophy-quote {
  background: linear-gradient(135deg, rgba(170, 146, 94, 0.1), rgba(48, 77, 109, 0.05));
  border-left: 4px solid var(--accent-secondary);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
  font-size: var(--text-xl);
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent-primary);
  position: relative;
}

.philosophy-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--accent-secondary);
  opacity: 0.3;
  font-family: var(--font-serif);
}

.about-background {
  margin-bottom: calc(var(--section-spacing) * 1.5);
}

.background-content p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(26, 26, 26, 0.8);
}

.about-connect {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 26, 26, 0.08);
  text-align: center;
}

.connect-content > p {
  font-size: var(--text-lg);
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.newsletter-signup {
  background: rgba(48, 77, 109, 0.02);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(48, 77, 109, 0.1);
}

.newsletter-signup h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-size: var(--text-xl);
}

.newsletter-signup p {
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 1.5rem;
}

.newsletter-form.inline {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-form.inline input {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

/* ===== CONTACT PAGE STYLING ===== */
.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-intro p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 3rem;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.contact-form .form-group {
  margin-bottom: 2rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: var(--text-base);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(26, 26, 26, 0.1);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  background-color: white;
  transition: all var(--transition-normal);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(48, 77, 109, 0.1);
  transform: translateY(-1px);
}

.contact-form textarea {
  min-height: 150px;
  line-height: 1.6;
}

.contact-form .cta-button {
  width: 100%;
  justify-content: center;
  font-size: var(--text-lg);
  padding: 1.25rem 2rem;
  margin-top: 1rem;
}

.contact-sidebar {
  background: rgba(48, 77, 109, 0.02);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(48, 77, 109, 0.1);
  height: fit-content;
}

.contact-methods {
  margin-bottom: 2.5rem;
}

.contact-methods h3 {
  color: var(--accent-primary);
  font-size: var(--text-xl);
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method h4 {
  color: var(--text-primary);
  font-size: var(--text-base);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link:hover {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.response-time {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.response-time h4 {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  font-size: var(--text-base);
}

.response-time p {
  color: rgba(26, 26, 26, 0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN FOR ABOUT & CONTACT ===== */
@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .methodology-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .connect-links {
    flex-direction: column;
    align-items: center;
  }
  
  .newsletter-form.inline {
    flex-direction: column;
  }
  
  .newsletter-form.inline input {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .about-vision,
  .about-connect,
  .contact-form,
  .contact-sidebar {
    padding: 2rem 1.5rem;
  }
  
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  
  .method-item {
    padding: 2rem 1.5rem;
  }
  
  .philosophy-quote {
    padding: 1.5rem 2rem;
    font-size: var(--text-lg);
  }
}
