/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Base responsive styles */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #f1f5f9;
    background: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-wrap: break-word;
    font-weight: 400;
}

/* Make images and embedded content responsive */
img, 
video, 
iframe, 
object, 
embed {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Responsive iframes */
iframe {
    max-width: 100%;
}

/* Responsive typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

/* Responsive images in content */
.content img {
    height: auto;
}

/* Responsive form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Touch-friendly buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.language-switcher {
    margin-left: 15px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001; /* Ensure it stays above other elements */
}

.language-toggle-container {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    min-width: 100px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.language-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.language-btn:active {
    transform: translateY(0);
}

.language-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.language-option {
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.language-option.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.language-option:not(.active):hover {
    opacity: 0.9;
}

.language-separator {
    margin: 0 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
    user-select: none;
}

/* Responsive styles for language switcher */
@media (max-width: 1024px) {
    .language-btn {
        padding: 7px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
        position: static;
    }
    
    .language-btn {
        margin: 0 auto;
        padding: 8px 16px;
        font-size: 0.95rem;
    }
}

/* Ensure language switcher is visible in mobile menu */
.nav-menu.active .language-switcher {
    display: flex;
    margin: 15px auto;
    padding: 0 15px;
    width: 100%;
    max-width: 200px;
}

/* Improve touch targets for mobile */
@media (hover: none) {
    .language-btn {
        padding: 10px 20px;
        min-width: 120px;
    }
    
    .language-option {
        padding: 6px 12px;
        min-width: 40px;
        text-align: center;
    }
}

/* Ensure consistent styling in mobile menu */
.nav-menu.active .language-switcher .language-btn {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Adjust for tablets */
@media (max-width: 1024px) {
    .language-switcher {
        margin-left: 10px;
    }
    
    .nav-menu .language-switcher {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .language-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .language-switcher {
        margin: 10px auto;
        width: 100%;
        justify-content: center;
        position: static;
    }
    
    .nav-menu .language-switcher {
        margin: 10px auto;
        padding: 10px;
    }
    
    .language-btn {
        margin: 0 auto;
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 200px;
    }
    
    .language-option {
        padding: 6px 12px;
    }
}

/* Responsive video embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(30, 60, 114, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* เพิ่มความสูงของ navigation ให้รองรับโลโก้ที่ใหญ่ขึ้น */
    min-height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
    gap: 15px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0; /* ป้องกันไม่ให้โลโก้หดตัว */
}

.nav-logo img {
    height: 70px; /* เพิ่มขนาดโลโก้ให้ใหญ่ขึ้นจากเดิม 50px */
    width: auto;
    max-width: 220px; /* เพิ่มขนาดสูงสุดให้ใหญ่ขึ้นจากเดิม 160px */
    transition: all 0.3s ease;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.4) contrast(1.3);
    flex-shrink: 0; /* ป้องกันไม่ให้ภาพหดตัว */
}

.logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) brightness(1.6) contrast(1.4);
}

.nav-menu {
    display: none; /* Hide menu items by default */
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 100px; /* ปรับตำแหน่งให้ตรงกับความสูงใหม่ของโลโก้ที่ใหญ่ขึ้น */
    left: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.95);
    flex-direction: column;
    align-items: center;
    padding: 30px 0; /* เพิ่ม padding ให้มีช่องว่างมากขึ้น */
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1001;
    height: 100%; /* ให้สูงเท่ากับ container */
}

.nav-item.language-switcher {
    margin: 0;
    height: fit-content; /* ให้ปรับขนาดตามเนื้อหา */
}

.nav-item.language-switcher .language-toggle-container {
    margin: 0;
    height: fit-content;
}

.nav-item {
    position: relative;
    margin: 0 8px;
    display: flex;
    align-items: center;
    height: 100%; /* ให้สูงเท่ากับ container สำหรับ desktop */
}

