/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffd700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #e2e8f0;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://tse-mm.bing.com/th?q=พื้นหลังเฟอร์นิเจอร์หรูหรา') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #1a365d;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffd700;
    padding: 12px 30px;
    border: 2px solid #ffd700;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #1a365d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1a365d;
    padding: 10px 25px;
    border: 2px solid #1a365d;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #1a365d;
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #1a365d;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.feature-item h3 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Products Preview */
.products-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 10px;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* News Section */
.news-preview {
    padding: 80px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    display: flex;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-date {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1a365d;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section h4 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        padding: 10px 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a365d;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content h3 {
        font-size: 24px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Form Styles for Contact Page */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h2,
.contact-info h2 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content h3 {
    color: #1a365d;
    margin-bottom: 5px;
    font-size: 18px;
}

.info-content p {
    color: #666;
    line-height: 1.6;
}

/* Products Page Styles */
.products-filter {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.products-section {
    padding: 60px 0;
    background: white;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 215, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.quick-view-btn {
    background: #1a365d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quick-view-btn:hover {
    background: #2d3748;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-meta span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.category {
    background: #e3f2fd;
    color: #1976d2;
}

.material {
    background: #f3e5f5;
    color: #7b1fa2;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* About Page Styles */
.company-story {
    padding: 80px 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h2 {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #666;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-vision {
    padding: 80px 0;
    background: #f8f9fa;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 15px;
}

.mv-card p {
    color: #666;
    line-height: 1.6;
}

.timeline {
    padding: 80px 0;
    background: white;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -50px;
    width: 2px;
    background: #ffd700;
    transform: translateX(-50%);
}

.timeline-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-left: 60px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 20px solid #f8f9fa;
    transform: translateY(-50%);
}

.timeline-content h3 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.team-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 5px;
}

.position {
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-info p {
    color: #666;
    line-height: 1.6;
}

.awards-section {
    padding: 80px 0;
    background: white;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.award-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: transform 0.3s ease;
}

.award-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.award-item h4 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 10px;
}

.award-item p {
    color: #666;
    line-height: 1.5;
}

/* Showroom and Map Styles */
.showroom-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.showroom-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.showroom-card:hover {
    transform: translateY(-5px);
}

.showroom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.showroom-info {
    padding: 20px;
}

.showroom-info h3 {
    font-size: 22px;
    color: #1a365d;
    margin-bottom: 15px;
}

.showroom-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.showroom-details p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.map-placeholder {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-content h3 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 15px;
}

.map-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.map-directions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* FAQ Styles */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 15px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}
