/* ==========================================
   MINIMAL LANDING PAGE WITH CIRCULAR SPOTS
   ========================================== */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Override Quarto defaults that cause scrolling on landing page */
body:has(.home-hero-overlay) {
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
}

body:has(.home-hero-overlay) #quarto-content {
  min-height: auto !important;
  padding-top: 25vh !important;
  padding-bottom: 0 !important;
  flex: 1 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none !important;
  width: 100% !important;
}

/* Remove column width constraints on landing page */
body:has(.home-hero-overlay) .column-body,
body:has(.home-hero-overlay) .column-page,
body:has(.home-hero-overlay) .column-body-outset {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.home-hero-overlay) main.content,
body:has(.home-hero-overlay) .page-layout-article .content,
body:has(.home-hero-overlay) .page-layout-custom .content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 10% !important;
  border-radius: 0 !important;
}

/* Remove the overlay gradient ::before element on landing page */
body:has(.home-hero-overlay) main.content::before,
body:has(.home-hero-overlay) .page-layout-article .content::before,
body:has(.home-hero-overlay) .page-layout-custom .content::before {
  display: none !important;
  content: none !important;
}

body:has(.home-hero-overlay) .nav-footer,
body:has(.home-hero-overlay) .page-footer {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  font-size: 0.75rem !important;
}

/* Content wrapper - no additional margin needed */
.home-hero-overlay.mid-page-start {
  margin-top: 0;
  min-height: auto;
  max-height: none;
  padding: 0 2rem 0.5rem 0;
  overflow: visible;
  width: 100%;
}

/* Position title and content at 10% from left */
body:has(.home-hero-overlay) h1.title,
body:has(.home-hero-overlay) .title {
  text-align: left !important;
  font-family: 'Cinzel', Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #9CA6E3 !important;
}

.home-bubble-minimal {
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.lead-minimal {
  font-size: 0.95rem;
  line-height: 1.2;
  color: rgba(243, 241, 250, 0.7);
  max-width: 450px;
  margin: 0 0 0.2rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
  text-align: left;
}

/* Circle Grid Layout - Balanced Grid (3 columns = 2 even rows) */
/* Scoped to landing page only */
body:has(.home-hero-overlay) .circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 720px;
  margin: 0;
  padding: 0;
  justify-items: start;
}

/* Maintain balanced grid */
body:has(.home-hero-overlay) .circle-grid.single-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 720px;
  justify-items: start;
}

/* Individual Circle Cards - Landing page only */
body:has(.home-hero-overlay) .circle-card {
  position: relative;
  width: 173px;
  height: 173px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body:has(.home-hero-overlay) .circle-card a {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  box-shadow: none;
  
  /* Circular shape */
  border-radius: 50%;
  
  /* Nearly transparent background */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  
  /* Subtle border glow */
  border: 1.5px solid rgba(218, 153, 230, 0.25);
  
  /* Minimal shadow */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(218, 153, 230, 0.08);
  
  /* Lavender-pink elegant typography */
  color: #E8BADB;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 1.2rem;
  text-transform: uppercase;
  
  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Initial animation state */
  animation: floatSpot 6s ease-in-out infinite;
}

/* Unique animation delays for each circle - Landing page only */
body:has(.home-hero-overlay) .circle-card:nth-child(1) a { animation-delay: 0s; }
body:has(.home-hero-overlay) .circle-card:nth-child(2) a { animation-delay: 0.5s; }
body:has(.home-hero-overlay) .circle-card:nth-child(3) a { animation-delay: 1s; }
body:has(.home-hero-overlay) .circle-card:nth-child(4) a { animation-delay: 1.5s; }
body:has(.home-hero-overlay) .circle-card:nth-child(5) a { animation-delay: 2s; }
body:has(.home-hero-overlay) .circle-card:nth-child(6) a { animation-delay: 2.5s; }

/* Pulsing glow animation */
@keyframes floatSpot {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.15),
      0 0 25px rgba(218, 153, 230, 0.08);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
      0 8px 28px rgba(0, 0, 0, 0.2),
      0 0 35px rgba(218, 153, 230, 0.15);
  }
}

/* Hover effects - Landing page only */
body:has(.home-hero-overlay) .circle-card a:hover {
  transform: translateY(-12px) scale(1.15) !important;
  border-color: rgba(232, 186, 219, 0.5);
  background: rgba(232, 186, 219, 0.08);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 50px rgba(232, 186, 219, 0.3);
  color: #F5D5EC;
  animation: none; /* Pause floating animation on hover */
}

/* Rotating glow ring on hover - Landing page only */
body:has(.home-hero-overlay) .circle-card a::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(232, 186, 219, 0.4) 90deg,
    rgba(245, 213, 236, 0.5) 180deg,
    rgba(218, 153, 230, 0.4) 270deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotateGlow 3s linear infinite;
  z-index: -1;
}

body:has(.home-hero-overlay) .circle-card a:hover::before {
  opacity: 1;
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Inner glow effect - Landing page only */
body:has(.home-hero-overlay) .circle-card a::after {
  content: '';
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 186, 219, 0.12) 0%,
    transparent 70%
  );
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

body:has(.home-hero-overlay) .circle-card a:hover::after {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  body:has(.home-hero-overlay) #quarto-content {
    padding-top: 20vh !important;
  }

  body:has(.home-hero-overlay) main.content,
  body:has(.home-hero-overlay) .page-layout-article .content,
  body:has(.home-hero-overlay) .page-layout-custom .content {
    padding-left: 8% !important;
  }

  body:has(.home-hero-overlay) .circle-grid,
  body:has(.home-hero-overlay) .circle-grid.single-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 750px;
    padding: 0;
  }

  body:has(.home-hero-overlay) .circle-card {
    width: 168px;
    height: 168px;
  }

  body:has(.home-hero-overlay) .circle-card a {
    font-size: 1.2rem;
  }

  .lead-minimal {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  body:has(.home-hero-overlay) #quarto-content {
    padding-top: 15vh !important;
  }

  body:has(.home-hero-overlay) main.content,
  body:has(.home-hero-overlay) .page-layout-article .content,
  body:has(.home-hero-overlay) .page-layout-custom .content {
    padding-left: 5% !important;
  }

  body:has(.home-hero-overlay) .circle-grid,
  body:has(.home-hero-overlay) .circle-grid.single-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 100%;
    padding: 0;
  }

  body:has(.home-hero-overlay) .circle-card {
    width: 152px;
    height: 152px;
  }

  body:has(.home-hero-overlay) .circle-card a {
    font-size: 1.12rem;
  }

  .lead-minimal {
    font-size: 0.7rem;
  }
}

/* Large screens - maintain 3 columns for balance */
@media (min-width: 1400px) {
  body:has(.home-hero-overlay) .circle-grid,
  body:has(.home-hero-overlay) .circle-grid.single-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 760px;
  }
}

/* Alternative: Constellation effect (optional) - Landing page only */
body:has(.home-hero-overlay) .circle-grid.constellation {
  position: relative;
}

body:has(.home-hero-overlay) .circle-grid.constellation::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(175, 152, 230, 0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(218, 153, 230, 0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(221, 146, 197, 0.2), transparent);
  background-size: 200px 200px;
  opacity: 0.4;
  pointer-events: none;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Accessibility - ensure focus states are visible - Landing page only */
body:has(.home-hero-overlay) .circle-card a:focus-visible {
  outline: 2px solid rgba(232, 186, 219, 0.7);
  outline-offset: 4px;
}
