body {
 background-color: #fdfcf9;
 font-family: 'PT Sans', sans-serif;
 margin: 0;
 padding: 0;
}


/* Navigation */
nav {
 position: absolute;
 top: 1.5rem;
 right: 2rem;
 z-index: 10;
 font-family: 'PT Serif', serif;
}


nav a {
 margin-left: 1.5rem;
 color: #003049;
 text-decoration: none;
 font-weight: bold;
 font-size: 1.2rem;
 transition: color 0.3s ease;
}


nav a:hover {
 color: #d4af37;
}


/* Header */
header {
 display: flex;
 justify-content: center;
 align-items: center;
 padding: 6rem 2rem 1rem;
 max-width: 1200px;
 margin: 0 auto;
 gap: .25rem;
 flex-wrap: wrap;
 flex-direction: column;
 text-align: center;
}


.header-left {
 text-align: center;
}


.site-title {
 font-family: 'PT Serif', serif;
 font-size: 4rem;
 margin-bottom: 0.5rem;
 position: relative;
 color: #003049;
 cursor: pointer;
 transition: all 0.3s ease;
}


.site-title:hover {
 background: linear-gradient(120deg, #003049 0%, #d4af37 40%, #003049 60%);
 background-size: 200% auto;
 background-position: left center;
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 animation: shimmer-text 1.2s linear forwards;
}


@keyframes shimmer-text {
 0% {
   background-position: -100% center;
 }
 100% {
   background-position: 100% center;
 }
}


.tagline {
 color: #d4af37;
 font-size: 1.7rem;
}


.header-right {
 flex-shrink: 0;
}


.logo {
 width: 350px;
 max-width: 100%;
 margin-bottom: 0.5rem;
}


.header-divider {
 display: flex;
 justify-content: center;
 margin: 0 auto 3rem;
 width: 100%;
}


.header-divider svg {
 max-width: 600px;
 width: 100%;
 height: auto;
}





/* Review Section */
.quote-intro {
 text-align: center;
 font-family: 'PT Serif', serif;
 font-size: 2.3rem;
 color: #003049;
 margin-bottom: 2rem;
}


.reviews {
 display: flex;
 justify-content: center;
 gap: 2rem;
 max-width: 1000px;
 margin: 3rem auto 6rem;
 flex-wrap: wrap;
 text-align: center;
}


.review {
 background-color: #fffaf3;
 border: 2px solid #d4af37;
 border-radius: 20px;
 padding: 1.5rem;
 max-width: 250px;
 font-style: italic;
 font-family: 'PT Serif Caption', serif;
 font-size: 1.2rem;
 line-height: 1.6;
 box-shadow: 0 4px 8px rgba(0,0,0,0.04);
 position: relative;
}


.review span {
 display: block;
 color: #003049;
 font-style: normal;
 margin-top: 0.8rem;
 font-size: 0.9rem;
}


.stars {
 margin-top: 0.5rem;
 color: #d4af37;
 font-size: 1rem;
 letter-spacing: 2px;
 font-style: normal;
}


/* Gallery */
.gallery-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}


.gallery {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 grid-auto-rows: auto;
 gap: 15px;
 margin: 30px 0;
}


.gallery-item {
 border: 1px solid #d4af37;
 padding: 5px;
 position: relative;
 background: white;
 overflow: hidden;
}


.gallery-item img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}


.poem-preview {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 padding: 1rem;
 background: rgba(253, 252, 249, 0.85);
 color: #003049;
 font-family: 'PT Serif', serif;
 font-size: 1rem;
 line-height: 1.4;
 text-align: center;
 opacity: 0;
 transition: opacity 0.3s ease;
 pointer-events: none;
 display: flex;
 flex-direction: column;
 justify-content: center;
}


.gallery-item:hover .poem-preview {
 opacity: 1;
}


/* Grid sizing */
.wide {
 grid-column: span 2;
}


.tall {
 grid-row: span 2;
}


.big {
 grid-column: span 2;
 grid-row: span 2;
}


/* Responsive */
@media (max-width: 768px) {
 .gallery {
   grid-template-columns: repeat(2, 1fr);
 }


 .big, .wide {
   grid-column: span 2;
 }


 .tall {
   grid-row: span 1;
 }


 header {
   flex-direction: column;
   text-align: center;
 }


 .site-title {
   font-size: 3rem;
 }


 .tagline {
   font-size: 1.3rem;
 }


 .logo {
   margin-top: 2rem;
   width: 180px;
 }


 nav {
   position: static;
   text-align: center;
   margin-bottom: 1rem;
 }


 .header-left {
   text-align: center;
 }
}


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


 .big, .wide {
   grid-column: span 1;
 }
}


