/* ============================================
   Lighthearted Philosophers' Society
   Modern, Accessible CSS Framework
   ============================================ */

/* CSS Custom Properties (Variables) */
:root {
  /* Color Palette - Deep purples with warm accents */
  --color-primary: #4a2c82;
  --color-primary-dark: #2d1a4e;
  --color-primary-light: #6b4a9e;
  --color-secondary: #e8b84a;
  --color-secondary-dark: #c99a2e;
  --color-accent: #3d8b8b;
  --color-accent-light: #5cb3b3;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-off-white: #f8f7fc;
  --color-gray-100: #f3f2f7;
  --color-gray-200: #e5e3ed;
  --color-gray-300: #c9c6d6;
  --color-gray-400: #9994ab;
  --color-gray-500: #6b6580;
  --color-gray-600: #4a455c;
  --color-gray-700: #2d2939;
  --color-gray-800: #1a1722;
  --color-black: #0d0b12;

  /* Semantic Colors */
  --color-success: #2e7d4a;
  --color-warning: #c9860a;
  --color-error: #b83232;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes (fluid typography) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 11, 18, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 11, 18, 0.1), 0 2px 4px -2px rgba(13, 11, 18, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(13, 11, 18, 0.1), 0 4px 6px -4px rgba(13, 11, 18, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(13, 11, 18, 0.15), 0 8px 10px -6px rgba(13, 11, 18, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ============================================
   CSS Reset & Base Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-800);
  margin-bottom: var(--space-md);
}

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

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

strong, b {
  font-weight: 600;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--lg {
  padding: var(--space-5xl) 0;
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--primary h1,
.section--primary h2,
.section--primary h3 {
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-gray-100);
}

.section--off-white {
  background-color: var(--color-off-white);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary-dark);
}

.logo__icon {
  width: auto;
  height: 80px;
  object-fit: contain;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-weight: 500;
  color: var(--color-gray-600);
  text-decoration: none;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-gray-700);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dropdown Menu */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  list-style: none;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-gray-600);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-link:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-gray-800);
}

.btn--secondary:hover {
  background-color: var(--color-secondary-dark);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero--full {
  min-height: 90vh;
}

.hero__bg {
  position: absolute;
  inset: 0;

  /* overall strength of the pattern layer */
  opacity: 0.09;

  /* faux-randomness: multiple repeats with different scales + offsets */
  background-image: url("../images/socrates.png");
  background-repeat: repeat;
  background-size: 240px 240px;   /* <-- more open space */
  background-position: 40px 60px, ;

  /* optional: makes it feel more "watermark" */
  filter: saturate(0) contrast(0.95);

}




.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.hero__title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: var(--space-xl);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
}

/* Feature Card */
.feature-card {
  padding: var(--space-2xl);
  text-align: center;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary);
}

.feature-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Conference/Event Styles
   ============================================ */

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  text-align: center;
}

.event-card__month {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card__day {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}

.event-card__year {
  font-size: var(--text-sm);
}

.event-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.event-card__location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-md);
}

/* ============================================
   Awards Section
   ============================================ */

.award {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-secondary);
}

.award__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-secondary);
}

.award__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.award__amount {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-200);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--color-white);
}

.timeline__year {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-700);
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 44, 130, 0.1);
  outline: none;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background-color: var(--color-gray-800);
  color: var(--color-gray-300);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--space-sm);
}

.footer__link {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-700);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-gray-400);
  background-color: var(--color-gray-700);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-gray-500); }
.text-white { color: var(--color-white); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-2xl);
    background: var(--color-white);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav__list.is-open {
    transform: translateX(0);
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .nav__item--dropdown.is-open .nav__dropdown {
    max-height: 300px;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__date {
    flex-direction: row;
    gap: var(--space-sm);
    width: fit-content;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-md);
  }
}

/* ============================================
   Page-Specific Styles
   ============================================ */

/* About Page */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}

.about-intro__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Publications Grid */
.publication {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.publication__cover {
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  background: var(--color-gray-200);
  border-radius: var(--radius-sm);
}

.publication__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.publication__author {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Resources Page */
.resource-list {
  list-style: none;
}

.resource-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-200);
}

.resource-list__item:last-child {
  border-bottom: none;
}

.resource-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* ============================================
   Easter Eggs
   ============================================ */

/* Konami Code - Dancing Socrates */
.socrates-dance {
  animation: socrates-spin 0.5s ease-in-out infinite;
}

@keyframes socrates-spin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(5deg) scale(1.02); }
  75% { transform: rotate(-5deg) scale(1.02); }
}