.nav-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.nav-link.active {
    font-weight: 600;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.hamburger {
    display: block;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    margin-top: -10px; /* ขยับปุ่มขึ้นมากขึ้นเพื่อให้ตรงกับโลโก้ */
    align-self: center; /* จัดกึ่งกลางแนวตั้งกับโลโก้ */
    justify-self: center;
    position: relative;
    transform: translateY(-4px); /* ขยับปุ่มขึ้นเพิ่มเติม */
}

.bar {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: 0.3s;
    border-radius: 2px;
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        width: auto;
        height: auto;
        gap: 0;
    }

    .nav-item {
        margin: 0 4px;
        height: 100%; /* ให้สูงเท่ากับ container สำหรับ desktop */
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .nav-right {
        gap: 15px;
        height: 100%; /* ให้สูงเท่ากับ container */
    }

    .nav-item.language-switcher {
        margin-left: 8px;
        height: fit-content; /* ให้ปรับขนาดตามเนื้อหา */
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px; /* เพิ่มความสูงสำหรับ tablet ให้รองรับโลโก้ที่ใหญ่ขึ้น */
        padding: 0 10px;
        min-height: 70px;
    }

    .nav-logo img {
        height: 65px; /* เพิ่มขนาดโลโก้สำหรับแท็บเล็ตให้ใหญ่ขึ้น */
        max-width: 200px; /* เพิ่มขนาดสูงสุดสำหรับแท็บเล็ต */
        min-height: 65px;
    }

    .nav-menu {
        top: 85px; /* ปรับตำแหน่งให้ตรงกับความสูงใหม่ของโลโก้ที่ใหญ่ขึ้น */
        padding-top: 35px;
    }

    .hamburger {
        padding: 6px;
        margin-top: -9px; /* ขยับปุ่มขึ้นมากขึ้นเพื่อให้ตรงกับโลโก้ */
        align-self: center; /* จัดกึ่งกลางแนวตั้งกับโลโก้ */
        position: relative;
        transform: translateY(-4px); /* ขยับปุ่มขึ้นเพิ่มเติม */
    }

    .bar {
        width: 18px;
        height: 1.5px;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 100%; /* ให้สูงเท่ากับ container */
    }

    .nav-item {
        margin: 12px 0;
        height: auto; /* ให้ปรับขนาดอัตโนมัติสำหรับ mobile */
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 60px; /* เพิ่มความสูงสำหรับมือถือขนาดเล็กให้รองรับโลโก้ที่ใหญ่ขึ้น */
        padding: 0 8px;
        min-height: 60px;
    }

    .nav-logo img {
        height: 55px; /* เพิ่มขนาดโลโก้สำหรับมือถือให้ใหญ่ขึ้น */
        max-width: 180px; /* เพิ่มขนาดสูงสุดสำหรับมือถือ */
        min-height: 55px;
    }

    .nav-menu {
        top: 60px; /* ปรับตำแหน่งให้ตรงกับความสูงใหม่ */
        padding: 25px 0 30px 0;
    }

    .nav-link {
        font-size: 12px;
        padding: 14px 18px;
        min-height: 50px;
    }

    .hamburger {
        padding: 5px;
        margin-top: -8px; /* ขยับปุ่มขึ้นมากขึ้นเพื่อให้ตรงกับโลโก้ */
        align-self: center; /* จัดกึ่งกลางแนวตั้งกับโลโก้ */
        position: relative;
        transform: translateY(-4px); /* ขยับปุ่มขึ้นเพิ่มเติม */
    }

    .bar {
        width: 16px;
        height: 1.5px;
    }

    .nav-right {
        gap: 6px;
        height: 100%; /* ให้สูงเท่ากับ container */
    }

    .nav-item {
        margin: 10px 0;
        height: auto; /* ให้ปรับขนาดอัตโนมัติสำหรับ mobile */
    }

    .hero {
        margin-top: 60px; /* ปรับ margin-top ให้ตรงกับความสูงใหม่ */
        padding-top: 20px;
    }
}

/* Hero Slider Styles */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.05) 0%,
        rgba(6, 182, 212, 0.05) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.slide.active .slide-overlay {
    opacity: 1;
    animation: slideGlow 3s ease-in-out infinite alternate;
}

@keyframes slideGlow {
    0% {
        opacity: 0.6;
        filter: brightness(1);
    }
    100% {
        opacity: 1;
        filter: brightness(1.1);
    }
}

.slider-indicators {
    display: none;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.3s ease;
}

.indicator.active::before {
    width: 8px;
    height: 8px;
}

.indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-nav {
    display: none;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
}

