/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #ffffff;
  --secondary-color: #f8eded;
  --accent-color: #b97972;
  --text-color: #5f3d39;

  --light-gray: #f1dddd;
  --medium-gray: #c89c96;
  --dark-gray: #3e2b29;

  --drag-color: #b97972;
  --drag-color-hover: #c89c96;
  --border-color: #b97972;
  --line-color: #c89c96;

  --shadow: 0 8px 30px rgba(185, 121, 114, 0.12);
  --transition: all 0.3s ease;

  --section-space: 90px;
  --section-space-mobile: 60px;
}
/* ===== FONT ===== */
@font-face {
  font-family: "ArmCoronet";
  src: url("./fonts/ArmCoronetU.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.section-title,
.invite-title,
.couple-names,
.event-title {
  font-family: "ArmCoronet", serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Cormorant Garamond", serif;
  color: var(--text-color);
  background-color: var(--primary-color);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dragging-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== DRAG SECTION ===== */
.drag-section {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 120vh;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s ease-in-out;
  z-index: 1000;
}

.drag-section.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -150%);
}

.drag-couple-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.1);
  z-index: 0;
}

.drag-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.drag-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 200px;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.drag {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

.drag-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 280px;
  height: 60px;
  margin-bottom: 10px;
  user-select: none;
}

.drag-button,
.drag-target {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
  transform: translateZ(0);
}

.drag-target {
  width: 60px;
  height: 60px;
  opacity: 0.8;
  border: 1px solid var(--light-gray);
  transform: translate3d(20px, 0, 0) translateZ(0);
}

.drag-button {
  background: var(--drag-color-hover);
  border: 1px solid transparent;
  touch-action: none;
  cursor: grab;
  user-select: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.drag-button:active,
.drag-button.in-target {
  background-color: var(--drag-color-hover);
  transform: scale(1.1) translateZ(0);
  cursor: grabbing;
}

.drag-line {
  position: absolute;
  top: 50%;
  right: 60px;
  width: calc(100% - 120px);
  height: 2px;
  background-image: linear-gradient(to right, transparent 80%, #fff 20%);
  background-size: 10px 100%;
  background-repeat: repeat-x;
}

.drag-text {
  text-align: center;
  margin-top: 30px;
  font-size: 28px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: "Cinzel", serif;
  opacity: 0.9;
}

.mobile-tap-instruction {
  display: none;
  text-align: center;
  /* margin-top: 15px; */
  font-size: 20px;
  color: #fff;
  opacity: 0.75;
}

/* ===== MAIN CONTENT ===== */
.content {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 1s ease;
  position: relative;
  z-index: 1;
}

.content.visible {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ===== GLOBAL SECTION SPACING ===== */
section {
  padding: var(--section-space) 0;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
}

section + section {
  margin-top: 0;
}

.section-title,
.invite-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 0 0 55px;
  color: var(--accent-color);
  position: relative;
  letter-spacing: 3px;
  font-weight: 400;
  line-height: 1.25;
}

.invite-title {
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 100px;
  height: 1px;
  background-color: var(--medium-gray);
  opacity: 0.7;
  transform: translateX(-50%);
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  padding: 80px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7)),
    url("./images/couple.JPG") no-repeat center center;
  background-size: cover;
}

.couple-names {
  font-size: 2rem !important;
  color: #834741;
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: 4px;
  font-weight: 400;
  position: relative;
  opacity: 0.95;
}

.couple-names::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 150px;
  height: 1px;
  background-color: var(--medium-gray);
  opacity: 0.6;
  transform: translateX(-50%);
}

.engagement-date {
  font-size: 1.3rem;
  color: #834741 !important;
  letter-spacing: 4px;
  margin-bottom: 35px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  opacity: 0.85;
}

.welcome-text {
  text-align: center;
  line-height: 1.8;
  margin: 0 auto 30px;
  max-width: 760px;
  font-family: "Cormorant Garamond", serif;
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  text-align: center;
  color: var(--text-color);
  opacity: 0.8;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  font-size: 12px;
  transform: translateX(-50%);
}

.scroll-text {
  display: block;
  margin-bottom: 6px;
  animation: fadeText 2s ease-in-out infinite;
}

.arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: rotate(45deg);
  margin: 0 auto;
  position: relative;
  animation: bounce 2s infinite;
}

/* ===== CEREMONY ===== */
.ceremony {
  background-color: var(--primary-color);
  overflow: hidden;
}

