@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow&family=Bonheur+Royale&family=Julius+Sans+One&display=swap');
/* Base.html */

main {
  padding-top: 50px;
  display: block;
  position: relative;
  z-index: 2;
}

.home-body {
  overflow: hidden;
  height: 90%;
}

body {
  margin: 0;
  background: url("woods.06e9216dd12b.png") no-repeat center center fixed;
  background-size: cover;
  color: #e8e0da;
  font-family: 'Julius Sans One', sans-serif;
  position: relative;
  z-index: 0;
}

/* Temp popup banner */
.wip-banner {
  background-color: #ffcc00;
  color: #000;
  text-align: center;
  font-weight: bold;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 1.1em;
}


body {
  /* Add top padding so content isn’t hidden behind banner */
  padding-top: 50px;
}


.site-header {
  background: #fff;
  color: #000;
  padding: 20px;
  text-align: center;
}

.site-header a {
  color: #000;
  text-decoration: none;
  margin: 0 15px;
}

.main-logo {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-content h1 {
  font-size: 10em;
  font-weight: 100;
  font-family: 'Bonheur Royale', cursive;
  margin-bottom: 0.8em;
  color: #b6ac81;
}

.btn {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* Navbar styles */
.navbar {
  background: transparent;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: auto;
  text-align: center;
}


.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;

  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.8em;
  font-family: 'Archivo Narrow', sans-serif;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Elegant glow hover */
.nav-links a:hover {
  color: #a7e9ef;
  text-shadow: 0 0 10px rgba(182, 172, 129, 0.8), 0 0 20px rgba(45, 44, 40, 0.4);
}


/* About Page */
.about-body {
  background: url("books.57d05e16269b.png") no-repeat center center fixed;
  background-size: cover;
  background-color: #0f1e16;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-header {
  font-size: 2.5em;
  margin-top: 60px;
  color: #f0ede6;
  text-align: center;
  letter-spacing: 1px;
  font-family: 'Julius Sans One', sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.about-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding-right: 85px;
}

.about-text {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 1.3em;
  color: #1b1b1c;
  background: rgba(248, 240, 225, 0.9);
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 80px;
  text-align: center;
  border-radius: 4px;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(182,172,129,0.2);
  backdrop-filter: blur(4px);
  line-height: 1.6;
  border: 1px solid rgba(182,172,129,0.4);
}

.contact-section {
  max-width: 700px;
  margin: 40px auto 100px;
  text-align: center;
  font-family: 'Archivo Narrow', sans-serif;
  color: #1b1b1c;
  background: rgba(248, 240, 225, 0.9);
  padding: 40px 50px;
  border-radius: 4px;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(182,172,129,0.2);
  border: 1px solid rgba(182,172,129,0.4);
}

.contact-section h1 {
  color: #b6ac81;
  font-family: 'Bonheur Royale', cursive;
  font-size: 2.2em;
  margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 4px;
  background: #f8f8f8;
  font-family: 'Archivo Narrow', sans-serif;
}

.contact-form textarea {
  height: 150px;
}

.contact-form button {
  background: #b6ac81;
  color: #0f1e16;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #d0c48b;
}

.success-message {
  background: #2d3e35;
  border-left: 5px solid #b6ac81;
  padding: 10px;
  margin-bottom: 20px;
  color: #3c7671;
}

/* Media Page */
.media-header {
  text-align: center;
  color: #ffffff;
  font-size: 2em;
  margin-top: 150px;
}

.media-body {
  background: url("work.9cdea4ec07ed.png") no-repeat center center fixed;
  background-size: cover;
  background-color: #0f1e16; /* fallback color */
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px 20px;
}

.media-item {
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}

.media-item img {
  max-width: 300px;
  border-radius: 4px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.media-item:hover {
  transform: scale(1.05);
}

/* Popup */
.media-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 30, 22, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.popup-content {
  background: #fff;
  color: #000;
  padding: 20px 20px 30px 20px;
  border-radius: 8px;
  max-width: 700px;
  max-height: 80vh;
  width: 100%;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* popup for full websites (currently only mm website) */
.project-frame {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2em;
  cursor: pointer;
  color: #b6ac81;
}

.fog-anim{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  background: url("fog1.cd963cfa7485.png") repeat-x;
  background-size: 200% auto;
  background-position: 0 bottom;
  animation: fogAnim 60s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
}

@keyframes fogAnim{
  0%{ background-position: -200% bottom }
  100%{ background-position: 0% bottom }
}

.mirror-frame {
  position: relative;
  display: inline-block;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

#webcam {
  position: absolute;
  top: 5%;
  left: 9%;
  width: 82%;
  height: 83%;
  object-fit: cover;
  border-radius: 4px;
  display: none;
  z-index: 0;
  transform: scaleX(-1); /* mirror effect */
}

.logo-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

/* Custom webcam modal */
.custom-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: none; /* initially hidden */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.custom-modal-content {
  background: #1b1b1c;
  color: #e8e0da;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  font-family: 'Julius Sans One', sans-serif;
}

.custom-modal-content h2 {
  font-family: 'Bonheur Royale', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #b6ac81;
}

.custom-modal-content p {
  margin-bottom: 1.5rem;
}

.custom-modal button {
  margin: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

#allowCamera { 
  background: #b6ac81; 
  color: #1b1b1c; 
}

#allowCamera:hover { 
  background: #d0c48b; 
}

#denyCamera { 
  background: #e8e0da; 
  color: #1b1b1c; 
}

#denyCamera:hover { 
  background: #cfc5a2; 
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .about-text,
  .contact-section {
    max-width: 90%;
    padding: 40px 40px;
  }
}

@media (max-width: 768px) {
  .about-header {
    font-size: 2em;
    margin-top: 40px;
  }

  .about-image {
    padding-right: 0;
    margin: 10px 0;
  }

  .about-text {
    font-size: 1.1em;
    padding: 30px 25px;
    margin: 40px 10px;
    line-height: 1.5;
  }

  .contact-section {
    font-size: 1em;
    padding: 30px 25px;
    margin: 30px 10px 80px;
  }

  .contact-section h1 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .about-header {
    font-size: 1.6em;
  }

  .about-text {
    font-size: 1em;
    padding: 25px 20px;
    margin: 30px 10px;
  }

  .contact-section {
    padding: 25px 20px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9em;
  }

  .btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}

/* ---------- Fix horizontal clipping on small screens ---------- */
/* Make sizing include padding so width calculations are sane */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Ensure the about text never exceeds the viewport and wraps nicely */
.about-text {
  width: 100%;
  max-width: 900px;            /* keep your desktop width */
  padding: 40px 24px;         /* reduce default padding (desktop still OK) */
  margin: 40px auto;          /* keep centered with smaller top/bottom */
  overflow-wrap: break-word;  /* prevent words from overflowing */
  -webkit-font-smoothing: antialiased;
}

/* Tighten further on small viewports */
@media (max-width: 480px) {
  .about-text {
    padding: 20px 16px;
    margin: 24px 8px;
    font-size: .8em;
    line-height: 1.45;
  }

  .contact-section {
    padding: 20px 16px;
    margin: 20px 8px 80px;
  }

  .about-header { font-size: 1.6em; margin-top: 28px; }
}

html, body, .about-page, .about-content {
  overflow-x: hidden;
}

.navbar {
  padding: 8px 16px;
  border-radius: 10px;
}

.nav-links a {
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(0,0,0,0.45);
  color: #fff;
}