.slider-nav.next {
    right: 30px;
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsive Slider Styles */
@media (max-width: 768px) {
    .slider-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active::before {
        width: 6px;
        height: 6px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-nav.prev {
        left: 15px;
    }

    .slider-nav.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .slider-indicators {
        bottom: 15px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active::before {
        width: 4px;
        height: 4px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Image/HR.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.particle-network {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #2a3a5a;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite linear;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: brightness(1.05);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-text {
    animation: slideInLeft 1s ease-out;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-badge {
    display: inline-block;
    background: rgba(30, 60, 114, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.process-word {
    position: relative;
    display: inline-block;
}

.process-word::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    top: 100%;
    pointer-events: none;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 20px);
    z-index: 3;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2a3a5a;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Enhanced Button Styles for Index Page */

/* ปุ่มหลักใน Hero Section ของหน้าแรก */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.hero-buttons .btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0086b3 100%) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-buttons .btn-primary:hover::before {
    left: 100% !important;
}

.hero-buttons .btn-primary:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5) !important;
}

/* Responsive สำหรับปุ่มในหน้าแรก */
@media (max-width: 768px) {
    .hero-buttons .btn-primary {
        font-size: 1rem !important;
        padding: 16px 35px !important;
        border-radius: 45px !important;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn-primary {
        font-size: 0.95rem !important;
        padding: 14px 30px !important;
        border-radius: 40px !important;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.data-visualization {
    position: relative;
    width: 500px;
    height: 500px;
}

.data-point {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.data-point::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(6, 182, 212, 0.6), 
        rgba(139, 92, 246, 0.6),
        rgba(59, 130, 246, 0.6)
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: all 0.4s ease;
    animation: gradientRotate 3s linear infinite;
    z-index: -1;
}

.data-point::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.9);
    z-index: -1;
}

.data-point:hover::before {
    opacity: 1;
}

.data-point:hover {
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 80px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.data-point:nth-child(1) {
    top: 50px;
    right: 50px;
}

.data-point:nth-child(2) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.data-point:nth-child(3) {
    bottom: 50px;
    right: 50px;
}

.point-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.point-text {
    font-size: 12px;
    color: #a1a1aa;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    color: #3b82f6;
    font-size: 20px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Data Insights Section */
.data-insights {
    padding: 120px 0;
    background: #000000;
    background-image: url('Image/skd-service-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.data-insights::before {
    display: none;
}

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

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.insight-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.insight-card:hover::before {
    left: 100%;
}

.insight-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(255, 255, 255, 0.08);
}

.insight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.insight-card .insight-icon {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insight-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for services section */
@media (max-width: 768px) {
    .data-insights {
        background-attachment: scroll; /* ปิด background-attachment บนมือถือเพื่อประสิทธิภาพที่ดีขึ้น */
        padding: 80px 0;
        min-height: 80vh;
        background-size: cover; /* ยังคงใช้ cover สำหรับมือถือ */
        background-position: center center; /* จัดกึ่งกลางภาพ */
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .insight-card {
        padding: 30px 25px;
    }

    .insight-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .insight-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .data-insights {
        padding: 60px 0;
        min-height: 70vh;
        background-size: cover; /* ยังคงใช้ cover สำหรับมือถือขนาดเล็ก */
        background-position: center center;
        background-attachment: scroll; /* ยืนยันการปิด background-attachment */
    }

    .insights-grid {
        gap: 25px;
        padding: 0 15px;
    }

    .insight-card {
        padding: 25px 20px;
    }

    .insight-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .insight-card h3 {
        font-size: 1.2rem;
    }

    .insight-card p {
        font-size: 0.9rem;
    }
}

.insight-stats {
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: baseline;
    gap: 10px;
}

.stat-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    margin: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

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

.header-text h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.header-text p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.service-details {
    display: flex;
    flex-direction: column;
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 30px 25px 20px;
}

.image-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.image-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 25px;
    background: #f8fafc;
}

.feature-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #0ea5e9;
    font-size: 18px;
}

.feature-text h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #1e293b;
}

.feature-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.service-highlights {
    padding: 25px;
    background: white;
}

.service-highlights h3 {
    color: #1e293b;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #334155;
    font-size: 14px;
}

.highlight-item i {
    color: #10b981;
    margin-right: 10px;
    font-size: 16px;
}

.modal-footer {
    padding: 20px 25px;
    text-align: right;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: #2a3a5a;
    color: white;
    border: none;
}

.modal-footer .btn-outline {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 0;
        max-height: 95vh;
    }
    
    .header-text h2 {
        font-size: 20px;
    }
    
    .header-text p {
        font-size: 14px;
    }
    
    .service-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Button Styles */
.btn-outline {
    background: #2a3a5a;
    border: 2px solid #3b82f6;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    margin-top: 15px;
    width: auto;
    min-width: 140px;
}

.btn-outline:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.feature.btn-outline {
    background: #2a3a5a;
    border: 2px solid #3b82f6;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    width: 100%;
    max-width: 160px;
    align-self: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 2px solid #3b82f6;
}

/* Common styles for all sections */
.skd-cta,
.mashr-section,
.masweb-section,
.masmobile-section,
.biostar-section {
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.skd-cta .container,
.mashr-section .container,
.masweb-section .container,
.masmobile-section .container,
.biostar-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Default image styles for all sections */
.mashr-section img,
.masweb-section img,
.masmobile-section img,
.biostar-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Full width sections */
.skd-cta,
.mashr-section,
.masweb-section,
.masmobile-section,
.biostar-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Remove container padding for full width effect */
.skd-cta .container,
.mashr-section .container,
.masweb-section .container,
.masmobile-section .container,
.biostar-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.skd-cta img,
.mashr-section img,
.masweb-section img,
.masmobile-section img,
.biostar-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.skd-cta img:hover,
.mashr-section img:hover,
.masweb-section img:hover,
.masmobile-section img:hover,
.biostar-section img:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .skd-cta {
        min-height: 400px;
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .skd-cta,
    .mashr-section,
    .masweb-section,
    .masmobile-section,
    .biostar-section {
        min-height: auto;
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .skd-cta .container,
    .mashr-section .container,
    .masweb-section .container,
    .masmobile-section .container,
    .biostar-section .container {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .skd-cta img,
    .mashr-section img,
    .masweb-section img,
    .masmobile-section img,
    .biostar-section img {
        width: 100%;
        height: auto;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .skd-cta,
    .mashr-section,
    .masweb-section,
    .masmobile-section,
    .biostar-section {
        padding: 0;
        margin: 0;
    }
    
    .skd-cta img,
    .mashr-section img,
    .masweb-section img,
    .masmobile-section img,
    .biostar-section img {
        min-height: 200px; /* Ensure images have a minimum height on small devices */
        object-fit: cover;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

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

.services-section .section-header h2 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-section .section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.1);
    border-color: #3b82f6;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: white;
    font-size: 32px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
}

.service-features li {
    color: #475569;
    margin-bottom: 10px;
    font-size: 0.95rem;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.service-features li i {
    color: #3b82f6;
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 0.9em;
}

.service-btn {
    display: block;
    width: 180px;
    margin: 0 auto;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.service-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-section {
        padding: 70px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .services-section .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        padding: 0 15px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .services-section .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #2a2a2a;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    display: inline-block;
}

.stat-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: url('Image/skd-service-banner1.png') center/cover no-repeat;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

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

.services .section-header {
    margin-bottom: 60px;
    margin-top: -20px;
}

.services .section-title {
    color: #ffffff;
}

.services .section-subtitle {
    color: #ffffff;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(255, 255, 255, 0.1);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-card p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.feature-tag {
    background: rgba(42, 82, 152, 0.1);
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Technology Section */
.technology {
    position: relative;
    overflow: hidden;
    background: none;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
/* --- ปิด animation ที่ background, overlay, after ของ Technology section --- */
.technology-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Image/SKD X CTA.png') center/cover no-repeat;
    filter: brightness(0.9) contrast(1.05);
    z-index: 1;
    opacity: 0.9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}
.technology-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}
.technology .container,
.technology-content {
    position: relative;
    z-index: 3;
}
/* Particle effect - removed */
.technology-particles {
    display: none;
}

.technology-background::after {
    display: none;
}

.technology-overlay {
    display: none;
}

.technology .container {
    position: relative;
    z-index: 3;
}

.technology .section-header {
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.technology .section-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.technology .section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
}

.technology-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}
.technology-text, .technology-visual {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 80vh;
}
.technology-features, .tech-images {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    height: 100%;
    align-items: center;
    max-height: 80vh;
}
.tech-feature, .tech-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    margin: 0 auto;
}

.tech-feature {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
}

.tech-feature {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tech-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.tech-feature:hover::before {
    left: 100%;
}

.tech-feature:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.2),
        0 0 20px rgba(6, 182, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(255, 255, 255, 0.1);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #3b82f6);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-feature:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.4);
}

.tech-feature:hover .tech-icon::before {
    opacity: 1;
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.tech-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: center;
    text-align: left;
}

.tech-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tech-feature:hover .tech-info h3 {
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.tech-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.tech-feature:hover .tech-info p {
    color: rgba(255, 255, 255, 0.9);
}

.technology-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-dashboard {
    position: relative;
    width: 400px;
    height: 300px;
}

.dashboard-screen {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.dashboard-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 32px;
    opacity: 0.8;
    transition: opacity 0.4s ease;   
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 20px;
    z-index: 1;
}

.screen-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.dashboard-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e3c72;
    animation: pulse 2s infinite;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    flex: 1;
}

.stat-card {
    background: rgba(30, 60, 114, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Clients Section */
.clients {
    padding: 120px 0;
    background: #1a2a4a;
    position: relative;
    overflow: hidden;
}

/* Main flowing wave background */
.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 1200px 300px at 0% 60%, rgba(59, 130, 246, 0.4) 0%, rgba(6, 182, 212, 0.3) 50%, transparent 100%),
        radial-gradient(ellipse 1000px 250px at 100% 40%, rgba(6, 182, 212, 0.5) 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
    filter: blur(40px);
    animation: flowingWave 20s ease-in-out infinite;
    z-index: 1;
}

/* Particle layer */
.clients::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle 4px at 15% 25%, rgba(59, 130, 246, 0.9) 0%, transparent 50%),
        radial-gradient(circle 2px at 25% 75%, rgba(6, 182, 212, 0.8) 0%, transparent 50%),
        radial-gradient(circle 3px at 45% 35%, rgba(139, 92, 246, 0.7) 0%, transparent 50%),
        radial-gradient(circle 1px at 65% 85%, rgba(59, 130, 246, 0.6) 0%, transparent 50%),
        radial-gradient(circle 2px at 85% 15%, rgba(6, 182, 212, 0.8) 0%, transparent 50%),
        radial-gradient(circle 3px at 75% 65%, rgba(139, 92, 246, 0.9) 0%, transparent 50%),
        radial-gradient(circle 1px at 35% 55%, rgba(59, 130, 246, 0.7) 0%, transparent 50%),
        radial-gradient(circle 2px at 55% 25%, rgba(6, 182, 212, 0.6) 0%, transparent 50%),
        radial-gradient(circle 4px at 5% 85%, rgba(139, 92, 246, 0.8) 0%, transparent 50%),
        radial-gradient(circle 1px at 95% 55%, rgba(59, 130, 246, 0.9) 0%, transparent 50%);
    background-size: 400px 400px, 300px 300px, 500px 500px, 200px 200px, 350px 350px, 450px 450px, 250px 250px, 380px 380px, 320px 320px, 180px 180px;
    animation: particleFlow 30s linear infinite;
    z-index: 2;
}

.clients .container {
    position: relative;
    z-index: 3;
}

/* Additional wave effect for the circle container */
.clients-circle-container {
    position: relative;
}

.clients-circle-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    background: 
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(59, 130, 246, 0.15) 20%, 
            rgba(6, 182, 212, 0.2) 50%, 
            rgba(139, 92, 246, 0.15) 80%, 
            transparent 100%
        );
    filter: blur(60px);
    animation: horizontalWave 25s ease-in-out infinite;
    z-index: 1;
}

.clients-circle {
    position: relative;
    z-index: 2;
}

.clients .section-title {
    color: #ffffff;
}

.clients .section-subtitle {
    color: #a1a1aa;
}

.clients-circle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    min-height: 1000px;
}

.clients-circle {
    position: relative;
    width: 1000px;
    height: 1000px;
    margin: 0 auto;
    transform-origin: center;
}

.client-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform-origin: center center;
    transform: rotate(var(--angle)) translateY(min(50vw, 650px)) rotate(calc(-1 * var(--angle)));
    animation: counterRotate 120s linear infinite;
    will-change: transform;
    z-index: 1;
}

.client-circle-card {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05),
        0 8px 30px rgba(0, 0, 0, 0.08);
}

.client-circle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    border-radius: 50%;
    z-index: -1;
}

.client-circle-card:hover::before {
    opacity: 1;
}

.client-circle-card:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 179, 237, 0.3);
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 80px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Add glowing connection lines between circles */
.clients-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-in-out infinite;
}

.clients-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-in-out infinite 2s;
}