.ceremony::before {
  content: "";
  position: absolute;
  inset: 0;
  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%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23000000' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.event-card {
  width: 100%;
  padding: 10px 30px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.event-icon {
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px auto 25px;
  border-radius: 50%;
  transition: var(--transition);
}

.event-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(30%) saturate(800%)
    hue-rotate(350deg) brightness(90%) contrast(85%);
  transition: var(--transition);
}

.event-icon.glass img {
  height: 70% !important;
}

.event-icon {
  margin-bottom: 0px;
}

.event-icon.church img {
  height: 100% !important;
}

.event-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--accent-color);
  letter-spacing: 2px;
  font-weight: 400;
  line-height: 1.25;
}

.event-time {
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--text-color);
  opacity: 0.85;
  font-weight: 300;
}

.event-location {
  margin-bottom: 24px;
  opacity: 0.75;
  /* font-size: 1.3rem; */
  /* padding: 0px 50px; */
  font-style: italic;
}

.map-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--accent-color);
  letter-spacing: 1px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.map-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.couple-photo {
  padding: 0 20px;
  text-align: center;
}

.couple-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  object-fit: cover;
}

/* ===== COUNTDOWN ===== */
.countdown {
  background-color: var(--primary-color);
  text-align: center;
  padding: 0px;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 45px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  padding: 10px 0 15px;
}

.time-unit {
  background-color: var(--primary-color);
  padding: 20px 15px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  min-width: 80px;
  border: 1px solid var(--light-gray);
  transition: var(--transition);
  flex-shrink: 0;
}

.time-unit:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(96, 59, 28, 0.14);
}

.time-value {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent-color);
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  line-height: 1;
}

.time-label {
  font-size: 0.8rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 8px;
  opacity: 0.75;
}

/* ===== RSVP ===== */
.rsvp {
  background-color: var(--secondary-color);
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--primary-color);
  padding: 45px 38px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  border: 1px solid var(--light-gray);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  /* margin-bottom: 10px; */
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 1px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.form-control {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  transition: var(--transition);
  background-color: var(--primary-color);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
  margin-top: 10px;
}

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

/* ===== FOOTER ===== */
footer {
  background-color: #834741;
  color: var(--primary-color);
  text-align: center;
  padding: 40px 0;
}

.footer-text {
  font-size: 1rem;
  opacity: 0.75;
  letter-spacing: 1px;
  font-family: "Cormorant Garamond", serif;
}

input[type="radio"] {
  accent-color: #834741;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0% {
    top: 0;
  }
  50% {
    top: 8px;
  }
  100% {
    top: 0;
  }
}

