:root {
    --secondary: #ff3b6f;
    --light-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #ffffff;
}

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;
    background-color: #000000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background-color: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/spider5.jpg') no-repeat;
    background-size: cover;
    background-position: center 40%; /* First value: horizontal (right), Second value: vertical (down) */
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero h3 {
    font-size: 1.8rem;
    color: #ffffff;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

/* About Section */
.about {
    background-color: #000000;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Story Section */
.story {
    background-color: #0a0a0a;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.story-content p {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Gallery Section - FIXED FOR PHOTOS */
.gallery {
    position: relative;
    background-color: #000000;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    opacity: 0.3;
}

.gallery .container {
    position: relative;
    z-index: 2;
}

/* Butter Smooth Gallery */
.photo-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    cursor: grab;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: scroll-position;
}

.photo-gallery:active {
    cursor: grabbing;
}

/* Smooth scrollbar */
.photo-gallery::-webkit-scrollbar {
    height: 6px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
    transition: background 0.2s;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: #ff6b9d;
}

.tattoo-image {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    
    /* Hardware acceleration for images */
    transform: translateZ(0);
    will-change: transform;
}

/* Mobile */
@media (max-width: 768px) {
    .tattoo-image {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .tattoo-image {
        width: 220px;
        height: 220px;
    }
}

/* Expertise Section */
.expertise {
    background-color: #000000;
}

.expertise-list {
    max-width: 600px;
    margin: 0 auto;
}

.expertise-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
}

.expertise-list li i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.expertise-list li strong {
    color: var(--secondary);
    margin-right: 0.5rem;
}

/* Booking Section */
.booking {
    background-color: #0a0a0a;
}

.booking-steps {
    max-width: 600px;
    margin: 0 auto;
}

.booking-step {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.booking-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.booking-step p {
    color: #ffffff;
}

.booking-step strong {
    color: var(--secondary);
}

.thai-text {
    font-style: italic;
    color: #cccccc;
    display: block;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    background-color: #000000;
}

.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: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-method i {
    font-size: 1.8rem;
    margin-right: 1rem;
}

.contact-method p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-button {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
}

.facebook { background: #1877f2; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.line { background: #00c300; }
.whatsapp { background: #25D366; }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-box-fb,
.social-box-ig,
.social-box-wsa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-box-fb { background: #1877f2; }
.social-box-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-box-wsa { background: #25D366; }

.social-box-fb:hover,
.social-box-ig:hover,
.social-box-wsa:hover {
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        transition: right 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        border-left: 1px solid var(--secondary);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;
    }

    nav a {
        font-size: 1.1rem;
        text-align: center;
        display: block;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero h3 {
        font-size: 1.3rem;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .logo-img {
        height: 42px;
    }
    
    .tattoo-image {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 38px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero h3 {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .tattoo-image {
        width: 220px;
        height: 220px;
    }
}

/* Zoom Modal Styles */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.close-zoom:hover {
    color: var(--secondary);
    transform: rotate(90deg);
    background: rgba(255, 59, 111, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}