/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background Image */
body {
  cursor: url("../cursors/default-cursor.png"), auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Georgia", serif;
  margin: 0; /* Ensure no margin around the page */
  /* background: url('images/sunset.jpg') no-repeat center center fixed;
    background-size: cover; Make the image cover the entire background */
  color: #fff; /* Adjust text color for better contrast */
  animation: fade 1s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

a,
button {
  cursor: url("../cursors/pointer-cursor.png"), pointer;
  text-decoration: none;
}

/* 🔥 Cinematic drifting photos */
.floating-photo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -3; /* behind grain + paper */
  pointer-events: none;
}

.float-pic {
  position: absolute;
  width: 20rem;
  height: auto;
  object-fit: cover;
  filter: blur(20px) brightness(1.3);
  border-radius: 14px;
  opacity: 0.8;
  animation: drift 38s linear infinite alternate;
  will-change: transform;
  transform: translate(-10%, -10%) rotate(-4deg);
}

/* Individual random offsets + speeds */
.f1 {
  top: -5vh;
  left: 7vw;
  animation-duration: 46s;
}
.f2 {
  top: 50vh;
  left: 20vw;
  animation-duration: 52s;
}
.f3 {
  top: 15vh;
  left: 82vw;
  animation-duration: 60s;
}
.f4 {
  top: 55vh;
  left: 70vw;
  animation-duration: 50s;
}

/* Background paper image */
#paper-b {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interference with clicking */
  opacity: 0.6; /* Adjust for more or less grain */
  z-index: -100;
}

/* Plant shadows */
.plant-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.3; /* Semi-transparent */
  z-index: -100; /* Above background but below text */
  filter: blur(10px);
  pointer-events: none;
}

.plant-shadow-left {
  bottom: 0; /* Position at the bottom */
  left: 0; /* Align left */
  transform: translateY(20%) scaleX(1.2); /* Adjust position and scale */
  pointer-events: none;
  z-index: -100;
}

#grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interference with clicking */
  opacity: 0.2; /* Adjust for more or less grain */
  z-index: 1000;
  filter: blur(1px);
}

/* Container for the content */
.container {
  text-align: center;
  position: relative;
  width: 40%;
}

.tagline {
  position: absolute;
  top: 5.8rem;
  text-align: left;
  left: 12rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #444;
  font-family: "brandon-grotesque", sans-serif;
  line-height: 1.4rem;
  /* text-transform: uppercase; */
}

/* Heading style */
h1 {
  font-size: 4rem;
  color: #333;
  margin: 0 2rem 1rem 2rem;
  font-family: "rafaella-shadow", sans-serif;
  font-weight: 700;
  line-height: 4rem;
}

/* Options container */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
  padding: 20px;
  background-color: transparent;
}

/* Button styles */
.options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70%;
  padding: 15px 20px;
  text-decoration: none;
  color: #444;
  background-color: white; /* Default button color */
  border-radius: 50px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to buttons */
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; /* Smooth color and shadow transition */
}

/* Text in the center of the button */
.option-text {
  flex-grow: 1;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  font-family: "brandon-grotesque", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.option-text:hover {
  color: #000;
}

/* Icon style */
.option-icon {
  width: 30px;
  height: auto;
}

/* Hover effect */
.options a:hover {
  background-color: #e0e0e0; /* Light color when hovered */
  color: #000000; /* Change text color on hover */
}

.options a:active {
  cursor: url("../cursors/clicked-cursor.png"), pointer;
}

#logo-png {
  position: fixed;
  width: 6rem;
  top: 4rem;
  left: 5rem;
  z-index: 1;
  cursor: url("../cursors/camera-cursor.png"), pointer;
}

#logo-png:hover {
  animation: rotate 1s infinite forwards linear;
  cursor: pointer;
  cursor: url("../cursors/camera-cursor.png"), pointer;
}

#logo-png:active {
  cursor: url("../cursors/camrecorder-cursor.png"), pointer;
}