@keyframes fadeText {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  :root {
    --section-space: 75px;
  }

  .container {
    padding: 0 20px 40px;
  }

  .drag-section {
    width: 520px;
  }

  .event-details {
    gap: 45px;
  }

  .dress-gallery {
    gap: 20px;
  }

  .dress-group {
    gap: 20px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --section-space: var(--section-space-mobile);
  }

  .container {
    padding: 0 18px;
  }

  section {
    padding: var(--section-space-mobile) 0;
  }

  .section-title,
  .invite-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
  }

  .section-title::after {
    bottom: -14px;
    width: 75px;
  }

  .hero {
    min-height: 100svh;
    padding: 70px 0 60px;
    background-size: cover;
    background-position: center top;
  }

  .couple-names {
    font-size: 2.4rem !important;
    letter-spacing: 3px;
    margin-bottom: 24px;
  }

  .engagement-date {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 28px;
  }

  .welcome-text {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .mobile-tap-instruction {
    display: block;
  }

  .drag-section {
    width: 100%;
    height: 100svh;
  }

  .drag-content {
    top: 190px;
  }

  .drag-container {
    width: 250px;
  }

  .drag-text {
    font-size: 26px;
  }

  .event-details {
    gap: 40px;
  }

  .event-card {
    padding: 0 12px;
  }

  .event-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .event-time {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .event-location {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .map-button {
    padding: 10px 24px;
    font-size: 1rem;
  }

  .couple-photo {
    padding: 0 15px;
  }

  .couple-image {
    max-width: 360px;
  }

  .timer {
    gap: 10px;
    margin-top: 32px;
    justify-content: space-between;
    padding: 8px 2px 12px;
  }

  .time-unit {
    min-width: 68px;
    padding: 15px 8px;
    flex: 1;
    margin: 0 2px;
  }

  .time-value {
    font-size: 1.7rem;
  }

  .time-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .rsvp-form {
    padding: 34px 24px;
  }

  .dress-code {
    padding: var(--section-space-mobile) 0;
  }

  .dress-intro {
    font-size: 1rem;
    margin-bottom: 35px;
    padding: 0 10px;
  }

  .dress-gallery {
    flex-direction: column;
    gap: 35px;
    margin: 35px 0;
  }

  .dress-group {
    flex-direction: row;
    gap: 15px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .dress-model {
    max-width: 120px;
    gap: 8px;
  }

  .dress-model img {
    max-width: 90px;
  }

  .dress-label {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 5px;
  }

  .dress-description {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .color-palette {
    max-width: 100%;
    margin: 18px 0;
    order: -1;
  }

  .palette-swatches {
    gap: 10px;
  }

  .color-swatch {
    width: 35px;
    height: 35px;
  }

  footer {
    padding: 32px 0;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  :root {
    --section-space-mobile: 52px;
  }

  .container {
    padding: 0 16px 40px;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding: 65px 0 55px;
  }

  .section-title,
  .invite-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 1.5px;
  }

  .couple-names {
    font-size: 2.5rem !important;
    letter-spacing: 2px;
  }

  .engagement-date {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .event-details {
    gap: 50px;
  }

  .event-title {
    font-size: 2rem;
  }

  .event-time {
    font-size: 1.7rem;
  }

  .event-location {
    font-size: 1rem;
  }

  .timer {
    gap: 7px;
    margin-top: 26px;
  }

  .time-unit {
    min-width: 58px;
    padding: 12px 5px;
  }

  .time-value {
    font-size: 1.45rem;
  }

  .time-label {
    font-size: 0.62rem;
  }

  .rsvp-form {
    padding: 28px 18px;
  }

  .form-control {
    font-size: 1rem;
  }

  .submit-btn {
    font-size: 1.05rem;
  }

  .dress-code {
    padding: 52px 0;
  }

  .dress-intro {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .dress-gallery {
    gap: 28px;
    margin: 28px 0;
  }

  .dress-group {
    gap: 10px;
  }

  .dress-model {
    max-width: 100px;
  }

  .dress-model img {
    max-width: 75px;
  }

  .dress-label {
    font-size: 0.8rem;
  }

  .dress-description {
    font-size: 0.7rem;
  }

  .palette-swatches {
    gap: 8px;
  }

  .color-swatch {
    width: 30px;
    height: 30px;
  }

  .color-swatch .color-name {
    font-size: 0.6rem;
    bottom: -20px;
    padding: 1px 4px;
  }

  .palette-label {
    font-size: 1rem;
  }

  .palette-instruction {
    font-size: 0.8rem;
  }
}

/* ===== EXTRA SMALL ===== */
@media (max-width: 360px) {
  section {
    padding: 45px 0;
  }

  .section-title,
  .invite-title {
    font-size: 1.75rem;
  }

  .couple-names {
    font-size: 1.8rem !important;
  }

  .drag-container {
    width: 220px;
  }

  .timer {
    gap: 5px;
  }

  .time-unit {
    min-width: 52px;
    padding: 10px 4px;
  }

  .time-value {
    font-size: 1.3rem;
  }

  .time-label {
    font-size: 0.58rem;
  }

  .dress-group {
    gap: 8px;
  }

  .dress-model {
    max-width: 90px;
  }

  .dress-model img {
    max-width: 65px;
  }

  .dress-label {
    font-size: 0.75rem;
  }

  .dress-description {
    font-size: 0.65rem;
  }

  .palette-swatches {
    gap: 6px;
  }

  .color-swatch {
    width: 28px;
    height: 28px;
  }
}

.music-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: none; /* initially hidden */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 9999;
}

.music-toggle i {
  font-size: 34px;
}

.music-toggle.paused {
  opacity: 0.7;
}

.rotating {
  animation: spin 8s linear infinite;
  color: #603b1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.radio-group {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Optional variations */
.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0);
}

/* smooth stagger helper */
.reveal.delay-1 {
  transition-delay: 0.1s;
}
.reveal.delay-2 {
  transition-delay: 0.2s;
}
.reveal.delay-3 {
  transition-delay: 0.3s;
}
.reveal.delay-4 {
  transition-delay: 0.4s;
}
