* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #f8f6f0;
}

.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(192,57,43,0.05) 48%, rgba(192,57,43,0.05) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(192,57,43,0.05) 48%, rgba(192,57,43,0.05) 52%, transparent 52%);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
}

.header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1539650116579-31359dac3448?w=1920&h=1080&fit=crop') center/cover;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
    animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.header-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
}

.nav-bar {
    position: sticky;
    top: 0;
    background: rgba(192,57,43,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin: 0 2rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-bar a:hover {
    background: rgba(255,255,255,0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 20px;
    position: relative;
    z-index: 1;
}

.intro-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.intro-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #c0392b;
}

.intro-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.temples-section {
    padding: 5rem 0;
    background: #f8f6f0;
}

.temples-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.temple-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.temple-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.temple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(192,57,43,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.temple-card:hover::before {
    opacity: 1;
}

.temple-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.temple-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.temple-card:hover img {
    transform: scale(1.15);
}

.temple-card h3 {
    padding: 1.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
    position: relative;
    z-index: 2;
}

.temple-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    position: relative;
    z-index: 2;
}

.crafts-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
}

.crafts-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.crafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.craft-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.craft-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.craft-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-section a {
    color: #c0392b;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 3rem;
    }

    .nav-bar a {
        margin: 0 0.5rem;
        padding: 0.5rem;
    }

    .temple-cards {
        grid-template-columns: 1fr;
    }
}
