/* คงสไตล์เดิมไว้ */
body {
    margin: 0;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: white;
}

.ivy-font {    
    font-family: 'IvyPresto Display', serif !important;
    font-weight: 200 !important;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ปรับปรุง navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* สไตล์สำหรับ logo */
.logo {
    height: 40px;
}

/* สไตล์สำหรับ nav-links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00aaff;
}

/* สไตล์สำหรับ submenu */
.menu-item {
    position: relative;
    display: inline-block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
}

.menu-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
}

/* สไตล์สำหรับ contact icons */
.contact-icons {
    display: flex;
    gap: 20px;
}

.contact-icons a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.contact-icons a:hover {
    color: #00aaff;
}

.content {
    text-align: center;
    margin-top: 200px;
    position: relative;
    z-index: 1;
}

.content h1 {
    color: #FFF;
    text-align: center;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 72px;
    font-style: normal;
    font-weight: 200;
    line-height: 116.336%;
}

.content_1 {
    text-align: center;
    margin-top: 10vh;
    position: relative;
    z-index: 1;
}

.content_1 h6 {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-weight: 300;
    font-size: 24px;
    margin: 5px 0;
}

/* สไตล์เดิมคงไว้ทั้งหมด และเพิ่มสไตล์ปุ่ม */    
.gradient-button {        
    display: inline-block;        
    padding: 15px 40px;        
    font-size: 18px;        
    font-weight: 500;        
    color: white;        
    text-decoration: none;       
    background: linear-gradient(90deg, #2196F3 0%, #4CAF50 100%);        
    border-radius: 50px;        
    border: none;        
    cursor: pointer;        
    transition: all 0.3s ease;        
    margin-top: 30px;        
    font-family: 'IBM Plex Sans', sans-serif;        
    position: relative;       
    overflow: hidden;    
}    

.gradient-button:hover {        
    transform: translateY(-2px);        
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);    
}    

.gradient-button::before {       
    content: '';        
    position: absolute;        
    top: 0;        
    left: -100%;        
    width: 100%;        
    height: 100%;        
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));        
    transition: 0.5s;    
}    

.gradient-button:hover::before {        
    left: 100%;    
}


.vision-section {
height: 80vh;
width: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-end; /* ชิดขวา */
position: relative;
padding-top: 15vh;
}

.vision-text {
    color: white;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 128px;
    font-weight: 300;
    text-align: right;
    line-height: 1.2;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    padding-right: 12.5%; /* ระยะห่างจากขอบขวา */
}

.vision-text.line1 {
    animation: fadeInUp 1s ease forwards;
}

.vision-text.line2 {
    animation: fadeInUp 1s ease forwards 0.3s; /* delay 0.3s */
}

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

.vision-description {
    position: absolute;
    bottom: 10%; /* ปรับลงมาด้านล่างมากขึ้น */
    left: 12.5%;
    max-width: 800px;
    margin-top: 100vh; /* เพิ่มระยะห่างด้านบน */
}

.vision-description p {
    color: white;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 5px 0;
    opacity: 0;
    transform: translateY(20px);
}

/* ปรับ animation delay ให้สอดคล้องกับการเลื่อนลงมา */
.vision-description p:nth-child(1) {
    animation: fadeInUp 1s ease forwards 1s;
}

.vision-description p:nth-child(2) {
    animation: fadeInUp 1s ease forwards 1.2s;
}

.vision-description p:nth-child(3) {
    animation: fadeInUp 1s ease forwards 1.4s;
}

/* เพิ่มระยะห่างสำหรับ vision-section */
.vision-section {
    margin-top: 15vh; /* ปรับระยะห่างจากส่วนบน */
    padding-bottom: 5vh; /* เพิ่มพื้นที่ด้านล่าง */
}

.driving-force-section {
    min-height: 100vh;
    padding: 30px 12.5% 100px 12.5%; /* เพิ่ม padding-top เป็น 200px */
    position: relative;
    margin-top: 100px; /* เพิ่มระยะห่างด้านบน */
}

.section-title {
    color: white;
    font-size: 96px;
    font-weight: 300;
    margin-bottom: 20px;
    text-align: center;
}

.section-title span{
    color: white;
    font-size: 96px; /* ขนาดใหญ่*/
    font-weight: 500; /* ตัวหนาขึ้น*/
    display: inline-block; /* ช่วยในการจัดการขนาดที่แตกต่าง */
}

.section-description {
    color: white;
    font-size: 24px;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto 80px; /* เพิ่ม margin-bottom */
    line-height: 1.6;
}

/* แก้ไขส่วนของ card-grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding: 0 1.5%;
}

/* แก้ไขส่วนของ card */
/* .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px; /* ทำให้มุมมน */
/*   overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 500px; /* กำหนดความสูงคงที่ */
/*   border: 2px solid;    
    border-image: linear-gradient(90deg, blue, white) 1;
}*/

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px; /* ทำให้มุมมน */
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 420px; /* กำหนดความสูงคงที่ */
    position: relative;
    padding: 20px;
    z-index: 1;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px; /* ขนาดของกรอบ */
    background: linear-gradient(120deg, #BCBDFF, #0A0C9A,#000000);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude; 
    -webkit-mask-composite: destination-out;
    z-index: -1;
}

