:root {
            --primary-white: #ffffff;
            --off-white: #fafbfc;
            --light-gray: #f6f8fa;
            --medium-gray: #6e7781;
            --dark-gray: #1f2328;
            --accent-blue: #0969da;
            --hover-blue: #0860ca;
            --accent-purple: #8250df;
            --accent-gradient: linear-gradient(135deg, #0969da 0%, #7c3aed 50%, #a855f7 100%);
            --border-color: #d0d7de;
            --shadow-sm: 0 1px 3px rgba(31, 35, 40, 0.12);
            --shadow-md: 0 8px 24px rgba(31, 35, 40, 0.12);
            --shadow-lg: 0 16px 48px rgba(31, 35, 40, 0.18);
        }

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

        body {
            font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--primary-white);
            color: var(--dark-gray);
            line-height: 1.6;
            overflow-x: hidden;
        }

        body[data-lang="zh"] {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        body[data-lang="ja"] {
            font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.5px;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .nav-menu .lang-switcher {
            display: flex;
        }

        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            color: var(--dark-gray);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a:hover {
            color: var(--accent-blue);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-blue);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Enhanced Language Switcher */
        .lang-switcher {
            position: relative;
        }

        .lang-current {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--light-gray);
            border: 1px solid transparent;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            font-weight: 500;
            color: var(--dark-gray);
        }

        .lang-current:hover {
            background: white;
            border-color: var(--border-color);
            box-shadow: var(--shadow-sm);
        }

        .lang-current .arrow {
            font-size: 10px;
            margin-left: 4px;
            transition: transform 0.3s;
        }

        .lang-switcher.active .lang-current .arrow {
            transform: rotate(180deg);
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s;
            min-width: 200px;
            padding: 8px;
            z-index: 1001;
        }

        .lang-switcher.active .lang-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            color: var(--dark-gray);
        }

        .lang-option:hover {
            background: var(--light-gray);
        }

        .lang-option.active {
            background: linear-gradient(135deg, rgba(9, 105, 218, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
            color: var(--accent-blue);
        }

        .lang-option .lang-info {
            flex: 1;
        }

        .lang-option .lang-name {
            font-weight: 500;
            font-size: 15px;
            display: block;
        }

        .lang-option .check {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-blue);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .lang-option.active .check {
            opacity: 1;
        }

        /* Navigation Actions (Language + Login) */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .login-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
            font-family: 'IBM Plex Sans Thai', sans-serif;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(9, 105, 218, 0.4);
        }

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

        .login-btn svg {
            flex-shrink: 0;
        }

        .mobile-menu-btn {
            display: none;
            flex-direction: column;
            gap: 6px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 1001;
            position: relative;
        }

        .mobile-menu-btn span {
            width: 26px;
            height: 3px;
            background: var(--dark-gray);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
            border-radius: 2px;
        }

        .mobile-menu-btn.active span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            opacity: 0;
            transform: scale(0);
        }

        .mobile-menu-btn.active span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        /* Overlay backdrop */
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
            z-index: 996;
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        .mobile-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 60px 32px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            z-index: 997;
        }

        .mobile-nav.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0;
            max-width: 500px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .mobile-nav li {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        .mobile-nav li:last-child {
            border-bottom: none;
        }

        .mobile-nav.active li {
            opacity: 1;
            transform: translateY(0);
        }

        .mobile-nav.active li:nth-child(1) { transition-delay: 0.05s; }
        .mobile-nav.active li:nth-child(2) { transition-delay: 0.1s; }
        .mobile-nav.active li:nth-child(3) { transition-delay: 0.15s; }
        .mobile-nav.active li:nth-child(4) { transition-delay: 0.2s; }
        .mobile-nav.active li:nth-child(5) { transition-delay: 0.25s; }
        .mobile-nav.active li:nth-child(6) { transition-delay: 0.3s; }
        .mobile-nav.active li:nth-child(7) { transition-delay: 0.35s; }

        .mobile-nav a {
            color: var(--dark-gray);
            text-decoration: none;
            font-size: 24px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            letter-spacing: -0.5px;
        }

        .mobile-nav a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-nav a::after {
            content: '→';
            font-size: 24px;
            color: var(--accent-blue);
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-nav a:active {
            color: var(--accent-blue);
            padding-left: 24px;
        }

        .mobile-nav a:active::before {
            width: 4px;
        }

        .mobile-nav a:active::after {
            opacity: 1;
            transform: translateX(0);
        }

        /* Touch-friendly tap highlight */
        @media (hover: none) and (pointer: coarse) {
            .mobile-nav a {
                -webkit-tap-highlight-color: transparent;
            }
        }

        /* Hero Section */
        .hero {
            margin-top: 60px;
            background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #db2777 100%);
            padding: 100px 24px 80px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
            animation: floatDots 8s ease-in-out infinite;
            z-index: 0;
        }

        .ripple-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .wave-svg {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 200px;
        }

        .wave-1 {
            animation: waveMove1 12s linear infinite;
            opacity: 0.8;
        }

        .wave-2 {
            animation: waveMove2 18s linear infinite;
            opacity: 0.6;
            animation-delay: -2s;
        }

        .wave-3 {
            animation: waveMove3 15s linear infinite;
            opacity: 0.7;
            animation-delay: -4s;
        }

        .ripple {
            display: none;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: -100%;
            width: 300%;
            height: 100%;
            background: 
                linear-gradient(to right,
                    transparent 0%,
                    rgba(255, 255, 255, 0.03) 25%,
                    transparent 50%,
                    rgba(255, 255, 255, 0.03) 75%,
                    transparent 100%
                );
            animation: waveFlow 15s linear infinite;
            pointer-events: none;
            z-index: 1;
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

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

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            color: white;
            margin-bottom: 28px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .hero h1 {
            font-size: clamp(36px, 6vw, 64px);
            font-weight: 700;
            letter-spacing: -3px;
            line-height: 1;
            margin-bottom: 32px;
            color: white;
        }

        .hero .subtitle {
            font-size: clamp(18px, 3vw, 24px);
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 40px;
            font-weight: 300;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-description {
            font-size: clamp(18px, 2.5vw, 22px);
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.8);
            max-width: 800px;
            margin: 0 auto 40px;
        }

        .hero-description .gradient-text {
            background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f0abfc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline;
            font-weight: 600;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 60px;
        }

        .hero-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin-bottom: 48px;
        }

        .hero-stat-card {
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 20px;
            padding: 32px 24px;
            text-align: center;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .hero-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .hero-stat-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-blue);
            box-shadow: 0 12px 24px rgba(9, 105, 218, 0.1);
        }

        .hero-stat-card:hover::before {
            transform: scaleX(1);
        }

        .hero-stat-number {
            font-size: 42px;
            font-weight: 800;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            line-height: 1;
        }

        .hero-stat-label {
            font-size: 14px;
            color: var(--medium-gray);
            font-weight: 500;
        }

        .hero-industries-section {
            text-align: center;
        }

        .hero-industries-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--medium-gray);
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .hero-industries-grid {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .hero-industry-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            color: var(--dark-gray);
            transition: all 0.3s;
        }

        .hero-industry-item:hover {
            border-color: var(--accent-blue);
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(9, 105, 218, 0.1);
        }

        .hero-industry-icon {
            font-size: 20px;
        }

        .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease-out 0.3s backwards;
        }

        .btn {
            padding: 14px 32px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--accent-gradient);
            color: white;
            box-shadow: var(--shadow-md);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-secondary {
            background: white;
            color: var(--accent-blue);
            border: 2px solid var(--border-color);
        }

        .btn-secondary:hover {
            border-color: var(--accent-blue);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        /* Stats Section */
        .stats {
            padding: 40px 24px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            position: relative;
            overflow: hidden;
        }

        .stats::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 50%, transparent 100%);
            opacity: 0.3;
        }

        .stats-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .stat-item {
            background: white;
            padding: 24px 28px;
            border-radius: 20px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(9, 105, 218, 0.1);
            position: relative;
            overflow: hidden;
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(9, 105, 218, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
            opacity: 0;
            transition: opacity 0.4s;
            z-index: 0;
        }

        .stat-item:hover::before {
            opacity: 1;
        }

        .stat-item:hover {
            transform: translateY(-6px) scale(1.02);
            border-color: var(--accent-blue);
            box-shadow: 0 12px 40px rgba(9, 105, 218, 0.15);
        }

        .stat-number {
            font-size: clamp(32px, 5vw, 44px);
            font-weight: 700;
            background: linear-gradient(135deg, #0969da 0%, #7c3aed 70%, #a855f7 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            letter-spacing: -1.5px;
            position: relative;
            z-index: 1;
            line-height: 1.2;
        }

        .stat-label {
            font-size: 14px;
            color: var(--medium-gray);
            font-weight: 500;
            position: relative;
            z-index: 1;
            line-height: 1.4;
        }

        /* About Us Section */
        .about {
            padding: 100px 24px;
            background: var(--light-gray);
        }

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

        .about-content {
            margin-top: 60px;
        }

        .about-story {
            background: white;
            padding: 60px;
            border-radius: 24px;
            margin-bottom: 60px;
            box-shadow: var(--shadow-md);
            border: 2px solid transparent;
            transition: all 0.3s;
        }

        .about-story:hover {
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .story-grid {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 40px;
            align-items: start;
        }

        .story-icon-large {
            width: 120px;
            height: 120px;
            background: var(--accent-gradient);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
            box-shadow: var(--shadow-md);
            flex-shrink: 0;
        }

        .story-content h3 {
            font-size: 36px;
            font-weight: 700;
            letter-spacing: -1px;
            margin-bottom: 24px;
            color: var(--dark-gray);
        }

        .story-content p {
            font-size: 17px;
            line-height: 1.8;
            color: var(--medium-gray);
            margin-bottom: 20px;
        }

        .story-content p:last-child {
            margin-bottom: 0;
        }

        /* Timeline */
        .timeline {
            position: relative;
            padding: 40px 0;
            margin-bottom: 60px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent-gradient);
            border-radius: 2px;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 60px;
            display: flex;
            justify-content: center;
        }

        .timeline-item:last-child {
            margin-bottom: 0;
        }

        .timeline-year {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 100px;
            background: white;
            border: 4px solid transparent;
            background-image: linear-gradient(white, white), var(--accent-gradient);
            background-origin: border-box;
            background-clip: padding-box, border-box;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
            z-index: 2;
            transition: all 0.3s;
        }

        .timeline-year:hover {
            transform: translateX(-50%) scale(1.1);
            box-shadow: var(--shadow-lg), 0 0 30px rgba(9, 105, 218, 0.3);
        }

        .timeline-item.highlight .timeline-year {
            background-image: var(--accent-gradient), var(--accent-gradient);
            color: white;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: var(--shadow-lg), 0 0 0 0 rgba(9, 105, 218, 0.7);
            }
            50% {
                box-shadow: var(--shadow-lg), 0 0 0 20px rgba(9, 105, 218, 0);
            }
        }

        .timeline-content-wrapper {
            width: 100%;
            display: flex;
            justify-content: center;
            padding-top: 120px;
        }

        .timeline-content {
            width: 90%;
            max-width: 600px;
            background: white;
            padding: 32px;
            border-radius: 20px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s;
            border: 2px solid transparent;
        }

        .timeline-content:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
            border-color: var(--accent-blue);
        }

        .timeline-content h4 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--dark-gray);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .timeline-content h4::before {
            content: '●';
            color: var(--accent-blue);
            font-size: 12px;
        }

        .timeline-content p {
            font-size: 16px;
            color: var(--medium-gray);
            line-height: 1.7;
        }

        /* Mission Vision */
        .mission-vision {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .mv-card {
            background: white;
            padding: 32px 24px;
            border-radius: 20px;
            transition: all 0.3s;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .mv-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
            transform: scaleX(0);
            transition: transform 0.4s;
        }

        .mv-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .mv-card:hover::before {
            transform: scaleX(1);
        }

        .mv-icon {
            width: 64px;
            height: 64px;
            background: var(--accent-gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin: 0 auto 20px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s;
        }

        .mv-card:hover .mv-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .mv-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--dark-gray);
        }

        .mv-card p {
            font-size: 14px;
            color: var(--medium-gray);
            line-height: 1.6;
        }

        /* Tech Stack Section */
        .tech-stack {
            padding: 100px 24px;
            background: var(--dark-gray);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .tech-stack::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(130, 80, 223, 0.15) 0%, transparent 70%);
            pointer-events: none;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            z-index: 1;
        }

        .section-header h2 {
            font-size: clamp(36px, 6vw, 52px);
            font-weight: 700;
            letter-spacing: -1.5px;
            margin-bottom: 16px;
        }

        .section-header p {
            font-size: clamp(16px, 3vw, 21px);
            color: var(--medium-gray);
            max-width: 600px;
            margin: 0 auto;
        }

        .tech-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 24px;
            position: relative;
            z-index: 1;
        }

        .tech-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 32px 24px;
            text-align: center;
            transition: all 0.3s;
        }

        .tech-card:hover {
            transform: translateY(-8px);
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--accent-blue);
            box-shadow: 0 16px 32px rgba(9, 105, 218, 0.2);
        }

        .tech-icon {
            font-size: 48px;
            margin-bottom: 16px;
            filter: grayscale(0);
        }

        .tech-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .tech-type {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.6);
            font-weight: 400;
        }

        /* Process Section */
        .process {
            padding: 100px 24px;
            background: var(--light-gray);
        }

        .process-grid {
            max-width: 1200px;
            margin: 60px auto 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 24px;
        }

        .process-card {
            background: white;
            border-radius: 20px;
            padding: 40px 32px;
            transition: all 0.4s;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .process-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: var(--accent-gradient);
            transform: scaleX(0);
            transition: transform 0.4s;
            transform-origin: left;
        }

        .process-card:hover {
            transform: translateY(-12px);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .process-card:hover::before {
            transform: scaleX(1);
        }

        .process-number {
            width: 60px;
            height: 60px;
            background: var(--accent-gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 700;
            color: white;
            margin-bottom: 24px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s;
        }

        .process-card:hover .process-number {
            transform: scale(1.1) rotate(5deg);
            box-shadow: var(--shadow-md);
        }

        .process-title-en {
            font-size: 12px;
            color: var(--accent-blue);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .process-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--dark-gray);
        }

        .process-description {
            font-size: 15px;
            color: var(--medium-gray);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .process-tasks {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .process-tasks li {
            font-size: 14px;
            color: var(--medium-gray);
            margin-bottom: 10px;
            padding-left: 24px;
            position: relative;
            line-height: 1.6;
        }

        .process-tasks li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--accent-blue);
            font-weight: 700;
            font-size: 16px;
        }

        .process-tasks li:last-child {
            margin-bottom: 0;
        }

        /* Services Section */
        .services {
            padding: 100px 24px;
            background: white;
        }

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

        .service-card {
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 24px;
            padding: 40px 32px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--accent-gradient);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .service-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card h3 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark-gray);
        }

        .service-card .service-subtitle {
            font-size: 13px;
            color: var(--accent-blue);
            margin-bottom: 16px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .service-card p {
            font-size: 15px;
            color: var(--medium-gray);
            line-height: 1.7;
            margin-bottom: 0;
        }

        /* Portfolio Section */
        .portfolio {
            padding: 100px 24px;
            background: var(--light-gray);
        }

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

        .portfolio-item {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .portfolio-item:hover {
            transform: translateY(-8px);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .portfolio-image {
            width: 100%;
            height: 220px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
            position: relative;
            overflow: hidden;
        }

        .portfolio-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
        }

        .portfolio-content {
            padding: 28px;
        }

        .portfolio-content h3 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .portfolio-subtitle {
            font-size: 13px;
            color: var(--accent-blue);
            font-weight: 500;
            margin-bottom: 12px;
        }

        .portfolio-content p {
            font-size: 14px;
            color: var(--medium-gray);
            line-height: 1.6;
        }

        /* Industries Section */
        .industries {
            padding: 100px 24px;
            background: white;
        }

        .industries-container {
            max-width: 1200px;
            margin: 60px auto 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .industry-card {
            background: white;
            padding: 32px 28px;
            border-radius: 20px;
            border: 2px solid var(--border-color);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
            overflow: hidden;
        }

        .industry-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .industry-card:hover {
            transform: translateY(-6px);
            border-color: var(--accent-blue);
            box-shadow: var(--shadow-lg);
        }

        .industry-card:hover::before {
            transform: scaleX(1);
        }

        .industry-icon-box {
            width: 56px;
            height: 56px;
            min-width: 56px;
            background: var(--light-gray);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            transition: all 0.3s;
        }

        .industry-card:hover .industry-icon-box {
            background: var(--accent-gradient);
            transform: scale(1.1) rotate(5deg);
        }

        .industry-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--dark-gray);
            line-height: 1.4;
        }

        /* Contact Section */
        .contact {
            padding: 100px 24px;
            background: white;
        }

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

        .contact-container h2 {
            font-size: clamp(36px, 6vw, 48px);
            font-weight: 700;
            letter-spacing: -1.5px;
            margin-bottom: 16px;
            text-align: center;
        }

        .contact-container > .section-header > p {
            font-size: 18px;
            color: var(--medium-gray);
            margin-bottom: 60px;
            text-align: center;
        }

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

        .contact-left {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

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

        .contact-info-item {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .contact-icon-wrapper {
            width: 56px;
            height: 56px;
            min-width: 56px;
            background: var(--accent-gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            box-shadow: 0 4px 12px rgba(9, 105, 218, 0.2);
        }

        .contact-info-content h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark-gray);
        }

        .contact-info-content p {
            font-size: 15px;
            color: var(--medium-gray);
            line-height: 1.7;
            margin-bottom: 4px;
        }

        .contact-info-content a {
            color: var(--accent-blue);
            text-decoration: none;
            transition: color 0.3s;
        }

        .contact-info-content a:hover {
            color: var(--hover-blue);
            text-decoration: underline;
        }

        .map-container {
            width: 100%;
            height: 400px;
            border-radius: 24px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            box-shadow: var(--shadow-md);
        }

        .map-container iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }

        .contact-right {
            background: var(--light-gray);
            border-radius: 32px;
            padding: 48px;
            border: 2px solid var(--border-color);
        }

        .contact-right h3 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--dark-gray);
        }

        .contact-right .subtitle {
            font-size: 16px;
            color: var(--medium-gray);
            margin-bottom: 32px;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            text-align: left;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--dark-gray);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 16px 18px;
            border: 2px solid var(--border-color);
            border-radius: 14px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.3s;
            background: white;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
        }

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

        /* Footer */
        footer {
            background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 100%);
            color: white;
            padding: 60px 24px 24px;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent-gradient);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 48px;
        }

        .footer-section h4 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 24px;
            letter-spacing: -0.3px;
            color: white;
        }

        .footer-logo {
            font-size: 28px;
            font-weight: 700;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
        }

        .footer-description {
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 24px;
            max-width: 350px;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 14px;
        }

        .footer-section a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 14px;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .footer-section a:hover {
            color: white;
            transform: translateX(4px);
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 32px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.5);
            flex-wrap: wrap;
            gap: 16px;
        }

        .footer-links {
            display: flex;
            gap: 24px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: white;
        }

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

        @keyframes subtlePulse {
            0%, 100% {
                box-shadow: 0 8px 24px rgba(9, 105, 218, 0.2);
            }
            50% {
                box-shadow: 0 8px 24px rgba(9, 105, 218, 0.35);
            }
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .timeline::before {
                left: 50%;
            }

            .process-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            .stat-item {
                padding: 20px 24px;
            }
        }

        @media (max-width: 768px) {
            /* Reduce nav container padding on mobile */
            .nav-container {
                padding: 0 16px;
                gap: 8px;
            }
            
            /* Hide desktop navigation */
            .nav-links {
                display: none;
            }

            /* Show language switcher and mobile menu button */
            .lang-switcher {
                display: flex !important;
                position: relative;
                margin-right: 4px !important;
                margin-left: auto;
                z-index: 1001;
            }

            /* Show mobile menu button */
            .mobile-menu-btn {
                display: flex;
                position: relative;
                z-index: 1001;
            }

            .mobile-nav,
            .mobile-nav-overlay {
                display: block;
            }

            .mobile-nav {
                z-index: 998;
            }

            /* Language Switcher Mobile - Show text like desktop */
            .lang-switcher {
                display: flex !important;
                position: relative;
                margin-right: 4px !important;
                margin-left: 0;
                z-index: 1001;
            }

            .lang-current {
                padding: 6px 12px;
                border-radius: 12px;
                background: var(--light-gray);
                border: 1px solid transparent;
                display: flex !important;
                align-items: center;
                gap: 6px;
                min-width: auto;
                height: auto;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .lang-current:active {
                transform: scale(0.98);
                background: white;
                border-color: var(--border-color);
                box-shadow: var(--shadow-sm);
            }

            .lang-current .lang-text {
                display: inline-block;
                font-size: 14px;
                font-weight: 500;
                color: var(--dark-gray);
            }

            .lang-current .arrow {
                display: inline-block;
                font-size: 10px;
                margin-left: 4px;
            }

            .lang-dropdown {
                top: calc(100% + 8px);
                bottom: auto;
                right: 0;
                left: auto;
                min-width: 180px;
            }

            .lang-switcher.active .lang-dropdown {
                transform: translateY(0);
            }

            /* Existing mobile styles */
            .process-grid {
                grid-template-columns: 1fr;
            }
            .timeline {
                padding: 20px 0;
            }

            .timeline::before {
                left: 30px;
                width: 2px;
            }

            .timeline-item {
                margin-bottom: 40px;
            }

            .timeline-year {
                position: absolute;
                left: 0;
                transform: none;
                width: 60px;
                height: 60px;
                font-size: 14px;
            }

            .timeline-year:hover {
                transform: scale(1.05);
            }

            .timeline-content-wrapper {
                padding-top: 0;
                padding-left: 80px;
            }

            .timeline-content {
                width: 100%;
            }

            .timeline-content h4 {
                font-size: 18px;
            }

            .timeline-content p {
                font-size: 14px;
            }

            .hero {
                padding: 80px 20px 60px;
            }

            .tech-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .services-grid,
            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 36px;
                margin-bottom: 36px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
                gap: 12px;
            }

            .hero-stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .hero-stat-card {
                padding: 24px 16px;
            }

            .hero-industries-grid {
                gap: 12px;
            }

            .hero-industry-item {
                font-size: 13px;
                padding: 10px 16px;
            }

            .industries-container {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .industry-card {
                padding: 24px 20px;
            }

            .industry-icon-box {
                width: 48px;
                height: 48px;
                min-width: 48px;
                font-size: 24px;
            }

            .contact-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .contact-right {
                padding: 36px 28px;
            }

            .contact-icon-wrapper {
                width: 48px;
                height: 48px;
                min-width: 48px;
                font-size: 20px;
            }

            .map-container {
                height: 300px;
            }

            .about-story {
                padding: 32px 24px;
            }

            .story-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }

            .story-icon-large {
                width: 80px;
                height: 80px;
                font-size: 48px;
                margin: 0 auto;
            }

            .story-content h3 {
                font-size: 28px;
                text-align: center;
            }

            .mission-vision {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .mv-card {
                padding: 28px 20px;
            }

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


            /* Existing mobile styles */
            .process-grid {
                grid-template-columns: 1fr;
            }
            
            .timeline {
                padding: 20px 0;
            }
            
            .hero {
                padding: 80px 20px 60px;
            }

            .stats {
                padding: 30px 20px;
            }

            .stats-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .stat-item {
                padding: 18px 20px;
            }

            .stat-number {
                font-size: clamp(28px, 7vw, 36px);
                margin-bottom: 6px;
            }

            .stat-label {
                font-size: 13px;
            }

            .tech-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .services-grid,
            .portfolio-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 32px;
            }

            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 32px;
            }

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

            .section-header h2 {
                font-size: 32px;
            }

            .lang-switcher {
                gap: 4px;
                padding: 4px;
            }

            .lang-btn {
                padding: 4px 8px;
                font-size: 12px;
            }
        }
