/* --- Professional CSS for ChangcomOmnoi.com by Gemini --- */

/* --- Variables & Base Styles --- */
:root {
    --primary-color: #2c3e50; /* A deep, trustworthy navy blue */
    --secondary-color: #3498db; /* A vibrant, modern blue */
    --accent-color: #e67e22; /* A warm, inviting orange for CTAs */
    --text-color: #34495e; /* A softer, more readable dark grey */
    --text-light: #7f8c8d;
    --bg-light: #f4f6f9; /* A very light, clean grey */
    --white: #ffffff;
    --border-color: #dfe6e9;
    --font-family: 'Kanit', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 25px -5px rgba(44, 62, 80, 0.1), 0 8px 10px -6px rgba(44, 62, 80, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(44, 62, 80, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title-left {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.bg-light { background-color: var(--bg-light); }
section { padding: 6rem 0; }

/* --- Header --- */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}
.logo img { height: 45px; }
.main-nav { display: flex; gap: 2.5rem; }
.main-nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 500; 
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.5rem;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--secondary-color); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { 
    background-color: var(--secondary-color); 
    color: var(--white); 
    font-weight: 600; 
    padding: 0.75rem 1.5rem; 
    border-radius: 50px; 
    text-decoration: none;
    transition: all 0.3s ease;
}
.header-cta:hover { background-color: #2980b9; transform: scale(1.05); }
.mobile-nav-toggle { display: none; }

/* --- Hero Section --- */
.hero-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
}
.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-content { flex: 1.2; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero-content p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 2.5rem; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* --- Page Hero Section --- */
.page-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}
.page-hero-section h1 { color: var(--white); font-size: 3rem; }
.page-hero-section p { color: var(--white); opacity: 0.85; font-size: 1.2rem; }

/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card .material-symbols-outlined { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-card .card-link { text-decoration: none; color: var(--secondary-color); font-weight: 600; margin-top: 1rem; display: inline-block; }

/* --- Content Section --- */
.content-section { padding: 6rem 0; }
.content-layout { display: flex; align-items: center; gap: 5rem; }
.content-layout.reverse { flex-direction: row-reverse; }
.content-text { flex: 1.2; }
.content-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.content-text ul { list-style: none; padding: 0; }
.content-text li { font-size: 1.1rem; margin-bottom: 1rem; padding-left: 2.2rem; position: relative; }
.content-text li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.content-image { flex: 1; }
.content-image img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); }

/* --- Pricing Table Section --- */
.pricing-section { padding: 6rem 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.pricing-grid.four-cols {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pricing-card.recommended {
    border-width: 2px;
    border-color: var(--secondary-color);
    transform: scale(1.05);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}
.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.25rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}
.pricing-card .card-header h3 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.pricing-card .card-header p { color: var(--text-light); margin-bottom: 2rem; font-size: 0.9rem; }
.pricing-card .card-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    min-height: 80px; /* START: This is the fix */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.pricing-card .card-price span { font-size: 1rem; font-weight: 500; color: var(--text-light); }
.pricing-card .card-features { list-style: none; padding: 0; margin-bottom: 2.5rem; text-align: left; flex-grow: 1; }
.pricing-card .card-features li { margin-bottom: 1rem; padding-left: 1.75rem; position: relative; }
.pricing-card .card-features li::before { content: '✔'; position: absolute; left: 0; color: var(--secondary-color); }
.pricing-card .cta-button, .pricing-card .cta-button-secondary { width: 100%; }
.pricing-note { text-align: center; margin-top: 3rem; color: var(--text-light); font-size: 0.9rem; }

/* --- Tech Services Section --- */
.tech-services-section { padding: 6rem 0; }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}
.tech-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.tech-card .tech-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}
.tech-card ul { list-style: none; padding: 0; }
.tech-card li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; }
.tech-card li::before { content: '→'; position: absolute; left: 0; color: var(--secondary-color); }

/* --- CTA Banner & Contact Section --- */
.cta-banner, .contact-section { text-align: center; }
.cta-button, .cta-button-secondary {
    display: inline-block;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0.25rem;
}
.cta-button { background-color: var(--accent-color); color: var(--white); border-color: var(--accent-color); }
.cta-button:hover { background-color: #d35400; border-color: #d35400; transform: scale(1.05); }
.cta-button-secondary { background: transparent; border-color: var(--accent-color); color: var(--accent-color); }
.cta-button-secondary:hover { background: var(--accent-color); color: var(--white); transform: scale(1.05); }
.cta-banner { background: var(--primary-color); color: var(--white); padding: 5rem 0; }
.cta-banner h2 { color: var(--white); font-size: 2.5rem; }
.cta-banner .cta-button { background-color: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }
.contact-buttons-wrapper { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.main-footer p { margin: 0; opacity: 0.8; }

/* --- Animations --- */
.animate-on-load { animation: fadeInSlideUp 0.8s 0.2s ease-out forwards; opacity: 0; }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeInSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media(max-width: 992px) {
    .main-nav, .header-cta { display: none; }
    .mobile-nav-toggle { display: block; background: none; border: none; color: var(--primary-color); font-size: 2.5rem; cursor: pointer; }
    .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: var(--shadow-md); padding: 1rem 0; }
    .main-nav.active a { padding: 1rem 20px; text-align: center; }
}
@media(max-width: 768px) {
    .hero-section .container, .content-layout, .content-layout.reverse { flex-direction: column; }
    .hero-content { text-align: center; }
    h1 { font-size: 2.5rem; }
    h2.section-title { font-size: 2rem; }
}
