/* Reset default margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color:#cde9d5;
;

}

/* Header */
.site-header {
  background-color: #002311;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.container {
  margin: 0 auto;
  padding: 0 1rem;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 50px;
  width: auto;
  display: block;
}

.site-title {
  color: #539056;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-wrapper {
  margin: 0 1rem;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #539056;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

/* Hero */
.hero {
  background-color: #183b2e;
  color: white;
  text-align: center;
  padding: 6rem 1.5rem;
  font-family: Arial, sans-serif;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}

/* Buttons */
.hero-buttons {
  display: inline-flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background-color: #539056;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s ease, transform 0.15s ease;
  display: inline-block;
}

.btn-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-top: -2px;
}

.btn:hover,
.btn:focus {
  background-color: #4a7a45;
  transform: translateY(-2px);
  outline: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* About Section */
.about-section {
  padding: 4rem 1rem 5rem 1rem;
  margin-bottom: 0;
  background-color: #6fa67d;
  color: #333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.about-section .container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 2rem;
}

.bio-heading {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
  text-align: center;
}

.about-content-box {
  background-color: #cde9d5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.about-content-box p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.about-section p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.about-photo {
  text-align: center;
  margin: 2rem 0;
}

.about-photo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Projects Section */
.projects-section {
  margin-top: 0;
  margin-bottom: 2rem;
  padding-top: 2rem;
  text-align: center;
  background-color: #cde9d5;
}

.projects-section h2 {
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #1b4d3e;
}

.projects-section p {
  color: #154732;
  font-family: Arial, sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Project Cards Grid */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.project-cards.limited {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background-color: #183b2e; /* dark green */
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: #a3d9b1;
  box-shadow: 0 4px 12px rgba(10, 30, 15, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.see-all-projects {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.project-card:hover,
.project-card:focus {
  box-shadow: 0 8px 20px rgba(10, 30, 15, 0.8);
  transform: translateY(-5px);
}

.project-logo-wrapper {
  height: 140px; /* adjust as needed for tallest logo */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-logo {
  max-height: 120px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.project-card h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #a3d9b1;
}

.project-card p {
  font-size: 1rem;
  color: #b8e0c9;
  flex-grow: 1;
}

/* Project Detail Page */
.project-detail {
  font-family: Arial, sans-serif;
  padding: 3rem 0;
  background-color: #f1f5f2;
}

.project-detail .container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.project-detail-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: brightness(1.1);
}

.project-logo-container {
  background-color:#1a3d2f;
; /* or a dark shade that fits your brand */
  padding: 1rem;
  border-radius: 1rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.project-detail h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: #1a3d2f;
  font-family: 'Courier New', Courier, monospace;
}

.project-detail .subtitle {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  color: #4b4b4b;
  margin-bottom: 2rem;
  font-style: italic;
}

.project-description {
  font-size: 1.1rem;
  color: #4b4b4b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.project-content {
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  font-family: Arial, sans-serif;
}

.project-cta {
  display: flex;
  gap: 1rem; /* space between buttons */
  justify-content: center; 
  margin-top: 2.5rem; /* optional spacing above */
  flex-wrap: wrap; /* lets buttons wrap if screen is too narrow */
}

.project-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-cta .btn-icon {
  height: 1.4rem;  /* slightly larger than default text */
  width: auto;
  vertical-align: middle;
  margin-top: -2px; /* minor vertical alignment tweak */
}

/* Project Episodes Section */
.project-episodes {
  padding: 3rem 0;
  background-color: #f9fdf9;
  text-align: center;
}

.project-episodes h2 {
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1b4d3e;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
  
}

.episode-card {
  background-color: #e6f3ea;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(10, 30, 15, 0.2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 500px;
  width: 100%;
  text-align: left;
}

.episode-card h3 {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a3d2f;
}

.episode-card h4 {
  font-family: Arial, sans-serif;
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #1b4d3e;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.episode-card ul {
  list-style: none;
  font-family: Arial, sans-serif;
  padding-left: 1.25rem;
  margin: 0 0 1rem 0;
}

.episode-card ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: #333;
  font-size: 0.95rem;
}

.episode-description {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.timestamps {
  margin-top: 1rem;
  padding: 0;
}

.timestamp-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.timestamp-item a {
  color: #1a3d2f;
  text-decoration: none;
  font-size: 0.95rem;
  background-color: #e0f3e5;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.timestamp-item a:hover {
  background-color: #cfead4;
  color: #539056;
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.expanded {
  max-height: 2000px; /* large enough to show all content */
}

.toggle-details-btn {
  display: inline-block;
  background-color: #539056;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}

.toggle-details-btn:hover,
.toggle-details-btn:focus {
  background-color: #4a7a45;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
}

.toggle-details-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.toggle-details-btn:focus-visible {
  outline: none;
}

/* Call-to-action or external links */
.project-cta .btn {
  background-color: #539056;
  color: white;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.project-cta .btn:hover {
  background-color: #467a47;
  transform: translateY(-2px);
}

/* Contact Page */
.contact-page {
  padding: 4rem 1rem;
  background-color: #f1f5f2;
  font-family: Arial, sans-serif;
}

.contact-page h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #1a3d2f;
  margin-bottom: 3rem;
  font-family: 'Courier New', Courier, monospace;
}

.contact-page .subtitle {
  display: block;
  font-size: 1.25rem;
  font-style: italic;
  color: #4b4b4b;
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Contact Page */
.contact-page {
  padding: 4rem 1rem;
  background-color: #f1f5f2;
  font-family: Arial, sans-serif;
}

.contact-page h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #1a3d2f;
  margin-bottom: 3rem;
  font-family: 'Courier New', Courier, monospace;
}

.contact-page .subtitle {
  display: block;
  font-size: 1.25rem;
  font-style: italic;
  color: #4b4b4b;
  margin-top: 0.5rem;
}

/* Stream Section (full width, text left, video right) */
.stream-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1.5rem;
  background-color: #cde9d5;
  color: #333;
  margin-bottom: 3rem;
  border-radius: 12px;
}

.stream-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1b4d3e;
}

.stream-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.stream-text {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stream-text .btn {
  align-self: flex-start;
  min-width: 140px;
  padding: 0.75rem 1.5rem;
  background-color: #539056;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s ease, transform 0.15s ease;
  display: inline-block;
}

.stream-text .btn:hover,
.stream-text .btn:focus {
  background-color: #4a7a45;
  transform: translateY(-2px);
  outline: none;
}

.stream-text .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.stream-video {
  flex: 1 1 55%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.stream-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
  display: block;
}

/* Discord Section */
.discord-section {
  background-color: #cde9d5;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.discord-text {
  flex: 1 1 300px;
  min-width: 300px;
}

.discord-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1b4d3e;
}

.discord-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.discord-section ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1rem;
}

.discord-widget-wrapper {
  flex: 1 1 350px;
  min-width: 350px;
}

.discord-section .btn {
  margin-top: 1rem;
}

/* Grid for remaining cards (email, YouTube) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Contact Cards (Email & YouTube) */
.contact-card {
  background-color: #cde9d5;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1b4d3e;
}

.contact-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-card .btn {
  margin-top: auto;
  width: fit-content;
  background-color: #539056;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s ease, transform 0.15s ease;
  display: inline-block;
}

.contact-card .btn:hover,
.contact-card .btn:focus {
  background-color: #4a7a45;
  transform: translateY(-2px);
  outline: none;
}

.contact-card .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* -------------------------------------
   Responsive Styles for Tablets and Below
---------------------------------------- */
@media (max-width: 1024px) {
  .site-header .container,
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

   .nav-wrapper {
    align-items: center;
  }

  .main-nav {
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p,
  .hero .tagline {
    font-size: 1.1rem;
  }

  .about-section .container {
    padding: 0 1rem;
  }

  .stream-section {
    flex-direction: column;
    text-align: center;
  }

  .stream-text,
  .stream-video {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .discord-section {
    flex-direction: column;
    align-items: center;
  }

  .discord-text,
  .discord-widget-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------
   Responsive Styles for Mobile Devices
---------------------------------------- */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p,
  .hero .tagline {
    font-size: 1rem;
  }

  .btn,
  .toggle-details-btn,
  .project-cta .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .about-photo img {
    max-width: 180px;
  }

  .project-cards,
  .project-cards.limited {
    grid-template-columns: 1fr;
  }

  .episode-list {
    grid-template-columns: 1fr;
  }

  .project-cta {
    flex-direction: column;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

 .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative; /* for absolute menu */
  }

  .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative; /* for absolute menu */
  }

  .main-nav.open {
    display: flex;
  }

  .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative; /* for absolute menu */
  }


  .site-title {
    font-size: 1.25rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .project-detail h1 {
    font-size: 2rem;
  }

  .project-detail .subtitle,
  .project-description {
    font-size: 1rem;
  }

  .project-detail .container {
    padding: 0 1rem;
  }

  .stream-section,
  .discord-section {
    padding: 2rem 1rem;
  }

  .discord-section .btn,
  .stream-text .btn {
    width: 100%;
    text-align: center;
  }
}

/* -------------------------------------
   Optional: Ultra Small Devices (<480px)
---------------------------------------- */
@media (max-width: 480px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .main-nav {
    flex-direction: row; /* keep horizontal */
    flex-wrap: wrap;    /* wrap if needed */
    justify-content: center;
    gap: 1.5rem;
    width: auto;
    margin-top: 0;
  }

  .main-nav .nav-link {
    text-align: center;
    font-size: 1rem; /* same size as desktop */
  }

  .site-title {
    text-align: center;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .bio-heading {
    font-size: 1.5rem;
  }

  .project-detail h1 {
    font-size: 1.75rem;
  }

  .project-detail .subtitle {
    font-size: 1rem;
  }

  .contact-page h1 {
    font-size: 2rem;
  }

  .contact-page .subtitle {
    font-size: 1rem;
  }

  .btn,
  .toggle-details-btn,
  .project-cta .btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    max-width: 100vw; /* prevent fixed max-width issues */
    overflow-x: hidden; /* prevent horizontal scroll */
  }

  .discord-section {
    padding: 1rem;
    box-sizing: border-box;
    overflow-x: hidden; /* prevent horizontal scroll */
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  .discord-text {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
    box-sizing: border-box;
    padding-right: 0;
    word-break: break-word;
    white-space: normal !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  .discord-text p,
  .discord-text ul,
  .discord-text li {
    max-width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    word-break: break-word;
  }

  .discord-text ul {
    padding-left: 1rem;
  }

  .discord-text .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .discord-widget-wrapper {
    display: none;
  }
}
