/* ตั้งค่าพื้นฐาน */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f5f9f5;
    background-image: linear-gradient(135deg, #f5f9f5 0%, #eefbf3 100%);
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 2rem;
    z-index: 1;
}

.content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    /*background-color: rgba(255, 255, 255, 0.7);*/
    backdrop-filter: blur(10px);
    border-radius: 24px;
    /*box-shadow: 0 10px 30px rgba(46, 122, 106, 0.1);*/
    overflow: hidden;
    padding: 40px;
    transition: all 0.5s ease;
}

.content-row:hover {
    box-shadow: 0 15px 40px rgba(46, 122, 106, 0.15);
    transform: translateY(-5px);
}

/* ส่วนของบริการเช็คสินค้า */
.service-section {
    flex: 1;
    padding: 2rem;
    max-width: 500px;
}

.service-title {
    color: #2e7a6a;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    position: relative;
    display: inline-block;
    width: 100%;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4fd18b, #2e7a6a);
    border-radius: 2px;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 2.5rem;
}

.btn {
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.btn-primary {
    background-color: #4fd18b;
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #3ab776;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* ส่วนของโลโก้ */
.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.logo {
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 209, 139, 0.2) 0%, rgba(79, 209, 139, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-light 5s infinite;
}

@keyframes pulse-light {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

.logo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.tagline {
    font-size: 1.2rem;
    color: #2e7a6a;
    text-align: center;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ส่วนของคลื่นด้านล่าง */
.wave-bottom {
    position: fixed; /* เปลี่ยนจาก absolute เป็น fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FFFFFF" fill-opacity="1" d="M0,96L80,106.7C160,117,320,139,480,133.3C640,128,800,96,960,90.7C1120,85,1280,107,1360,117.3L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0; /* ลด z-index ให้น้อยลง ให้อยู่หลังเนื้อหา */
    pointer-events: none; /* ให้สามารถคลิกผ่านคลื่นได้ */
}

/* วงกลมที่ขยายในพื้นหลัง */
.circles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    z-index: 0;
}

.circle1 {
    width: 600px;
    height: 600px;
    background-color: rgba(79, 209, 139, 0.08);
    bottom: 5%;
    right: 25%;
    animation: pulse 15s infinite;
}

.circle2 {
    width: 500px;
    height: 500px;
    background-color: rgba(58, 183, 118, 0.06);
    bottom: 10%;
    right: 20%;
    animation: pulse 10s infinite 2s;
}

.circle3 {
    width: 400px;
    height: 400px;
    background-color: rgba(46, 122, 106, 0.04);
    bottom: 15%;
    right: 15%;
    animation: pulse 7s infinite 1s;
}

/* เพิ่มวงกลมอีก 2 วง */
.circle4 {
    width: 300px;
    height: 300px;
    background-color: rgba(79, 209, 139, 0.05);
    top: 10%;
    left: 15%;
    animation: pulse 12s infinite 1.5s;
}

.circle5 {
    width: 250px;
    height: 250px;
    background-color: rgba(46, 122, 106, 0.04);
    top: 20%;
    left: 30%;
    animation: pulse 9s infinite 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* รองรับการแสดงผลบนคอมพิวเตอร์ - ขนาดใหญ่ขึ้น */
@media (min-width: 1024px) {
    .content-row {
        max-width: 1200px;
        padding: 60px;
    }
    
    .service-section {
        max-width: 600px;
    }
    
    .service-title {
        font-size: 3.5rem;
        margin-bottom: 3rem;
    }
    
    .button-group {
        margin-top: 3rem;
    }
    
    .btn {
        padding: 1.5rem;
        font-size: 1.5rem;
        min-height: 160px;
    }
    
    .logo-image {
        max-width: 450px;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .circle1 {
        width: 800px;
        height: 800px;
    }
    
    .circle2 {
        width: 650px;
        height: 650px;
    }
    
    .circle3 {
        width: 500px;
        height: 500px;
    }
    
    .wave-bottom {
        height: 200px;
    }
}

/* รองรับการแสดงผลบนอุปกรณ์เคลื่อนที่ */
@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .button-group {
        grid-template-columns: 1fr;
    }
    
    .service-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .service-section {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .logo-image {
        max-width: 250px;
    }
    
    .btn {
        min-height: 100px;
    }
}
/* สไตล์สำหรับไอคอนติดต่อเรา - แบบแนวนอน */
.contact-link {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    display: inline-flex;
    flex-direction: row; /* เปลี่ยนเป็นแนวนอน */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2e7a6a;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.contact-icon i {
    font-size: 1.2rem;
    margin-right: 0.5rem; /* เพิ่มระยะห่างระหว่างไอคอนกับข้อความ */
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icon span {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #4fd18b;
}

.contact-icon:hover i {
    transform: scale(1.2);
}

/* รองรับการแสดงผลบนอุปกรณ์เคลื่อนที่ */
@media (max-width: 768px) {
    .contact-icon i {
        font-size: 1rem;
    }
    
    .contact-icon span {
        font-size: 0.9rem;
    }
}
/* เพิ่มความเฉพาะเจาะจงสูงสุดให้ลิงก์ติดต่อเรา */
.contact-link a,
.contact-link a:link,
.contact-link a:visited,
.contact-link a:hover,
.contact-link a:active {
    color: #2e7a6a !important;
    text-decoration: none !important;
}

.contact-link a:hover {
    color: #4fd18b !important;
}
.contact-green-link {
    color: #2e7a6a !important;
    text-decoration: none !important;
}