.stars {
 font-size: 1rem;
 line-height: 1;
 color: #d4af37;
 font-style: normal;
 display: inline-block;
 font-family: 'PT Serif', serif;
 position: relative;
 width: 5.3em;
 height: 1.2em;
}


.stars::before {
 content: "★★★★★";
 letter-spacing: 0.12em;
 color: #e0e0e0; /* gray empty stars */
 position: absolute;
 top: 0;
 left: 0;
 z-index: 0;
}


.stars::after {
 content: "★★★★★";
 letter-spacing: 0.12em;
 color: #d4af37;
 position: absolute;
 top: 0;
 left: 0;
 z-index: 1;
 overflow: hidden;
 width: 0;
}


/* Fill widths tuned for visual accuracy */
.rating-1::after    { width: 1.15em; }
.rating-1-5::after  { width: 1.7em; }
.rating-2::after    { width: 2.3em; }



.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: 'PT Sans', sans-serif;
  color: #d4af37;
  font-size: 0.9rem;
}

.contact-form {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  font-family: 'PT Sans', sans-serif;
  color: #003049;
}

.contact-form h2 {
  text-align: center;
  font-family: 'PT Serif Caption', serif;
  font-size: 2.2rem;
  color: #d4af37;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 2px solid #d4af37;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'PT Sans', sans-serif;
}

.contact-form button {
  background-color: #d4af37;
  color: #003049;
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-form button:hover {
  background-color: #003049; /* Prussian Blue */
  color: #d4af37;
}

.big-sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #d4af37;
  border-radius: 50%;
  animation: sparkle 0.9s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
}

.art-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'PT Sans', sans-serif;
  font-size: 1.2rem;
  color: white;
  background-color: #003049;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}

.art-button::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10,50 Q30,10 50,50 T90,50" stroke="%23d4af37" stroke-width="1" fill="none"/></svg>') no-repeat center;
  background-size: 120%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.art-button:hover::before {
  opacity: 1;
}

.art-button.glow {
  animation: glow-flash 0.4s ease forwards;
}

@keyframes glow-flash {
  0% {
    background-color: #003049;
    box-shadow: none;
  }
  50% {
    background-color: #FFD700;
    box-shadow: 0 0 20px #FFD700, 0 0 40px #FFD700;
    color: #003049;
  }
  100% {
    background-color: #003049;
    color: white;
    box-shadow: none;
  }
}

/* Add these styles to your existing CSS file */

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 25px; /* Increased gap between images */
    margin: 25px auto; /* Add margin to top and bottom */
    padding: 0 15px; /* Add padding to left and right */
  }

  .gallery-item {
    max-width: 85%; /* Make images slightly smaller than screen width */
    margin: 0 auto; /* Center the images */
    border-width: 2px; /* Slightly thicker border */
  }

  .big, .wide {
    grid-column: span 1;
  }

  /* Add these styles to update the mobile poem layout */

@media (max-width: 768px) {
  /* Book layout adjustments */
  .poem-book {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    width: 90%;
    max-width: 500px;
    overflow-y: auto;
  }

  /* Adjust the pages container for mobile */
  .poem-pages-container {
    flex-direction: column;
  }

  /* Remove the center line divider on mobile */
  .poem-pages-container:after {
    display: none;
  }

  /* Restructure page layout for mobile */
  .page-front {
    flex-direction: column;
    overflow-y: auto;
  }

  /* Make the image side take less vertical space */
  .poem-image-side {
    flex: none;
    height: auto;
    min-height: 200px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Adjust image size to be proportional but not overwhelming */
  .poem-image-side img {
    max-height: 40vh;
    width: auto;
    object-fit: contain;
    border-radius: 3px;
    padding: 5px;
  }

  /* Improve text side spacing and scrolling */
  .poem-text-side {
    padding: 5px 20px 25px;
    overflow-y: visible;
    flex: none;
  }

  /* Adjust poem title for mobile */
  .poem-title {
    font-size: 2rem;
    margin: 10px 0;
    padding-top: 5px;
  }

  /* Make poem text more readable on mobile */
  .poem-content {
    font-size: 1.15rem;
    line-height: 1.5;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
  }

  /* Adjust close button positioning */
  .close-button {
    top: 10px;
    right: 10px;
  }

  /* Add a subtle divider between image and text */
  .poem-image-side:after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background: #d4af37;
    position: absolute;
    bottom: 0;
    left: 10%;
    opacity: 0.6;
  }
}

  /* Adjust poem preview text size for better readability on mobile */
  .poem-preview {
    font-size: 0.95rem;
    padding: 1.2rem;
  }

  /* Add a subtle box shadow for depth */
  .gallery-item {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }

  /* Space for the footer */
  .gallery-container {
    margin-bottom: 2rem;
  }
}

