/* style.css for FRØST Watches */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0a1a2f;
  color: #e0f7ff;
  overflow-x: hidden;
}

header {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
  background: #0a1a2f;
}

.aurora {
  position: absolute;
  /* top: 0; */ /* Controlled by animation better */
  /* left: 0; */ /* Controlled by animation better */
  width: 120%; /* Increased size */
  height: 200%; /* Increased size */
  top: -50%; /* Adjusted for better coverage */
  left: 5%; /* Adjusted for centering */
  overflow: hidden;
  z-index: 0;
  mask-image: radial-gradient(
    circle at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.8) 30%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.8) 30%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  /* animation: auroraMove 40s ease-in-out infinite; */ /* Removed as individual bands animate */
}

.light-band {
  position: absolute;
  height: 80px; /* Original height */
  width: 200%; /* Keep original width */
  border-radius: 50%;
  opacity: 0; /* Initial opacity for fade-in */
  animation: 
    drift var(--drift-speed) linear infinite, /* Use the corrected drift keyframes below */
    dance var(--dance-speed) ease-in-out infinite alternate,
    fade var(--fade-speed) ease-in-out infinite;
  transform-origin: center;
}

/* Aurora animation - Keeping one set of keyframes */
@keyframes drift { /* This is for light-band */
  0% { transform: translateX(-50%) rotate(10deg); } /* Adjusted for better movement */
  100% { transform: translateX(0%) rotate(-10deg); } /* Adjusted for better movement */
}

@keyframes dance {
  0% { transform: translateX(-50%) translateY(-20px) scaleY(0.7); }
  100% { transform: translateX(-50%) translateY(20px) scaleY(1.3); }
}

@keyframes fade {
  0%, 100% { opacity: 0.2; } /* Base opacity */
  50% { opacity: 0.6; }    /* Peak opacity */
}

/* Removed duplicate auroraMove keyframes, as individual bands handle movement */

/* Add vignette effect - Keeping one definition */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
  circle at center,
  transparent 0%,
  rgba(0, 0, 0, 0.1) 60%, /* Adjusted gradient for subtlety */
  rgba(0, 0, 0, 0.3) 70%,
  rgba(0, 0, 0, 0.6) 90%,
  rgba(0, 0, 0, 0.8) 100%
);
  z-index: 0; /* Ensure it's behind content but above main background */
  pointer-events: none;
}

/* Star styles */
.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite; /* Use the corrected twinkle */
  opacity: 0; /* Initial opacity for twinkle */
  z-index: 1; /* Above header background/vignette, below content */
}

/* Keeping one definition of twinkle */
@keyframes twinkle {
  0%, 100% { opacity: var(--max-opacity, 0.3); transform: scale(0.9); } /* Use variable or fallback */
  50% { opacity: var(--max-opacity, 1); transform: scale(1.1); }
}

/* Removed the other drift keyframe as it was for stars, and stars use twinkle. The aurora drift is kept. */

header h1, header p {
  position: relative;
  z-index: 1; /* Ensures text is above stars and vignette */
  color: #ffffff;
  text-shadow: 0 0 10px #000; /* Added for readability */
}

header h1 {
  font-size: 3rem;
  margin: 0;
}

header p {
  font-size: 1.5rem;
  font-style: italic;
  margin-top: 1rem;
}

.highlight-intro {
  font-size: 1.3rem;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.closing.emphasis {
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: #061223;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a,
nav .dropdown-toggle {
  color: #a9dbff;
  margin: 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

nav a:hover,
nav .dropdown-toggle:hover {
  color: #ffffff;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 2.5rem; /* Position below the toggle */
  background-color: #12233a;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 10; /* Above other nav items */
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: #a9dbff;
}

.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.2rem;
  color: #a9dbff;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.watch-wrapper { /* This could be the figure's parent if figure is not direct child of .watch */
  display: flex;
  justify-content: center;
}

.watch {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  /* align-items: center; */ /* Figure will handle image alignment */
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); /* Simplified box shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* position: relative; */ /* Add this if figure is not used and .watch is the direct container for img and lens */
}

/* Specific tweaks for watch title alignment, assuming it's still relevant */
.watch h3 {
  min-height: 4.5rem; /* Or adjust as needed */
}


.watch:hover {
  transform: scale(1.08); /* Existing hover effect */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.20) inset; /* Existing hover effect */
  animation: glowPulse 2.5s ease-in-out infinite; /* Existing hover effect */
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
  }
}

/* Assuming HTML is <div class="watch"><figure><img ...></figure>...</div> */
.watch figure {
  position: relative; /* Crucial for positioning .zoom-lens and .magnifier */
  display: block; /* Or inline-block if preferred, affects layout */
  margin: 0 auto 1rem auto; /* Center figure if it's block and give space below */
  padding: 0;
  line-height: 0; /* Removes potential whitespace below image if inline-block */
  cursor: crosshair; /* Indicate zoom capability */
}

.watch img {
  width: 100%; /* Image takes full width of its container (figure) */
  max-width: 300px; /* Max width of the image itself */
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
  display: block; /* Removes extra space underneath if figure is inline-block */
}

.watch:hover img {
  transform: scale(1.12); /* Existing hover effect on image */
}

/* Magnifier icon (small static icon on the image) - Single definition */
.magnifier {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: url('zoom-icon.png') no-repeat center center;
  background-size: contain; /* Ensures icon scales correctly */
  opacity: 0.7;
  pointer-events: none; /* So it doesn't interfere with figure's mouse events */
  z-index: 5; /* Above image, but below zoom-lens if it overlaps */
}

/* New Zoom Lens styles */
.zoom-lens {
  position: absolute;
  border: 2px solid #a9dbff; /* Theme-consistent border */
  border-radius: 50%; /* Circular lens */
  width: 150px;  /* Lens size */
  height: 150px; /* Lens size */
  background-repeat: no-repeat;
  display: none; /* Hidden by default */
  pointer-events: none; /* Does not interfere with mouse events on the figure */
  z-index: 10; /* Above other elements on the card, including static magnifier */
  overflow: hidden; /* Ensures the zoomed background image is clipped to the lens */
  cursor: crosshair; /* Matches figure cursor */
}

.watch h3 { /* Ensure this is after the .watch h3 in .watch block if overriding */
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #bfe9ff;
}

.subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: 300;
  color: #99ccff;
  margin-top: 0.3rem;
}

.specs {
  font-size: 0.95rem;
  color: #cdeeff;
  margin: 0.5rem 0;
}

.story {
  font-style: italic;
  color: #aacfee;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #a9dbff;
  margin: 0.8rem 0 0.5rem;
}

.shop-now {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #a9dbff;
  padding: 1.6rem 1.2rem; /* Increased padding for better clickability */
  color: #a9dbff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
}
.shop-now:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
  color: #ffffff;
}

/* Center the packaging paragraph */
.packaging p {
  text-align: center;
  font-size: 1.1rem;
  color: #d0eaff;
}

/* Fade-in Scroll Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.music-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #80d0ff; /* Adjusted color for visibility */
  cursor: pointer;
  z-index: 20;
}

.scroll-to-top,
.scroll-to-bottom {
  position: fixed;
  right: 1rem;
  background: #0d1b2a; /* Darker background for contrast */
  border: none;
  color: #a9dbff;
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 20;
}

.scroll-to-top {
  bottom: 3.5rem; /* Spacing from bottom */
}

.scroll-to-bottom {
  bottom: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #99ccff;
}

address {
  font-style: normal;
  text-align: center;
  color: #a9dbff;
  line-height: 1.6;
}

address a {
  color: #bfe9ff;
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
}
