*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
body {
  line-height: 1.4;
  font-family: "fbd";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
label {
  line-height: 1.3;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "fhd";
	color: var(--cl-primary);
	font-weight: 400;

}
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
textarea:not([rows]) {
  min-height: 230px;
}
:target {
  scroll-margin-block: 5ex;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
legend {
  padding: 0;
}
address {
  font-style: normal;
}
cite {
  font-style: normal;
}
abbr[title] {
  text-decoration: none;
}
summary {
  cursor: pointer;
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea {
  appearance: none;
  border-radius: 0;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="password"]::-ms-reveal {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
body {
  text-rendering: optimizeSpeed;
}

:root {
  --cl-primary: #003366;
  --cl-secondary: #00adee;
  --cl-accent: #00aeef;
  --cl-text: #1a1a1a;
  --cl-bg: #ffffff;
  --radius: 16px;
/*   --bgr-cl: #faf7e2; */
	  --bgr-cl: #fff;
}
body {
  color: var(--cl-text);
  margin: 0;
  padding: 0;
  background: var(--bgr-cl);
}
.container {
  padding-left: 10px;
  padding-right: 10px;
  position: relative;
  margin: 0 auto;
  max-width: 430px;
  width: 100%;
}
section {
  padding: 40px 0;
  position: relative;
	overflow-x: hidden;
} /* AOS base to avoid override by inline/other CSS */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}
[data-aos].aos-animate {
  opacity: 1 !important;
}

 /* === FONT CUSTOM CHO MINI GAME === */
@font-face {
  font-family: "fbd";
  src: url("../fonts/Quicksand-Regular.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "fhd";
  src: url("../fonts/SVN-Mightiest-Regular.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "fsub";
  src: url("../fonts/MTD.woff2") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "fchucmung";
  src: url("../fonts/Oswald-Medium.woff2") format("truetype");
  font-weight: 500;
    font-style: normal;
  font-display: swap;
}
strong {
  font-weight: bold;
} /* Utility classes (optional) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 6px;
} /* ===== END RESET CSS ===== */
/* body {
  overflow: hidden; /* ẩn scroll ngay từ đầu */
} */
h2{
	font-size: 30px;
}
#preloader {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  background: #fdfaf5;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  background: url(https://wedding.vongocdiem.com/wp-content/uploads/2025/10/background-intro-scaled.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
} /* --- Preloader fade out --- */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.preloader__inner {
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;
  padding: 20px;
}
.preloader__top {
  position: absolute;
  display: flex;
  justify-content: space-between;
align-items: center;
  width: 100%;
  max-width: 100%;
  top: 20px;
  left: 0;
  padding: 0 20px;
}
.preloader__top h2 {
  font-size: 48px;
  color: var(--cl-primary);
  line-height: 1.2;
font-weight: normal;
}
.preloader__subtitle {
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 2px;
	color: var(--cl-primary);
}
.preloader__bottom {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
  flex-direction: column;
}
.preloader__bottom-info {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}
.preloader__save {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 3px;
  font-family: "fhd";
	color: var(--cl-primary);
}
.preloader__subtitle {
  font-family: "fhd";
	color: var(--cl-primary);
}
.preloader__date {
  font-size: 22px;
  font-family: "fhd";
	color: var(--cl-primary);
}
.preloader__albums {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.preloader__albums img {
  width: 100%;
  max-height: 240px;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.8);
  object-position: top;
} /* CSS - Ẩn ngay từ đầu */
.preloader__names,
.preloader__subtitle,
.preloader__save,
.preloader__date,
.preloader__albums img {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
} /*END PRELOAD */
#ldp-content {
  opacity: 0;
  visibility: hidden;
  flex-direction: column;
}
#ldp-content.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	display: flex; 
}


/* WIFE */
.wife {
  position: relative;
  overflow: hidden;
padding: 0px;
}
.wife .container {
    padding: 0;
	padding-top: 20px;
}
.wife__title{
	color: #f21010;
	text-align: center;
	font-family: 'fsub';
	
}
.wife__name{
	text-align: center;
	font-size: 30px;
}
.wife__date {
    text-align: center;
    margin-bottom: 15px;
    font-size: 20px;
    letter-spacing: 1px;
}
.wife img {
  width: 100%;
  display: block;
  border-radius: 0;
  transform-origin: center center;
} 
/* Hiệu ứng fade-up riêng cho phần .wife */
.wife [data-fadeup] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.wife [data-fadeup].visible {
  opacity: 1;
  transform: translateY(0);
}

/* INVITE */
.invite{
padding-top: 0;
}
.invite__title{
    text-align: center;
}
/* album */
section.album {
  background: #fffaf3;
  text-align: center;
}
section.album h2 {
  margin-bottom: 8px;
}
.album-desc {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 25px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  max-width: 430px;
  margin: 0 auto;
}
.album-grid .gallery-item {
  overflow: hidden;
/*   box-shadow: 0 0 8px rgba(0, 0, 0, 0.08); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.album-grid .gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
.gallery-item:first-child,
.gallery-item:last-child{
    grid-column: span 2;
}
.album-grid img {
  width: 100%;
  height: auto;
  display: flex;
  height: 225px;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 3;
}
#lg-backdrop-1 {
  background: var(--bgr-cl);
}
.lg-outer .lg-object {
    max-height: 90% !important;}
.lg-sub-html h4{ font-family: 'fbd' !important; font-weight: 400 !important; font-size: 12px !important;}
.lg-sub-html p {
    font-size: 10px;
    margin: 5px 0 0;
    font-family: 'fbd';
    color: var(--cl-primary) !important;
}
.lg-next::before,
.lg-prev::after {
  color: var(--bgr-cl);
}
.lg-outer .lg-thumb-outer {
  background: #ece5b5;
}
/* Hiệu ứng fade lên từng ảnh khi scroll tới */
#wedding-gallery .gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#wedding-gallery .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Trường nhập */
#wishForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wish-form input,
.wish-form textarea {
  width: 100%;
  padding: 16px;
      border: 1px solid var(--cl-primary);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fff;
}
.wish-form input:focus,
.wish-form textarea:focus {
  border-color: 1px solid var(--cl-primary);
  outline: none;
} /* Nút bấm */
.wish-form button {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--cl-primary);
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
	font-family: 'fhd';
    text-transform: uppercase;
}
.wish-form button:hover {
  background: #005f8d;
} 
/* Cảm ơn sau khi gửi */
#wishThanks {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
  background: #fffaf3;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 10px;
  color: var(--cl-primary);
}
#wishThanks.show {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}
#wishThanks.fade-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 1s ease, transform 1s ease;
}
.wish-item h4{
    font-family: "fchucmung";
    font-size: 18px;
}


