:root {
    --primary-bg: #fff5f7; /* Blush pink */
    --accent-color: #e8b4b8; /* Rose gold */
    --accent-hover: #d89ca0; /* Deeper rose */
    --title-color: #2e1e2a; /* Deep plum */
    --secondary-accent: #b2b7e5; /* Soft lavender */
    --tertiary-accent: #2ac1bc; /* Soft teal */
    --shadow-glow: 0 0 15px rgba(232, 180, 184, 0.6);
    --sparkle-glow: 0 0 20px rgba(255, 255, 255, 0.5);
    --yearbook-accent: #ffcccb; /* Light coral for yearbook section */
    --champagne: #f7e7ce; /* Champagne for feminine accents */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, var(--primary-bg), #f8e8ee);
    color: var(--title-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================
   HEADER — Pastel Pink Elegance (subtle & luxe)
   Chỉ ảnh hưởng .header và con của nó
   ========================= */
.header {
  /* Đặt ảnh nền bằng biến dưới (xem HTML mẫu) */
  --bg-url: none; /* ví dụ: url('images/bg.jpg') */

  /* Tông pastel hồng nhẹ, sang */
  --ink:   #2a1e25;   /* màu chữ chính (mực nâu tím) */
  --muted: #6f5b64;   /* phụ đề dịu */
  --accent:#d9a6b8;   /* nhấn hồng rose pastel */

  position: relative;
  color: var(--ink);
  min-height: clamp(320px, 48vh, 520px);
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 72px);
  display: grid;
  place-items: center;
  text-align: center;

  /* Ảnh nền + lớp rửa màu thật nhẹ để không lòe loẹt */
  background-image:
    linear-gradient(180deg, rgba(255,247,251,.85), rgba(252,239,245,.85)),
    var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-bottom: 1px solid rgba(42,30,37,.06);
  overflow: hidden;
  isolation: isolate;
}

/* Lớp wash/vignette rất nhẹ để tạo chiều sâu */
.header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,214,227,.28), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(255,239,245,.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Tiêu đề & phụ đề: gọn, tinh tế */
.header h1,
.header p { position: relative; z-index: 1; }

.header h1 {
  margin: 0 0 10px;
  font-family: "Georgia", "Times New Roman", ui-serif, serif;
  font-weight: 700;
  font-size: clamp(28px, 5.4vw, 52px);
  letter-spacing: .3px;
  line-height: 1.06;
}

.header h1::after {
  /* Gạch nhấn mảnh, không chói */
  content: "";
  display: block;
  width: 64%;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  opacity: .65;
}

.header p {
  margin: 4px 0 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: clamp(13px, 2.1vw, 16px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ảnh nổi bật (tùy chọn): khung mềm, bóng nhẹ – không phô */
.header .header__photo {
  position: absolute;
  right: clamp(16px, 6vw, 80px);
  bottom: clamp(-18px, -3vh, 0px);
  width: min(38vw, 420px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(42,30,37,.18);
  border: 1px solid rgba(42,30,37,.08);
  z-index: 0; /* nằm sau text để text luôn dễ đọc */
}

/* Bố cục desktop: canh trái tinh tế, vẫn tối giản */
@media (min-width: 900px) {
  .header { text-align: left; }
  .header h1,
  .header p { margin-left: clamp(8px, 4vw, 140px); }
}

/* Ảnh trên mobile: đặt dưới nội dung, tránh đè chữ */
@media (max-width: 899px) {
  .header .header__photo {
    position: relative;
    right: auto; bottom: auto;
    margin-top: 18px;
    width: min(72vw, 320px);
    z-index: 1;
  }
}

/* Hover nhẹ nhàng (desktop) */
@media (hover:hover) {
  .header .header__photo {
    transition: transform .45s ease, box-shadow .45s ease;
  }
  .header .header__photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 70px rgba(42,30,37,.22);
  }
}

/* Dark mode: giữ độ tương phản, vẫn pastel ấm */
@media (prefers-color-scheme: dark) {
  .header {
    --ink:#fff9fb; --muted:#f0cddd; --accent:#e7b7c7;
    background-image:
      linear-gradient(180deg, rgba(31,24,28,.60), rgba(31,24,28,.60)),
      var(--bg-url);
    border-bottom-color: rgba(255,255,255,.06);
  }
  .header .header__photo {
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 18px 58px rgba(0,0,0,.35);
  }
  .header h1::after { opacity: .82; }
}


.hao {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--champagne);
    letter-spacing: 3px;
    text-transform: none;
    margin-top: 20px;
    animation: fadeIn 2.2s ease-out;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(232, 180, 184, 0.2);
    box-shadow: 0 0 10px var(--sparkle-glow);
    position: relative;
    z-index: 2;
}

.hao::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    opacity: 0.8;
}

@keyframes zoomIn {
    0%, 100% {
        background-size: 100%;
    }
    50% {
        background-size: 108%;
    }
}

@keyframes floatSparkle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider {
    width: 150px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-hover), var(--secondary-accent));
    margin: 50px auto;
    animation: slideIn 1.2s ease-out;
    box-shadow: var(--shadow-glow);
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 150px;
    }
}

