/* Design System Variables - Le Luxe Festas (Aura de Celebration) */
:root {
  /* Colors */
  --primary: #825500;
  --primary-container: #c28a32;
  --on-primary: #ffffff;
  --secondary: #84514b;
  --tertiary: #6a5c4f;
  --background: #fff9ef;
  --surface: #fff9ef;
  --surface-container: #f4ede1;
  --surface-container-high: #eee7dc;
  --surface-container-highest: #e8e2d6;
  --champagne: #F8EEDC;
  --gold-metallic: #9B6A22;
  --pearl-beige: #EAD9BD;
  --warm-gray: #5E5A55;
  --on-surface: #1e1b14;
  --outline: #827565;
  --outline-variant: #d4c4b1;
  --error: #ba1a1a;

  /* Typography */
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Spacing & Borders */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --margin-mobile: 24px;
  --stack-lg: 32px;
  --stack-md: 16px;
  --gutter: 20px;
}

/* Base Reset & Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--champagne);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Selection Highlight */
::selection {
  background-color: var(--gold-metallic);
  color: #ffffff;
}

/* Background Layers */
.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Film Grain Texture Overlay */
.texture-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.8;
}

/* Animated Light Leak Gradients */
.bg-light-leak {
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(249, 182, 174, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(194, 138, 50, 0.18) 0%, transparent 55%);
  animation: backgroundPulse 20s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
  0% {
    transform: scale(1) translate(0px, 0px);
  }
  50% {
    transform: scale(1.1) translate(2% , 2%);
  }
  100% {
    transform: scale(1) translate(-2%, -1%);
  }
}

/* Floating Particles Container */
.particles-container {
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 217, 189, 0.6) 0%, rgba(155, 106, 34, 0) 70%);
  filter: blur(1px);
  pointer-events: none;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-10vh) translateX(50px) scale(1.2);
    opacity: 0;
  }
}

/* Main Layout Wrapper */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 512px; /* Standard premium mobile view width */
  margin: 0 auto;
  width: 100%;
  padding: 40px var(--margin-mobile) 64px var(--margin-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--stack-lg);
}

/* Premium Glassmorphic Cards with 3D Tilt & Spotlight (Dribbble/Nixtio Style) */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(155, 106, 34, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px -8px rgba(106, 92, 79, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden; /* Mask the spotlight gradient inside card bounds */
  
  /* 3D Transform settings */
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  
  /* Transition for reset (mouseleave) and default states */
  transition: 
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
    background-color 0.4s ease, 
    border-color 0.4s ease;
}

/* Spotlight Hover Shine Effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(
    250px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(194, 138, 50, 0.15),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(194, 138, 50, 0.45);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Card Press spring feedback */
.glass-card:active {
  transform: scale(0.96) !important;
  box-shadow: 0 6px 16px -6px rgba(106, 92, 79, 0.12) !important;
  transition: transform 0.1s ease !important;
}

/* Ensure card contents render above spotlight hover effect */
.card-thumbnail-wrapper,
.card-content,
.gallery-grid,
.gallery-content {
  position: relative;
  z-index: 2;
}

/* Header Section Style */
.hero-header {
  width: 100%;
  margin-bottom: 8px;
}

.header-content {
  display: flex;
  position: relative;
  width: 100%;
  align-items: start;
}

.brand-info {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
  padding-top: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 80px;
  width: auto;
  object-contain: fill;
  filter: drop-shadow(0 2px 4px rgba(106, 92, 79, 0.1));
}

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(155, 106, 34, 0.45);
  margin-top: 8px;
}

.ornament-divider .line {
  height: 1px;
  background-color: rgba(155, 106, 34, 0.35);
  width: 32px;
}

.ornament-divider .icon {
  font-size: 14px;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gold-metallic);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--tertiary);
  font-weight: 400;
}

.heart-indicator {
  display: flex;
  margin-top: 12px;
}

.heart-icon {
  color: rgba(155, 106, 34, 0.5);
  font-size: 20px;
  animation: heartPulse 3s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.95;
    color: var(--secondary);
  }
}

.hero-image-overlay {
  position: absolute;
  right: -24px; /* Extend outside lateral padding for rich overlay look */
  top: 0;
  width: 62%;
  height: 380px;
  z-index: 1;
  opacity: 0.95;
  mix-blend-mode: multiply;
  border-bottom-left-radius: 96px;
  overflow: hidden;
  box-shadow: inset 20px 0 40px rgba(255, 255, 255, 0.2);
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

/* Link Cards List */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  z-index: 2;
}

