/* ===== Global Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px default */
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Account for sticky navigation */
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background-color: var(--primary);
  color: white;
}

::-moz-selection {
  background-color: var(--primary);
  color: white;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Color Palette - we_universal Theme (ACTUAL COLORS) ===== */
:root {
  /* Primary accent colors from forum */
  --primary: #bc2a4d;           /* Burgundy/maroon red - main accent */
  --primary-dark: #9a2240;      /* Darker burgundy for hover states */
  --primary-light: #d14a6a;     /* Lighter burgundy */
  --secondary: #0ead8e;         /* Teal/turquoise green - secondary accent */
  --secondary-dark: #0c9076;    /* Darker teal for borders */
  --accent: #bc2a4d;            /* Same as primary - burgundy for CTAs */
  --accent-hover: #9a2240;      /* Darker burgundy for hover */
  
  /* Neutral colors matching forum light mode */
  --bg-body: #fafcfe;           /* Very light blue-tinted background */
  --bg-content: #FFFFFF;        /* White content areas */
  --bg-section: #f8f8f8;        /* Light gray sections */
  --bg-alternate: #f4f4f4;      /* Alternate light gray */
  --bg-light: #fafcfe;          /* Light blue tint like forum row background */
  --border-color: #e7e7e7;      /* Light gray borders */
  --border-dark: #CCCCCC;       /* Darker borders */
  
  /* Text colors matching forum */
  --text-primary: #444444;      /* Dark gray text */
  --text-secondary: #414141;    /* Content text */
  --text-tertiary: #3d3d3d;     /* Darker text */
  --text-muted: #6b6b6b;        /* Muted gray text */
  --text-light: #959595;        /* Light gray text */
  --header-bg: #292c2f;         /* Dark header background */
  --links-color: #3f3f3f;       /* Link color */
  
  /* Shadows and effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-hover: 0 6px 20px rgba(188,42,77,0.15);
  
  /* Spacing scale */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.25rem);
  --space-md: clamp(1.5rem, 3vw, 2rem);
  --space-lg: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 4.5rem);

  --grid-gap: var(--space-md);
  --grid-max-width: 1200px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.45s ease;
}

/* ===== Layout Container ===== */
.container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

main {
  min-height: 60vh;
  position: relative;
}