/* ====================================
   NOTIFICATION SYSTEM
   ==================================== */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 768px) {
    #notificationContainer {
        top: 80px;
        right: 16px;
        left: 16px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
}

/* ====================================
   FORM IMPROVEMENTS
   ==================================== */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Touch-friendly form inputs for mobile */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 48px; /* Touch target size */
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

/* Loading button state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   FLAG ICON FIX
   ==================================== */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

.lang-option .flag-icon {
    width: 24px;
    height: 18px;
}

/* ====================================
   IMPROVED MOBILE RESPONSIVENESS
   ==================================== */
@media (max-width: 768px) {
    /* Hero section improvements */
    .hero h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .hero .subtitle {
        font-size: 16px !important;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Language dropdown positioning fix */
    .lang-dropdown {
        right: -20px;
        min-width: 220px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    /* Service cards */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Portfolio items */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact section */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-left,
    .contact-right {
        width: 100%;
    }
    
    .map-container {
        height: 250px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px !important;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-top: 8px;
    }
    
    .lang-switcher.active .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */
/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    z-index: 10001;
}

.skip-to-content:focus {
    top: 0;
}

/* ====================================
   PERFORMANCE OPTIMIZATIONS
   ==================================== */
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--light-gray);
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    nav,
    footer,
    .mobile-menu-btn,
    .mobile-nav,
    .mobile-nav-overlay,
    #notificationContainer,
    .hero-actions {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ====================================
   ACTIVE NAV LINK
   ==================================== */
.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a.active::after {
    width: 100%;
}

/* ====================================
   EMAIL LINK PROTECTION
   ==================================== */
.email-link {
    position: relative;
}

.email-link[href="#"]::before {
    content: '📧 ';
}

/* ====================================
   BROWSER COMPATIBILITY
   ==================================== */
/* Smooth scrolling with fallback */
html {
    scroll-behavior: smooth;
}

@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* Backdrop filter fallback */
@supports not (backdrop-filter: blur(20px)) {
    nav {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* ============================================
   NEW SECTIONS STYLES
   ============================================ */

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin-top: -1px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
    animation: fadeInUp 0.6s ease;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
}

/* Why Choose Us Section */
.why-choose {
    padding: 100px 20px;
    background: var(--off-white);
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.why-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.why-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* FAQ Section */
.faq {
    padding: 100px 20px;
    background: white;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 60px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-blue);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: var(--accent-blue);
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--light-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px 30px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--medium-gray);
    margin: 0;
}

/* Resources Section */
.resources {
    padding: 100px 20px;
    background: var(--off-white);
}

.resources-grid {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.resource-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.resource-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 25px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: var(--hover-blue);
    transform: translateX(3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn-small {
    padding: 12px 20px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.btn-large {
    padding: 18px 40px !important;
    font-size: 18px !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NEWS & UPDATES SECTION
   ============================================ */

.news-section {
    padding: 100px 0;
    background: var(--off-white);
    overflow: hidden;
}

.news-carousel-wrapper {
    position: relative;
    margin-top: 60px;
    overflow: hidden; /* เปลี่ยนกลับเป็น hidden เพื่อให้ animation ทำงาน */
    padding: 20px 0;
    cursor: grab;
    user-select: none;
}

.news-carousel-wrapper.dragging {
    overflow-x: auto; /* เปิด scroll เฉพาะตอน drag */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-carousel-wrapper.dragging::-webkit-scrollbar {
    display: none;
}

.news-carousel-wrapper:active {
    cursor: grabbing;
}

.news-carousel {
    display: flex;
    gap: 30px;
    animation: scrollNews 40s linear infinite;
    will-change: transform;
    width: max-content;
}

.news-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollNews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplicate cards for seamless loop */
.news-carousel::after {
    content: '';
    display: block;
    width: 30px;
}

.news-card {
    flex: 0 0 380px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-image-placeholder {
    font-size: 80px;
    opacity: 0.9;
}

/* If you want to use actual images, add this class */
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--medium-gray);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateX(3px);
}

/* News Modal - Premium Design */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.15) 0%, rgba(130, 80, 223, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-modal-content {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    max-width: 850px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 10001;
    animation: slideUpScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 0 0 1px rgba(9, 105, 218, 0.1),
        0 20px 60px rgba(9, 105, 218, 0.15),
        0 40px 100px rgba(130, 80, 223, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.9) 100%);
    color: var(--dark-gray);
    font-size: 24px;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.news-modal-close:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(9, 105, 218, 0.4);
}

.news-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.news-modal-header {
    background: linear-gradient(135deg, #0969da 0%, #7c3aed 50%, #a855f7 100%);
    padding: 40px;
    padding-right: 80px;
    position: relative;
    overflow: hidden;
}

.news-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(33.333%);
    }
}

@keyframes waveMove1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveMove2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveMove3 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.news-modal-date {
    display: inline-block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-modal-header h2 {
    font-size: 36px;
    color: white;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.news-modal-body {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--medium-gray);
    overflow-y: auto;
    max-height: calc(85vh - 200px);
}

.news-modal-body h3 {
    font-size: 24px;
    color: var(--dark-gray);
    margin: 35px 0 18px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.news-modal-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.news-modal-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-modal-body ul,
.news-modal-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-modal-body li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.news-modal-body ul li::marker {
    color: var(--accent-blue);
    font-size: 1.2em;
}

.news-modal-body strong {
    color: var(--dark-gray);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.08) 0%, rgba(130, 80, 223, 0.08) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.news-modal-body a {
    color: var(--accent-blue);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-modal-body a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transition: width 0.3s ease;
}

.news-modal-body a:hover {
    color: var(--accent-purple);
}

.news-modal-body a:hover::after {
    width: 100%;
}

/* Scrollbar styling for modal */
.news-modal-body::-webkit-scrollbar {
    width: 10px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
    margin: 10px 0;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--hover-blue) 0%, #9333ea 100%);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Legal Modal (Privacy Policy and Terms of Service) */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.15) 0%, rgba(130, 80, 223, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-modal-content {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    max-width: 950px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 10001;
    animation: slideUpScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 0 0 1px rgba(9, 105, 218, 0.1),
        0 20px 60px rgba(9, 105, 218, 0.15),
        0 40px 100px rgba(130, 80, 223, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.9) 100%);
    color: var(--dark-gray);
    font-size: 24px;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.legal-modal-close:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(9, 105, 218, 0.4);
}

.legal-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.legal-modal-header {
    background: linear-gradient(135deg, #0969da 0%, #7c3aed 50%, #a855f7 100%);
    padding: 40px;
    padding-right: 80px;
    position: relative;
    overflow: hidden;
}

.legal-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.legal-modal-header h2 {
    font-size: 36px;
    color: white;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.legal-modal-header h2::before {
    content: '📋';
    display: inline-block;
    margin-right: 12px;
    font-size: 32px;
    vertical-align: middle;
}

.legal-modal-body {
    padding: 40px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--medium-gray);
    overflow-y: auto;
    max-height: calc(85vh - 180px);
}

.legal-content h3 {
    font-size: 28px;
    color: var(--dark-gray);
    margin: 35px 0 20px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.legal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.legal-content h4 {
    font-size: 20px;
    color: var(--dark-gray);
    margin: 30px 0 15px 0;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.legal-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 2px;
}

.legal-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.legal-content ul,
.legal-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
}

.legal-content ul li::marker {
    color: var(--accent-blue);
    font-size: 1.2em;
}

.legal-content strong {
    color: var(--dark-gray);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.08) 0%, rgba(130, 80, 223, 0.08) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transition: width 0.3s ease;
}

.legal-content a:hover {
    color: var(--accent-purple);
}

.legal-content a:hover::after {
    width: 100%;
}

/* Scrollbar styling for legal modal */
.legal-modal-body::-webkit-scrollbar {
    width: 10px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
    margin: 10px 0;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 10px;
    border: 2px solid var(--light-gray);
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--hover-blue) 0%, #9333ea 100%);
}

/* Auth Modal (Login/Register) */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.15) 0%, rgba(130, 80, 223, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-content {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUpScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 0 0 1px rgba(9, 105, 218, 0.1),
        0 20px 60px rgba(9, 105, 218, 0.15),
        0 40px 100px rgba(130, 80, 223, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 251, 252, 0.9) 100%);
    color: var(--dark-gray);
    font-size: 20px;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.auth-modal-close:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.auth-modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.auth-form-container {
    padding: 32px 32px 28px;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(9, 105, 218, 0.3);
}

.auth-icon svg {
    width: 36px;
    height: 36px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-modal-header h2 {
    font-size: 26px;
    color: var(--dark-gray);
    margin-bottom: 6px;
    font-weight: 700;
}

.auth-modal-header p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    display: none;
}

.auth-form .form-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.auth-form .input-container {
    position: relative;
    width: 100%;
}

.auth-form .floating-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 15px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0 4px;
    z-index: 1;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-gray);
    position: relative;
}

.auth-form input::placeholder {
    color: transparent;
}

/* Floating label when input is focused or has value */
.auth-form input:focus ~ .floating-label,
.auth-form input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(9, 105, 218, 0.1);
}

