:root {
  --rose: #f8ecef;
  --gold-gradient: linear-gradient(
    135deg,
    #b8941f 0%,
    /* Deeper gold for better contrast */ #d4af37 40%,
    /* Rich gold midpoint */ #b8941f 100%
  );
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Helvetica Neue', Arial, sans-serif;
  --script-font: 'Parisienne', cursive;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
  --grid-gap: 24px;
  --font-size-lg: 32px;
  --font-size-sm: 14px;
}

html {
  background-color: var(--rose);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--rose);
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Logo styles are now in menu.css */

main {
  background-color: var(--rose);
  width: 100%;
  max-width: 1200px;
  padding: 76px 20px 40px; /* Added top padding for fixed header (56px + 20px) */
}

section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #464646;
  margin: 0 0 24px 0;
  text-align: left;
  /* Initial state for GSAP animations - prevents flash */
  opacity: 0;
  transform: translateY(30px);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.card {
  /* f8ecef but lower opacity */
  background-color: rgba(248, 236, 239, 0.5);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  aspect-ratio: 16/11;
  display: flex;
  flex-direction: column;
  will-change: auto;
  transition: box-shadow 0.3s ease;
  /* Initial state for GSAP animations - prevents flash */
  opacity: 0;
  transform: translateY(50px);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-video-container {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: auto;
  cursor: pointer;

  /* Liquid Glass Material */
  backdrop-filter: blur(8px) saturate(1.2);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Dynamic shadows for depth */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.05);

  /* Smooth transitions for all interactions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state - enhanced glass effect */
.card:hover .play-overlay {
  backdrop-filter: blur(12px) saturate(1.4);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.05);

  /* Enhanced depth and specular highlights */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

/* Active/pressed state - fluid response */
.card:active .play-overlay {
  transform: translate(-50%, -50%) scale(0.95);
  backdrop-filter: blur(6px) saturate(1.1);
  background: rgba(255, 255, 255, 0.25);
}

.play-overlay::after {
  content: '';
  width: 30px;
  height: 30px;
  background-image: url('data:image/svg+xml;charset=utf-8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.90588 4.53682C6.50592 4.2998 6 4.58808 6 5.05299V18.947C6 19.4119 6.50592 19.7002 6.90588 19.4632L18.629 12.5162C19.0211 12.2838 19.0211 11.7162 18.629 11.4838L6.90588 4.53682Z" fill="white" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 2px;

  /* Glass-embedded appearance */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  opacity: 0.9;
}

/* Enhanced icon on hover - brighter, more defined */
.card:hover .play-overlay::after {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Subtle scale on press */
.card:active .play-overlay::after {
  transform: scale(0.9);
}

.card-title {
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: #464646;
  line-height: 1.4;
  flex-shrink: 0;
}

footer {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 5px 0 20px;
  width: 100%;
  max-width: 1200px;
}

footer p {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

footer svg {
  filter: invert(1);
  width: 18px;
  height: 18px;
  margin: -2px 4px 0;
}

/* Native video player styling */
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video::-webkit-media-controls-panel {
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.05)
  );
}

/* Gold accent for video controls */
video::-webkit-media-controls-panel {
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.1),
    rgba(212, 175, 55, 0.05)
  );
}

/* Responsive typography */
@media (max-width: 480px) {
  .logo {
    font-size: 28px;
  }
}

/* Prevent flash of unstyled content during animation setup */
.gsap-loading .card,
.gsap-loading section h2 {
  opacity: 0;
  transform: translateY(50px);
}

.gsap-loading .header-menu {
  opacity: 0;
  /* Don't use transform on header - can cause positioning issues */
}

/* Fallback for when GSAP doesn't load - show content after delay */
.card,
section h2 {
  animation: fallback-fade-in 0.6s ease-out 1s forwards;
}

.header-menu {
  animation: fallback-fade-in-header 0.6s ease-out 1s forwards;
}

@keyframes fallback-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fallback-fade-in-header {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Override fallback when GSAP is active */
.gsap-active .card,
.gsap-active section h2,
.gsap-active .header-menu {
  animation: none;
}
