/* styles.css */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at center, #0c0e13 0%, #050609 100%);
  color: #d8d8d8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Parallax Background */
#parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('background-texture.jpg') repeat;
  background-size: cover;
  z-index: -1;
  transform: translateZ(0);
  will-change: background-position;
}

/* Hero image section */
.photo-bg {
  width: 100%;
  height: 100vh;
  background: url('vivian-drax-photo.jpg') no-repeat center 25%;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 40px;
  filter: brightness(0.7);
}

.overlay-text {
  color: #fff;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.overlay-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0;
}

.overlay-text .tagline {
  font-size: 1.2em;
  opacity: 0.85;
}

/* Enhanced fade-in/out for fragment */
#memoryFragment {
  text-align: center;
  font-style: italic;
  margin: 40px auto 10px;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  opacity: 0.8;
  transition: opacity 5s ease-in-out;
}

.fragment {
  text-align: center;
  font-style: italic;
  margin: 40px auto 10px;
  font-size: 1.1em;
  opacity: 0.8;
}

.container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 40px;
  background: rgba(12, 14, 19, 0.7);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.bio {
  font-size: 1.1em;
  line-height: 1.75;
  color: #ccc;
  text-align: justify;
}

.kindle-note {
  font-size: 1em;
  color: #bbb;
  margin-top: 30px;
  text-align: center;
  font-style: italic;
}

.kindle-note a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.kindle-note a:hover {
  color: #ddd;
}

.signature-container {
  text-align: right;
  margin-top: 40px;
}

.signature {
  width: 300px;
  height: auto;
  filter: brightness(3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.kindle-button {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #111;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.kindle-button:hover {
  background-color: #f2f2f2;
  color: #000;
}

.email-button {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.email-button:hover {
  background-color: #fff;
  color: #111;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.newsletter-box {
  max-width: 500px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
  background: rgba(12, 14, 19, 0.85);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.newsletter-box input[type="email"] {
  padding: 10px;
  width: 70%;
  border: 1px solid #444;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 1em;
}

.newsletter-box button {
  padding: 10px 20px;
  margin-left: 10px;
  background-color: #ffffff10;
  color: #fff;
  border: 1px solid #888;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

.newsletter-box button:hover {
  background-color: #ffffff30;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid #fff;
  border-radius: 10px;
}

.kindle-icon {
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Footer + Modal */
.legal-footer {
  text-align: center;
  font-size: 0.9em;
  color: #bbb;
  margin: 60px 0 20px;
}

.legal-footer a {
  color: #bbb;
  text-decoration: none;
  margin: 0 8px;
}

.legal-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.legal-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.legal-modal .modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  height: 80%;
  padding: 20px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.legal-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5em;
  color: #ccc;
  cursor: pointer;
}
