:root {
  /* Color Palette */
  --bg-color: #FDFBF7;
  /* Soft beige/off-white */
  --bg-alt: #F3EBE1;
  /* Slightly darker beige for alternating sections */
  --text-primary: #3A2E2B;
  /* Chocolate brown */
  --text-secondary: #5A4A45;
  /* Lighter chocolate */

  --burnt-orange: #CC5500;
  --emerald-green: #50C878;
  --beige: #F5F5DC;
  --brown: #5C4033;


  --white: #FFFcFc;
  --black: #000000;
  --border-color: rgba(58, 46, 43, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --section-padding: 3.5rem 2rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.25s ease;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(58, 46, 43, 0.05);
  --shadow-md: 0 10px 20px rgba(58, 46, 43, 0.08);
  --shadow-lg: 0 15px 30px rgba(58, 46, 43, 0.12);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 1.02rem;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 2rem;
  color: var(--burnt-orange);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--emerald-green);
}

/* 
  ========================================
  BUTTONS
  ========================================
*/
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--burnt-orange);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #a86548;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--emerald-green);
  color: var(--emerald-green);
}

.btn-outline:hover {
  background-color: var(--emerald-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* 
  ========================================
  1. GLOBAL LAYOUT (SPLIT SCREEN)
  ========================================
*/
.global-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  /* Default mobile single column */
}

/* On Desktop: Split into Sticky Left & Scrolling Right */
@media (min-width: 993px) {
  .global-split-layout {
    grid-template-columns: 55% 45%;
    /* 55/45 split */
  }
}

/* --- Left Sticky Area --- */
.global-left {
  position: relative;
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: flex-end;
  padding: 4rem;
  /* Dark overlay so names are always readable */
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%), url('images/_F7A0033.jpg');
  transition: background-image 0.5s ease-in-out;
}

