/*
  Leah Cortez Studio Art - Homepage Stylesheet
  ---
  This file contains the specific styles for the layout and elements
  on the homepage (index.html). It is loaded after styles.css,
  so these rules can override the global styles if necessary.
*/


/* --------------------
   1. UTILITY & CONTAINER
   -------------------- */

/* Global header color for homepage */
h1, h2, h3, h4, h5, h6 {
  color: #f5c6d6 !important;
}

/* Section header classes for specificity */


/*
  A general-purpose container to center content and provide consistent padding.
  This is used within several sections of the homepage.
*/
.container {
  /* Sets a maximum width for the content area */
  max-width: 1200px;
  /* Centers the container horizontally */
  margin: 0 auto;
}

/*
  A general-purpose call-to-action button style.
*/
.cta-button {
    /* Display as an inline block to respect padding and margins */
    display: inline-block;
    /* Padding inside the button */
    padding: 12px 28px;
    /* Background color using the primary accent color */
    background-color: var(--color-primary-accent);
    /* Text color for the button */
    color: var(--color-background);
    /* Font family for the button text */
    font-family: var(--font-accent);
    /* Removes the underline */
    text-decoration: none;
    /* Uppercase text for style */
    text-transform: uppercase;
    /* A subtle border */
    border: 1px solid var(--color-primary-accent);
    /* Rounded corners */
    border-radius: 20px;
    /* A transition for smooth hover effects */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-button:hover {
    /* Background color on hover */
    background-color: #7e1c2e;
    /* Text color on hover - pink */
    color: #f5c6d6;
    /* Border color matches background */
    border-color: #7e1c2e;
}

/* --------------------
   2. HERO SECTION
   -------------------- */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  min-height: 100vh;
  text-align: center;
  background-size: cover;
  background-position: center;
  /* Center the entire content block */
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.lace-logo {
  width: 400px;
  max-width: 95%;
  margin-bottom: 1rem;
  margin-top: 20px;
  line-height: 1.4;
  cursor: pointer;
  /* Remove transition from here to avoid conflicts */
}

/* Start hidden and down */
.animate-logo {
  opacity: 0;
  transform: translateY(20px) scale(1);
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Keyframes for fade in + up */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-title {
  font-family: 'Pirata One', cursive;
  font-size: 3rem;
  margin-bottom: 10px; /* Less space below title */
  margin-top: 0;
  line-height: 1.4;
}

.hero-poetic {
  font-style: italic;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1.5rem; /* Less space below the poetic line */
  color: #e8e8e8;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-primary-accent);
    color: var(--color-background);
    font-family: var(--font-accent);
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid var(--color-primary-accent);
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  background-color: #7e1c2e;
  color: #f5c6d6;
  border-color: #7e1c2e;
}

/* --------------------
   3. BIO PREVIEW SECTION
   -------------------- */

.bio-preview-section {
  /* Adds vertical padding to the section and extra space above */
  padding: 4rem 0;
  margin-top: 4rem; /* extra space between hero and bio preview */
}

.bio-preview-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.bio-content {
  display: flex;
  align-items: center; /* center bio-text vertically with image */
  gap: 3rem;
  text-align: left;
}

.bio-image {
  width: 40%;
  max-width: 400px;
  object-fit: cover;
  border: 4px solid var(--color-secondary-accent);
  margin-top: 0.3rem; /* aligns image top with bio-title and paragraph */
}

.bio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  /* Remove margin-top so text is centered vertically with image */
}

/* Info styles for bio section */
.bio-title {
  font-family: 'Pirata One', cursive;
  font-size: 3rem;
  margin: 0;
  margin-bottom: 0.3rem;
  text-align: left;
  align-self: flex-start;
  color: #7e1c2e;
}

.bio-poetic {
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  margin-bottom: 1.5rem;
  color: #e8e8e8;
}

.bio-btn {
  margin-top: 0;
}

.about-heading {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-description {
  line-height: 1.6;
  font-size: 1.1rem;
}

.text-link {
    /* Sets the font to the accent font */
    font-family: var(--font-accent);
    /* Makes the font bold */
    font-weight: bold;
    /* Adds space above the link */
    margin-top: 1rem;
    /* Displays as a block to take its own line */
    display: inline-block;
    color: #f5c6d6 !important;
    text-decoration: none !important;
    transition: color 0.3s, text-decoration 0.3s;
}

.text-link:hover, .text-link:focus {
    color: #7e1c2e !important;
    text-decoration: underline !important;
}
@media screen and (max-width: 768px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-img {
    margin-bottom: 20px;
  }
}
/* Scrolling Marquee */
.marquee {
  margin-top: 3rem; /* pushes it down from content above */
  margin-bottom: 2rem; /* pushes it up from the footer */
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: black; /* or transparent */
  border-top: none;
  border-bottom: none;
  padding: 0.5em 0;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 40s linear infinite; /* slower */
}

.marquee-content span {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  color: #7e1c2e; /* Your hot pink/red tone */
  font-size: 1.25rem; /* larger */
  font-weight: 500;
  margin-right: 3rem; /* space between repeats */
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* --------------------
   4. FEATURED ART SECTION
   -------------------- */

.featured {
  /* Adds vertical padding */
  padding: 4rem 0;
}

.featured-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #f5c6d6;
    font-family: 'Pirata One', cursive;
}

.featured-art-section {
  /* Adds vertical padding */
  padding: 4rem 0;
}

.featured-art-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #7e1c2e;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2rem;
}

.masonry-item {
  box-sizing: border-box;
  margin-bottom: 2rem;
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lace-wrapper {
  width: 100%;
  max-width: 250px;
  height: auto;
  position: relative;
}

.gallery-item {
  /* Positions the item relatively to act as a container for the overlay */
  position: relative;
  /* Hides any part of the overlay that might overflow */
  overflow: hidden;
  /* Sets a consistent width for horizontal alignment */
  width: 300px;
  /* Prevents items from shrinking */
  flex-shrink: 0;
}

.gallery-item img {
  /* Makes the image fill its container */
  width: 100%;
  /* Displays the image as a block element to remove bottom space */
  display: block;
  /* Adds a transition for a subtle zoom effect on hover */
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  /* Scales the image up slightly on hover */
  transform: scale(1.05);
}

.gallery-item .overlay {
  /* Positions the overlay absolutely within the gallery item */
  position: absolute;
  /* Places the overlay at the bottom of the item */
  bottom: 0;
  left: 0;
  /* Takes the full width of the item */
  width: 100%;
  /* Adds padding inside the overlay */
  padding: 1rem;
  /* A semi-transparent background to make text readable */
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  /* Sets the text color */
  color: var(--color-text);
  /* Moves the overlay off-screen initially */
  transform: translateY(100%);
  /* A transition for a smooth slide-in effect */
  transition: transform 0.4s ease;
}

.gallery-item:hover .overlay {
  /* Slides the overlay into view on hover */
  transform: translateY(0);
}

.overlay h3 {
  /* Overrides the default heading margin */
  margin: 0;
}

.view-all-link {
    /* Centers the button below the gallery */
    text-align: center;
    /* Adds space above the button */
    margin-top: 3rem;
}

/* --- Added styles for featured cards --- */
.featured-card {
  width: 250px;
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 20px;
}

.featured-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-card a:hover {
  text-decoration: none;
}

.lace-wrapper {
  position: relative;
  width: 250px;
  height: 330px;
  margin: 0 auto;
}

.lace-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.4s ease;
  opacity: 0.9;
  filter: brightness(1.1) contrast(1.2) drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.project-image {
  position: absolute;
  top: 25px;     /* Adjust based on padding of your border PNG */
  left: 25px;
  width: 200px;
  height: 280px;
  object-fit: cover;
  z-index: 1;
  background: #fff;
  border-radius: 6px;
  transition: transform 0.4s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: optimizeQuality;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* Make flag design image smaller in gallery */
.masonry-item.design.square a[href*="flag-design"] .project-image {
  position: static;
  width: 100%;
  height: auto;
  max-width: 180px;
  margin: 0 auto;
}

/* Make background icons more visible */
.background-icon {
  opacity: 0.6;
  filter: brightness(1.05) drop-shadow(0 1px 4px rgba(126,28,46,0.15));
  transition: opacity 0.3s, filter 0.3s;
}

.image-gallery {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.featured-artwork-wrapper {
  display: flex;
  justify-content: center; /* centers the row horizontally */
  align-items: flex-start;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap: 30px; /* spacing between cards */
  margin-top: 30px;
}

.artwork {
  text-align: center;
}

.project-title {
  color: white;
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}

.caption {
  color: white;
  margin-top: 10px;
  font-family: 'Pirata One', cursive;
  font-size: 16px;
  text-align: center;
}

.featured-card:hover .project-image {
  transform: scale(1.02) translateZ(0);
}

.featured-card:hover .lace-border {
  transform: scale(1.02) translateZ(0);
}

/* --------------------
   5. CONTACT PREVIEW SECTION
   -------------------- */

.contact-preview-section {
  /* Further reduced vertical padding for skinnier appearance */
  padding: 1.5rem 0 1rem 0;
  /* Light background for visual separation */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  /* Centers the content */
  text-align: center;
  position: relative;
}

.contact-content {
  /* Two-column layout for contact section - wider for more horizontal space */
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-text-column {
  /* Left column with text content */
  flex: 1;
  text-align: left;
}

.contact-social-column {
  /* Right column with button and social icons */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Ensure contact button has proper hover effect */
.contact-social-column .cta-button:hover {
  background-color: #7e1c2e !important;
  color: #f5c6d6 !important;
  border-color: #7e1c2e !important;
}

.contact-preview-section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #7e1c2e;
  font-weight: 300;
  letter-spacing: 1px;
}

.contact-preview-section p {
  /* Sets the font to the accent font */
  font-family: var(--font-accent);
  /* Adds space below the paragraph */
  margin-bottom: 1.5rem;
  /* Sets the font size */
  font-size: 1.2rem;
  /* Improves line height for readability */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.contact-subtext {
  /* Smaller text above social icons - left aligned */
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
  opacity: 0.7;
  font-style: italic;
  text-align: left;
  align-self: flex-start;
}

.contact-social-icons {
  /* Arranges social icons horizontally */
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}

.social-icon {
  /* Social icon styling with hover effects */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.8rem;
  gap: 0.6rem;
  /* Add transition for hover effects */
  transition: transform 0.3s ease;
}

.social-icon::before {
  /* Remove shimmer effect */
  display: none;
}

.social-icon img {
  /* Make icons pink by default */
  filter: brightness(0) saturate(100%) invert(89%) sepia(15%) saturate(1040%) hue-rotate(298deg) brightness(102%) contrast(94%);
  transition: filter 0.3s ease;
}

.social-icon:hover {
  /* Add hover transform */
  transform: translateY(-3px);
}

/* --------------------
   6. MEDIA QUERIES (for Responsiveness)
   -------------------- */

/* For tablets and smaller devices */
@media (max-width: 992px) {
    .gallery-grid {
      /* Maintains horizontal layout but allows more wrapping */
      gap: 1.5rem;
    }
    
    .gallery-item {
      /* Slightly smaller width on tablets */
      width: 250px;
    }
    
    .featured-artwork-wrapper {
      /* Keep horizontal layout on tablets but allow wrapping */
      gap: 20px;
    }
    
    .featured-card {
      /* Keep same size on tablets */
      width: 250px;
    }
    
    .lace-wrapper {
      /* Keep same wrapper size */
      width: 250px;
      height: 330px;
    }
    
    .project-image {
      /* Keep same image proportions */
      width: 200px;
      height: 280px;
      top: 25px;
      left: 25px;
    }
}

/* For mobile phones */
@media (max-width: 768px) {
    .hero-section {
      max-width: 100%;
      padding: 0 1rem;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .hero-title {
      font-size: 2.1rem;
      line-height: 1.15;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
      word-break: break-word;
      hyphens: auto;
    }
    .hero-poetic,
    .btn {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    /* Make background icons even more visible on mobile */
    .background-icon {
      opacity: 1 !important;
      filter: brightness(1.7) contrast(1.3) drop-shadow(0 6px 18px rgba(126,28,46,0.45)) !important;
      mix-blend-mode: lighten !important;
    }

    .bio-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .bio-text {
      align-items: center;
      text-align: center;
    }

    .bio-image {
      width: 80%;
      max-width: 300px;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    .gallery-grid {
      justify-content: center;
      gap: 1rem;
      align-items: center;
    }

    .featured-artwork-wrapper {
      justify-content: center;
      align-items: center;
      gap: 30px;
    }

    .featured-title {
      font-size: 2.2rem;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    .view-all-link {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    .contact-content {
      flex-direction: column;
      gap: 2.5rem;
      padding: 0 1rem;
      align-items: center;
      text-align: center;
    }

    .contact-text-column {
      text-align: center;
      align-items: center;
    }

    .contact-preview-section h2 {
      font-size: 2.2rem;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    .contact-social-column {
      align-items: center;
      gap: 1.5rem;
      text-align: center;
    }

    .contact-social-icons {
      gap: 1.5rem;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }

    .social-icon {
      padding: 0.8rem 0.5rem;
      gap: 0.5rem;
      margin-left: auto;
      margin-right: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .social-label {
      font-size: 0.75rem;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }
}

/* For small tablets and large phones */
@media (max-width: 480px) {
    .featured-card {
      /* Keep same size even on very small screens */
      width: 250px;
    }
    
    .lace-wrapper {
      /* Keep same wrapper size */
      width: 250px;
      height: 330px;
    }
    
    .project-image {
      /* Keep same image proportions */
      width: 200px;
      height: 280px;
      top: 25px;
      left: 25px;
    }
    
    .featured-title {
      /* Smaller title */
      font-size: 1.8rem;
    }
    
    .caption {
      /* Keep same caption size */
      font-size: 14px;
    }
}

/* --------------------
   8. TESTIMONIAL SECTION
   -------------------- */

.testimonial-section {
  background: transparent;
  padding: 80px 0;
  position: relative;
  width: 100%;
  clear: both;
  display: block;
}

.testimonial-section .section-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--color-primary-accent);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  letter-spacing: 1px;
  width: 100%;
  display: block;
  font-weight: 400;
}

.testimonial-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary-accent);
  border-radius: 1px;
}

.testimonial-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.testimonial {
  background: rgba(248, 200, 208, 0.08);
  border: 2px solid rgba(248, 200, 208, 0.3);
  border-left: 6px solid var(--color-primary-accent);
  border-radius: 12px;
  padding: 40px 35px;
  margin: 0 auto;
  position: relative;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 200, 208, 0.5);
  border-left-color: var(--color-secondary-accent);
}

.testimonial::before {
  content: '❝';
  position: absolute;
  top: -15px;
  left: 20px;
  font-family: var(--font-headings);
  font-size: 4rem;
  color: var(--color-primary-accent);
  line-height: 1;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial::after {
  content: '❞';
  position: absolute;
  bottom: -25px;
  right: 20px;
  font-family: var(--font-headings);
  font-size: 4rem;
  color: var(--color-primary-accent);
  line-height: 1;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-family: var(--font-body), 'IM Fell English', serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 25px;
  font-style: italic;
  text-align: left;
  position: relative;
  z-index: 2;
  font-weight: 400;
  padding-left: 20px;
  border-left: 3px solid rgba(248, 200, 208, 0.3);
}

.testimonial cite {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--color-primary-accent);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  text-align: right;
  position: relative;
  z-index: 2;
  margin-top: 15px;
  padding-right: 20px;
}

.testimonial cite::before {
  content: '';
  margin-right: 5px;
  font-size: 1rem;
}

/* Carousel Container */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 30px;
  padding: 0 60px;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.5s ease-in-out;
}

.testimonial-slide.active {
  position: relative;
  left: 0;
  opacity: 1;
  transform: translateX(0);
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid var(--color-primary-accent);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
  background: var(--color-secondary-accent);
  border-color: var(--color-secondary-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(126, 28, 46, 0.4);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary-accent);
  transition: stroke 0.3s ease;
  stroke-width: 2.5;
}

.carousel-arrow:hover svg {
  stroke: var(--color-primary-accent);
}

.carousel-arrow-left {
  left: 10px;
}

.carousel-arrow-right {
  right: 10px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--color-primary-accent);
  transform: scale(1.2);
}

/* Mobile responsiveness for testimonial */
@media (max-width: 768px) {
  .testimonial-section {
    padding: 80px 0; /* Increased from 60px for better breathing room */
  }
  
  .testimonial-section .section-title {
    font-size: 2rem;
    margin-bottom: 45px; /* Increased from 35px */
  }
  
  .testimonial-content {
    padding: 0 20px;
  }
  
  .testimonial {
    padding: 35px 25px; /* Increased from 30px */
    border-radius: 10px;
    max-width: 100%;
    margin-bottom: 20px; /* Added margin for better spacing */
  }
  
  .testimonial::before,
  .testimonial::after {
    font-size: 3rem;
  }
  
  .testimonial::before {
    top: -12px;
    left: 15px;
  }
  
  .testimonial::after {
    bottom: -18px;
    right: 15px;
  }
  
  .testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Increased from 20px */
    padding-left: 15px;
  }
  
  .testimonial cite {
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding-right: 15px;
  }
  
  /* Add spacing for carousel dots */
  .carousel-dots {
    margin-top: 30px; /* Increased spacing */
  }
}

@media (max-width: 480px) {
  .testimonial-section {
    padding: 70px 0; /* Increased from 60px for better breathing room */
  }
  
  .testimonial-section .section-title {
    font-size: 1.8rem; /* Slightly smaller than 768px but still readable */
    margin-bottom: 40px; /* Increased spacing */
  }
  
  .testimonial {
    padding: 30px 20px; /* Better padding for small screens */
    border-radius: 8px;
    margin-bottom: 20px; /* Added margin for better spacing */
  }
  
  .testimonial::before,
  .testimonial::after {
    font-size: 2.5rem;
  }
  
  .testimonial::before {
    top: -8px;
    left: 12px;
  }
  
  .testimonial::after {
    bottom: -12px;
    right: 12px;
  }
  
  .testimonial p {
    font-size: 1rem;
    line-height: 1.6; /* Improved line height */
    margin-bottom: 20px; /* Added spacing */
    padding-left: 12px;
  }
  
  .testimonial cite {
    font-size: 0.85rem;
    padding-right: 12px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }
  
  .carousel-arrow-left {
    left: 2px;
  }
  
  .carousel-arrow-right {
    right: 2px;
  }
  
  .carousel-arrow svg {
    width: 16px;
    height: 16px;
    stroke-width: 3.5;
  }
  
  .testimonials-carousel {
    padding: 0 45px;
  }
  
  /* Add spacing for carousel dots on mobile */
  .carousel-dots {
    margin-top: 25px;
  }
}

/* --------------------
   PORTFOLIO SOUL QUIZ
   -------------------- */

.portfolio-quiz-section {
  padding: 80px 20px;
  background: var(--dark-charcoal);
  border-top: 3px solid var(--burgundy);
  border-bottom: 3px solid var(--burgundy);
  position: relative;
  overflow-x: hidden;
}

.portfolio-quiz-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../icons/starburst.svg') repeat;
  opacity: 0.03;
  pointer-events: none;
}

.quiz-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.quiz-header h2 {
  font-family: 'Pirata One', cursive;
  font-size: 3.2rem;
  color: var(--cream);
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  letter-spacing: 2px;
}

.quiz-subtitle {
  font-family: 'IM Fell English', serif;
  font-size: 1.3rem;
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(17, 17, 17, 0.95);
  border-radius: 15px;
  border: 2px solid var(--burgundy);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Quiz Start Screen */
.quiz-start {
  padding: 60px 40px;
  text-align: center;
}

.quiz-intro {
  max-width: 500px;
  margin: 0 auto;
}

.quiz-intro h3 {
  font-family: 'Pirata One', cursive;
  font-size: 2.5rem;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.quiz-intro p {
  font-family: 'IM Fell English', serif;
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
  padding: 30px 40px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(126, 28, 46, 0.3);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(126, 28, 46, 0.3);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid var(--burgundy);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy), var(--cream));
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  color: var(--light-gray);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* Questions */
.quiz-questions {
  min-height: 400px;
}

.question-container {
  padding: 40px;
}

.question-text {
  font-family: 'Pirata One', cursive;
  font-size: 2rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.4;
  letter-spacing: 1px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.answer-options {
  display: grid;
  gap: 15px;
  margin-bottom: 40px;
}

.answer-option {
  background: rgba(17, 17, 17, 0.8);
  border: 2px solid var(--burgundy);
  border-radius: 10px;
  padding: 20px 25px;
  color: var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  min-height: fit-content;
}

.answer-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.answer-option:hover {
  border-color: var(--cream);
  background: rgba(126, 28, 46, 0.2);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.answer-option:hover::before {
  left: 100%;
}

.answer-option.selected {
  border-color: var(--cream);
  background: rgba(126, 28, 46, 0.3);
  color: var(--cream);
  box-shadow: 0 0 20px rgba(126, 28, 46, 0.4);
}

/* Quiz Results */
.quiz-results {
  padding: 0;
}

.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.result-image {
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
  position: relative;
}

.result-image .lace-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--burgundy);
  background: rgba(17, 17, 17, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 500px;
}

.result-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.result-text {
  text-align: center;
  width: 100%;
}

.result-text h3 {
  font-family: 'Pirata One', cursive;
  font-size: 2.5rem;
  color: var(--cream);
  margin-bottom: 10px;
  letter-spacing: 1px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.result-text h4 {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  color: var(--burgundy);
  margin-bottom: 25px;
  font-style: italic;
}

.result-text p {
  font-family: 'IM Fell English', serif;
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.result-quote {
  background: rgba(126, 28, 46, 0.2);
  border-left: 4px solid var(--burgundy);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 10px 10px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.result-quote p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--cream);
  margin: 0;
  font-size: 1.2rem;
}

.result-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
  justify-content: center;
}

/* Quiz Buttons */
.quiz-btn {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--burgundy);
  border-radius: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.quiz-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.quiz-btn:hover::before {
  left: 100%;
}

.quiz-btn.primary {
  background: var(--burgundy);
  color: var(--cream);
  box-shadow: 0 4px 15px rgba(126, 28, 46, 0.4);
}

.quiz-btn.primary:hover {
  background: var(--cream);
  color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 28, 46, 0.6);
}

.quiz-btn.secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.quiz-btn.secondary:hover {
  background: var(--cream);
  color: var(--dark-charcoal);
}

.quiz-btn.tertiary {
  background: transparent;
  color: var(--light-gray);
  border: 2px solid var(--light-gray);
}

.quiz-btn.tertiary:hover {
  background: var(--light-gray);
  color: var(--dark-charcoal);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.active {
  display: block !important;
}

/* Spotify-Style Share Modal */
.spotify-share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.spotify-share-modal.active {
  opacity: 1;
}

.spotify-share-content {
  background: var(--dark-charcoal);
  border: 3px solid var(--burgundy);
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(126, 28, 46, 0.3);
  position: relative;
  margin: 0 auto;
}

.spotify-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 2px solid rgba(126, 28, 46, 0.3);
  background: rgba(126, 28, 46, 0.1);
}

.spotify-share-header h3 {
  font-family: 'Pirata One', cursive;
  color: var(--cream);
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.spotify-share-close {
  background: none;
  border: 2px solid var(--light-gray);
  color: var(--light-gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: 'IBM Plex Mono', monospace;
}

.spotify-share-close:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
  transform: scale(1.05);
}

.spotify-share-body {
  padding: 30px;
}

.story-templates {
  margin-bottom: 35px;
}

.template-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.template-btn {
  background: rgba(126, 28, 46, 0.2);
  border: 2px solid var(--burgundy);
  color: var(--light-gray);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 90px;
}

.template-btn:hover {
  background: rgba(126, 28, 46, 0.4);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(126, 28, 46, 0.3);
}

.template-btn.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 4px 15px rgba(126, 28, 46, 0.5);
}

.template-preview {
  background: rgba(17, 17, 17, 0.8);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: 2px solid rgba(126, 28, 46, 0.3);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

#story-canvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  max-height: 350px;
  border: 2px solid var(--burgundy);
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.spotify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  border: 2px solid var(--burgundy);
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.spotify-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.spotify-btn:hover::before {
  left: 100%;
}

.spotify-btn.download-story {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}

.spotify-btn.download-story:hover {
  background: var(--cream);
  color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(126, 28, 46, 0.4);
}

.spotify-btn.share-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

.spotify-btn.share-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
}

.more-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.spotify-btn.copy-text {
  background: transparent;
  color: var(--light-gray);
  border-color: var(--light-gray);
}

.spotify-btn.copy-text:hover {
  background: var(--light-gray);
  color: var(--dark-charcoal);
  border-color: var(--light-gray);
}

.spotify-btn.share-more {
  background: transparent;
  color: var(--light-gray);
  border-color: var(--light-gray);
}

.spotify-btn.share-more:hover {
  background: var(--light-gray);
  color: var(--dark-charcoal);
  border-color: var(--light-gray);
}

.btn-icon {
  font-size: 1.3rem;
}

/* Mobile responsive styles for Spotify modal */
@media (max-width: 768px) {
  .spotify-share-modal {
    padding: 15px;
  }
  
  .spotify-share-content {
    width: 100%;
    margin: 0;
    max-height: 95vh;
    border-radius: 15px;
  }
  
  .spotify-share-header {
    padding: 25px 25px 18px;
  }
  
  .spotify-share-header h3 {
    font-size: 1.6rem;
  }
  
  .spotify-share-body {
    padding: 25px 20px;
  }
  
  .template-selector {
    justify-content: center;
    gap: 8px;
  }
  
  .template-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  
  .more-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .spotify-btn {
    padding: 16px 22px;
    font-size: 0.85rem;
  }
  
  #story-canvas {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .spotify-share-modal {
    padding: 10px;
  }
  
  .spotify-share-content {
    border-radius: 12px;
  }
  
  .spotify-share-header {
    padding: 20px 20px 15px;
  }
  
  .spotify-share-header h3 {
    font-size: 1.4rem;
  }
  
  .spotify-share-close {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .spotify-share-body {
    padding: 20px 15px;
  }
  
  .template-btn {
    font-size: 0.75rem;
    padding: 8px 12px;
    min-width: 70px;
  }
  
  .spotify-btn {
    padding: 14px 18px;
    font-size: 0.8rem;
  }
  
  #story-canvas {
    max-height: 200px;
  }
}
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-modal.active {
  opacity: 1;
}

.share-modal-content {
  background: var(--dark-charcoal);
  border: 2px solid var(--burgundy);
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(126, 28, 46, 0.3);
}

.share-modal-header h3 {
  font-family: 'Pirata One', cursive;
  color: var(--cream);
  margin: 0;
  font-size: 1.8rem;
}

.share-modal-close {
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.share-modal-close:hover {
  color: var(--cream);
}

.share-modal-body {
  padding: 25px;
  text-align: center;
}

.share-preview {
  margin-bottom: 20px;
}

.share-image-preview {
  max-width: 200px;
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--burgundy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.share-caption {
  font-family: 'IM Fell English', serif;
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 1rem;
  padding: 15px;
  background: rgba(126, 28, 46, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--burgundy);
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: var(--burgundy);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  justify-content: center;
}

.share-btn:hover {
  background: var(--cream);
  color: var(--burgundy);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(126, 28, 46, 0.4);
}

.btn-icon {
  font-size: 1.2rem;
}

.share-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  color: var(--light-gray);
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.social-share-btn.instagram {
  border-color: #E4405F;
  color: #E4405F;
}

.social-share-btn.instagram:hover {
  background: #E4405F;
  color: white;
}

.social-share-btn.facebook {
  border-color: #1877F2;
  color: #1877F2;
}

.social-share-btn.facebook:hover {
  background: #1877F2;
  color: white;
}

.social-share-btn.twitter {
  border-color: #1DA1F2;
  color: #1DA1F2;
}

.social-share-btn.twitter:hover {
  background: #1DA1F2;
  color: white;
}

/* Mobile responsive styles for share modal */
@media (max-width: 768px) {
  .share-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .share-modal-body {
    padding: 20px;
  }
  
  .share-image-preview {
    max-width: 150px;
  }
  
  .share-social {
    flex-direction: column;
    align-items: center;
  }
  
  .social-share-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-quiz-section {
    padding: 60px 15px;
  }
  
  .quiz-header h2 {
    font-size: 2.2rem;
  }
  
  .quiz-container {
    margin: 0 10px;
  }
  
  .quiz-start {
    padding: 40px 25px;
  }
  
  .question-container {
    padding: 30px 25px;
  }
  
  .question-text {
    font-size: 1.5rem;
  }
  
  .answer-option {
    padding: 18px 22px;
    font-size: 1.05rem;
    line-height: 1.4;
  }
  
  .result-content {
    padding: 30px 25px;
  }
  
  .result-image {
    max-width: 300px;
    margin-bottom: 25px;
  }
  
  .result-image .lace-wrapper {
    min-height: 280px;
    max-height: 350px;
    width: 100%;
    max-width: 280px;
  }
  
  .result-image img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
  }
  
  .result-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .quiz-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .quiz-header h2 {
    font-size: 1.8rem;
  }
  
  .quiz-subtitle {
    font-size: 1rem;
  }
  
  .question-text {
    font-size: 1.3rem;
  }
  
  .answer-option {
    padding: 15px 20px;
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .result-text h3 {
    font-size: 1.8rem;
  }
  
  .result-image .lace-wrapper {
    min-height: 240px;
    max-height: 280px;
    width: 100%;
    max-width: 240px;
  }
  
  .result-image img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
  }
}

@media (max-width: 360px) {
  .quiz-container {
    margin: 0 5px;
    border-radius: 10px;
  }
  
  .quiz-start {
    padding: 30px 20px;
  }
  
  .question-container {
    padding: 25px 20px;
  }
  
  .answer-option {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  
  .result-content {
    padding: 25px 20px;
  }
  
  .result-text h3 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .result-text h4 {
    font-size: 1.2rem;
  }
  
  .result-text p {
    font-size: 1rem;
  }
  
  .quiz-btn {
    padding: 12px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: normal;
    line-height: 1.3;
  }
}