#stamp-png {
  position: fixed;
  width: 6.5rem;
  top: 4rem;
  right: 5rem;
  z-index: 1;
  cursor: url("../cursors/pointer-cursor.png"), pointer;
}

.polaroid-container {
  position: absolute;
  top: 20%; /* Adjust as needed */
  right: 12%; /* Adjust as needed */
  display: inline-block;
  transform: rotate(8deg); /* Slight rotation for a casual look */
  transition: transform 1s ease-in-out;
  cursor: url("../cursors/pol-cursor.png"), pointer;
}

.polaroid-container:hover .polaroid {
  transform: rotate(-8deg); /* Polaroid moves */
  transition: transform 1s ease;
}

#polaroid-img {
  width: 180px; /* Adjust the image size */
  aspect-ratio: 2 / 3; /* Keeps the Polaroid shape */
  border-radius: 10px; /* Slight round edges for realism */
}

.thumbtack {
  position: absolute;
  top: -30px; /* Position the thumbtack above the Polaroid */
  left: 50%;
  width: 40px !important;
  z-index: 2; /* Keep it above the Polaroid */
  pointer-events: none;
  filter: drop-shadow(2px 8px 6px rgba(0, 0, 0, 0.5));
  transition: transform 1.1s ease-in-out;
}

.polaroid-container:hover .thumbtack {
  transform: translateX(5px) translateY(-5px) scale(1.01); /* Pop out effect */
  transition: transform 0.3s ease-in-out;
}

.polaroid {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding-bottom: 5px; /* Extra space at the bottom for text */
  border: 10px solid white; /* Polaroid frame */
  border-radius: 10px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
  width: 200px; /* Make sure the container has a defined width */
  text-align: center;
  position: relative;
  transform: translateY(0); /* Reset position when not hovered */
  transition: transform 1s ease-in-out; /* Ensure reverse animation */
}

.polaroid-video a,
.polaroid-video span,
.polaroid-caption {
  text-decoration: none !important;
}

.polaroid-caption {
  font-family: "lindsey-signature", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  color: #333;
  text-align: center;
  margin-top: 15px;
  width: 100%;
  text-decoration: none;
}

/* Polaroid Container for Video */
.polaroid-video {
  position: fixed;
  bottom: 25%;
  left: 12%;
  transform: rotate(-10deg); /* Slight tilt for realism */
  transition: transform 1s ease-in-out;
  cursor: url("../cursors/pol-cursor.png"), pointer;
}

/* Video inside the Polaroid */
#polaroid-video {
  width: 100%; /* Fit inside the Polaroid */
  border-radius: 10px; /* Slight round edges for realism */
}

/* Hover Effect - Same as Image Polaroid */
.polaroid-video:hover {
  transform: rotate(0deg);
}

.polaroid-video .thumbtack {
  transform: scaleX(-1) rotate(0deg) translateX(50%); /* Explicitly reset the rotation */
  transition: none;
}

.polaroid-video:hover .thumbtack {
  transform: scaleX(-1) translateY(-5px) translateX(50%); /* Apply hover effects explicitly */
  transition: transform 0.3s ease-in-out;
}

.review-section {
  position: fixed;
  bottom: 6rem; /* distance from the bottom */
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 30rem;
  max-width: 95%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999; /* stays above stuff */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding-top: 0.8rem;
  padding-bottom: 0.5rem;
  text-decoration: none;
}

.review-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.33) 0%,
    rgba(255, 255, 255, 0.671) 50%,
    rgba(255, 255, 255, 0.453) 100%
  );
  transform: skewX(-20deg);
}

/* Trigger the shine on hover */
.review-section:hover::before {
  animation: shine 0.8s forwards;
}

