:root {
    --primary: #1a1a1a;
    --secondary: #d4af37;
    --accent: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

.nav-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    transition: all 0.3s ease;
}

/* Scrolled state styles */
header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-video-bg {
    opacity: 0;
}

header.scrolled .nav-content {
    padding: 0.8rem 5%;
    background-color: rgba(0, 0, 0, 0.95);
}

/* Logo styles */
.logo a {
    text-decoration: none;
    color: inherit;
}

.logo h1 {
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Navigation styles */
nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/frontend/images/room1.jpeg') no-repeat center center/cover;
}

.hero h2 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: #FFD700;
    opacity: 0;
}

.hero h3 {
    opacity: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    opacity: 0;
    font-size: 1.5rem;
}

/* About Section */
.about {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Story Section */
.story {
    background-color: #f8f9fa;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Gallery Section */
.gallery {
    position: relative;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.photo-gallery::-webkit-scrollbar {
    display: none;
}

.tattoo-image {
    scroll-snap-align: start;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tattoo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Expertise Section */
.expertise {
    background-color: white;
}

.expertise-list {
    max-width: 600px;
    margin: 0 auto;
}

.expertise-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Booking Section */
.booking {
    background-color: #f8f9fa;
}

.booking-steps {
    max-width: 600px;
    margin: 0 auto;
}

.booking-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.booking-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.thai-text {
    font-style: italic;
    color: var(--secondary);
    display: block;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
}

.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.contact-button:hover {
    transform: translateY(-3px);
}

.facebook {
    background: #3b5998;
}

.instagram {
    background: #e1306c;
}

.line {
    background: #00c300;
}

.whatsapp {
    background: #25D366;
}

/* Zoom Modal Styles */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup Styles */
#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.popup-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-box-fb, .social-box-ig, .social-box-wsa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.social-box-fb {
    background: #3b5998;
}

.social-box-ig {
    background: #e1306c;
}

.social-box-wsa {
    background: #25D366;
}

.social-box-fb:hover, .social-box-ig:hover, .social-box-wsa:hover {
    transform: translateY(-3px);
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Section Transitions */
.hero {
    animation: fadeIn 1s ease-out;
}

.about {
    animation: fadeIn 1s ease-out 0.2s both;
}

.story {
    animation: fadeIn 1s ease-out 0.4s both;
}

.gallery {
    animation: fadeIn 1s ease-out 0.6s both;
}

.expertise {
    animation: fadeIn 1s ease-out 0.8s both;
}

.booking {
    animation: fadeIn 1s ease-out 1s both;
}

.contact {
    animation: fadeIn 1s ease-out 1.2s both;
}

/* Content Animations */
.section-title {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.about-content, 
.story-content, 
.gallery-container, 
.expertise-list, 
.booking-steps, 
.contact-methods {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    z-index: 1001;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        transition: right 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;
        margin-top: 0;
    }
    
    nav a {
        font-size: 1.1rem;
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100%;
    }
    
    /* Adjust header when menu is open */
    header.menu-open {
        background: rgba(0, 0, 0, 0.95) !important;
    }
    
    /* Button adjustments */
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    /* Hero adjustments */
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero h3 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    /* Story content adjustments */
    .story-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    nav {
        width: 85%;
    }
    
    nav ul {
        gap: 1rem;
        padding: 1.5rem;
    }
    
    nav a {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero h3 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}