@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

/* =========================
   Global Theme Controls
   ========================= */
:root{
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Cinzel", serif;

  --red: #FF0000;

  --glow-soft: 0 0 5px rgba(255, 0, 0, 0.45);
  --glow-med: 0 0 6px rgba(255, 0, 0, 0.55), 0 0 12px rgba(255, 255, 255, 0.18);
  --glow-strong: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 16px rgba(255, 0, 0, 0.9);

  --overlay-dark: rgba(0,0,0,0.7);
  --panel-dark: rgba(0,0,0,0.7);
}

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

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-body);
  color: white;
  display: flex;
  flex-direction: column;
}

body {
  position: relative;
  flex: 1;
}

/* Background Overlay */
.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Header */
.overlay-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--overlay-dark);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  text-shadow: var(--glow-med);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  white-space: nowrap;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  text-shadow: var(--glow-strong);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 30px;
  color: var(--red);
  cursor: pointer;
  text-shadow: var(--glow-soft);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-family: var(--font-display);
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  text-shadow: var(--glow-soft);
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.main-nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 80px);
  z-index: 1;
  position: relative;
  padding: 100px 20px 20px;
  flex: 1;
}

.overlay-content {
  background: var(--panel-dark);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 800px;
  width: 90%;
  z-index: 2;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  background: var(--overlay-dark);
  color: #ffffff;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.8);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.6);
}

/* Content wrapper to center everything */
.content-wrapper {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* About Me Section */
.about-me-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.essay-content a {
  color: var(--red);
  text-decoration: underline;
}

.essay-content a:hover {
  color: white;
  text-shadow: 0 0 5px #fff;
}

.essay-content blockquote {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 3px solid var(--red);
  font-style: italic;
  color: #ccc;
}

/* Profile Image styling */
.profile-picture-container {
  margin: 20px 0;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Bio text */
.bio p {
  font-size: 16px;
  color: white;
  line-height: 1.6;
  margin-top: 15px;
}

.bio i {
  font-style: italic;
}

/* Contact Me Button Styling */
.contact-button-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 9999;
}

.contact-button {
  font-family: var(--font-display);
  display: inline-block;
  padding: 12px 30px;
  font-size: 1em;
  color: #fff;
  background-color: rgba(255, 0, 0, 0.7);
  border: 2px solid rgba(255, 0, 0, 0.8);
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.contact-button:hover {
  background-color: rgba(255, 0, 0, 1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Heading glow effect */
.overlay-content h1 {
  font-family: var(--font-display);
  color: var(--red);
  text-shadow: var(--glow-med);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.overlay-content h1:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  cursor: default;
}

/* === Article Navigation Buttons === */
.article-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid rgba(255, 0, 0, 0.6);
  border-radius: 8px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.centered-image {
  display: block;
  margin: 0 auto;
  max-width: 150px;
  height: auto;
}

.original-script {
  font-size: 1.2em;
  font-family: 'SBL Hebrew', 'Noto Sans Hebrew', 'Noto Serif', serif;
  color: #FFAAAA;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    font-size: 16px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .hamburger {
    display: block;
    margin-bottom: 10px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    font-size: 16px;
  }

  .overlay {
    flex-direction: column;
    align-items: stretch;
    padding: 120px 20px 40px;
  }

  .overlay-content {
    padding: 40px;
    width: 95%;
  }

  .article-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }
}