.client-logo-circle {
    max-width: 140px; /* เพิ่มขนาดสูงสุดจากเดิม 100px */
    max-height: 140px; /* เพิ่มขนาดสูงสุดจากเดิม 100px */
    width: auto;
    height: auto;
    filter: brightness(1.4) contrast(1.3) saturate(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    object-fit: contain;
    display: block;
    margin: auto;
    position: relative;
}

.client-logo-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
    animation: logoPulse 3s ease-in-out infinite;
}

.client-logo-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.client-circle-card:hover .client-logo-circle {
    filter: brightness(1.8) contrast(1.6) saturate(1.4) drop-shadow(0 4px 16px rgba(59, 130, 246, 0.5)) hue-rotate(3deg);
    transform: scale(1.25) rotate(2deg);
}

.client-circle-card:hover .client-logo-circle::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.client-circle-card:hover .client-logo-circle::after {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.08);
    animation: logoShimmer 2.5s ease-in-out infinite;
}

/* Center logo container - positioned absolutely in the center of the parent */
.clients-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    z-index: 10;
    pointer-events: none;
}

/* Center logo wrapper - creates the circular background */
.center-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite, float 6s ease-in-out infinite;
}

/* The actual logo image */
.center-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: block;
}

/* Hover effect */
.center-logo:hover .center-logo-img {
    transform: scale(1.1);
}

