@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Manjari:wght@100;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');
*,*::before,*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    position: relative;
    background-color: #341E13;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* prevent horizontal scrool */
    font-family: "Manjari", serif;
    font-style: normal;
    scroll-behavior: smooth;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-list {
    display: flex;
    gap: 15px;
    min-width: 163px;
}

.container {
    z-index: 2;
    border: solid 0.5px white;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-bottom: 1rem;
    padding: 30px 15px;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #ffffff;
}

button {
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

p {
    font-weight: lighter;
    text-align: justify;
}

input::placeholder {
    color: #c0c0c0;
    font-family: 'Manjari';
    font-weight: 100;
}

.split-text-container {
    display: flex;
    font-family: "Bodoni Moda";
    font-weight: 700;
    font-size: clamp(2rem, calc((100vw - 8rem) / 7.41), 15rem);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.text-part {
    display: inline-block;
    position: relative;
    transform: translateX(0);
    animation-duration: 3s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    white-space: nowrap;
}

.text-part.left {
    transform: translateX(-200%);
    animation-name: slide-in-left;
}

.text-part.right {
    transform: translateX(200%);
    animation-name: slide-in-right;
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(200%);
    }
    100% {
        transform: translateX(0);
    }
}



.heroContent {
    z-index: 2;              /* above background image */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* top/bottom spacing inside content */
    align-items: center;
    height: 80vh;
}

.center-box {
    /* your responsive MISS VIETNAM title */
    white-space: nowrap;
    text-align: center;
    font-family: "Bodoni Moda";
    font-weight: 700;
    font-size: clamp(2rem, calc((100vw - 8rem) / 7.41), 15rem);
    margin-top: 0;           /* at top */
}

.divButton {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;     /* stay at bottom */
    z-index: 2;
}

.newMessage,
.discount {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.normal-button {
    font-size: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: solid 0.5px white;
    border-radius: 30px;
    background-color: transparent;
    transition: all 0.3s ease; /* smooth transition */
}

.normal-button:hover {
    background-color: white; /* change background */
    color: #341E13;          /* change text color */
    border-color: #ffffff;    /* optional */
}

.color-button {
    font-size: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: solid 0.5px white;
    border-radius: 30px;
    background-color: #85654C;
    transition: all 0.3s ease; /* smooth transition */
}

.color-button:hover {
    background-color: #A17C5D; /* slightly lighter shade */
    color: #341E13;             /* text color change */
    border-color: #ffffff;      /* optional */
}

/* --------------------------------------------------------- */

.popularServices {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 5px;                             /* space between columns */
    margin: 0 auto;                          /* center the grid */
    padding-left: 2rem;                           /* optional padding around */
    padding-right: 2rem;   
    padding-top: 30rem;
    padding-bottom: 10rem;

    background: #341E13;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 400px);
    mask-image: linear-gradient(to bottom, transparent, black 400px);
}

.first-column,
.second-column,
.third-column {
    display: flex;
    flex-direction: column;
    align-items: center;    /* center content inside each column */
    text-align: center;     /* optional */
}

.service-box img {
    width: 100%;            /* make image fit box */
    height: auto;
    margin-bottom: 2rem;
}

.service-box ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.service-box li {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-family: "Aboreto";
    transition: color 0.3s ease; /* smooth color transition */
}

.service-box li:hover {
    color: #efb413; /* your desired hover color */
}

.service-box {
    border: solid 0.5px white;
    padding: 2rem;
    width: 100%;
    cursor: pointer; /* shows it’s clickable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px) scale(1.01); /* slightly move up and enlarge */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* add shadow */
    border-color: #b6692d; /* optional border color change */
}

h4 {
    font-size: 4rem;
    font-family: "Aboreto";
    font-weight: 100;
}



.popularServices p {
    padding: 15px;
    margin: 5px;
}

.term {
    border-top: solid 0.5px white;
    width: 100%;
    margin-bottom: 150px;
}

.spread-text {
    position: relative;
    font-family: "Bodoni Moda";
    font-weight: 700;
    font-size: 5vw;       /* responsive font size */
    display: flex;
    justify-content: space-between; /* spreads letters evenly */
    margin: 0;
    text-align: justify;
    z-index: 3;
}

/* Container */
.policy-container {
    position: relative;
    max-width: 600px;       /* Optional: limit width */
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: "Manjari", serif;
    z-index: 3;
}

/* Accordion header */
.accordion-header {
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 1rem 1.5rem;
    background-color: #f0f0f0;
    position: relative;
    transition: background 0.3s;
    color: black;
}

/* Change background on hover */
.accordion-header:hover {
    background-color: #e0e0e0;
}

/* Optional: plus/minus icon */
.accordion-header::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* Rotate icon when active */
.accordion-header.active::after {
    content: "-";
    transform: rotate(180deg);
}

/* Accordion content */
.accordion-content {
    padding: 1rem 1.5rem;
    background-color: #fafafa;
    font-size: 15px;
    line-height: 1.6;
    display: none; /* initially hidden, jQuery handles toggle */
    color: black;
    font-weight: 300;
}

/* Paragraph styling inside content */
.accordion-content p {
    margin: 0;
}


.socialIconList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.socialIconList li {
    display: inline-block;
}

.socialIconList img {
    width: 3rem;
    height: 3rem;
    display: block;
}

.openingHours {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


.openingHours button {
    font-size: 1rem;
    background-color: transparent;
    color: black;
    border: 0.5px solid black;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 3vh;
}

.socialIcon button:hover {
    background-color: #15382B;
    color: black;
    border-color: #15382B;
}

.header6 {
    margin-bottom: 3vh;
}

.openingHours p {
    padding-bottom: 3vh;
}

.about {
    display: flex;
    justify-content: space-between;
    border-top: 0.5px solid white;
    pointer-events: none; /* so it doesn’t block clicks */
    padding-left: 4rem;
    padding-right: 4rem;
}

.studioImage1 {
    width: 50%;
    height: auto;
    object-fit: cover;
    position: relative;
    left: -5.625rem;
    overflow: hidden;
}


.information1 h6,
.information2 h6 {
    padding-bottom: 6vh;
    color: white;
    margin: 0;
}

.services {
    font-size: 20px;
}

.information1 li,
.information2 p,
.services {
    color: white;
}

.footer {
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 6vh;
    padding-bottom: 6vh;
    gap: 2rem;
    border-top: 0.5px solid white;
    z-index: 5;
    padding-left: 4rem;
    padding-right: 4rem;
}

.bottom-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    gap: 1.5rem;
    /* space between list items */

}

.bottom-list li a {
    text-decoration: none;
    color: white;
}

.information2,
.information1 {
    /* makes both column take equal space */
    min-width: 250px;
    flex-direction: column;
    align-items: flex-start;
}

.map2 {
    max-height: 450px;
}

.information3 {
    margin-left: 4rem;
}

/* Style for the links in the Explore section */
.bottom-list a {
    position: relative; /* Required for positioning the ::after element */
    text-decoration: none; /* Remove default underline */
    color: white; /* Inherit text color */
    transition: color 0.3s ease; /* Smooth transition for text color */
}

/* Underline effect on hover */
.bottom-list a::after {
    content: '';
    position: absolute;
    left: 50%; /* Start from the middle */
    bottom: -2px; /* Adjust this value to control the distance of the underline from the text */
    width: 0; /* Start with no width */
    height: 0.5px; /* Thickness of the underline */
    background-color: #ffffff; /* Color of the underline */
    transition: width 1s ease, left 1s ease; /* Smooth transition for width and position */
    transform: translateX(-50%); /* Center the underline */
}

/* Spread the underline on hover */
.bottom-list a:hover::after {
    width: 100%; /* Full width on hover */
}

.pageEnd {
    margin-left: 5.625rem;
    margin-right: 5.625rem;
    padding-bottom: 5rem;
}

.logoText { 
    width: 321px;
}

.pageEndLogo {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.heroImg {
    padding-top: 3rem;
    inset: 0; 
    background-image: url('./assets/photo9.jpg');
    background-size: cover;
    background-position: center -200px;
    z-index: -1;

}

.sticker {
    position: absolute;
    bottom: 47.5rem;  /* distance from top */
    right: 20px; /* distance from right */
    width: 50vw;
    height: auto;
    pointer-events: none;
    z-index: 2;

    /* fade at the bottom */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to top, transparent 0%, black 20%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.bottom-wrapper {
    position: relative;
    background: linear-gradient(to top, transparent, #341E13 1000px), url('assets/photo8.jpg');
    background-size: cover;
    background-position: center;
    background-position-y: 70%;
}

/* ---------BUTTON STYLING------------ */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100; /* Above all content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.6); /* semi-transparent overlay */
    font-family: "Bodoni Moda";
}

.modal-content {
    background-color: #341E13;
    margin: 10% auto; /* 10% from top, centered horizontally */
    padding: 2rem;
    border: 1px solid white;
    width: 80%;
    max-width: 500px;
    color: white;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #ccc;
}


/* ... (Keep all your existing CSS above this line) ... */

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .container {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    .popularServices {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 20rem;
    }
    
    .center-box {
        font-size: clamp(2rem, calc((100vw - 4rem) / 7), 10rem);
    }
    
    .sticker {
        bottom: 40rem;
        width: 40vw;
    }
}

/* Tablets (iPad, Android tablets) */
@media (max-width: 1024px) {
    .container {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    .heroContent {
        height: 70vh;
    }
    
    .popularServices {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 15rem;
        padding-bottom: 5rem;
    }
    
    .service-box {
        padding: 1.5rem;
    }
    
    h4 {
        font-size: 3rem;
    }
    
    .service-box li {
        font-size: 1.5rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 3rem;
    }
    
    .information1, .information2, .information3 {
        min-width: 100%;
        margin-left: 0;
    }
    
    .information1 li, .information2 p, .services {
        padding-left: 0;
    }
    
    .studioImage1 {
        width: 100%;
        left: 0;
        margin-bottom: 2rem;
    }
    
    .about {
        flex-direction: column;
    }
    
    .spread-text {
        font-size: 6vw;
    }
    
    .sticker {
        bottom: 105vh !important;
        width: 105vw !important;
        right: -55vw;
    }
    
    .heroImg {
        background-position: center -150px;
    }
}

/* Large phones (iPhone 12/14 Pro Max, Samsung Galaxy S series) */
@media (max-width: 768px) {
    .container {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 20px 10px;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .heroContent {
        height: 70vh !important;
        justify-content: space-between !important;
    }
    
    .split-text-container {
        font-size: clamp(1.4rem, calc((100vw - 2rem) / 6), 3.5rem) !important;
    }
    
    .divButton {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .normal-button, .color-button {
        width: 200px;
        padding: 12px 20px;
    }
    
    .popularServices {
        padding-top: 10rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .policy-container {
        padding: 1rem;
    }

    iframe {
        width: 100%;
    }
    
    .socialIconList img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .pageEnd {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .pageEnd p {
        text-align: center;
    }
    
    .pageEndLogo {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .sticker {
        bottom: 40vh !important ;
        width: 100vw !important;
        right: -35vw;
        z-index: 1 !important;
    }
    
    .heroImg {
        background-position: center top;  /* keep important part visible */
        background-size: 220%;           /* fills screen */
        background-repeat: no-repeat;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

/* Medium phones (iPhone XR, 12, 14, most Android phones) */
@media (max-width: 480px) {
    body, html {
        font-size: 14px;
    }
    
    .container {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 15px 8px;
    }
    
    .heroContent {
        height: 50vh;
        justify-content: center;
        gap: 2rem;
    }
    
    .split-text-container {
        font-size: clamp(1.2rem, calc((100vw - 1rem) / 5), 5rem);
    }
    
    .normal-button, .color-button {
        font-size: 14px;
        padding: 10px 15px;
        width: 180px;
    }
    
    h4 {
        font-size: 2rem;
    }
    
    .service-box li {
        font-size: 1.2rem;
    }
    
    .service-box {
        padding: 1rem;
    }
    
    .spread-text {
        font-size: 13vw;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .term {
        margin-bottom: 50px;
    }
    
    .logoText {
        width: 250px;
    }
    
    .bottom-wrapper {
        background-position-y: 50%;
    }
    
    .sticker {
        bottom: 25rem;
        width: 70vw;
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 40%);
        mask-image: linear-gradient(to top, transparent 0%, black 40%);
    }
    
    .heroImg {
        background-position: center -50px;
    }

    .popularServices {
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 100px) !important;
        mask-image: linear-gradient(to bottom, transparent, black 100px) !important;
    }
    
}

/* Small phones (iPhone SE, small Android phones) */
@media (max-width: 375px) {
    .container {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding: 10px 5px;
    }
    
    .center-box {
        font-size: clamp(1rem, calc((100vw - 0.5rem) / 4), 5rem);
    }
    
    .split-text-container {
        font-size: clamp(1rem, calc((100vw - 0.5rem) / 4), 5rem);
    }
    
    .normal-button, .color-button {
        font-size: 13px;
        padding: 8px 12px;
        width: 160px;
    }
    
    .primary-list {
        gap: 8px;
    }
    
    h4 {
        font-size: 1.8rem;
    }
    
    .service-box li {
        font-size: 1rem;
    }
    
    .footer {
        padding-top: 3vh;
        padding-bottom: 3vh;
    }
    
    .bottom-list {
        gap: 1rem;
    }
    
    .socialIconList img {
        width: 2rem;
        height: 2rem;
    }
    
    .sticker {
        bottom: 20rem;
        width: 80vw;
    }
}

/* Very small phones */
@media (max-width: 320px) {
    .center-box {
        font-size: 2.5rem;
    }
    
    .split-text-container {
        font-size: 2.5rem;
    }
    
    .normal-button, .color-button {
        width: 140px;
        font-size: 12px;
    }
    
    .logoText {
        width: 200px;
    }
    
    .sticker {
        bottom: 18rem;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .heroContent {
        height: 90vh;
    }
    
    .center-box {
        font-size: 3rem;
    }
    
    .sticker {
        bottom: 25rem;
        width: 30vw;
    }
    
    .popularServices {
        padding-top: 8rem;
    }
    
    .heroImg {
        background-position: center -100px;
    }
}

/* iPad Pro specific */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .container {
        margin-left: 3rem;
        margin-right: 3rem;
    }
    
    .popularServices {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sticker {
        width: 30vw;
    }
}

/* High-resolution displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-box, .modal-content, .container {
        border-width: 0.5px;
    }
    
    .term {
        border-top-width: 0.5px;
    }
}

/* Prevent text size adjustment on mobile */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-box:hover {
        transform: none;
        box-shadow: none;
    }
    
    .normal-button:hover, .color-button:hover {
        background-color: transparent;
        color: white;
    }
    
    .color-button:hover {
        background-color: #85654C;
    }
    
    .service-box li:hover {
        color: inherit;
    }
    
    /* Add active states for touch devices */
    .service-box:active {
        transform: scale(0.98);
    }
    
    .normal-button:active {
        background-color: white;
        color: #341E13;
    }
    
    .color-button:active {
        background-color: #A17C5D;
        color: #341E13;
    }
}

/* Smooth scrolling for iOS */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
}