/* Enhanced mobile fixes - add these at the END of your CSS file to ensure they override other styles */

@media (max-width: 768px) {
  /* Force the header to use the right display properties */
  .portfolio-header {
    width: 100%;
    display: block;
    padding: 2rem 0 0.5rem;
  }

  /* Reset header content to ensure proper flow */
  .header-content {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  /* Center the logo container */
  .header-logo {
    display: block;
    width: 100%;
    text-align: center;
    margin: 1rem auto 0;
  }

  /* Explicitly center the logo image */
  .header-logo img.logo {
    display: block;
    margin: 0 auto;
    max-width: 200px;
  }

  /* Make sure text is centered */
  .header-text {
    width: 100%;
    text-align: center;
    min-width: 0;
  }

  /* Ensure site title is centered */
  .site-title {
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Fix for any other pages that might use the original header style */
  header {
    display: block;
    text-align: center;
  }

  .header-left, .header-right {
    display: block;
    width: 100%;
    text-align: center;
  }

  .logo {
    margin: 0 auto;
    display: block;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* These are more aggressive overrides for very small screens */
  .header-content, .header-text, .header-logo {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .header-logo img.logo {
    margin: 1rem auto !important;
    display: block !important;
  }
}

/* Add these styles at the END of your style.css file */

/* First, we'll keep the desktop positioning as is */
.header-logo {
  position: relative;
  left: -60px; /* For About page */
  flex-shrink: 0;
}

/* For the Contact and Poems pages that use -70px */
.contact-page .header-logo,
.poems-page .header-logo {
  left: -70px;
}

/* Then override the positioning for mobile devices */
@media (max-width: 768px) {
  /* Reset the negative left positioning that's causing the issue */
  .header-logo {
    position: static !important; /* Override any existing position with !important */
    left: 0 !important; /* Reset any left value with !important */
    margin: 0 auto !important; /* Center the logo container */
    width: 100% !important; /* Full width for proper centering */
    text-align: center !important; /* Center the image if it's not block */
  }

  /* Make the logo itself centered */
  .header-logo img.logo,
  .header-logo .logo {
    margin: 0 auto !important;
    display: block !important;
    max-width: 180px; /* Control the size on mobile */
  }

  /* Adjust the header structure for mobile */
  .header-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  /* Center the text content */
  .header-text {
    text-align: center !important;
    width: 100% !important;
  }

  /* Make the site title fit better on small screens */
  .site-title {
    font-size: 2.8rem !important;
    text-align: center !important;
    white-space: normal !important; /* Allow title to wrap if needed */
  }
}

/* Extra small device adjustments */
@media (max-width: 480px) {
  .header-logo img.logo,
  .header-logo .logo {
    max-width: 150px !important; /* Slightly smaller on very small screens */
  }

  .site-title {
    font-size: 2.5rem !important;
  }
}


/* Add these styles to your CSS file to fix all galleries */

@media (max-width: 768px) {
  /* Target both gallery types */
  .poem-gallery, .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }

  /* Target all gallery items */
  .poem-thumb, .gallery-item {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Fix the gallery container on homepage */
  .gallery-container {
    padding: 0 2rem;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* For even smaller screens */
@media (max-width: 480px) {
  .poem-gallery, .gallery {
    grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns */
    gap: 15px;
    padding: 1.5rem;
  }

  /* Ensure items are properly sized */
  .poem-thumb, .gallery-item {
    max-width: 100%;
  }

  /* Additional fix for homepage gallery */
  .gallery-container {
    padding: 0 1.5rem;
  }
}
.secret-text {
  text-align: center;
  font-family: 'PT Serif', serif;
  font-size: 1.4rem;
  color: #003049;
  margin: 2rem auto 1rem;
  max-width: 700px;
  padding: 0 1rem;
}

.secret-image {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.secret-image img {
  max-width: 100%;
  height: auto;
  width: 500px;
}