/* Orbit animation */
@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(calc(450px - 90px)) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(calc(450px - 90px)) rotate(-360deg);
    }
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Animations for circular layout */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes counterRotate {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(min(80vw, 400px)) rotate(calc(-1 * var(--angle)));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateY(min(80vw, 400px)) rotate(calc(-1 * (var(--angle) + 360deg)));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: #1a2a4a;
}

.contact .section-title {
    color: #ffffff;
}

.contact .section-subtitle {
    color: #a1a1aa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-details p {
    color: #a1a1aa;
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.insight-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a1a1aa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* SKD Activities Section */
.activities {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.activities .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.activities .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;  /* White text for better visibility */
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.activities .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2b6cb0, #4299e1);
    border-radius: 2px;
}

.activities .section-subtitle {
    color: #e2e8f0;  /* Light gray text for better visibility on gradient */
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 1.5rem;
}

.activity-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.activity-image {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio (height/width = 2/3 = 0.6666) */
    overflow: hidden;
    background: #e2e8f0; /* Fallback background color */
}

.activity-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 54, 93, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.activity-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.activity-overlay p {
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.btn-more {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s, background 0.3s ease;
}

.activity-card:hover .activity-overlay h3,
.activity-card:hover .activity-overlay p,
.activity-card:hover .btn-more {
    transform: translateY(0);
}

.btn-more:hover {
    background: #3182ce;
    transform: translateY(0) scale(1.05);
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-container .btn-primary {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(90deg, #2b6cb0, #4299e1);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.view-all-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .activities {
        padding: 3rem 1rem;
    }
    
    .activities .section-title {
        font-size: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .activity-image {
        padding-top: 75%; /* Slightly taller aspect ratio on mobile */
    }
}

@media (max-width: 480px) {
    .activities .section-title {
        font-size: 1.75rem;
    }
    
    .activities .section-subtitle {
        font-size: 1rem;
    }
    
    .activity-overlay {
        padding: 1.5rem;
    }
    
    .activity-overlay h3 {
        font-size: 1.3rem;
    }
    
    .activity-overlay p {
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background: #111111;
    color: #a1a1aa;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 45px; /* เพิ่มขนาดโลโก้ใน footer ให้ใหญ่ขึ้น */
    width: auto;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #a1a1aa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #2a3a5a;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: #3b82f6;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #71717a;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-20px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0) scaleY(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-20px) scaleY(1.1);
        opacity: 0.4;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(30px) translateY(-30px);
    }
    66% {
        transform: translateX(-20px) translateY(20px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes gradientWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 200% 50%;
    }
    75% {
        background-position: 300% 50%;
    }
}

@keyframes particleWave {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    25% {
        transform: translateX(50px) translateY(-30px);
        opacity: 1;
    }
    50% {
        transform: translateX(100px) translateY(20px);
        opacity: 0.6;
    }
    75% {
        transform: translateX(150px) translateY(-10px);
        opacity: 0.9;
    }
    100% {
        transform: translateX(200px) translateY(0);
        opacity: 0.8;
    }
}

@keyframes flowingWave {
    0%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-50px) scaleX(1.1);
        opacity: 0.6;
    }
}

@keyframes particleFlow {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.9;
    }
    25% {
        transform: translateX(100px) translateY(-50px);
        opacity: 0.7;
    }
    50% {
        transform: translateX(200px) translateY(30px);
        opacity: 1;
    }
    75% {
        transform: translateX(300px) translateY(-20px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(400px) translateY(0);
        opacity: 0.9;
    }
}

@keyframes horizontalWave {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-50%) translateX(-30px);
        opacity: 0.25;
    }
}

@keyframes techFlow {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.4;
    }
    25% {
        transform: translateX(20px) translateY(-10px);
        opacity: 0.6;
    }
    50% {
        transform: translateX(40px) translateY(10px);
        opacity: 0.3;
    }
    75% {
        transform: translateX(60px) translateY(-5px);
        opacity: 0.5;
    }
    100% {
        transform: translateX(80px) translateY(0);
        opacity: 0.4;
    }
}