/* ABOUT */
.about{
	padding-top: 20px !important;
}
.about__wife-who {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
}
.about__wife-who.bride {
  margin-top: -30px;
}
.about__wife-who.bride .name {
  order: 1;
}

.about__wife-who .ftimg img{
  border: 1px solid #fff;
  padding: 5px 5px 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}
.about__wife-who .ftimg:hover img{
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.about__title {
  text-align: center;
  font-family: "fsub";
  font-size: 28px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
color: var(--cl-primary);
}
.name__sub {
  font-family: "fsub";
  font-size: 28px;
}
.name__text {
  font-size: 27px;
  text-transform: uppercase;
  letter-spacing: 3px;
} 
.about__family {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
    font-family: 'fhd';
    justify-content: center;
	gap: 30px;
	font-size: 18px;
    position: relative;
}
.about__family:before{
	position: absolute;
	content: '';
	height: 100%;
	width: 1px;
	background: #000;
	left: 50%; 
	top: 50%;
	transform: translate(-50%,-50%);
}
.subname {
    font-family: 'fsub';
	color: var(--cl-primary);
}
.about__family-info:nth-child(1) {
    text-align: right;
}
.about__family-info:nth-child(2) {
    text-align: left;
}
.name__img{
    width: 80px;
}
p.textname {
    font-size: 16px;
}
/* TIMELINE */
.timeline-section {
  background: #fff;
  text-align: center;
  overflow: hidden;
  padding: 0;
  border-radius: 0 0 24px 24px;
}
.timeline-header {
  position: relative;
}
.timeline-header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44%;
    background-color: #d3a84e59;
    z-index: 0;
background: linear-gradient(
        to top, 
        rgba(0, 51, 102, 0.95) 0%,      
        rgba(0, 51, 102, 0.7) 60%,       
        rgba(0, 51, 102, 0) 100%       
    );  }