.link-item {
  display: flex;
  align-items: stretch;
  height: 100px;
  width: 100%;
  overflow: hidden;
}

.card-thumbnail-wrapper {
  width: 30%;
  position: relative;
  overflow: hidden;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-item:hover .card-thumbnail {
  transform: scale(1.08);
}

.card-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.card-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(155, 106, 34, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-metallic);
  background-color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-item:hover .card-icon-circle {
  background-color: var(--gold-metallic);
  color: #ffffff;
  border-color: var(--gold-metallic);
}

.card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.card-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
}

.card-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--tertiary);
  margin-top: 2px;
}

.card-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--gold-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: 
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  /* Raised neumorphic effect */
  box-shadow: 
    -2px -2px 6px rgba(255, 255, 255, 0.55), 
    2px 2px 6px rgba(90, 60, 10, 0.25);
}

.card-arrow-circle span {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.link-item:hover .card-arrow-circle {
  background-color: #8c5d17; /* Sinks slightly darker gold representing inset shade */
  /* Sunken inset neumorphic effect */
  box-shadow: 
    inset 2px 2px 5px rgba(60, 40, 5, 0.55), 
    inset -2px -2px 5px rgba(255, 255, 255, 0.25);
}

.link-item:hover .card-arrow-circle span {
  transform: translateX(4px);
}

/* Gallery Card (Photos showcase) */
.gallery-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 120px);
  gap: 2px;
  padding: 2px;
  background-color: rgba(155, 106, 34, 0.1);
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* Grid Border Radii for nice aesthetics */
.gallery-thumb:nth-child(1) { border-top-left-radius: 14px; }
.gallery-thumb:nth-child(2) { border-top-right-radius: 14px; }

.gallery-content {
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 20px;
  position: relative;
}

.gallery-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-title {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-metallic);
  line-height: 1.2;
}

.gallery-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

.gallery-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--gold-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: 
    box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  /* Raised neumorphic effect */
  box-shadow: 
    -2px -2px 6px rgba(255, 255, 255, 0.55), 
    2px 2px 6px rgba(90, 60, 10, 0.25);
}

.gallery-arrow-circle span {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover .gallery-arrow-circle {
  background-color: #8c5d17;
  /* Sunken inset neumorphic effect */
  box-shadow: 
    inset 2px 2px 5px rgba(60, 40, 5, 0.55), 
    inset -2px -2px 5px rgba(255, 255, 255, 0.25);
}

.gallery-card:hover .gallery-arrow-circle span {
  transform: translateX(4px);
}

/* Footer Section */
.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-md);
  padding: var(--stack-lg) 0;
  text-align: center;
  margin-top: 16px;
  width: 100%;
  border-top: 1px solid rgba(155, 106, 34, 0.22);
}

.footer-heart {
  color: rgba(155, 106, 34, 0.5);
  font-size: 20px;
  font-weight: 300;
}

.brand-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-metallic);
  letter-spacing: 0.15em;
  opacity: 0.9;
}

.brand-values .bullet {
  font-size: 10px;
  color: rgba(155, 106, 34, 0.4);
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-metallic);
  color: var(--gold-metallic);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.3);
}

.social-icon:hover {
  background-color: var(--gold-metallic);
  color: #ffffff;
  transform: translateY(-2px);
}

.social-icon span {
  font-size: 18px;
}

.copyright {
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--tertiary);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Lightbox Modal Box */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 27, 20, 0.95);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 24px;
  padding: 16px;
  cursor: pointer;
  border-radius: var(--radius-full);
  z-index: 1005;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(155, 106, 34, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev {
  left: -64px;
}

.lightbox-nav.next {
  right: -64px;
}

/* Responsiveness adjustments */
@media (max-width: 640px) {
  .lightbox-nav.prev {
    left: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
  }
  .lightbox-nav.next {
    right: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
  }
  .lightbox-container {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 24px var(--margin-mobile) 48px var(--margin-mobile);
  }
  
  .hero-image-overlay {
    height: 310px;
    border-bottom-left-radius: 70px;
  }
  
  .brand-info {
    width: 65%;
  }
  
  .hero-title {
    font-size: 22px;
  }
}