.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
    scroll-margin-top: 80px; /* Account for sticky nav height */
}

.gallery-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: var(--title-color);
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
}

.gallery-section h1::after {
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 20px;
    opacity: 0.6;
    animation: sparkle 2.5s ease-in-out infinite;
}

.gallery-section p {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-style: italic;
}

/* Make-up Performance: Masonry Layout */
.makeup-performance .gallery.masonry {
    column-count: 4;
    column-gap: 25px;
    padding: 25px;
    border-radius: 20px;
}

.makeup-performance .gallery-item {
    position: relative;
    margin-bottom: 25px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    break-inside: avoid;
    border: 1px solid var(--secondary-accent);
}

.makeup-performance .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: filter 0.4s ease, transform 0.4s ease;
}

.makeup-performance .gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(178, 183, 229, 0.4), var(--sparkle-glow);
}

.makeup-performance .gallery-item:hover img {
    filter: brightness(85%) contrast(1.1);
    transform: scale(1.05);
}

/* Gallery Tiệc: Compact Grid Layout */
.gallery-tiec .gallery.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
    border-radius: 20px;
    position: relative;
}

.gallery-tiec .gallery.compact-grid::before {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 30px;
    opacity: 0.5;
    animation: sparkle 2s ease-in-out infinite;
}

.gallery-tiec .gallery.compact-grid::after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 30px;
    opacity: 0.5;
    animation: sparkle 2.5s ease-in-out infinite;
}

.gallery-tiec .gallery-item {
    position: relative;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--tertiary-accent);
    aspect-ratio: 2/3;
}

.gallery-tiec .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-tiec .gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(42, 193, 188, 0.4), var(--sparkle-glow);
}

.gallery-tiec .gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(90%) contrast(1.2);
}

.gallery-tiec .gallery-item::after {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-tiec .gallery-item:hover::after {
    opacity: 0.8;
}

/* Make-up Cô Dâu Phong Cách Wedding: Staggered Grid */
.wedding-style .gallery.staggered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 25px;
    border-radius: 20px;
}

.wedding-style .gallery-item {
    position: relative;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--accent-hover);
    height: 320px;
    box-sizing: border-box;
}

.wedding-style .gallery-item.large {
    grid-row: span 2;
    height: 640px;
}

.wedding-style .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease;
    box-sizing: border-box;
}

.wedding-style .gallery-item.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wedding-style .gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(232, 180, 184, 0.5), var(--sparkle-glow);
}

.wedding-style .gallery-item:hover img {
    transform: scale(1.15);
}

.wedding-style .gallery-item::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.wedding-style .gallery-item:hover::before {
    opacity: 1;
}

/* Company Motto: Carousel Layout */
.motto-carousel .carousel-inner {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 25px;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--tertiary-accent) #f8e8ee;
}

.motto-carousel .carousel-inner::-webkit-scrollbar {
    height: 10px;
}

.motto-carousel .carousel-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--tertiary-accent), var(--accent-color));
    border-radius: 10px;
}

.motto-carousel .center-text-top,
.motto-carousel .text-yellow,
.motto-carousel .text-orange {
    flex: 0 0 320px;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.motto-carousel .center-text-top {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
    line-height: 1.6;
    border: 1px solid var(--accent-hover);
}

.motto-carousel .center-text-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(232, 180, 184, 0.4), var(--sparkle-glow);
}

.motto-carousel .center-text-top .circle-logo {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.4s ease;
}

.motto-carousel .center-text-top:hover .circle-logo {
    transform: rotate(360deg);
}

.motto-carousel .center-text-top h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.motto-carousel .text-yellow {
    background: linear-gradient(135deg, #f7c600, #e0b300);
    color: #fff;
    font-weight: 700;
    font-size: 1.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e0b300;
}

.motto-carousel .text-yellow:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(247, 198, 0, 0.4), var(--sparkle-glow);
}

.motto-carousel .text-orange {
    background: linear-gradient(135deg, #e27926, #cc6b20);
    color: #fff;
    font-weight: 700;
    font-size: 1.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #cc6b20;
}

.motto-carousel .text-orange:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(226, 121, 38, 0.4), var(--sparkle-glow);
}

.contact-button {
    position: fixed;
    bottom: 120px;
    right: 0;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover), var(--secondary-accent));
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-glow), 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    transform: rotate(-90deg);
    transform-origin: right bottom;
    width: 160px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: pulse 2.5s infinite ease-in-out;
}

