/* Chalk on Chalkboard Style - Simplified */

/* Import chalk-style fonts */
@import url('https://fonts.googleapis.com/css2?family=Schoolbell&family=Rock+Salt&family=Architects+Daughter:wght@400;700&family=Permanent+Marker&family=Amatic+SC:wght@400;700&family=Coming+Soon&display=swap');

/* Color Palette */
:root {
  --chalkboard-dark: #1a4a3a;
  --chalkboard-green: #2d5a4a;
  --chalkboard-black: #1e1e1e;
  --chalk-white: #f8f8f0;
  --chalk-yellow: #ffeb3b;
  --chalk-blue: #64b5f6;
  --chalk-red: #ef5350;
  --chalk-orange: #ff9800;
  --chalk-pink: #e91e63;
  --chalk-purple: #9c27b0;
  --chalk-green: #4caf50;
  --chalk-dust: #e0e0e0;
  --eraser-smudge: rgba(248, 248, 240, 0.1);
}

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

/* Body as brick wall classroom */
body {
  font-family: 'Architects Daughter', cursive;
  background-image: url('/uploads/images/brick-wall.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--chalk-white);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 20px;
  overflow-x: hidden;
}

/* Classroom ABC Header Strip */
.classroom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: 
    linear-gradient(135deg, #1E4D2B 100%, #1a3d1f 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 2px,
      transparent 40px
    );
  border-bottom: 4px solid #8B4513;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: 'Bodoni', serif; 
  color: #C8C372;
  font-size: 1.8em;
  letter-spacing: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.classroom-header::before {
  content: 'P R O F.  J A M E S  B.  W I L S O N';
  opacity: 0.9;
}

.classroom-header:hover {
  opacity: 0.8;
}

/* Hamburger Menu Button */
.hamburger-menu {
  position: fixed;
  top: 7px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #1E4D2B 100%, #1a3d1f 100%);
  border: 2px solid #C8C372;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background: var(--chalkboard-green);
  border-color: var(--chalk-yellow);
  transform: scale(1.05);
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background: var(--chalk-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hamburger-menu:hover span {
  background: var(--chalk-yellow);
  box-shadow: 0 0 5px var(--chalk-yellow);
}

/* Slide-in Menu */
.slide-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, var(--chalkboard-green) 0%, var(--chalkboard-dark) 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  transition: right 0.4s ease;
  padding: 80px 30px 30px 30px;
  overflow-y: auto;
}

.slide-menu.active {
  right: 0;
}

.slide-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slide-menu ul li {
  margin: 0 0 20px 0;
  border-bottom: 2px solid rgba(248, 248, 240, 0.2);
  padding-bottom: 15px;
}

.slide-menu ul li:last-child {
  border-bottom: none;
}

.slide-menu ul li a {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5em;
  color: var(--chalk-white);
  text-decoration: none;
  display: block;
  padding: 10px;
  transition: all 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.5deg);
}

.slide-menu ul li a:hover {
  color: var(--chalk-yellow);
  transform: rotate(0.5deg) translateX(10px);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--chalk-red);
  border: 3px solid var(--chalk-white);
  border-radius: 50%;
  color: var(--chalk-white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
}

.close-menu:hover {
  background: var(--chalk-orange);
  transform: rotate(90deg);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.6);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop Navigation - always hidden, only use hamburger menu */
.desktop-nav {
  display: none;
  height: 0px;
}

/* Hamburger menu always visible */
@media (min-width: 769px) {
  .hamburger-menu {
    display: flex;
  }
}

/* Fixed Chalkboard Frame */
.chalkboard-frame {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: min(90vw, 90vh);
  max-width: none;
  background-image: url('/images/blank.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #3a2817;
  border-radius: 5px;
  box-shadow: 
    8px 8px 25px rgba(0, 0, 0, 0.6),
    16px 16px 40px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

/* Scrollable Content Area Inside Chalkboard */
.chalkboard-content {
  position: absolute;
  top: -60px;
  left: 5%;
  width: calc(100% - 250px);
  height: calc(min(90vw, 90vh) + 60px);
  max-width: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 70px;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: var(--chalk-blue) transparent;
}

.chalkboard-content::before {
  content: '';
  position: sticky;
  display: block;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 300;
  margin: 0 -30px;
  top: 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
  margin-bottom: -60px;
}

/* Fixed bottom fade aligned with chalkboard frame */
.chalkboard-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 250;
}

.chalkboard-content::-webkit-scrollbar {
  width: 8px;
}

.chalkboard-content::-webkit-scrollbar-track {
  background: transparent;
}

.chalkboard-content::-webkit-scrollbar-thumb {
  background-color: var(--chalk-blue);
  border-radius: 4px;
  opacity: 0.7;
}

.chalkboard-content::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.chalkboard-content::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

/* Header Navigation */
header {
  background: transparent;
  border: none;
  margin-bottom: 30px;
  padding: 10px 0;
  position: relative;
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.site-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5em;
  color: var(--chalk-white);
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-family: 'Coming Soon', cursive;
  font-size: 1.3em;
  color: var(--chalk-white);
  text-decoration: none;
  position: relative;
  transform: rotate(-0.1deg);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--chalk-yellow);
  transform: rotate(0.2deg) scale(1.05);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--chalk-blue);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Main Content */
main {
  min-height: auto;
  padding: 0;
}

/* Typography */
h1 {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  color: var(--chalk-green);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: rotate(-0.5deg);
  letter-spacing: 1px;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}
h2, h3, h4, h5, h6 {
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
  color: var(--chalk-blue);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: rotate(-0.5deg);
  letter-spacing: 1px;
  margin: 1.5rem 0 1rem 0;
}

h1 {
  font-family: 'Rock Salt', cursive;
  color: var(--chalk-green);
  font-size: 2.8em;
  letter-spacing: 1.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  border: none;
}

h2 {
  font-family: 'Schoolbell', cursive;
  color: var(--chalk-blue);
  font-size: 2.2em;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: rotate(0.3deg);
  text-decoration: none;
  border: none;
}

h3 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  color: var(--chalk-red);
  font-size: 1.7em;
  letter-spacing: 0.8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.2deg);
}

