/* Google Fonts Import - Prompt (Great for TH/EN bilingual) and Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b2240;      /* Deep Royal Blue */
    --secondary-color: #10b981;    /* Vibrant Tech Green/Emerald */
    --accent-color: #f59e0b;       /* Gold/Orange */
    --text-dark: #1f2937;          /* Charcoal Black */
    --text-light: #f3f4f6;         /* Off White */
    --bg-light: #f9fafb;           /* Light Gray Background */
    --bg-white: #ffffff;
    --transition-speed: 0.3s;
    --font-family: 'Prompt', 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Top Contact Bar --- */
.top-contact-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.top-contact-bar a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.top-contact-bar a:hover {
    color: var(--secondary-color);
}

.top-contact-bar i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.lang-switch-btn {
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-speed) ease;
    font-size: 0.8rem;
}

.lang-switch-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* --- Navigation --- */
.main-navbar {
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
}

.main-navbar .navbar-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.main-navbar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.main-navbar .nav-link:hover {
    color: var(--secondary-color);
}

.main-navbar .nav-link:hover::after {
    transform: scaleX(1);
}

.main-navbar .nav-item.active .nav-link {
    color: var(--secondary-color);
}

.main-navbar .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 34, 64, 0.95) 0%, rgba(11, 34, 64, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.25;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--transition-speed) ease;
}

.btn-primary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.btn-primary-custom:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-custom:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* --- Section Formatting --- */
.section-padding {
    padding: 80px 0;
}

.section-bg-white {
    background-color: var(--bg-white);
}

.section-title-wrapper {
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* --- Cards & Features --- */
.custom-card {
    border: none;
    border-radius: 12px;
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- Portfolio Gallery --- */
.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    height: 100%;
    background-color: var(--bg-white);
    border: 1px solid #e5e7eb;
}

.portfolio-img-container {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f3f4f6;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-container img {
    transform: scale(1.08);
}

.portfolio-body {
    padding: 20px;
}

.portfolio-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.portfolio-location {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.portfolio-location i {
    color: var(--accent-color);
    margin-right: 5px;
}

/* --- Contact Us Form & Info --- */
.contact-info-box {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    height: 100%;
}

.contact-info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-info-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-text p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* --- Footer --- */
.footer-main {
    background-color: #081225;
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-top {
    padding: 80px 0 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top h4 {
    color: var(--bg-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-top h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: var(--secondary-color);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}

.footer-links-list a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-right: 12px;
    margin-top: 5px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

.footer-social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    font-size: 0.85rem;
}

/* --- Page Headers --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0;
    border-bottom: 4px solid var(--secondary-color);
    position: relative;
}

.page-header-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header-breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-header-breadcrumb a {
    color: var(--bg-white);
    text-decoration: none;
}

.page-header-breadcrumb a:hover {
    color: var(--secondary-color);
}

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

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.0rem;
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.85rem;
    }
}