.contact-button:hover {
    transform: rotate(-90deg) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), var(--sparkle-glow);
    background: linear-gradient(45deg, var(--accent-hover), var(--accent-color), var(--secondary-accent));
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
}

.contact-button:hover::before {
    left: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: var(--shadow-glow), 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(232, 180, 184, 0.8), 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: var(--shadow-glow), 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Summer Tour */
.summer-tour {
    text-align: center;
    scroll-margin-top: 80px; /* Account for sticky nav height */
}

.summer-tour .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.summer-tour .title {
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
}

.summer-tour .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 100%;
    margin: 0 auto;
}

.summer-tour .item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.summer-tour .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    filter: brightness(85%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.summer-tour .tall {
    grid-column: span 2;
    grid-row: span 2;
}

.summer-tour .tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summer-tour .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.summer-tour .item:hover img {
    filter: brightness(100%);
    transform: scale(1.05);
}

.summer-tour .footer {
    margin-top: 40px;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--title-color);
    font-family: 'Lora', serif;
}

/* Make-up Kỷ Yếu: Yearbook Grid */
.yearbook-style .gallery.yearbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 25px;
    border-radius: 20px;
    position: relative;
}

.yearbook-style .gallery.yearbook-grid::before {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 30px;
    opacity: 0.5;
    animation: sparkle 2s ease-in-out infinite;
}

.yearbook-style .gallery.yearbook-grid::after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 30px;
    opacity: 0.5;
    animation: sparkle 2.5s ease-in-out infinite;
}

.yearbook-style .gallery-item {
    position: relative;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--yearbook-accent);
    height: 320px;
    box-sizing: border-box;
}

.yearbook-style .gallery-item.large {
    grid-row: span 2;
    height: 640px;
}

.yearbook-style .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.6s ease, filter 0.4s ease;
    box-sizing: border-box;
}

.yearbook-style .gallery-item.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yearbook-style .gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(255, 204, 203, 0.5), var(--sparkle-glow);
}

.yearbook-style .gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(95%) contrast(1.15);
}

.yearbook-style .gallery-item::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.yearbook-style .gallery-item:hover::before {
    opacity: 1;
}

.yearbook-style .gallery-item::after {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.yearbook-style .gallery-item:hover::after {
    opacity: 0.8;
}

/* Tab Navigation */
.tab-nav {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-bg), var(--accent-color));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    text-align: center;
    border-radius: 18px;
}

.tab-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-nav li {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--title-color);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

.tab-nav li:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
}