.timeline-title {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  color: #fff;
  letter-spacing: 1px;
	z-index: 2;
}
.timeline-wrapper {
  background: #fefcf8;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.timeline-track {
  display: flex;
  gap: 15px;
  width: max-content;
	margin: 0 auto;
}
.timeline-item {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-item .icon svg {
  width: 36px;
  height: 36px;
  stroke: #d3a84e;
}
.timeline-item .time {
  font-weight: 600;
  margin-top: 8px;
  font-size: 1rem;
  color: var(--cl-primary);
	    font-family: 'fhd';
}
.timeline-item .label {
  font-size: 10px;
  margin-top: 4px;
} 
.timeline-item img {
    width: 50px;
}
/* CHUYỂN KHOẢN */
.gift h2 {
  margin-bottom: 20px;
}
.gift .qr-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.gift .qr-box p {
  text-align: center;
  margin-top: 10px;
  font-family: "fhd";
}
.music-toggle {
            position: fixed;
            bottom: 10px;
            left: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            z-index: 400;
            transition: transform 0.3s ease, background 0.3s ease;
            
        }

        .music-button {
			z-index: 400;
			animation: ping 1.2s ease-out infinite;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgb(233 30 99);
            backdrop-filter: blur(6px);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease, background 0.3s ease;
        }

        .music-toggle:hover .music-button {
            transform: scale(1.1);
            background: rgb(213, 20, 80);
        }

        .music-svg {
            width: 28px;
            height: 28px;
        }

        .music-label {
            color: var(--cl-text);
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        @keyframes ping {
            0% {
                box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
            }
        }
/* Khi phát nhạc */
.music-toggle.playing {
  animation: spinToggle 6s linear infinite;
} /* Xoay toàn bộ nút */
@keyframes spinToggle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
} /* SVG icon */
.music-toggle svg {
  pointer-events: none;
  transition: fill 0.3s ease;
} 

/* === Floating Buttons (minimal) === */
.floating-buttons {
  position: fixed;
  bottom: 90px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
}

.btn-float {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff99;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
	z-index: 400;
}

.btn-float .btn-label {
    white-space: nowrap;
    margin-left: 11px;
    transition: all 0.3s 
ease;
    font-size: 12px;
    display: flex;
    opacity: 1;
    color: var(--cl-primary);
    z-index: 400;
}


/* Popup QR */
.gift-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.gift-popup.show { display: flex; animation: fadeIn 0.3s ease; }

.gift-popup__content {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  max-width: 320px;
  position: relative;
  animation: scaleIn 0.4s ease;
}
.gift-popup__close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.gift-popup img {
  margin-top: 10px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* Responsive */
@media (max-width: 768px) {
  #preloader {
    background: url(https://wedding.vongocdiem.com/wp-content/uploads/2025/10/intro-mb-final-scaled.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
  }
  #preloader:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44%;
    background-color: #d3a84e59;
    z-index: -1;
    background: linear-gradient(to top, rgb(255 255 255 / 95%) 0%, rgb(255 255 255 / 81%) 60%, rgb(0 51 102 / 0%) 100%);
  }
  .preloader__bottom {
    bottom: 50px;
  }
  .preloader__top {
    top: initial;
    bottom: 183px;
    flex-direction: column-reverse;
  }
  .preloader__top h2 {
    font-size: 30px;
    text-align: center;
    letter-spacing: 2px;
  }
  .preloader__save {
    text-align: center;
    margin-top: 10px;
	  font-size: 16px;
  }
	.preloader__subtitle{
		font-size: 16px;
	}
	.preloader__date {
    font-size: 16px;
    letter-spacing: 2px;
}
}