section {
  scroll-margin-top: 70px; /* Account for sticky navigation when navigating via anchors */
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { 
  font-size: clamp(2.25rem, 5vw, 3.5rem); 
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2 { 
  font-size: clamp(1.875rem, 4vw, 2.75rem); 
  font-weight: 700;
}
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p, li {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

small, .caption {
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===== Modern Navigation Bar ===== */
.main-navigation {
  width: 100%;
  background: var(--bg-content);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem var(--space-md);
  position: relative;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
  position: static;
  box-shadow: none;
  transition: all var(--transition-base);
}

.main-navigation li {
  display: flex;
  align-items: center;
  margin: 0;
}

.main-navigation a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-navigation a:hover, 
.main-navigation a:focus {
  background: var(--bg-section);
  color: var(--primary);
}

.main-navigation a:active {
  transform: scale(0.98);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: var(--space-md);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.hamburger:hover {
  background: var(--bg-section);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 24px;
  margin: 3px auto;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero Header with Background Image ===== */
.hero-header {
  width: 100%;
  min-height: 450px;
  background-image: url('../assets/images/dashboard.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(250,252,254,0.75) 100%);
  z-index: 1;
}

.hero-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #f8f9fa 0%, #ececec 50%, #f8f9fa 100%);
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 3;
}

.hero-header-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 900px;
}

.site-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.site-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* ===== Hero Header CTA Buttons ===== */
.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.hero-cta-buttons .cta-primary,
.hero-cta-buttons .cta-secondary {
  font-size: 1rem;
  padding: 0.45em 1.1em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-width: 110px;
  max-width: 180px;
}

@media (max-width: 600px) {
  .hero-cta-buttons {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    align-items: center;
  }
  .hero-cta-buttons .cta-primary,
  .hero-cta-buttons .cta-secondary {
    width: 90%;
    text-align: center;
    max-width: 98vw;
    min-width: 0;
  }
  
  .hero-header::after {
    height: 40px;
    clip-path: ellipse(80% 100% at 50% 100%);
  }
  
  .intro-section {
    margin-top: -38px;
    padding-top: calc(var(--space-lg) + 30px);
  }
}

/* ===== Intro Section ===== */
.intro-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ececec 50%, #f8f9fa 100%);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -58px;
  padding-top: calc(var(--space-md) + 20px);
}

/* Alternative gradient directions - add class to section to use */
.intro-section.gradient-diagonal {
  background: linear-gradient(135deg, #f8f9fa 0%, #ececec 100%);
}

.intro-section.gradient-horizontal {
  background: linear-gradient(90deg, #f8f9fa 0%, #ececec 50%, #f8f9fa 100%);
}

.intro-section.gradient-radial {
  background: radial-gradient(ellipse at center, #f8f9fa 0%, #ececec 100%);
}

.intro-section.gradient-diagonal-reverse {
  background: linear-gradient(225deg, #f8f9fa 0%, #ececec 100%);
}

.intro-section::before {
  content: none;
}

.intro-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transform: none;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.8rem 0 0 0;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-content);
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
}

/* Feature Badges - Compact Design */
.intro-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  width: 240px;
  height: 48px;
  flex-shrink: 0;
}

.feature-card:hover {
  background: var(--border-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.25);
  border: 2px solid black;
}

.feature-card:hover h3,
.feature-card:hover .feature-icon {
  color: var(--primary);
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.feature-card h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.feature-card h3 em {
  font-style: italic;
}

.feature-card p {
  display: none;
}

@media (max-width: 768px) {
  .intro-features {
    gap: 0.8rem;
  }
  
  .feature-card {
    padding: 0.7rem 0.9rem;
    width: 200px;
    height: 44px;
  }
  
  .feature-card h3 {
    font-size: 0.88rem;
  }
  
  .feature-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .intro-features {
    gap: 0.6rem;
  }
  
  .feature-card {
    padding: 0.7rem 0.8rem;
    width: 100%;
    max-width: 280px;
    height: 42px;
  }
  
  .feature-card h3 {
    font-size: 0.82rem;
  }
  
  .social-links {
    margin: 1rem 0 1.5rem 0;
  }
}

.intro-section h2 {
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.intro-section p {
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #111;
  text-shadow: 1px 1px 4px rgba(255,255,255,0.85);
  font-weight: 600;
  line-height: 1.7;
}

.intro-buttons {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.9em 2em;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  background: var(--bg-content);
  color: var(--primary);
  border-color: var(--primary);
}

.cta-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cta-secondary:active {
  transform: translateY(0);
}

/* ===== Featured Articles ===== */
.articles {
  background-color: var(--bg-content);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.articles h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.article-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: var(--grid-max-width);
  margin: 0 auto;
}

.article-card {
  background: var(--bg-content);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
  min-width: 0;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.25rem 1.5rem 0.5rem 1.5rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 1.5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0.5rem 1.5rem 1.5rem 1.5rem;
  flex: 1 1 auto;
  line-height: 1.6;
}

.article-readmore {
  display: inline-flex;
  align-items: center;
  margin: 0 1.5rem 1.5rem 1.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.article-readmore::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.article-readmore:hover {
  color: var(--primary-dark);
}

.article-readmore:hover::after {
  transform: translateX(4px);
}

/* ===== Forum Callout ===== */
.forum-callout {
  background: linear-gradient(135deg, #4c4c4c 0%, #525252 100%);
  color: #fff;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) auto;
  max-width: var(--grid-max-width);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.forum-callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.forum-callout h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: #fff;
  position: relative;
}

.forum-callout p {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  position: relative;
}

.forum-callout .cta-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.forum-callout .cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.forum-callout .cta-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border-color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-left: var(--space-sm);
}

.forum-callout .cta-secondary:hover {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== About Section Styles ===== */
.about-container {
  background: var(--bg-content);
  padding: var(--space-xl) var(--space-md);
  text-align: left;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: var(--space-xl) auto;
}

.about-container h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-container p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

/* ===== About Section List ===== */
.about-container ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-container ul li {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: all var(--transition-base);
}

.about-container ul li:hover {
  background: var(--bg-content);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.about-container ul li strong {
  color: var(--primary);
  font-weight: 600;
  min-width: 120px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.about-container p:last-of-type {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

/* ===== Project Note Styles ===== */
.project-note {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF3D6 100%);
  color: #7C6B3A;
  border: 2px solid #FFE5A0;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) auto;
  max-width: 800px;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.project-note::before {
  content: '⚠';
  display: inline-block;
  margin-right: 0.5em;
  font-size: 1.2em;
}

.project-note strong {
  color: #5A4D2B;
  font-weight: 700;
}

.project-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  transition: all var(--transition-fast);
}

.project-note a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--bg-section);
  padding: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: var(--space-lg) auto var(--space-md) auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.contact-section h2 {
  color: var(--primary);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5em 0.8em;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-content);
  color: var(--text-primary);
  transition: border-color 0.2s;
  resize: vertical;
}

.contact-form button.cta-primary {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 1rem;
  padding: 0.7em 0;
}

@media (max-width: 1024px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .about-container {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: clamp(2rem, 4vw, 3rem);
  }
  
  .intro-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .intro-buttons {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
  }
  
  .articles {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .forum-callout {
    padding: var(--space-lg) var(--space-sm);
    margin: var(--space-lg) var(--space-sm);
  }
  
  .forum-callout .cta-secondary {
    margin-left: 0;
    margin-top: var(--space-sm);
  }
  
  .about-container {
    padding: var(--space-lg) var(--space-sm);
    margin: var(--space-lg) var(--space-sm);
    max-width: 95%;
  }
  
  .about-container ul li {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .about-container ul li strong {
    min-width: auto;
    margin-right: 0;
  }
}

/* Mobile Navigation - Keep inline, tighter spacing */
@media (max-width: 768px) {
  .main-navigation ul {
    gap: clamp(0.5rem, 2vw, 1.5rem);
  }
  
  .main-navigation a {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    padding: 0.4em 0.7em;
  }
  
  .hero-header::after {
    height: 45px;
  }
  
  .intro-section {
    margin-top: -43px;
    padding-top: calc(var(--space-lg) + 35px);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.4rem 0.5rem;
  }
  
  .main-navigation ul {
    gap: 0.3rem;
  }
  
  .main-navigation a {
    font-size: 0.8rem;
    padding: 0.4em 0.5em;
    letter-spacing: 0.02em;
  }
  
  .project-note {
    font-size: 0.95rem;
    padding: var(--space-sm);
    margin: var(--space-sm);
  }
  
  .intro-section h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  .about-container {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-header::after {
    height: 35px;
  }
  
  .intro-section {
    margin-top: -33px;
    padding-top: calc(var(--space-md) + 25px);
  }
}

/* Extra small screens - iPhone 11 and smaller (375px) */
@media (max-width: 400px) {
  * {
    max-width: 100%;
  }
  
  body {
    overflow-x: hidden;
  }
  
  .nav-container {
    padding: 0.3rem 0.4rem;
  }
  
  .main-navigation ul {
    gap: 0.2rem;
  }
  
  .main-navigation a {
    font-size: 0.72rem;
    padding: 0.35em 0.4em;
    letter-spacing: 0;
  }
  
  .hero-header {
    min-height: 350px;
  }
  
  .hero-header-content {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .site-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  
  .site-tagline {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
  
  .hero-cta-buttons {
    padding: 0 0.5rem;
  }
  
  .hero-header::after {
    height: 30px;
  }
  
  .intro-section {
    margin-top: -28px;
    padding: calc(var(--space-md) + 20px) 0.8rem var(--space-md) 0.8rem;
  }
  
  .about-container {
    padding: var(--space-md) 0.8rem;
  }
  
  .contact-section {
    padding: var(--space-md) 0.8rem;
    margin: var(--space-md) 0.5rem;
  }
  
  footer {
    padding: var(--space-md) 0.8rem;
  }
}

/* ===== Aside Note - Fixed Position on Right ===== */
.project-note {
  position: fixed;
  right: 20px;
  top: 620px;
  width: 220px;
  min-height: 140px;
  background: linear-gradient(135deg, var(--bg-section, #f7f7f7) 0%, #ffffff 100%);
  border-left: 5px solid var(--primary, #800020);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1.1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
  z-index: 10;
  transition: box-shadow 0.3s ease;
}

.project-note:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-note strong {
  font-size: 1.15em;
  color: var(--primary, #800020);
  display: block;
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.project-note a {
  color: var(--primary, #800020);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.2s ease;
  padding-bottom: 1px;
}

.project-note a:hover {
  border-bottom-color: var(--primary, #800020);
}

@media (max-width: 1100px) {
  .project-note {
    display: none;
  }
}

/* ===== Footer Styles ===== */
footer {
  background: var(--header-bg);
  color: var(--text-light);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);
  border-top: 4px solid var(--primary);
}

footer .container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  text-align: center;
}

footer p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Loading States & Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===== Print Styles ===== */
@media print {
  .main-header,
  .hamburger,
  .hero-buttons,
  .forum-callout,
  .project-note {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
    color: black;
  }
}