.auth-form input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.02);
}

.auth-form input.error ~ .floating-label {
    color: #ef4444;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 50px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--accent-blue);
    background: rgba(9, 105, 218, 0.08);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    display: none;
    padding-left: 4px;
}

.field-hint {
    color: var(--medium-gray);
    font-size: 12px;
    padding-left: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--medium-gray);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.forgot-password {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.forgot-password:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.auth-submit-btn {
    padding: 13px 16px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
    margin-top: 4px;
    font-family: 'IBM Plex Sans Thai', sans-serif;
    position: relative;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 105, 218, 0.4);
}

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

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.auth-divider {
    text-align: center;
    margin: 20px 0 16px;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    padding: 0 12px;
    color: var(--medium-gray);
    font-size: 13px;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 1.4;
}

.auth-switch {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* Scrollbar for auth modal */
.auth-modal-content::-webkit-scrollbar {
    width: 6px;
}

.auth-modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 10px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--hover-blue) 0%, #9333ea 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 340px;
    }
}

@media (max-width: 768px) {
    .news-card {
        flex: 0 0 300px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
    
    /* Modal Responsive */
    .news-modal,
    .legal-modal {
        padding: 10px;
    }
    
    .news-modal-content,
    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .news-modal-header,
    .legal-modal-header {
        padding: 30px 20px;
        padding-right: 70px;
    }
    
    .news-modal-header h2,
    .legal-modal-header h2 {
        font-size: 24px;
    }
    
    .news-modal-date {
        font-size: 12px;
        padding: 5px 14px;
    }
    
    .news-modal-body,
    .legal-modal-body {
        padding: 25px 20px;
        font-size: 15px;
        max-height: calc(90vh - 150px);
    }
    
    .news-modal-body h3,
    .legal-content h3 {
        font-size: 22px;
        margin: 25px 0 15px;
    }
    
    .legal-content h4 {
        font-size: 18px;
        margin: 20px 0 12px;
    }
    
    .news-modal-close,
    .legal-modal-close {
        width: 38px;
        height: 38px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    /* Auth Modal Responsive */
    .auth-modal-content {
        width: 95%;
        max-height: 92vh;
    }
    
    .auth-form-container {
        padding: 28px 24px 24px;
    }
    
    .auth-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }
    
    .auth-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .auth-modal-header {
        margin-bottom: 20px;
    }
    
    .auth-modal-header h2 {
        font-size: 22px;
    }
    
    .auth-modal-header p {
        font-size: 13px;
    }
    
    .auth-form {
        gap: 14px;
    }
    
    .auth-divider {
        margin: 16px 0 12px;
    }
    
    .auth-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 12px;
    }
    
    /* Navigation Responsive */
    .nav-actions {
        gap: 12px;
    }
    
    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .login-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-card {
        flex: 0 0 280px;
    }
    
    .news-carousel {
        gap: 20px;
    }
    
    .news-modal-header,
    .legal-modal-header {
        padding: 25px 15px;
        padding-right: 60px;
    }
    
    .news-modal-header h2,
    .legal-modal-header h2 {
        font-size: 20px;
    }
    
    .news-modal-body,
    .legal-modal-body {
        padding: 20px 15px;
        font-size: 14px;
    }
    
    .news-modal-body h3,
    .legal-content h3 {
        font-size: 20px;
    }
    
    .legal-content h4 {
        font-size: 17px;
    }
    
    /* Auth Modal Small Mobile */
    .auth-form-container {
        padding: 24px 20px 20px;
    }
    
    .auth-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 10px;
    }
    
    .auth-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .auth-modal-header {
        margin-bottom: 18px;
    }
    
    .auth-modal-header h2 {
        font-size: 20px;
    }
    
    .auth-modal-header p {
        font-size: 12px;
    }
    
    .auth-form {
        gap: 12px;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 11px 12px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .auth-divider {
        margin: 14px 0 10px;
    }
}