@keyframes particleTech {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    25% {
        transform: translateX(30px) translateY(-20px);
        opacity: 1;
    }
    50% {
        transform: translateX(60px) translateY(15px);
        opacity: 0.6;
    }
    75% {
        transform: translateX(90px) translateY(-10px);
        opacity: 0.9;
    }
    100% {
        transform: translateX(120px) translateY(0);
        opacity: 0.8;
    }
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.6;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
}

@keyframes tunnelFlow {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-20px) scaleX(1.05);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.8;
    }
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) rotate(0deg);
        filter: brightness(0.8) contrast(1.2) saturate(1.3);
    }
    50% {
        transform: scale(1.05) rotate(0.5deg);
        filter: brightness(0.9) contrast(1.3) saturate(1.4);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(0.8) contrast(1.2) saturate(1.3);
    }
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 0.8;
        background: 
            linear-gradient(135deg, rgba(10,26,31,0.6) 0%, rgba(21,48,75,0.5) 50%, rgba(6,182,212,0.3) 100%),
            radial-gradient(circle at 30% 70%, rgba(59,130,246,0.2) 0%, transparent 50%),
            radial-gradient(circle at 70% 30%, rgba(6,182,212,0.2) 0%, transparent 50%);
    }
    50% {
        opacity: 0.9;
        background: 
            linear-gradient(135deg, rgba(10,26,31,0.5) 0%, rgba(21,48,75,0.4) 50%, rgba(6,182,212,0.4) 100%),
            radial-gradient(circle at 30% 70%, rgba(59,130,246,0.3) 0%, transparent 50%),
            radial-gradient(circle at 70% 30%, rgba(6,182,212,0.3) 0%, transparent 50%);
    }
}

