:root{
    --bg:#eef5fd;
    --primary:#052b7d;
    --accent:#c4def8;
    --white:#ffffff;
    --text:#1d2740;
}

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

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Montserrat',sans-serif;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* NAVIGATION */

nav{
    background:white;
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid rgba(5,43,125,.08);
}

.nav-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    position: relative; /* Crucial for positioning mobile menu */
}

.logo{
    display:flex;
    flex-direction:column;
}

.logo img{
    width:80px;
    height:auto;
    display:block;
}

.logo span{
    letter-spacing:4px;
    font-size:11px;
    color:#052b7d;
}

.logo h2{
    color:var(--primary);
    font-family:'Cormorant Garamond',serif;
    font-size:42px;
}

.logo span{
    letter-spacing:4px;
    font-size:11px;
}

.menu{
    display:flex;
    gap:40px;
}

.menu a{
    text-decoration:none;
    color:var(--primary);
    font-weight:600;
    text-transform:uppercase;
    font-size:13px;
}

.btn{
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:14px 28px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-2px);
}

/* HAMBURGER STYLES */
.menu-toggle {
    display: none;
}

/* Base Hamburger Styles matching your MENU ☰ requirements */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    order: 2;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.hamburger span {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* HERO */

.hero {
    padding: 10px 0 0 0; 
    position: relative;
    background-image: url('bg.png'); 
    background-attachment: fixed; /* Desktop effect */
    background-position: bottom center; 
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: inset 0 0 0 2000px rgba(238, 245, 253, 0.4); 
}

/* 2. Mobile fix goes last to overwrite desktop styles */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Mobile fix */
  }
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.hero-content h1{
    font-family:'Cormorant Garamond',serif;
    font-size: clamp(3.5rem, 8vw, 7rem); /* Smooth dynamic scaling text */
    line-height:1;
    color:var(--primary);
}

.hero-content h3{
    margin-top:25px;
    font-family:'Cormorant Garamond',serif;
    font-size: clamp(1.8rem, 4vw, 3rem); /* Smooth dynamic scaling text */
    line-height:1.2;
}

.hero-content p{
    margin:25px 0;
    color:#52627f;
    font-size: clamp(15px, 1.5vw, 18px); /* Smooth dynamic scaling text */
}

.hero-tags{
    display:flex;
    gap:20px;
    color:#3d68c7;
    font-weight:600;
    margin-bottom:35px;
}

.hero-image img{
    width:100%;
    border-radius:30px;
    display: block; 
}

.section{
    padding:70px 0;
}

.section-title{
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
    color:var(--primary);
    margin-bottom:30px;
}

/* GALLERY */

/* GALLERY NATIVE SMOOTH SWIPER */
.gallery-carousel-wrapper {
    overflow-x: auto;
    width: 100%;
    position: relative;
    padding: 20px 0;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.gallery-carousel-wrapper::-webkit-scrollbar {
    display: none; /* Keeps it completely clean and hidden */
}
.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.gallery-track img {
    width: 260px;
    height: 420px;
    border-radius: 18px;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none; /* Prevents browser ghost-dragging files */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-track img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(5, 43, 125, 0.15);
}

/* LIGHTBOX MODAL STRUCTURE */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 39, 64, 0.95);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    animation: zoomAnimation 0.25s ease-out;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
}