.tab-nav li.active {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.gallery-container {
    position: relative;
}

/* Responsive Design */
@media (min-width: 1201px) {
    .header {
        padding: 140px 30px 120px;
        min-height: 600px;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
    }
    .header h1 {
        font-size: 68px;
        letter-spacing: 5px;
    }
    .hao {
        font-size: 36px;
        padding: 10px 25px;
        margin-top: 25px;
    }
    .hao::after {
        width: 100px;
    }
    .header::after {
        font-size: 48px;
        top: 40px;
        right: 40px;
    }
}

@media (max-width: 1200px) {
    .header {
        padding: 100px 20px 80px;
        min-height: 450px;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 98%, 0 88%);
    }
    .header h1 {
        font-size: 52px;
        letter-spacing: 3.5px;
    }
    .hao {
        font-size: 28px;
        padding: 7px 18px;
        margin-top: 18px;
    }
    .hao::after {
        width: 70px;
    }
    .header::after {
        font-size: 36px;
        top: 25px;
        right: 25px;
    }
    .makeup-performance .gallery.masonry {
        column-count: 2;
    }
    .wedding-style .gallery.staggered-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .gallery-tiec .gallery.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 80px 15px 60px;
        min-height: 400px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 95%, 0 85%);
        background-attachment: scroll;
        background-size: cover;
    }
    .header h1 {
        font-size: 44px;
        letter-spacing: 3px;
    }
    .hao {
        font-size: 24px;
        padding: 6px 15px;
        margin-top: 15px;
    }
    .hao::after {
        width: 60px;
    }
    .header::after {
        font-size: 34px;
        top: 20px;
        right: 20px;
    }
    .gallery-section h1 {
        font-size: 32px;
    }
    .gallery-section p {
        font-size: 16px;
    }
    .makeup-performance .gallery.masonry {
        column-count: 2;
    }
    .gallery-tiec .gallery.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .gallery-tiec .gallery-item {
        height: 450px;
    }
    .wedding-style .gallery.staggered-grid {
        grid-template-columns: 1fr;
    }
    .wedding-style .gallery-item {
        height: 700px;
    }
    .wedding-style .gallery-item.large {
        height: 950px;
    }
    .wedding-style .gallery-item img,
    .wedding-style .gallery-item.large img {
        height: 100%;
    }
    .motto-carousel .carousel-inner {
        flex-direction: column;
        overflow-x: hidden;
    }
    .motto-carousel .center-text-top,
    .motto-carousel .text-yellow,
    .motto-carousel .text-orange {
        flex: 0 0 auto;
        width: 100%;
    }
    .contact-button {
        padding: 8px 18px;
        font-size: 14px;
        border-radius: 20px 0 0 20px;
        width: 140px;
        bottom: 100px;
    }
    .yearbook-style .gallery-item {
        height: 450px;
    }
    .yearbook-style .gallery-item.large {
        height: 600px;
    }
    .yearbook-style .gallery-item img,
    .yearbook-style .gallery-item.large img {
        height: 100%;
    }
    .summer-tour .grid {
        grid-template-columns: 1fr;
    }
    .summer-tour .item {
        height: 450px;
    }
    .summer-tour .tall {
        grid-column: span 1;
        grid-row: auto;
        height: 600px;
    }
    .summer-tour .item img,
    .summer-tour .tall img {
        height: 100%;
        object-fit: cover;
    }
    .tab-nav ul {
        gap: 10px;
    }
    .tab-nav li {
        font-size: 16px;
        padding: 8px 15px;
    }
    /* Ensure specified sections and dividers are visible */
    #makeup-performance,
    #gallery-tiec,
    #wedding-style,
    .divider {
        display: block;
    }
    .divider {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 50px 10px 40px;
        min-height: 300px;
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        background-attachment: scroll;
        background-size: cover;
    }
    .header h1 {
        font-size: 30px;
        letter-spacing: 1.8px;
    }
    .hao {
        font-size: 16px;
        padding: 4px 10px;
        margin-top: 10px;
    }
    .hao::after {
        width: 40px;
    }
    .header::after {
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    .gallery-section h1 {
        font-size: 24px;
    }
    .gallery-section p {
        font-size: 13px;
    }
    .makeup-performance .gallery.masonry {
        column-count: 1;
        column-gap: 15px;
    }
    .gallery-tiec .gallery.compact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .gallery-tiec .gallery-item {
        height: 380px;
    }
    .wedding-style .gallery-item,
    .wedding-style .gallery-item.large {
        height: 600px;
    }
    .wedding-style .gallery-item img,
    .wedding-style .gallery-item.large img {
        height: 100%;
        object-fit: cover;
    }
    .motto-carousel .center-text-top,
    .motto-carousel .text-yellow,
    .motto-carousel .text-orange {
        padding: 20px 12px;
        font-size: 1.3rem;
    }
    .motto-carousel .center-text-top h1 {
        font-size: 1.7rem;
    }
    .motto-carousel .center-text-top .circle-logo {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .contact-button {
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 16px 0 0 16px;
        width: 110px;
        bottom: 70px;
    }
    .yearbook-style .gallery-item,
    .yearbook-style .gallery-item.large {
        height: 380px;
    }
    .yearbook-style .gallery-item img,
    .yearbook-style .gallery-item.large img {
        height: 100%;
        object-fit: cover;
    }
    .summer-tour .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .summer-tour .item {
        height: 380px;
    }
    .summer-tour .tall {
        grid-column: span 1;
        grid-row: auto;
        height: 480px;
    }
    .summer-tour .item img,
    .summer-tour .tall img {
        height: 100%;
        object-fit: cover;
    }
    .tab-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .tab-nav li {
        font-size: 13px;
        padding: 6px 10px;
        width: 85%;
        text-align: center;
    }
}

@media (max-width: 430px) {
    .header {
        padding: 45px 8px 35px;
        min-height: 280px;
    }
    .header h1 {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    .hao {
        font-size: 15px;
        padding: 3px 8px;
    }
    .hao::after {
        width: 35px;
    }
    .header::after {
        font-size: 26px;
        top: 12px;
        right: 12px;
    }
    .gallery-section h1 {
        font-size: 22px;
    }
    .gallery-section p {
        font-size: 12px;
    }
    .gallery-tiec .gallery-item {
        height: 360px;
    }
    .wedding-style .gallery-item,
    .wedding-style .gallery-item.large {
        height: 580px;
    }
    .yearbook-style .gallery-item,
    .yearbook-style .gallery-item.large {
        height: 360px;
    }
    .summer-tour .item {
        height: 360px;
    }
    .summer-tour .tall {
        height: 460px;
    }
    .contact-button {
        padding: 5px 12px;
        font-size: 10px;
        width: 100px;
        bottom: 60px;
    }
    .tab-nav li {
        font-size: 12px;
        padding: 5px 8px;
        width: 90%;
    }
    .divider {
        width: 80px;
    }
}