/* Floating Socrates heads */
.floating-socrates {
  position: fixed;
  top: -150px;
  width: 100px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
  animation: socrates-fall linear forwards;
}

@keyframes socrates-fall {
  0% {
    top: -150px;
    transform: rotate(0deg);
  }
  100% {
    top: 110vh;
    transform: rotate(720deg);
  }
}

/* Easter Egg Modal */
.easter-egg-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: var(--space-lg);
  animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.easter-egg-modal__content {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modal-pop-in 0.3s ease;
}

@keyframes modal-pop-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.easter-egg-modal__content h3 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.easter-egg-modal__content p {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

/* Geocities Button */
.geocities-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  background: var(--color-gray-700);
  border: 1px dashed var(--color-gray-600);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.geocities-btn:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background: var(--color-gray-800);
}

/* Geocities Mode Styles */
.geocities-mode {
  background: #000080 !important;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><text y="24" font-size="24">🏛️</text></svg>'), auto;
}

.geocities-mode * {
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive !important;
}

.geocities-mode .header {
  background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff) !important;
  background-size: 400% 100% !important;
  animation: geocities-rainbow 3s linear infinite !important;
}

.geocities-mode .nav__link,
.geocities-mode .logo {
  color: #000 !important;
  text-shadow: 1px 1px #fff !important;
}

.geocities-mode .hero {
  background: #000080 !important;
}

.geocities-mode .hero__bg {
  opacity: 0.3 !important;
  animation: none !important;
}

.geocities-mode .hero__title {
  color: #ffff00 !important;
  text-shadow: 2px 2px #ff0000, -2px -2px #00ff00 !important;
  animation: geocities-blink 0.5s step-end infinite !important;
}

.geocities-mode .hero__subtitle {
  color: #00ffff !important;
}

.geocities-mode .section {
  background: #000080 !important;
  border-top: 3px dashed #ffff00 !important;
  border-bottom: 3px dashed #ff00ff !important;
}

.geocities-mode .section--gray,
.geocities-mode .section--off-white {
  background: #008080 !important;
}

.geocities-mode .section--primary {
  background: linear-gradient(45deg, #ff0000, #ff00ff) !important;
}

.geocities-mode .card {
  background: #c0c0c0 !important;
  border: 3px outset #ffffff !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.geocities-mode .card:hover {
  transform: none !important;
}

.geocities-mode h1,
.geocities-mode h2,
.geocities-mode h3,
.geocities-mode h4 {
  color: #ffff00 !important;
  text-shadow: 2px 2px #000 !important;
}

.geocities-mode p,
.geocities-mode li,
.geocities-mode .card__text,
.geocities-mode .text-muted {
  color: #ffffff !important;
}

.geocities-mode .card p,
.geocities-mode .card li,
.geocities-mode .card h3 {
  color: #000000 !important;
  text-shadow: none !important;
}

.geocities-mode .btn {
  background: #c0c0c0 !important;
  color: #000 !important;
  border: 3px outset #fff !important;
  border-radius: 0 !important;
  text-shadow: none !important;
}

.geocities-mode .btn:hover {
  border-style: inset !important;
}

.geocities-mode .footer {
  background: #000000 !important;
  border-top: 5px solid #ff00ff !important;
}

.geocities-mode .footer__title {
  color: #00ff00 !important;
}

.geocities-mode a {
  color: #00ffff !important;
}

.geocities-mode .card a {
  color: #0000ff !important;
}

@keyframes geocities-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

@keyframes geocities-blink {
  50% { opacity: 0; }
}

/* Geocities Counter Banner */
.geocities-counter {
  background: #ffff00;
  color: #000;
  text-align: center;
  padding: 20px;
  border-bottom: 5px solid #ff0000;
  font-family: 'Comic Sans MS', cursive !important;
}

.geocities-counter img {
  max-height: 50px;
  margin-bottom: 10px;
}

.geocities-counter marquee {
  color: #ff0000;
  font-weight: bold;
  font-size: 1.2em;
}

.geocities-counter p {
  margin: 5px 0;
  color: #000080;
}

/* Blink animation for Geocities */
@keyframes blink {
  50% { opacity: 0; }
}

.geocities-mode blink,
blink {
  animation: blink 1s step-end infinite;
}

/* Cursor trail stars */
.cursor-trail {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  color: #ffff00;
  text-shadow: 0 0 5px #ff00ff;
  animation: cursor-trail-fade 1s forwards;
  z-index: 10000;
}

@keyframes cursor-trail-fade {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .nav,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .section {
    padding: 1cm 0;
    page-break-inside: avoid;
  }
}