.card:hover {
    transform: translateY(-5px);
}

/* เพิ่มส่วนของรูปภาพ */
.card-image {
    width: 100%;
    height: 150px;
    /* background: rgba(255, 255, 255, 0.05); */
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* ปรับส่วนของเนื้อหา */
.card-content {
    padding: 0 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: white;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.8;
    flex-grow: 1;
    margin-bottom: 30px; /* เพิ่มระยะห่างด้านล่าง */
}

.future-section {
    margin-top: 5vh;
    padding-top: 15vh;
    min-height: 1000px;
    position: relative;
}

.slider-container {
    margin-top: 13vh;
    width: 100%;
    height: 60vh; /* ลดความสูงเป็น 60vh */
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    user-select: none;
    cursor: grab;
}

.slide {
    width: 33.333%;
    height: 100%;
    padding: 50px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.future-content {
    width: 50%;
    padding-right: 20px;
}

.slide-image {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.future-title-container {
    text-align: center;
    margin-bottom: 50px; /* ลดระยะห่างด้านล่าง */
    padding: 0 2%;
}

.future-title {
    color: white;
    font-size: 96px;
    font-weight: 300;
    line-height: 1.2;
    max-width: 100%;
    margin: 0 auto;
}

.future-title span {
    color: white;
    font-size: 96px;
    font-weight: 600;
    display: inline-block;
}

.future-content {
    width: 100%;
    padding: 0 2%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.future-description {
    color: white;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 40px;
    text-align: left;
    font-weight: 300;
    letter-spacing: 0.02em;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.description-line {
    display: block;
    margin-bottom: 8px;
}

/* Learn More Link */
.learn-more {
    text-decoration: none;
    color: white;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.3s ease;
    margin-left: 0;
}

.learn-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease, background 0.3s ease;
}

.learn-more:hover::after {
    width: 100%;
    background: linear-gradient(90deg, darkblue, lightblue);
}

.arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: white;
}

.learn-more:hover .arrow {
    transform: translateX(5px);
}

/* Navigation Dots */
.slide-dots {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.about-section {
    background: linear-gradient(180deg, #000000 0%, rgba(7, 30, 70, 0.76) 56.21%, rgba(151, 207, 237, 0.13) 100%);
    padding: 150px 20px;
}

.about-title {
    color: white;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    font-size: 96px; /* ขนาดเท่ากับส่วนของวิสัยทัศน์ */
    font-weight: 400; /* ปรับให้บางลง */
    text-align: left; /* ชิดซ้าย */
    margin: 0;
    padding-left: 12.5%; /* ระยะห่างจากขอบซ้าย */
    margin-top: 15vh; /* เว้นระยะหัวข้อ section ลงมาอีก 10vh */
    margin-bottom: 5vh; /* เว้นระยะหัวข้อ section ลงมาอีก 10vh */
}


.about-content {
    text-align: center;
    font-size: 24px;
    line-height: 1.6;
    max-width: 1500px;
    margin: 0 auto;
    color: white;
    padding-top: 20px;
}

.about-content p {
    margin: 0;
    padding: 5px 0;
}

.about-content p:nth-of-type(4) {
    margin-top: 5vh; /* เว้นระยะห่างระหว่างบรรทัด */
}

.about-content .margin-top-5vh,
.contact-content .margin-top-5vh {
    margin-top: 5vh;
}

.about-content .margin-top-10vh,
.contact-content .margin-top-10vh {
    margin-top: 10vh;
}

.margin-top-20vh {
    margin-top: 20vh;
}

.contact-section {
    padding: 0px 20px;
    margin-top: 0vh; /* เพิ่มระยะห่างด้านบน */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    min-height: 100%;
}

.contact-content {
    text-align: center;
    font-size: 24px;
    margin: 0 auto;
    color: white;
    padding-top: 20px;
}

.contact-title {
    font-size: 80px; /* ขนาดหัวข้อเดียวกับ "อนาคตขับเคลื่อน" */
    text-align: center;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 24px;
    text-align: center;
    margin: 5px 0;
}

.contact-button {
    text-align: center;
    margin-top: 2vh;
    position: relative;
    z-index: 1;
}

.footer-section {
    background: linear-gradient(to bottom, #333, #1a1a1a);
    color: #fff;
    padding: 40px 0 0;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-logo {
    width: 300px;
    margin-bottom: 10px;
}

.footer-left p {
    font-weight: bold;
    color: #00aaff;
    margin: 5px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-bottom-left a,
.footer-bottom-right p {
    color: #aaa;
    text-decoration: none;
    margin: 0;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.language-btn.active {
    background-color: #00aaff;
}

.full-width-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-color: transparent;
    padding: 0;
    margin: 0;
}