p, li, span {
  color: var(--chalk-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Architects Daughter', cursive;
  font-size: 1.18em;
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin: 1rem 0;
}

a {
  color: var(--chalk-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border: 2px solid var(--chalk-blue);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  display: inline-block;
  background: transparent;
}

a:hover {
  color: var(--chalk-yellow);
  border-color: var(--chalk-yellow);
  transform: scale(1.05);
}

/* Remove underlines from headings even when inside links */
h1, h2, h3, h4, h5, h6,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
a h1, a h2, a h3, a h4, a h5, a h6 {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Lists */
ul, ol {
  font-family: 'Coming Soon', cursive;
  margin: 1rem 0 1rem 2rem;
}

li {
  margin: 0.5rem 0;
}

/* Code */
code {
  font-family: 'Courier New', monospace;
  background: rgba(30, 30, 30, 0.9);
  border: 2px dashed var(--chalk-orange);
  border-radius: 10px;
  color: var(--chalk-green);
  padding: 0.2rem 0.4rem;
  font-size: 0.95em;
}

pre {
  background: rgba(30, 30, 30, 0.9);
  border: 2px dashed var(--chalk-orange);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

pre::before {
  content: '📋 Code:';
  position: absolute;
  top: -20px;
  left: 10px;
  background: var(--chalkboard-dark);
  padding: 2px 10px;
  font-family: 'Architects Daughter', cursive;
  color: var(--chalk-orange);
  font-size: 0.9em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--chalk-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--chalk-dust);
}

/* Images */
img {
  height: auto;
  border: 2px solid var(--chalk-white);
  border-radius: 4px;
  transition: transform 0.3s ease;
  display: block;
  margin: 1rem 0;
}

img:hover {
  transform: scale(1.02);
}

/* Buttons */
button, .uk-button, input[type="submit"], a.uk-button {
  font-family: 'Schoolbell', cursive;
  font-weight: 400;
  border: 3px solid var(--chalk-white);
  border-radius: 20px;
  background: var(--chalk-green);
  color: var(--chalk-white);
  padding: 12px 24px;
  text-transform: none;
  position: relative;
  transform: rotate(-0.3deg);
  box-shadow: 
    3px 3px 0 var(--chalkboard-dark), 
    6px 6px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(248, 248, 240, 0.2);
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 1.1em;
  letter-spacing: 0.5px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

button:hover, .uk-button:hover, input[type="submit"]:hover, a.uk-button:hover {
  transform: rotate(0.2deg) scale(1.05);
  background: var(--chalk-blue);
  color: var(--chalk-white);
  box-shadow: 
    3px 3px 0 var(--chalkboard-dark), 
    6px 6px 15px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
  background: transparent;
  color: var(--chalk-white);
  border-top: 2px solid var(--chalk-yellow);
  margin-top: 40px;
  padding-top: 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--chalk-red) 0px,
    var(--chalk-red) 20px,
    var(--chalk-orange) 20px,
    var(--chalk-orange) 40px,
    var(--chalk-blue) 40px,
    var(--chalk-blue) 60px
  );
  opacity: 0.8;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--chalk-white);
  font-size: 1.2rem;
}

/* Landing Page Specific */
.landing-section {
  padding: 2rem 0;
}

.landing-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-intro h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.text-large {
  font-size: 1.2rem;
  line-height: 1.8;
}

.text-lead {
  font-size: 1.5rem;
  color: var(--chalk-dust);
}

/* Contact Page */
.contact-info {
  background: rgba(45, 90, 74, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 2px solid var(--chalk-white);
}

.contributor-card {
  text-align: center;
  padding: 2rem;
  background: rgba(45, 90, 74, 0.3);
  border-radius: 8px;
  margin: 2rem 0;
  border: 3px solid var(--chalk-white);
}

.contributor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  object-fit: cover;
}

.container-small {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Projector Overlay */
.projector-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.projector-overlay.active {
  display: flex;
}

.projector-screen {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.close-projector-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--chalk-red);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2001;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
}

.video-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
}

