@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #f8f5f0; /* Soft warm white/cream */
  --text: #2f2a24; /* Dark warm gray */
  --text-light: #5d564d;
  --accent: #d4a373; /* Golden hour amber */
  --accent-hover: #b5885c;
  --secondary: #606c38; /* Soft elegant green */
  --bg-glass: rgba(248, 245, 240, 0.7);
  --border-glass: rgba(255, 255, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

nav.scrolled .logo, nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.3s;
  position: relative;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(47, 42, 36, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  animation: fadeInDown 1.5s ease;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.1;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.date-badge {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1rem;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
}

/* SECTION GLOBAL */
section {
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--accent);
  margin: 1rem auto 0;
}

/* OUR STORY (ABOUT) */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.about-img:hover {
  transform: translateY(-10px);
}

/* RSVP SECTION */
.rsvp {
  background-color: var(--secondary);
  color: #fff;
  text-align: center;
  position: relative;
}

.rsvp .section-title {
  color: #fff;
}

.rsvp .section-title::after {
  background-color: var(--accent);
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

/* GIFTS SECTION */
.gifts {
  max-width: 1200px;
  margin: 0 auto;
}

.pix-info {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pix-key {
  font-size: 1.5rem;
  font-weight: 600;
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary);
  border: 2px dashed var(--accent);
  border-radius: 8px;
  margin: 1rem 0;
  cursor: pointer;
  transition: all 0.2s;
}

.pix-key:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.gift-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gift-img-wrapper {
  height: 250px;
  overflow: hidden;
}

.gift-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-card:hover .gift-img {
  transform: scale(1.05);
}

.gift-info {
  padding: 1.5rem;
  text-align: center;
}

.gift-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.gift-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.gift-cotas {
  font-size: 0.9rem;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 1.2rem;
}

.gift-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gift-btn {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.gift-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.full-btn {
  background: var(--primary);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.full-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--secondary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.gift-progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* MODAL PIX */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--primary);
  width: 90%;
  max-width: 400px;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-value {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.modal-pix-area {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px dashed var(--accent);
}

.modal-instruction {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.modal-pix-key {
  font-size: 1.2rem !important;
  margin: 0 !important;
  padding: 0.8rem 1rem !important;
  width: 100%;
  word-break: break-all;
}

/* ADMIN TABLE */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.admin-table th {
  background: var(--accent);
  color: #fff;
}

/* FOOTER */
footer {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.footer-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

footer h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* ANIMATIONS */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* STORY GALLERY */
.story {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.story-text {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.story-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 10;
  position: relative;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .about { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .nav-links { display: none; /* Add hamburger menu if needed, keeping simple for now */ }
  .story-gallery { grid-template-columns: repeat(2, 1fr); }
  .story-gallery img { height: 150px; }
}
