/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0ea5e9; /* Cyan/Teal blue */
    --primary-hover: #0284c7;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 with transparency */
    --bg-card-light: #ffffff;
    --bg-section-light: #f8fafc; /* Slate 50 */
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-white-muted: #94a3b8;
    --border-color: rgba(226, 232, 240, 0.8);
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-thai: 'Sarabun', sans-serif;
    --font-latin: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-thai);
    color: var(--text-primary);
    background-color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Layout elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-thai);
    font-weight: 700;
    color: var(--bg-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .logo-main {
    color: var(--text-white);
}

.navbar.scrolled .logo-sub {
    color: var(--text-white-muted);
}

.navbar.scrolled .nav-link {
    color: var(--text-white-muted);
}

.navbar.scrolled .nav-link.active,
.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-latin);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background-color: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    transition: var(--transition);
}

.navbar.scrolled .lang-selector-wrapper {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.navbar.scrolled .lang-icon {
    color: var(--text-white-muted);
}

.lang-select {
    background: none;
    border: none;
    font-family: var(--font-thai);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-dark);
    cursor: pointer;
    outline: none;
    padding-right: 0.25rem;
    transition: var(--transition);
}

.navbar.scrolled .lang-select {
    color: var(--text-white-muted);
}

.lang-select option {
    background-color: var(--text-white);
    color: var(--text-primary);
}

.navbar.scrolled .lang-select option {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
}

/* Sections Styling Defaults */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-family: var(--font-latin);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-white);
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 2;
}

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

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 9999px;
    color: var(--primary-color);
    font-family: var(--font-latin);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: var(--text-white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--text-white-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Services Section */
.services-section {
    background-color: var(--bg-section-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background-color: var(--bg-card-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.service-icon {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Consulting Feature Banner */
.consulting-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    background-color: var(--bg-card-light);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.consulting-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.consulting-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.consulting-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.consulting-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature-list li i {
    color: #10b981; /* Emerald green check */
}

/* Products Section */
.products-section {
    background-color: var(--text-white);
}

.products-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.products-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.products-img img {
    width: 100%;
    height: auto;
}

.products-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.category-card {
    background-color: var(--bg-section-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.category-card:hover {
    background-color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.category-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.products-action {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.notice-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.about-section .section-tag {
    color: var(--primary-color);
}

.about-section h2 {
    color: var(--text-white);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.about-section h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-company p {
    color: var(--text-white-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-info-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-dark);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.25rem;
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-white);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-section-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h3, .contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info h3::after, .contact-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-details h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-details a:hover {
    color: var(--primary-color);
}

.tax-box {
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--text-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-thai);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-success-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.form-success-msg i {
    font-size: 3.5rem;
    color: #10b981;
}

.form-success-msg p {
    font-size: 1.1rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Footer Section */
footer {
    background-color: #0b0f19;
    color: var(--text-white-muted);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Web Design Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .consulting-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .navbar.scrolled .nav-menu {
        background-color: rgba(15, 23, 42, 0.98);
    }
    
    .nav-link {
        color: var(--text-white-muted);
        font-size: 1.1rem;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.35rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-category-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* RTL Support for Arabic Selection */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .logo-text,
html[dir="rtl"] .service-card,
html[dir="rtl"] .consulting-text,
html[dir="rtl"] .about-company,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form-container {
    text-align: right;
}

html[dir="rtl"] .feature-list {
    padding-right: 0;
}

html[dir="rtl"] .feature-list li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] .info-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[dir="rtl"] .contact-info-item {
    text-align: right;
}

html[dir="rtl"] .contact-info-list {
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] .hero-content {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .logo-icon {
    margin-left: 0.75rem;
    margin-right: 0;
}

html[dir="rtl"] .lang-select {
    padding-left: 0.25rem;
    padding-right: 0;
}

html[dir="rtl"] .info-icon {
    margin-left: 1.25rem;
    margin-right: 0;
}