/* Profile Slideshow */
#profile-slideshow {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .classroom-header {
    height: 50px;
    font-size: 1.2em;
    letter-spacing: 4px;
  }
  
  .classroom-header::before {
    content: 'PROF. J.B. WILSON';
  }
  
  .hamburger-menu {
    top: 9px;
    right: 15px;
  }
  
  .slide-menu {
    width: 280px;
    right: -280px;
    padding: 70px 20px 20px 20px;
  }
  
  .slide-menu ul li a {
    font-size: 1.3em;
  }
  
  .chalkboard-frame {
    top: 0;
    width: 95%;
    height: calc(100vh - 70px);
    border-width: 15px;
  }
  
  .chalkboard-content {
    top: 0;
    left: 0;
    width: 95%;
    height: calc(100vh - 90px);
    padding: 20px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  nav a {
    font-size: 1em;
  }
  
  h1, .landing-intro h1 {
    font-size: 2em;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .video-container iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .classroom-header {
    font-size: 0.9em;
    letter-spacing: 2px;
  }
  
  .chalkboard-frame {
    border-width: 10px;
  }
  
  .chalkboard-content {
    padding: 15px;
  }
}

/* Text selection with chalk effect */
::selection {
  background: var(--chalk-yellow);
  color: var(--chalkboard-dark);
  text-shadow: none;
}

::-moz-selection {
  background: var(--chalk-yellow);
  color: var(--chalkboard-dark);
  text-shadow: none;
}

/* Emphasis */
strong, b {
  font-family: 'Permanent Marker', cursive;
  color: var(--chalk-green);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

em, i {
  font-family: 'Amatic SC', cursive;
  font-style: normal;
  color: var(--chalk-blue);
  transform: rotate(-1deg);
  display: inline-block;
}

/* MathJax */
.MathJax {
  font-size: 1.1em;
}


/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-small {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Typography */
h1 {
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
  color: var(--chalk-green);
}
h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
  color: var(--chalk-blue);
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--chalk-green);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--chalk-blue);
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 1rem 0;
}

