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

:root {
    --primary: #1a365d;
    --secondary: #f56505;
    --accent: #2d3748;
    --text: #333;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    border-color: var(--secondary);
    background: rgba(245, 101, 5, 0.1);
}

.lang-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--white);
    padding: 16px 40px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #e55a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 101, 5, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--light);
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.service-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.price {
    font-size: 2.8rem;
    color: var(--secondary);
    font-weight: 800;
    margin: 2rem 0;
    position: relative;
}

.price::before {
    content: 'Starting at';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin: 2.5rem 0;
}

.service-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card .btn {
    margin-top: 1rem;
}

/* Portfolio */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Portfolio Images */
.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Restaurant Image - Warm food colors */
.restaurant-image {
    background: 
        linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(78, 205, 196, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23FF6B6B" width="400" height="300"/><circle fill="%234ECDC4" cx="200" cy="150" r="80"/><text x="50%" y="50%" font-family="Arial" font-size="24" fill="white" text-anchor="middle" dominant-baseline="middle">🍽️ RESTAURANT</text></svg>');
}

/* Spa Image - Calming wellness colors */
.spa-image {
    background: 
        linear-gradient(135deg, rgba(69, 183, 209, 0.9) 0%, rgba(150, 206, 180, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%2345B7D1" width="400" height="300"/><path fill="%2396CEB4" d="M200 100L250 200L150 200Z"/><text x="50%" y="50%" font-family="Arial" font-size="24" fill="white" text-anchor="middle" dominant-baseline="middle">💆 SPA</text></svg>');
}

/* Tour Image - Adventure travel colors */
.tour-image {
    background: 
        linear-gradient(135deg, rgba(250, 208, 46, 0.9) 0%, rgba(255, 142, 83, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23FAD02E" width="400" height="300"/><polygon fill="%23FF8E53" points="200,80 280,220 120,220"/><text x="50%" y="50%" font-family="Arial" font-size="24" fill="white" text-anchor="middle" dominant-baseline="middle">🏝️ TOURS</text></svg>');
}

/* Real Estate Image - Professional business colors */
.estate-image {
    background: 
        linear-gradient(135deg, rgba(106, 17, 203, 0.9) 0%, rgba(37, 117, 252, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%236A11CB" width="400" height="300"/><rect fill="%232575FC" x="150" y="100" width="100" height="120"/><text x="50%" y="50%" font-family="Arial" font-size="24" fill="white" text-anchor="middle" dominant-baseline="middle">🏢 ESTATE</text></svg>');
}

/* Cafe Image - Warm coffee colors */
.cafe-image {
    background: 
        linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(101, 67, 33, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%238B4513" width="400" height="300"/><circle fill="%23654321" cx="200" cy="150" r="60"/><text x="50%" y="50%" font-family="Arial" font-size="20" fill="white" text-anchor="middle" dominant-baseline="middle">☕ CAFE</text></svg>');
}

/* Fitness Image - Energetic colors */
.fitness-image {
    background: 
        linear-gradient(135deg, rgba(220, 20, 60, 0.9) 0%, rgba(178, 34, 34, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23DC143C" width="400" height="300"/><path fill="%23B22222" d="M150 120L250 120L200 180Z"/><text x="50%" y="50%" font-family="Arial" font-size="20" fill="white" text-anchor="middle" dominant-baseline="middle">💪 FITNESS</text></svg>');
}

/* Image Overlay Effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem 2rem;
    background: var(--secondary);
    border-radius: 25px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.portfolio-item:hover .image-overlay span {
    transform: translateY(0);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.portfolio-stats span {
    background: var(--light);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Contact */
.contact {
    padding: 100px 0;
    background: var(--primary);
    color: var(--white);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.contact-item .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-item span {
    opacity: 0.8;
    font-size: 0.9rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245, 101, 5, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Thai font support */
body[lang="th"] {
    font-family: 'Segoe UI', 'Sukhumvit Set', 'Kanit', sans-serif;
}

/* Animation for service cards and portfolio items */
.service-card, .portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .language-switcher {
        margin-left: 0.5rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .language-switcher {
        margin-left: 0.3rem;
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
    }
}