.review-section:hover {
  transform: translateX(-50%) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.stars {
  font-size: 2rem;
  color: rgb(255, 217, 0);
}

.review-link {
  font-family: "brandon-grotesque", sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.review-link:hover {
  color: #000;
}

.review-section:active {
  color: #000;
  cursor: url("../cursors/clicked-cursor.png"), pointer;
}

.review-section.jump-in {
  animation: jumpUp 0.8s ease-out forwards;
}

.review-section.start-hidden {
  transform: translate(-50%, 100%);
  pointer-events: none;
  opacity: 0;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

@media (max-width: 768px) {
  .review-section {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    font-size: 0.9rem;
    transition: transform 0.5s ease-out; /* add transition here too */
  }

  .review-section.hidden {
    transform: translate(-50%, 100%); /* slide down out of view */
    pointer-events: none;
    transition: transform 0.3s ease;
  }

  .review-section.start-hidden {
    transform: translate(-50%, 100%); /* same as hidden */
    pointer-events: none;
  }

  .review-link {
    font-size: 1rem;
  }

  .stars {
    font-size: 1.3rem;
  }

  .float-pic {
    width: 10rem !important;
    opacity: 0.5;
  }
}

/* Footer Styling */
footer {
  background: none;
  color: #444;
  text-align: center;
  padding: 15px;
  font-family: "brandon-grotesque", sans-serif;
  position: fixed; /* Keeps it at the bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensures it stays above other elements */
}

.footer-content {
  max-width: 800px;
  margin: auto;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: black;
}

.footer-links:active {
  cursor: url("../cursors/clicked-cursor.png"), pointer;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .polaroid-video {
    bottom: 10px;
    right: 10px;
    width: 150px;
  }

  #polaroid-video {
    width: 100%;
  }
}

@keyframes easeaway {
  0% {
    transform: translateY(-0.5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

/* Bounce animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
}

/* Icon hover animations */
.options a:hover .option-icon {
  animation: fun-animation 0.5s ease-in-out;
}

/* Keyframes for the fun animation */
@keyframes fun-animation {
  0% {
    transform: scale(1) rotate(0deg); /* Initial state */
  }
  50% {
    transform: scale(1.2) rotate(15deg); /* Slightly bigger and rotated */
  }
  100% {
    transform: scale(1) rotate(0deg); /* Back to normal */
  }
}

@keyframes jumpUp {
  0% {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -10%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@media (max-height: 700px) {
  #logo-png {
    top: 9vh !important; /* Adjust positioning */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    flex-direction: column; /* Allow vertical alignment */
    padding: 10px; /* Add padding to prevent content from touching edges */
  }

  .container {
    width: 90%; /* Adjust container width for smaller screens */
    margin-top: 35%;
  }

  .tagline {
    font-size: 0.8rem !important;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.1rem;
    color: #444;
    padding: 0 10px; /* small padding so text doesn’t touch edges */
    width: 100%;
  }

  h1 {
    font-size: 2.5rem; /* Scale down heading size */
    margin: 1rem; /* Adjust margins for mobile view */
    line-height: 2rem !important;
  }

  .options a {
    width: 100%; /* Allow buttons to stretch across available space */
  }

  .option-text {
    font-size: 1rem !important;
  }

  .option-icon {
    width: 25px; /* Scale down icons */
  }

  #logo-png {
    width: 5rem; /* Resize logo for mobile */
    top: 7.5vh; /* Adjust positioning */
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    padding: none;
    margin: none;
  }

  #stamp-png {
    width: 5rem; /* Resize logo for mobile */
    top: 2rem; /* Adjust positioning */
    right: 1.5rem;
    z-index: -1;
  }

  .thumbtack {
    width: 30px !important;
    top: -5%;
  }

  .polaroid-video:hover {
    transform: rotate(5deg) !important;
  }

  .polaroid-video:active {
    transform: rotate(5deg) !important;
  }

  .polaroid-video {
    position: fixed;
    bottom: 20%;
    left: 12%;
    transform: rotate(-10deg); /* Initial tilt */
    transition: transform 0.8s ease-in-out !important; /* Smooth transition */
  }

  .polaroid-video .thumbtack {
    transition: transform 0.8s ease-in-out !important; /* Smooth transition */
    transform: scaleX(1);
  }

  .polaroid-video:hover .thumbtack {
    transform: scaleX(1) translateY(-5px) translateX(50%); /* Apply hover effects explicitly */
    transition: transform 0.3s ease-in-out;
  }

  .polaroid-video:active .thumbtack {
    transform: scaleX(1) translateY(-5px) translateX(50%); /* Apply hover effects explicitly */
    transition: transform 0.3s ease-in-out;
  }

  footer {
    position: relative !important; /* Ensures it follows content */
    bottom: auto !important; /* Removes fixed positioning */
    margin-top: 3rem; /* Adds spacing from content */
    text-align: center;
    margin-top: -1rem;
  }

  .footer-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 5px; /* Increased spacing for a more balanced look */
    flex-wrap: wrap; /* Ensures proper alignment if content overflows */
  }

  .footer-links a {
    margin: 0; /* Ensure no extra spacing */
    font-size: 16px; /* Slightly larger for better readability */
    font-weight: bold;
    color: #555;
    transition: color 0.3s ease-in-out;
  }

  .footer-links a:hover {
    color: black; /* Subtle hover effect */
  }

  .copyright {
    font-size: 14px;
    color: #444;
  }
}

/* Mobile & Tablet Adjustments */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
    height: auto; /* Allow scrolling */
    padding: 20px;
  }

  .container {
    width: 100%;
    text-align: center;
  }

  .tagline {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  h1 {
    font-size: 8vw;
    margin: 1rem;
    line-height: 3rem;
  }

  .options {
    width: 100%;
  }

  .options a {
    width: 100%; /* Full width with some padding */
  }

  .option-text {
    font-size: 1rem;
  }

  .option-icon {
    width: 25px;
  }

  /* Make polaroids scrollable on mobile */
  .polaroid-container,
  .polaroid-video {
    position: relative;
    display: block;
    margin: 20px auto;
    text-align: center;
    transform: none;
    width: fit-content;
    transition: none;
  }

  .polaroid-container img,
  .polaroid-video video {
    width: 80%;
    max-width: 300px;
  }

  .options {
    margin-bottom: 50px; /* Adjust as needed */
  }

  /* Increase spacing between the two polaroids */
  .polaroid-container {
    margin-bottom: 50px; /* Adds space below the first polaroid */
  }

  /* Increase spacing between the last polaroid and the bottom of the page */
  .polaroid-video {
    margin-bottom: 100px; /* Pushes the last polaroid down */
  }
}

@media (min-width: 900px) {
  .container {
    margin-top: -80px; /* Adjust this value to raise it slightly */
  }
}

/* TABLET LAYOUT — iPads & wide tablets */
@media (min-width: 769px) and (max-width: 1180px) {
  body {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }

  #logo-png {
    margin: -1rem 3rem;
  }

  .container {
    width: 70%;
    margin-top: 8rem;
  }

  h1 {
    font-size: 3rem;
    line-height: 3.2rem;
    margin-bottom: 2rem;
  }

  .options a {
    width: 80%;
    padding: 18px;
  }

  #logo-png {
    top: 3rem;
    left: 3rem;
    width: 6rem;
    transform: none;
  }

  .polaroid-container {
    top: 25%;
    right: 5%;
    transform: rotate(6deg);
  }

  .polaroid-video {
    bottom: 20%;
    left: 8%;
    transform: rotate(-8deg);
  }

  footer {
    position: relative !important;
    margin-top: 4rem;
  }
}

/* SUPER SMALL PHONES — iPhone SE / 320–360px width */
@media (max-width: 380px) {
  .options a {
    font-size: 0.8rem !important;
    width: 100%;
  }

  .footer-links a,
  .footer-content p {
    font-size: 0.9rem;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