/* Desktop Only: Make it sticky */
@media (min-width: 993px) {
  .global-left {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
}

/* Mobile Only: Treat like a normal hero section hero */
@media (max-width: 992px) {
  .global-left {
    min-height: 100vh;
  }
}

.hero-text-bottom {
  color: var(--white);
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 2s ease-out;
}

.hero-text-bottom .couple-names {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-text-bottom .couple-names span {
  font-style: italic;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
}

.hero-text-bottom .romantic-quote {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 90%;
}

.global-right {
  position: relative;
  background-color: var(--white);
  overflow-y: auto;
}

.hero-right-content {
  padding: 1rem 2rem 5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-day {
  font-family: var(--font-heading);
  color: var(--burnt-orange);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.hero-date {
  font-family: var(--font-heading);
  color: var(--burnt-orange);
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-location {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.countdown {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 400;
}

.hero-gold-brush {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(243, 229, 171, 0.9) 50%, rgba(212, 175, 55, 0.8) 100%);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-left {
    min-height: 100vh;
    flex-basis: auto;
  }

  .hero-right {
    min-height: 40vh;
    flex-basis: auto;
  }

  .hero-gold-brush {
    height: 15%;
  }
}

@media (max-width: 480px) {
  .hero-left {
    padding: 2rem;
  }
}

/* 
  ========================================
  2. STICKY NAVIGATION
  ========================================
*/
.sticky-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

/* Because the global-right container has overflow-y: auto, position: sticky often fails to stick relative to the window. 
   We keep it sticky but relative to its exact scrolling parent (global-right). */
@media (min-width: 993px) {
  .sticky-nav {
    position: sticky;
    top: 0;
    /* ensure it stays on top of scrolled content */
    z-index: 9999;
  }
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--burnt-orange);
}

.nav-menu {
  display: flex;
  gap: 0.7rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--emerald-green);
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-green);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* 
  ========================================
  3. SCHEDULE SECTION
  ========================================
*/
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.schedule-card {
  background-color: var(--white);
  padding: 2.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--burnt-orange);
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.schedule-icon {
  font-size: 2.5rem;
  color: var(--burnt-orange);
  margin-bottom: 1.5rem;
}

.schedule-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.schedule-card .time {
  font-weight: 700;
  color: var(--emerald-green);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.schedule-card .venue-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.schedule-card .address {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.schedule-card .description {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.color-highlight {
  background-color: var(--burnt-orange);
  color: var(--white);
}

.color-highlight h3,
.color-highlight p {
  color: var(--white);
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

/* 
  ========================================
  4. GIFTS SECTION
  ========================================
*/
.gifts-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.bank-cards-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bank-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.bank-card-header {
  background-color: var(--emerald-green);
  color: var(--white);
  padding: 1.5rem;
  text-align: center;
}

.bank-card-header i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.bank-card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--white);
}

.bank-details {
  padding: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--text-secondary);
}

.detail-row .value {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* 
  ========================================
  5. MEMORIES GALLERY SECTION
  ========================================
*/
.hearts-divider {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 3rem;
  letter-spacing: 5px;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  /* Thin white gap as in reference photo */
  width: 100%;
}

.collage-item {
  aspect-ratio: 4 / 5;
  /* Creating a slight portrait aspect ratio typical for portraits */
  overflow: hidden;
  position: relative;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collage-item:hover img {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

@media (max-width: 768px) {
  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2x grid on tablet */
  }
}

@media (max-width: 480px) {
  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hearts-divider {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 3rem;
  letter-spacing: 5px;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item.item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.item-medium {
  grid-row: span 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* 
  ========================================
  6. HOTELS SECTION
  ========================================
*/
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.hotel-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-left: 4px solid var(--burnt-orange);
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hotel-card-inner {
  padding: 1.5rem;
}

.hotel-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--emerald-green);
}

.hotel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--burnt-orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 1rem;
}

.hotel-link:hover {
  gap: 0.8rem;
}

/* 
  ========================================
  7. UPLOAD SECTION
  ========================================
*/
.upload-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.upload-widget {
  max-width: 600px;
  margin: 0 auto;
}

.upload-dropzone {
  border: 2px dashed var(--burnt-orange);
  border-radius: 12px;
  padding: 5rem 2rem;
  text-align: center;
  background-color: #fafafa;
  transition: var(--transition-normal);
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  background-color: rgba(204, 85, 0, 0.05);
  /* Burnt orange tint */
  border-color: var(--burnt-orange);
}

.dropzone-content .upload-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 50px;
  background-color: var(--emerald-green);
  border-radius: 40px;
  /* Pillow cloud shape approximation */
  margin-bottom: 2rem;
  position: relative;
}

.dropzone-content .upload-icon-wrapper::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 15px;
  width: 30px;
  height: 30px;
  background-color: var(--emerald-green);
  border-radius: 50%;
}

.dropzone-content .upload-icon-wrapper::after {
  content: "";
  position: absolute;
  top: -20px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--emerald-green);
  border-radius: 50%;
}

.dropzone-content .upload-icon-wrapper i {
  color: var(--white);
  font-size: 2rem;
  z-index: 2;
  margin-bottom: 0;
}

.dropzone-content h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.dropzone-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.dropzone-content .btn {
  background-color: var(--burnt-orange);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  border: none;
}

.dropzone-content .btn:hover {
  background-color: #b34a00;
}

.dropzone-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.upload-progress-container {
  margin-top: 2rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.progress-bar-wrap {
  height: 10px;
  background-color: var(--bg-alt);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--emerald-green);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: right;
}

.uploaded-gallery-section {
  margin-top: 3rem;
}

.hidden {
  display: none;
}

.subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.uploaded-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  /* Thin gap matching the memories grid */
}

.uploaded-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* matching portrait look */
  object-fit: cover;
  animation: scaleIn 0.5s ease;
}

@media (max-width: 768px) {
  .uploaded-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .uploaded-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 
  ========================================
  8. FOOTER
  ========================================
*/
.footer {
  background-color: var(--text-primary);
  color: var(--beige);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* 
  ========================================
  RESPONSIVE MEDIA QUERIES
  ========================================
*/
@media (max-width: 992px) {
  .masonry-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu li {
    text-align: center;
    border-top: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .bank-cards-container {
    flex-direction: column;
  }

  .bank-card {
    min-width: 100%;
  }

  .gallery-item.item-large {
    grid-column: span 1;
  }

  .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
  }

  .card-actions {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* 
  ========================================
  LIGHTBOX MODAL
  ========================================
*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  /* above sticky nav */
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  animation: zoom 0.4s ease;
  object-fit: contain;
  border-radius: 4px;
}

@keyframes zoom {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--burnt-orange);
  text-decoration: none;
  cursor: pointer;
}

/* Ensure images have pointer cursor to indicate they are clickable */
.uploaded-img,
.collage-item img {
  cursor: pointer;
}