@keyframes zoomAnimation {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile Fallback Restructuring */
@media(max-width: 768px) {
    .gallery-track img {
        width: 180px; /* Slightly scaled down sizing variables for smaller mobile viewports */
        height: 300px;
    }
}

/* BOOKING */

.booking{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:40px;
    align-items:start;
}

.card{
    background:white;
    border-radius:24px;
    padding:35px;
    box-shadow:0 10px 40px rgba(0,0,0,.04);
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

input,
select,
textarea{
    padding:16px;
    border:1px solid #d6e5fb;
    border-radius:12px;
    font-family:inherit;
}

textarea{
    min-height:140px;
}

.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-box {
    display: flex;
    gap: 0;
    overflow-x: auto; /* Enables swipe gesture support */
    scroll-snap-type: x mandatory; /* Locks images cleanly to container walls */
    scroll-behavior: smooth;
}

/* Hide ugly horizontal layout browser scrollbars */
.product-box::-webkit-scrollbar {
    display: none;
}

.product-box img {
    width: 100%; /* Each item occupies full slider width block */
    flex-shrink: 0;
    scroll-snap-align: start;
    height: auto;
    object-fit: contain;
}

/* INSTAGRAM STYLE INDICATOR DOTS */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #c4def8; /* Soft blue brand indicator shade */
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.dot:hover {
    background: var(--primary); /* Active bullet highlights dark blue on link pointer tracking */
    transform: scale(1.2);
}
/* ABOUT */

.about{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.about img{
    width:100%;
    border-radius:30px;
}

.about h2{
    font-family:'Cormorant Garamond',serif;
    font-size:3rem;
    color:var(--primary);
}

.about p{
    margin-top:20px;
    line-height:1.8;
}

/* FOOTER */

footer{
    background:white;
    margin-top:80px;
    border-top:1px solid rgba(5,43,125,.08);
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    padding:60px 0;
}

.footer-title{
    color:var(--primary);
    margin-bottom:15px;
    font-weight:600;
}

footer ul{
    list-style:none;
}

footer li{
    margin-bottom:10px;
}

footer a{
    text-decoration:none;
    color:#4c5d7a;
}

.copyright{
    text-align:center;
    padding:20px;
    border-top:1px solid rgba(5,43,125,.08);
}

/* ==========================================
   1. TABLET BREAKPOINT (Under 992px)
   ========================================== */
@media(max-width:992px){

  .hamburger {
      display: flex; /* Displays text + icon dropdown triggers correctly */
  }

  .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: white;
      padding: 20px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.05);
      gap: 20px;
      text-align: center;
      border-bottom: 1px solid rgba(5,43,125,.08);
  }

  .menu-toggle:checked ~ .menu {
      display: flex;
  }

  .nav-btn {
      padding: 10px 18px;
      font-size: 12px;
  }

  .booking,
  .product,
  .about,
  .footer-grid{
    grid-template-columns:1fr;
  }

.dot.active {
    background: var(--primary); /* Turns dark blue to show it is active */
    transform: scale(1.2);
}
  .gallery-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* =========================
   CUSTOM POPUP MODAL
========================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 39, 64, 0.4); /* Uses your --text color with transparency */
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(5, 43, 125, 0.15);
    border: 1px solid rgba(5, 43, 125, 0.05);
    animation: modalFadeIn 0.3s ease forwards;
}

.modal-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-card p {
    color: #52627f;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 28px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
}

/* ==========================================
   VIRAL BANNER
   ========================================== */
.announcement-banner {
    background: linear-gradient(135deg, #001f54, #0a3d91); /* Matches your deep navy theme */
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 8px; /* Matches your form card rounded profile */
    margin: 15px auto;
    max-width: 1200px; /* Limits size to match content grid container */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.announcement-banner a {
    color: #ffd700; /* Gold or high-contrast accent highlight for clickability */
    text-decoration: underline;
    font-weight: 600;
}

.announcement-banner a:hover {
    color: #ffffff;
}



/* ==========================================
   2. MOBILE BREAKPOINT (Under 768px)
   ========================================== */
@media(max-width:768px){

  /* Stacks columns vertically on smaller browser view widths */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Target wrapper isolates text styling updates securely */
  .hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Requirements 1: Centers "AVA XIN" text precisely */
  .hero-text-wrapper h1 {
    text-align: center;
    width: 100%;
  }

  /* Requirement 3: Stacks tag items cleanly into 3 beautiful rows */
  .hero-text-wrapper .hero-tags {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 25px 0 35px 0;
  }

  /* Requirement 2: Button aligns naturally underneath content block layers */
  .hero-text-wrapper .btn {
    display: inline-block;
    margin: 0 auto;
  }

  .hero-image {
    max-width: 450px;
    margin: 0 auto;
  }
}