/* ============================================
   MPU2222 Personal Development - Reflective Log
   e-Portfolio Stylesheet
   MODERN ATTRACTIVE DESIGN - Blue Theme
   ============================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Dynamic Background Palette */
  --bg-main: #f0f4f8;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-accent: #e8f4fd;
  
  /* Blue Spectrum - More Vibrant */
  --blue-900: #1a365d;
  --blue-800: #1e4976;
  --blue-700: #2563eb;
  --blue-600: #3b82f6;
  --blue-500: #60a5fa;
  --blue-400: #93c5fd;
  --blue-300: #bfdbfe;
  --blue-200: #dbeafe;
  --blue-100: #eff6ff;
  --blue-50: #f8fbff;
  
  /* Accent Colors - More Variety */
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --pink-500: #ec4899;
  --green-500: #22c55e;
  
  /* Supporting Colors */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  
  /* Accent */
  --accent-gold: #fbbf24;
  --accent-gold-light: #fcd34d;
  
  /* Text */
  --text-heading: var(--blue-900);
  --text-body: var(--slate-700);
  --text-muted: var(--slate-500);
  --text-light: var(--slate-400);
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-blue: var(--blue-200);
  
  /* Shadows - More Dramatic */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
  
  /* Layout */
  --max-width: 920px;
  --spacing: 2rem;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ---------- Body ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-body);
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f0fe 50%, #f0f4f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Animated gradient top bar */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400), var(--purple-500), var(--blue-600));
  background-size: 300% 100%;
  animation: gradient-shift 8s ease infinite;
  z-index: 9999;
}

/* Decorative floating orbs */
body::after {
  content: '';
  position: fixed;
  top: 20%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

h1 span.gradient-text,
h1.gradient-text {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--purple-500) 50%, var(--teal-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-400));
  border-radius: 4px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400), transparent);
  border-radius: 3px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-700);
  margin: 1.75rem 0 1rem;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.page-intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 700px;
  margin-bottom: 3rem;
  line-height: 1.85;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* Links - Enhanced */
a {
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--blue-700);
}

a:not(.active):not([class])::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400));
  transition: width 0.3s ease;
}

a:not(.active):not([class]):hover::after {
  width: 100%;
}

/* ---------- Header - Glass Effect ---------- */
header {
  position: sticky;
  top: 5px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 var(--radius) var(--radius);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--blue-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-title a::before {
  content: '';
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-400));
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.site-title a:hover {
  text-decoration: none;
  color: var(--blue-700);
}

.site-title a:hover::before {
  transform: scale(1.2);
}

/* Navigation - Pill Style */
nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: var(--slate-100);
  padding: 0.35rem;
  border-radius: 50px;
}

nav a {
  color: var(--slate-600);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

nav a::after {
  display: none;
}

nav a:hover {
  background: white;
  color: var(--blue-600);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

nav a.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

nav a.active:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  transform: translateY(-1px);
}

/* ---------- Main Content ---------- */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--spacing);
  width: 100%;
}

/* ---------- Sections - Card Style with Effects ---------- */
section {
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out backwards;
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400), var(--purple-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

section:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-200);
}

section:hover::before {
  opacity: 1;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* ---------- Helper Text Box ---------- */
.helper-text {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.helper-text strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blue-800);
  font-weight: 600;
}

.helper-text ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  color: var(--text-body);
}

.helper-text li {
  margin-bottom: 0.35rem;
}

/* ---------- Content Placeholder ---------- */
.content-placeholder {
  background: var(--bg-soft);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1rem;
  min-height: 150px;
}

.content-placeholder p {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

/* ---------- Image Placeholder - Interactive ---------- */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--blue-50) 50%, var(--bg-soft) 100%);
  border: 2px dashed var(--blue-300);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%);
  animation: shimmer 3s ease infinite;
  background-size: 200% 200%;
}

.image-placeholder:hover {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 50%, var(--blue-50) 100%);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.image-placeholder .placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

.image-placeholder .placeholder-text {
  color: var(--blue-700);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.image-placeholder .placeholder-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  font-style: italic;
}

/* When image is added - styles for the actual image */
.image-placeholder img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.image-placeholder.has-image {
  border: none;
  background: transparent;
  padding: 0;
}

/* Image caption */
.image-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

/* ---------- Video Container ---------- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
}

.video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Charter List - Enhanced Cards ---------- */
.charter-list {
  list-style: none;
  counter-reset: charter;
  margin-top: 1.5rem;
}

.charter-list li {
  counter-increment: charter;
  padding: 1.75rem;
  padding-left: 5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xs);
}

