:root {
  --primary-color: #1a1a1a;
  --accent-color: #d4af37; /* Gold for 25th anniversary */
  --bg-color: #f9f9f9;
  --text-color: #333;
  --white: #ffffff;
  --font-heading: "Playfair Display", serif;
  --font-body: "Outfit", sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-color);
}

.nav-links a:hover {
  color: var(--accent-color);
}

#lang-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem; /* Spacing from menu */
  display: flex;
  align-items: center;
}

#lang-toggle:hover {
  transform: scale(1.1);
  background-color: transparent;
  color: inherit;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    display: none; /* Hidden by default, toggled via JS to flex */
    flex-direction: column;
    align-items: flex-start; /* Align text to the left */
    justify-content: center; /* Vertically center */
    padding: 2rem 5%; /* Standard padding */
    gap: 2rem;
    height: 100vh; /* Full viewport height */
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('assets/FotoCasamentoEnhanced.jpg');
    background-size: cover;
    background-position: top center; /* Anchor to top to show heads */
    background-attachment: fixed;
    color: var(--white);
    text-align: left;
    margin-top: -80px; 
    padding-top: 100px;
}

.hero-content {
    flex: 0;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2.5rem; /* Slightly reduced padding */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    max-width: 450px; /* narrowed to not cover subjects */
    width: auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-color); /* Darker text for contrast on light overlay */
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Hide the IMG element since we are using background */
.hero-image {
    display: none;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 5%;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.alt-bg {
  background-color: var(--white);
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  border-left: 2px solid var(--accent-color);
  padding-left: 2rem;
}

.event {
  margin-bottom: 3rem;
  position: relative;
}

.event::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 4px solid var(--white);
}

.event .time {
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.event h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 600px;
    margin-top: 1rem;
    border-radius: 5px;
    background-color: #000; /* Fallback */
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-link:hover .video-thumb {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background-color: rgba(33, 33, 33, 0.8);
    border-radius: 10px;
    z-index: 10;
    transition: var(--transition);
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.video-link:hover .play-button {
    background-color: #f00;
}

.location-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 1rem;
  border-radius: 5px;
  display: block;
}

.map-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-size: 0.9rem;
}

/* RSVP Form */
#rsvp {
  max-width: 800px;
  margin: 0 auto;
}

.contact-methods {
  text-align: left;
  margin-bottom: 2rem;
  padding: 0 2rem; /* Match form padding */
}

.contact-methods a {
  color: var(--accent-color);
  font-weight: 600;
}

.rsvp-separator {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    font-weight: 600;
    color: #666;
}

.rsvp-separator::before,
.rsvp-separator::after {
    content: "";
    display: inline-block;
    width: 20%;
    height: 1px;
    background-color: #ddd;
    vertical-align: middle;
    margin: 0 1rem;
}

form {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-body);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-color);
}

.note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* Gifts */
.gift-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gift-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-5px);
}

.gift-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  #lang-toggle {
    display: flex; /* Show on mobile */
    margin-left: auto; /* Push to right */
    margin-right: 1rem; /* Space before hamburger */
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero {
    flex-direction: column-reverse; /* Image on top on mobile? Or bottom? Let's verify. Usually image top is better or bottom. Let's keep reverse so text is first. */
    padding-top: 2rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    max-width: 100%;
  }

  .timeline {
    padding-left: 1rem;
    border-left: none; /* Remove line on very small screens if needed, but keep for now */
  }

  .event::before {
    display: none; /* Hide dots on mobile if alignment is tricky */
  }
}
