:root {
    --primary-color: #8b2dbd;
    --secondary-ping:#ff80c0;
    --secondary-color: #42d7a0;
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, #8b2dbd 0%, #42d7a0 100%);
}

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

body {
    font-family: 'Prompt', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.th {
    font-weight: 400;
    line-height: 1.8;
}

h1.th, h2.th, h3.th, h4.th, h5.th, h6.th {
    font-weight: 600;
    line-height: 1.4;
}

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

/* Header Styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s;
}

.dropdown:hover > a {
    color: var(--primary-color);
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 8px 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: var(--bg-gradient);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-wrapper img {
    width: 30px;
    height: 30px;
}

.icon-wrapper.pink {
    background-color: #FFE6F0;
}

.icon-wrapper.purple {
    background-color: #E9E6FF;
}

.icon-wrapper.orange {
    background-color: #FFF0E6;
}

.icon-wrapper.green {
    background-color: #E6FFF0;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.learn-more {
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 10px;
}

.learn-more.pink {
    color: #FF4D8D;
}

.learn-more.purple {
    color: #6C63FF;
}

.learn-more.orange {
    color: #FF6B4D;
}

.learn-more.green {
    color: #4DFF88;
}

/* Why Choose Section */
.why-choose {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #343f52;
    line-height: 1.3;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

.feature-card .icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #343f52;
}

.feature-card p {
    color: #60697b;
    margin: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-image img {
    width: 100%;
    border-radius: 10px;
}

.content-text h3 {
    font-size: 1.5rem;
    color: #343f52;
    margin-bottom: 20px;
}

.content-text p {
    color: #60697b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #60697b;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('images/check-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
}


/* Center Image Section */
.center-image {
    padding: 60px 0;
    background-color: #fff;
}

.image-wrapper {
    max-width: 1000px; /* หรือขนาดที่ต้องการ */
    margin: 0 auto;
    text-align: center;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* ถ้าต้องการให้มีขอบมน */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* ถ้าต้องการให้มีเงา */
}


.btn {
    display: inline-block;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-family: 'Prompt', sans-serif;
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    text-decoration: none;
    text-align: center;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn.th {
    font-weight: var(--font-regular);
    letter-spacing: 0.02em;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #7b28a4;
}

.btn-pink {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-ping);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.btn-pink:hover {
    background-color: #ac1a63;
}

.menu-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 0 auto;
    transition: all 0.3s;
}

.hamburger-menu {
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none; /* ซ่อนปุ่มบนหน้าจอใหญ่ */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu {
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}

/* Media Query */
@media screen and (max-width: 1024px) {
    .mobile-menu {
        display: block; /* แสดงปุ่มบนมือถือ */
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}


/* Latest Projects Section */
.latest-projects {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #343f52;
    line-height: 1.3;
    margin: 0;
}

.section-header .underline {
    position: relative;
    display: inline-block;
}

.section-header .underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.project-image {
    position: relative;
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.expand-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #343f52;
    transition: transform 0.3s ease;
}

.expand-btn:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.25rem;
    color: #343f52;
    margin-bottom: 5px;
}

.project-info .category {
    font-size: 0.875rem;
    color: #60697b;
    text-transform: uppercase;
    margin: 0;
}

.project-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #dee2e6;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Slider Styles */
.slider {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.footer {
    background: linear-gradient(135deg, #dea4fd 0%, #a8daf7 100%);
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col {
    max-width: 800px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* เพิ่ม z-index ให้สูงขึ้น */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none; /* เริ่มต้นซ่อนไว้ */
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-accept:hover {
    background: #7b28a4;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        margin-top: 15px;
    }
    
    .btn-accept {
        width: 100%;
    }
}