.charter-list li::before {
  content: counter(charter);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.charter-list li:hover {
  border-color: var(--blue-300);
  background: linear-gradient(135deg, var(--blue-50) 0%, #ffffff 100%);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.charter-list li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.charter-list li strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-500);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* ---------- Footer - Modern Gradient ---------- */
footer {
  background: linear-gradient(135deg, var(--blue-900) 0%, #1a365d 50%, var(--slate-900) 100%);
  color: var(--blue-200);
  padding: 3.5rem var(--spacing);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400), var(--purple-400));
}

footer::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

footer strong {
  color: white;
}

/* ---------- Navigation Buttons - Enhanced ---------- */
section.text-center {
  background: transparent;
  border: none;
  padding: 2rem;
  box-shadow: none;
}

section.text-center::before {
  display: none;
}

section.text-center:hover {
  box-shadow: none;
  transform: none;
}

section.text-center p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0;
}

section.text-center a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

section.text-center a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

section.text-center a:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

section.text-center a:hover::before {
  left: 100%;
}

/* ---------- Lists ---------- */
main ul:not(.charter-list):not(.key-skills):not(.log-list) {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

main ul:not(.charter-list):not(.key-skills):not(.log-list) li {
  margin-bottom: 0.4rem;
}

main ul:not(.charter-list):not(.key-skills):not(.log-list) li::marker {
  color: var(--blue-500);
}

/* ---------- Reflection Content - Modern Cards ---------- */
.reflection-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  margin-top: 1.25rem;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.reflection-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reflection-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  margin: 0;
  padding: 1rem 1.5rem;
  position: relative;
}

.reflection-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), transparent);
}

.reflection-content h3:not(:first-child) {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reflection-content p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  background: white;
}

.reflection-content p:last-child {
  border-bottom: none;
}

/* Drop cap effect - Enhanced */
.reflection-content p::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.6rem;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reflection-content strong {
  color: var(--slate-800);
  font-weight: 600;
}

.reflection-content em {
  color: var(--blue-600);
  font-style: italic;
}

/* ============================================
   TEXT HIGHLIGHT STYLES
   Different colors and styles for key points
   ============================================ */

/* Style 1: Blue Background Highlight (Primary - for main concepts) */
strong, 
.reflection-content strong,
.intro-block strong,
.skill-block strong,
.competency-card strong {
  color: #1e3a5f;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 50%, #dbeafe 50%);
  padding: 0 3px;
}

/* Style 2: Italic Blue Text (for theories/frameworks) */
em,
.reflection-content em,
.intro-block em,
.skill-block em {
  color: #fcab08;
  font-style: italic;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #1358c6;
}

/* Style 3: Key Term Badge (for important terms - use with <mark> tag) */
mark,
.key-term {
  background: #fef3c7;
  color: #92400e;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95em;
}

/* Style 4: Concept Tag (for course concepts - teal) */
.concept {
  background: #ccfbf1;
  color: #0f766e;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Style 5: Quote/Important Phrase (purple accent) */
.highlight-quote {
  color: #6d28d9;
  font-weight: 600;
  border-bottom: 2px solid #c4b5fd;
}

/* Style 6: Action/Skill Tag (green) */
.skill-tag {
  background: #dcfce7;
  color: #166534;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Style 7: Warning/Challenge (orange) */
.challenge {
  background: #ffedd5;
  color: #c2410c;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}

/* Style 8: Underline Emphasis (subtle) */
.underline-emphasis {
  text-decoration: underline;
  text-decoration-color: #93c5fd;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Key Highlight class for inline styles */
.key-highlight {
  background: #dbeafe;
  color: #1d5a8a;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Source Tag styling */
.source-tag {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d5a8a;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --spacing: 1.25rem;
  }
  
  body::before {
    height: 4px;
  }
  
  body::after {
    display: none;
  }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  nav {
    justify-content: center;
    padding: 0.25rem;
  }
  
  nav a {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  
  h1 {
    font-size: 2.1rem;
  }
  
  h1::after {
    margin: 1rem auto 0;
    width: 60px;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  section {
    padding: 1.75rem;
    border-radius: var(--radius);
  }
  
  .charter-list li {
    padding: 1.5rem;
    padding-top: 4rem;
    padding-left: 1.5rem;
  }
  
  .charter-list li::before {
    top: 1.25rem;
    left: 1.25rem;
    transform: none;
  }
  
  main {
    padding: 3rem var(--spacing);
  }
  
  .reflection-content p {
    padding: 1.25rem 1.5rem;
  }
  
  .reflection-content p::first-letter {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .site-title {
    font-size: 1.25rem;
  }
  
  nav {
    gap: 0.25rem;
    padding: 0.2rem;
  }
  
  nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }
  
  section {
    padding: 1.25rem;
    border-radius: var(--radius);
  }
  
  h1 {
    font-size: 1.85rem;
  }
  
  section.text-center a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.gradient-text {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--purple-500) 50%, var(--teal-500) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Selection ---------- */
::selection {
  background: linear-gradient(135deg, var(--blue-300), var(--teal-400));
  background: var(--blue-200);
  color: var(--blue-900);
}

/* ---------- Scrollbar - Modern ---------- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-400), var(--blue-500));
  border-radius: 6px;
  border: 3px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
}

/* ---------- Focus States ---------- */
a:focus, button:focus {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Special Hover Effects for Log Entry Links ---------- */
main section:not(.text-center) h3 + p + p a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
}

main section:not(.text-center) h3 + p + p a:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

main section:not(.text-center) h3 + p + p a::after {
  display: none;
}

/* ---------- Print ---------- */
@media print {
  header, footer, .helper-text { display: none; }
  body { background: white; }
  body::before, body::after { display: none; }
  section { 
    box-shadow: none; 
    border: 1px solid #ddd; 
    animation: none;
    transform: none;
  }
  section::before { display: none; }
  h1, h2, h3 { -webkit-text-fill-color: black; background: none; }
}
