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

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
    font-weight: 300;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #FF6B00;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #FF6B00;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-family: 'Kanit'    , sans-serif;
}

.btn:hover {
    background-color: #E55D00;
}

section {
    padding: 5px 0;
}

h2.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #FF6B00;
    position: relative;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

h2.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FF6B00;
    margin: 15px auto 0;
}

/* Header Styles */
header {
    background-color: #fff;
    position: relative;
    z-index: 1000;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.logo-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 3px solid #FF6B00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    background-color: #fff;
    transition: all 0.3s ease;
    width: 100%;
    border-top: 1px solid #f8f8f8;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo h1 {
    color: #FF6B00;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Mitr', sans-serif;
    letter-spacing: 0.5px;
}

.logo p {
    color: #6c757d;
    font-size: 0.9rem;
    font-family: 'Taviraj', serif;
    font-weight: 400;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FF6B00;
}

nav ul li a.active:after,
nav ul li a:hover:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF6B00;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 107, 0, 0.8), rgba(0, 83, 159, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Sarabun', sans-serif;
    font-weight: 300;
}

.hero .btn {
    background-color: #fff;
    color: #FF6B00;
}

.hero .btn:hover {
    background-color: #f8f9fa;
}

/* Features Section */
.features {
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin: 0 auto;
    padding: 20px 0;
}

@media screen and (max-width: 1400px) {
    .feature-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    text-align: center;
    padding: 20px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 25px rgba(0, 83, 159, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #00539F);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 83, 159, 0.15);
    border-color: rgba(255, 107, 0, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FF6B00, #00539F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #00539F;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.feature.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Trusted By Section */
.trusted-by {
    background-color: #f8f9fa;
    font-family: 'Taviraj', serif;
    font-weight: 400;
}

.trusted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.trusted-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.trusted-item:hover {
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(255, 107, 0, 0.9), rgba(0, 83, 159, 0.95)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
}

.cta h2:after {
    background-color: #fff;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta .btn {
    background-color: #fff;
    color: #FF6B00;
}

.cta .btn:hover {
    background-color: #f8f9fa;
}

/* Footer Section */
footer {
    background-color: #00539F;
    color: #fff;
    padding: 70px 0 20px;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #FF6B00;
}

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

.footer-links ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #f8f9fa;
}

.footer-contact p {
    margin-bottom: 15px;
    font-family: 'Sarabun', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #FF6B00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .feature-item,
    .trusted-item {
        padding: 20px 15px;
    }
}

/* New Styles for Home Page */
.stats-section {
    background-color: #fff;
    padding: 60px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 0.3px;
}

.stat-text {
    font-size: 1.1rem;
    color: #6c757d;
}

.testimonial-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
    position: relative;
    padding: 0 20px;
    font-family: 'Taviraj', serif;
    font-weight: 400;
    line-height: 1.7;
}

.testimonial-content:before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: #FF6B00;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.process-section {
    padding: 80px 0;
    background-color: #fff;
}

.process-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    padding-bottom: 20px;
}

.process-container:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 60px;
    right: 60px;
    height: 3px;
    background-color: #00539F;
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 180px;
    margin: 0 10px;
}

.step-number {
    width: 100px;
    height: 100px;
    background-color: #00539F;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h4 {
    color: #00539F;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .process-container {
        overflow-x: visible;
    }
    
    .process-step {
        flex: 1;
        margin: 0 5px;
    }
}

.gallery-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 83, 159, 0.8);
    color: #fff;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.blue-section {
    background-color: #00539F;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.blue-section h2 {
    color: #fff;
}

.blue-section h2:after {
    background-color: #FF6B00;
}

.blue-section .btn {
    background-color: #FF6B00;
    color: #fff;
}

.blue-section .btn:hover {
    background-color: #E55D00;
}

@media (max-width: 992px) {
    .process-container {
        flex-direction: column;
        align-items: center;
    }
    
    .process-container:before {
        display: none;
    }
    
    .process-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FF6B00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #E55D00;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