a {
  color: var(--chalk-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border: 2px solid var(--chalk-blue);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  display: inline-block;
  background: transparent;
}

a:hover {
  color: var(--chalk-yellow);
  border-color: var(--chalk-yellow);
  transform: scale(1.05);
}

/* Lists */
ul, ol {
  margin: 1rem 0 1rem 2rem;
}

li {
  margin: 0.5rem 0;
}

/* Code */
code {
  background: var(--light-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
}

/* Landing Page Styles */
.landing-section {
  padding: 3rem 0;
}

.landing-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.landing-intro h1 {
  font-size: 3rem;
  border: none;
  margin-bottom: 0.5rem;
}

.text-large {
  font-size: 1.2rem;
  line-height: 1.8;
}

.text-lead {
  font-size: 1.5rem;
  color: #666;
}

/* Contact Page */
.contact-info {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.contributor-card {
  text-align: center;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 8px;
  margin: 2rem 0;
}

.contributor-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .landing-intro h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* References Section Positioning */
@media (min-width: 769px) {
  .main-content-section {
    max-width: 75%;
  }
  
  .references-section {
    position: absolute;
    top: 100px;
    right: 50px;
    width: auto;
    z-index: 300;
  }
  
  .references-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
  
  .references-section img {
    height: 150px !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  .references-section {
    position: relative;
    margin-top: 2em;
  }
}

/* Slideshow Overlay */
.slideshow-overlay {
  position: fixed;
  top: 150px;
  left: 0;
  width: 100%;
  height: calc(100% - 150px);
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
}

.slideshow-overlay.active {
  display: flex;
  opacity: 1;
}

.slideshow-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slideshow-container img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  border: 4px solid var(--chalk-white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.close-slideshow-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--chalk-yellow);
  color: #1a4a3a;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  line-height: 50px;
  text-align: center;
}

.close-slideshow-btn:hover {
  background: #ffeb3b;
  transform: scale(1.15);
}

.slideshow-controls {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

.slide-nav {
  background: var(--chalk-white);
  color: #1a4a3a;
  border: 2px solid var(--chalk-yellow);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-nav:hover {
  background: var(--chalk-yellow);
  transform: scale(1.1);
}

.slide-nav.prev,
.slide-nav.next {
  font-size: 36px;
  line-height: 1;
}

.slide-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--chalk-white);
  font-family: 'Schoolbell', cursive;
  font-size: 1.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Desktop Enhancements - Filing Cabinet and TV */
.desktop-enhancements {
    display: none;
}

@media (min-width: 768px) {
    .desktop-enhancements {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: fixed;
        right: 0;
        bottom: 0;
        z-index: 9998;
        width: 200px;
        max-height: calc(100vh - 80px);
    }
}

/* Filing Cabinet Container */
.filing-cabinet-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TV Styles */
.tv-container {
    width: 100%;
    height: 120px;
    margin-top: 9px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tv-container:hover {
    transform: scale(1.05);
}

.tv-frame {
    background: linear-gradient(145deg, #e8dcc0, #d4b37b);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.5),
        inset 0 1px 3px rgba(255,255,255,0.3);
    position: relative;
    height: 100%;
}

.tv-screen {
    background: linear-gradient(145deg, #000, #111);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    height: calc(100% - 25px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(255,255,255,0.01) 1px,
            transparent 2px
        );
    pointer-events: none;
}

.tv-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    position: relative;
    z-index: 1;
}

.tv-brand {
    position: absolute;
    bottom: 2px;
    right: 8px;
    font-family: Arial, sans-serif;
    font-size: 0.6em;
    color: #666;
    letter-spacing: 1px;
}

.tv-base {
    width: 60%;
    height: 8px;
    background: linear-gradient(145deg, #ae8b4f, #bf8f2e);
    margin: 7px auto 0 auto;
    border-radius: 0 0 4px 4px;
    position: relative;
    z-index: -1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tv-base::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 8px;
    background: linear-gradient(145deg, #b08122, #af7a11);
    border-radius: 3px 3px 0 0;
}

/* Filing Cabinet Styles */
.filing-cabinet {
    width: 100%;
    flex: 1;
}

.cabinet-body {
    background: linear-gradient(145deg, #888888, #666666);
    border-radius: 8px;
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.3),
        inset 0 1px 3px rgba(255,255,255,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 8px;
}

.drawer {
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drawer:hover {
    transform: translateX(-15px);
}

.drawer-face {
    background: linear-gradient(145deg, #999999, #777777);
    border: 2px solid #555;
    border-radius: 4px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
}

.drawer-handle {
    width: 24px;
    height: 12px;
    background: linear-gradient(145deg, #444, #222);
    border-radius: 12px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.5),
        0 1px 2px rgba(255,255,255,0.1);
    margin-right: 12px;
}

.drawer-label {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #fff;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: -3px;
    line-height: -10px;
}

.drawer-icon,
.floppy-icon {
    font-size: 1.2em;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
    display: block;
}

/* Hide drawer icons on shorter screens to save space */
@media (max-height: 480px) {
    .drawer-icon,
    .floppy-icon {
        display: none !important;
    }
}

@media (min-height: 481px) {
    .drawer-icon,
    .floppy-icon {
        display: block !important;
    }
}

/* Projector Screen Styles */
.projector-screen {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 0;
    background: #ffffff;
    z-index: 300;
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid #8B4513;
    border-right: 3px solid #8B4513;
    box-shadow: 
        0 5px 20px rgba(0,0,0,0.4),
        inset 0 -10px 20px rgba(139, 69, 19, 0.3);
}

.projector-screen.active {
    height: calc(100vh - 60px);
}

.projector-bottom {
    position: absolute;
    bottom: -15px;
    left: -3px;
    right: -3px;
    height: 15px;
    background: linear-gradient(145deg, #8B4513, #654321);
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(205, 133, 63, 0.4);
    border-radius: 0 0 4px 4px;
}

.projector-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 301;
    transition: background 0.3s ease;
}

.projector-close:hover {
    background: rgba(0,0,0,0.9);
}

.projector-content {
    padding: 60px 40px 40px 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.projector-content::before,
.projector-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 10;
}

.projector-content::before {
    top: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.projector-content::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.youtube-container {
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Publications content styles */
.publications-view, .about-view {
    padding: 20px 0;
}

.publication-item {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 3px solid var(--chalk-blue);
    background: rgba(100, 181, 246, 0.1);
    border-radius: 0 8px 8px 0;
}

.publication-item h3 {
    margin-bottom: 10px;
    color: var(--chalk-yellow);
}

/* Posts Page Styling */
.posts-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}

.posts-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.post-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--chalk-yellow);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(255, 235, 59, 0.5), inset 0 0 3px rgba(255, 235, 59, 0.3);
}

.post-preview:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--chalk-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 5px rgba(100, 181, 246, 0.6), inset 0 0 5px rgba(100, 181, 246, 0.4);
}

.post-image {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
}

.post-title {
    color: var(--chalk-yellow);
    font-size: 1.8em;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.post-date {
    color: var(--chalk-blue);
    font-size: 1em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.post-excerpt {
    color: var(--chalk-white);
    line-height: 1.6;
    font-size: 1.1em;
}

.posts-navigation {
    text-align: center;
    margin: 40px 0;
}

.nav-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    background: var(--chalk-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-button:hover {
    background: var(--chalk-yellow);
    color: #333;
    border-color: var(--chalk-blue);
    transform: translateY(-2px);
}

.nav-button:disabled,
.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.posts-header {
    text-align: center;
    margin-bottom: 40px;
}

.posts-header h1 {
    color: var(--chalk-yellow);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.posts-header p {
    color: var(--chalk-white);
    font-size: 1.3em;
    opacity: 0.9;
}

.no-posts {
    text-align: center;
    color: var(--chalk-white);
    font-size: 1.3em;
    padding: 60px 20px;
}

/* Horizontal Rule - Chalk Sine Wave */
hr {
    border: none !important;
    height: 20px;
    background: none !important;
    position: relative;
    margin: 40px 0;
    overflow: visible;
    display: block;
}

hr::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg,
        rgba(248, 248, 240, 0.7) 0%,
        rgba(248, 248, 240, 0.85) 8%,
        rgba(248, 248, 240, 0.75) 15%,
        rgba(248, 248, 240, 0.9) 25%,
        rgba(248, 248, 240, 0.8) 35%,
        rgba(248, 248, 240, 0.95) 45%,
        rgba(248, 248, 240, 0.85) 50%,
        rgba(248, 248, 240, 0.9) 55%,
        rgba(248, 248, 240, 0.78) 65%,
        rgba(248, 248, 240, 0.88) 75%,
        rgba(248, 248, 240, 0.82) 85%,
        rgba(248, 248, 240, 0.9) 92%,
        rgba(248, 248, 240, 0.7) 100%
    );
    transform: translateY(-50%);
    display: block;
    border-radius: 3px;
    box-shadow: 
        0 0 2px rgba(248, 248, 240, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    clip-path: polygon(
        0% 45%, 3% 48%, 6% 52%, 10% 55%, 14% 53%, 18% 50%, 22% 48%, 26% 50%, 30% 52%,
        34% 55%, 38% 53%, 42% 50%, 46% 48%, 50% 50%, 54% 52%, 58% 55%, 62% 52%, 66% 50%,
        70% 48%, 74% 50%, 78% 53%, 82% 55%, 86% 52%, 90% 50%, 94% 48%, 97% 50%, 100% 52%,
        100% 55%, 97% 52%, 94% 50%, 90% 48%, 86% 45%, 82% 47%, 78% 50%, 74% 52%, 70% 50%,
        66% 48%, 62% 45%, 58% 47%, 54% 50%, 50% 52%, 46% 50%, 42% 48%, 38% 45%, 34% 47%,
        30% 50%, 26% 52%, 22% 50%, 18% 48%, 14% 45%, 10% 47%, 6% 50%, 3% 52%, 0% 50%
    );
}

/* Software Tools Tile Layout */
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.software-tile {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid var(--chalk-blue, #64b5f6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.software-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tile-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tile-icon {
    width: 60px;
    height: 60px;
    background: var(--chalk-blue, #64b5f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    flex-shrink: 0;
}

.tile-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.tile-body {
    padding: 20px;
}

.tile-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.tile-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tile-people {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.person-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.tile-link {
    color: var(--chalk-blue, #64b5f6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.tile-link:hover {
    text-decoration: underline;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: var(--chalk-white, #fff);
    font-size: 1.2em;
}

/* Rant Overlay Styles */
.rant-trigger {
    color: var(--chalk-yellow);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--chalk-yellow);
    font-weight: bold;
    transition: all 0.3s ease;
}

.rant-trigger:hover {
    color: var(--chalk-white);
    text-decoration-color: var(--chalk-white);
}

.rant-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.85);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.rant-overlay.active {
    display: flex;
}

.rant-content {
    background: linear-gradient(135deg, 
        rgba(200, 195, 114, 0.95) 0%,
        rgba(180, 175, 100, 0.92) 50%,
        rgba(160, 155, 90, 0.95) 100%);
    max-width: 600px;
    max-height: 80vh;
    padding: 40px;
    border-radius: 50% 40% 45% 55% / 55% 45% 50% 40%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(200, 195, 114, 0.4);
    position: relative;
    overflow-y: auto;
    color: #1E4D2B;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.rant-content::before {
    content: '☁';
    position: absolute;
    top: -15px;
    left: 10%;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.6);
}

.rant-content::after {
    content: '☁';
    position: absolute;
    bottom: -15px;
    right: 15%;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.5);
}

.rant-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #1E4D2B;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: bold;
    line-height: 1;
    transition: all 0.3s ease;
}

.rant-close:hover {
    color: #fff;
    transform: scale(1.2);
}

.rant-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1E4D2B;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}
