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

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    opacity: 1;
}

/* สร้าง version ที่สว่างขึ้นสำหรับ hover */
.logo a:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.logo h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 60px;
}

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

.company-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-icon {
    color: #667eea;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Section Common Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

/* AI Solutions Section */
.ai-solutions {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.ai-solutions .container {
    position: relative;
    z-index: 1;
}

.ai-solutions .section-title {
    color: white;
}

.ai-solutions .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.ai-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.ai-content {
    display: grid;
    gap: 50px;
}

.ai-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.ai-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* AI Capabilities */
.ai-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.capability-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.capability-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.capability-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.capability-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
}

.capability-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.use-case-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.use-case-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.use-case-item ul {
    list-style: none;
    padding: 0;
}

.use-case-item li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 20px;
    position: relative;
}

.use-case-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

/* AI Overview (Technologies & Benefits) */
.ai-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ai-tech,
.ai-benefits {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tech-list {
    display: grid;
    gap: 20px;
}

.tech-category h5 {
    color: #4ade80;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tech-category p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-item h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* About Section */
.about {
    background: white;
}

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

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.services-detailed {
    display: grid;
    gap: 40px;
}

.service-detail {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    align-items: start;
}

.service-detail-icon {
    color: #667eea;
}

.service-detail h4 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 15px;
}

.service-detail p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #555;
}

.service-features {
    display: grid;
    gap: 25px;
    margin-top: 25px;
}

.feature-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature-item h5 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-item ul {
    list-style: none;
    padding-left: 0;
}

.feature-item li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item li:last-child {
    border-bottom: none;
}

.feature-item li strong {
    color: #667eea;
    font-weight: 600;
}

/* Portfolios Section */
.portfolios {
    background: white;
}

.portfolios-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

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

.portfolio-item {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.portfolio-icon {
    color: #667eea;
    margin-bottom: 20px;
}

.portfolio-item h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.portfolio-item p {
    color: #666;
}

/* Clients Section */
.clients-section {
    margin: 60px 0 50px;
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
}

.clients-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.client-item {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.client-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-color, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.client-item:hover::before {
    transform: scaleX(1);
}

.client-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-color, #667eea);
}

.client-item[data-brand-color] {
    --brand-color: attr(data-brand-color);
}

.client-item[data-brand-color="#0066cc"] { --brand-color: #0066cc; }
.client-item[data-brand-color="#d32f2f"] { --brand-color: #d32f2f; }
.client-item[data-brand-color="#1976d2"] { --brand-color: #1976d2; }
.client-item[data-brand-color="#388e3c"] { --brand-color: #388e3c; }
.client-item[data-brand-color="#f57c00"] { --brand-color: #f57c00; }
.client-item[data-brand-color="#7b1fa2"] { --brand-color: #7b1fa2; }
.client-item[data-brand-color="#00897b"] { --brand-color: #00897b; }

.client-logo-text {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.brand-initial {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-color, #667eea);
    letter-spacing: -0.5px;
    line-height: 1;
    transition: all 0.3s ease;
}

.client-item:hover .brand-initial {
    transform: scale(1.1);
    color: var(--brand-color, #667eea);
}

.client-item h4 {
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
    margin: 10px 0 5px 0;
    line-height: 1.4;
}

.client-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.client-item h4 a:hover {
    color: #667eea;
    text-decoration: underline;
}

.client-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 0;
}

.portfolios-footer {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Careers Section */
.careers {
    background: #f8f9fa;
}

.careers-content {
    max-width: 1000px;
    margin: 0 auto;
}

.careers-content > p {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
}

.careers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.career-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.career-item h4 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.career-item ul {
    list-style-position: inside;
    color: #555;
}

.career-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.benefits {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.benefits h4 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.benefits ul {
    list-style-position: inside;
    color: #555;
}

.benefits li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: white;
}

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

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

.contact-item h4 {
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 10px;
}

.contact-item p {
    color: #555;
    line-height: 1.8;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
}

.contact-form h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Prompt', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .company-name {
        font-size: 2rem;
    }

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

    .service-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .feature-item {
        text-align: left;
    }

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

    .ai-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }

    .logo-img {
        height: 100px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .company-name {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

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

    .ai-capabilities-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .ai-overview {
        grid-template-columns: 1fr;
    }

    .ai-section,
    .ai-tech,
    .ai-benefits {
        padding: 25px;
    }

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

    .clients-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .careers-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 85px;
    }

    .clients-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .brand-initial {
        font-size: 1.6rem;
    }

    .client-item {
        padding: 25px 20px;
    }

    .client-logo-text {
        min-height: 80px;
    }

    .client-item h4 {
        font-size: 0.95rem;
    }

    .client-subtitle {
        font-size: 0.75rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-detail {
        padding: 30px 20px;
    }

    .ai-section,
    .ai-tech,
    .ai-benefits {
        padding: 20px;
    }

    .ai-section-title {
        font-size: 1.4rem;
    }

    .capability-icon {
        font-size: 2.5rem;
    }

    .benefit-icon {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 30px 20px;
    }
}