@keyframes techGlow {
    0% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
    }
}

@keyframes iconGlow {
    0% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
    }
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes logoShimmer {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.08) rotate(180deg);
    }
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

/* Responsive Design */
@media (min-width: 1200px) {
    .technology-background::before,
    .technology-mashr .technology-background::before,
    .technology-masweb .technology-background::before,
    .technology-biostar .technology-background::before,
    .technology-masmobile .technology-background::before {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        object-fit: cover;
    }
    
    .technology {
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Responsive styles for Our Partners section */
@media (max-width: 1024px) {
    .clients-circle {
        transform: scale(0.85);
        max-width: 95%;
        margin: 1rem auto 2rem;
    }
    
    .clients-center {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .clients-circle {
        position: relative;
        width: 100%;
        max-width: 100vw;
        height: auto;
        aspect-ratio: 1/1;
        margin: 0 auto;
        transform: scale(0.8);
    }
    
    .clients-center {
        width: 140px;
        height: 140px;
    }
    
    .clients-circle-container {
        overflow: visible;
        padding: 30px 0;
        position: relative;
    }
    
    .client-item {
        --item-size: 70px;
        width: var(--item-size);
        height: var(--item-size);
    }
    
    .clients-center {
        width: 120px;
        height: 120px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .client-circle-card {
        width: 100%;
        height: 100%;
        padding: 8px;
    }
    
    .client-logo-circle {
        max-width: 100%;
        height: auto;
    }
    
    .clients-center {
        width: 120px;
        height: 120px;
    }
    
    .center-logo-img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .clients-circle {
        transform: scale(0.9);
        margin: 0 auto;
        max-width: 100vw;
        padding: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .clients-circle-container {
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    
    .clients-center {
        width: 120px;
        height: 120px;
    }
    
    .client-item {
        --item-size: 60px;
    }
    
    .clients-center {
        width: 60px;
        height: 60px;
    }
    
    .center-logo-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Original 480px media query */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 13px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-card {
        padding: 30px 20px;
        min-height: 100px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .technology-content {
        flex-direction: column;
        gap: 16px;
        min-height: 50vh;
    }
    .technology-text, .technology-visual {
        align-items: center;
        max-height: 50vh;
    }
    .technology-features, .tech-images {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        max-height: 50vh;
    }
    .tech-feature, .tech-img {
        width: 100%;
        max-width: 200px;
        height: 140px;
        min-height: 140px;
    }
    
    .technology .section-title {
        font-size: 2rem;
    }
    
    .technology .section-subtitle {
        font-size: 0.9rem;
    }
    
    .tech-dashboard {
        width: 300px;
        height: 250px;
    }
    
    .dashboard-screen {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .tech-feature {
        padding: 12px;
        gap: 10px;
    }
    
    .tech-info h3 {
        font-size: 0.9rem;
    }
    
    .tech-info p {
        font-size: 0.75rem;
    }
    
    /* ปรับ background ให้พอดีกับหน้าจอขนาดเล็กมาก */
    .technology-background::before,
    .technology-mashr .technology-background::before,
    .technology-masweb .technology-background::before,
    .technology-biostar .technology-background::before,
    .technology-masmobile .technology-background::before {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        object-fit: cover;
        transform: scale(1.1);
    }
    
    .technology {
        min-height: 100vh;
        padding: 50px 0;
        width: 100vw;
        overflow-x: hidden;
    }
    
    /* ปรับ container ให้พอดีกับหน้าจอ */
    .technology .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* ปรับ content ให้พอดีกับหน้าจอ */
    .technology-content {
        max-width: 100%;
        padding: 0 10px;
    }
}

.tech-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 0;
    height: 100%;
    position: relative;
}

.tech-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tech-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.tech-img:hover::before {
    left: 100%;
}

.tech-img:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 
        0 20px 60px rgba(6, 182, 212, 0.2),
        0 8px 24px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(255, 255, 255, 0.15);
    filter: brightness(1.05) contrast(1.05);
}
@media (max-width: 1100px) {
    .technology-content {
        flex-direction: column;
        gap: 24px;
        max-width: 98vw;
        min-height: 70vh;
    }
    .technology-text, .technology-visual {
        align-items: center;
        max-height: 70vh;
    }
    .technology-features, .tech-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        max-height: 70vh;
    }
    .tech-img {
        max-width: 280px;
        height: 180px;
        margin: 0 auto;
    }
    
    .tech-feature {
        max-width: 280px;
        height: 180px;
        padding: 20px;
        gap: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .technology .section-title {
        font-size: 2.5rem;
    }
    
    .tech-icon {
        flex-shrink: 0;
        margin-top: 0;
    }
    
    .tech-info h3 {
        font-size: 1.1rem;
    }
    
    .tech-info p {
        font-size: 0.85rem;
    }
    
    .tech-info {
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    
    /* ปรับ background ให้พอดีกับหน้าจอ */
    .technology-background::before,
    .technology-mashr .technology-background::before,
    .technology-masweb .technology-background::before,
    .technology-biostar .technology-background::before,
    .technology-masmobile .technology-background::before {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }
}
@media (max-width: 600px) {
    .technology-content {
        flex-direction: column;
        gap: 16px;
        min-height: 60vh;
    }
    .technology-features, .tech-images {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        max-height: 60vh;
    }
    .tech-feature, .tech-img {
        width: 100%;
        max-width: 240px;
        height: 160px;
        min-height: 160px;
    }
    
    .technology .section-title {
        font-size: 2rem;
    }
    
    .technology .section-subtitle {
        font-size: 0.9rem;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-top: 0;
    }
    
    .tech-feature {
        padding: 16px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tech-info {
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }
    
    .tech-info h3 {
        font-size: 1rem;
    }
    
    .tech-info p {
        font-size: 0.8rem;
    }
    
    /* ปรับ background ให้พอดีกับหน้าจอขนาดเล็ก */
    .technology-background::before,
    .technology-mashr .technology-background::before,
    .technology-masweb .technology-background::before,
    .technology-biostar .technology-background::before,
    .technology-masmobile .technology-background::before {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        object-fit: cover;
    }
    
    .technology {
        min-height: 100vh;
        padding: 60px 0;
        width: 100vw;
        overflow-x: hidden;
    }
    
    /* ปรับ container ให้พอดีกับหน้าจอ */
    .technology .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Specific Technology Section Background Images */
.technology-mashr .technology-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Image/Mashr.png') center/cover no-repeat;
    filter: brightness(0.9) contrast(1.05);
    z-index: 1;
    opacity: 0.9;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.technology-masweb .technology-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Image/Masweb.png') center/cover no-repeat;
    filter: brightness(0.9) contrast(1.05);
    z-index: 1;
    opacity: 0.9;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.technology-biostar .technology-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Image/Biostar.png') center/cover no-repeat;
    filter: brightness(0.9) contrast(1.05);
    z-index: 1;
    opacity: 0.9;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.technology-masmobile .technology-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('Image/Masmobile.png') center/cover no-repeat;
    filter: brightness(0.9) contrast(1.05);
    z-index: 1;
    opacity: 0.9;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}