/* Touch device support for drag scrolling */
@media (hover: none) and (pointer: coarse) {
    .news-carousel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .news-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .news-carousel {
        animation: none;
    }
}

/* ====================================
   Floating CTA Buttons (LINE & WhatsApp)
   ==================================== */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-cta.active .floating-cta-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn svg {
    width: 26px;
    height: 26px;
}

/* LINE Button */
.line-btn {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
}

.line-btn:hover {
    background: linear-gradient(135deg, #00A000 0%, #00B900 100%);
}

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20BD5A 0%, #0E7A6E 100%);
}

/* Tooltip */
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-gray);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--dark-gray);
}

.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Toggle Button */
.floating-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(9, 105, 218, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(9, 105, 218, 0.5);
}

.floating-toggle:active {
    transform: scale(0.95);
}

.floating-toggle svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
    position: absolute;
}

.floating-toggle .icon-chat {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.floating-toggle .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.floating-cta.active .floating-toggle .icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.floating-cta.active .floating-toggle .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Pulse Animation */
.floating-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

.floating-cta.active .floating-toggle::before {
    animation: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .floating-toggle {
        width: 56px;
        height: 56px;
    }
    
    .floating-toggle svg {
        width: 26px;
        height: 26px;
    }
    
    .floating-btn-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
    }
    
    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .floating-toggle {
        width: 52px;
        height: 52px;
    }
    
    .floating-toggle svg {
        width: 24px;
        height: 24px;
    }
}
