@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtle-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(226, 232, 240, 0.5); }
    50% { text-shadow: 0 0 24px rgba(226, 232, 240, 0.9); }
}

:root {
    --surface-color-rgb: 26, 32, 44;
    --bg-color: #121212;
    --surface-color: #1A202C;
    --text-color: #E2E8F0;
    --text-muted-color: #A0AEC0;
    --primary-color: #E53E3E;
    --primary-hover-color: #C53030;
    --primary-light-color: #452222;
    --primary-text-color: #FFFFFF;
    --border-color: #4A5568;
    --table-header-bg: #121212;
    --table-header-text: #CBD5E0;
    --table-row-hover-bg: var(--primary-light-color);
    --input-bg: #1A202C;
    --input-text: #E2E8F0;
    --input-border: #4A5568;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.highlight-onsite {
    color: var(--primary-color);
    font-weight: 600;
    animation: subtle-glow 3s ease-in-out infinite;
}

.side-background-text {
    position: fixed;
    top: 120px; bottom: 100px;
    width: calc((100vw - 1340px) / 2);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-color);
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    z-index: 1;
    opacity: 0.4;
    user-select: none;
}
.side-background-text.left-text { left: 0; text-align: justify; }
.side-background-text.right-text { right: 0; text-align: justify; }

.side-background-text ul { list-style: none; padding: 0; margin: 0; }
.side-background-text ul li {
    padding-bottom: 15px;
    opacity: 0;
    animation: fadeInSlideUp 0.8s ease-out forwards;
}
.side-background-text ul li:nth-child(1) { animation-delay: 0.3s; }
.side-background-text ul li:nth-child(2) { animation-delay: 0.6s; }
.side-background-text ul li:nth-child(3) { animation-delay: 0.9s; }
.side-background-text ul li:nth-child(4) { animation-delay: 1.2s; }

.side-background-text strong { color: var(--text-color); font-weight: 600; }
.page-services .side-background-text { align-items: flex-start; padding-top: 150px; }

.container {
    max-width: 1240px; margin: 50px auto 70px auto; padding: 40px 50px;
    background: var(--surface-color); border-radius: 24px;
    box-shadow: var(--shadow-xl); flex-grow: 1;
    position: relative; z-index: 2;
    opacity: 0;
    animation: fadeInSlideUp 0.8s ease-out 0.2s forwards;
}

header {
    background: var(--surface-color); padding: 15px 50px;
    border-bottom: 1px solid var(--border-color); position: sticky;
    top: 0; z-index: 1000; box-shadow: var(--shadow-md);
    transition: transform 0.3s ease-in-out;
}
header.header-hidden { transform: translateY(-100%); }

.header-top-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo-info a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.header-logo { display: block; height: 150px; width: auto; }
.logo-info h1 {
    margin: 0; font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; font-weight: 800; color: var(--text-color);
    transition: color 0.3s ease-in-out; line-height: 1.2;
}
.logo-info h1:hover { color: var(--primary-color); }
.logo-info p { margin-top: 4px; font-size: 0.9rem; color: var(--text-muted-color); font-weight: 500; }
.header-controls { display: flex; align-items: center; gap: 25px; }
.language-switcher { display: flex; gap: 12px; }
.lang-btn {
    padding: 8px 16px; border-radius: 10px;
    font-size: 0.9em; font-family: 'Poppins', sans-serif;
    font-weight: 600; color: var(--text-muted-color);
    text-decoration: none; transition: all 0.3s ease-in-out;
}
.lang-btn.active { color: var(--primary-color); font-weight: 700; }

.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; }
.main-nav a {
    color: var(--text-color); text-decoration: none; padding: 9px 24px;
    border-radius: 8px; font-family: 'Poppins', sans-serif; font-weight: 600;
    font-size: 1rem;
}
.main-nav a:hover, .main-nav a.active-link { color: var(--primary-text-color); background-color: var(--primary-color); }
.menu-toggle, .mobile-nav-container { display: none; }

.filters-container {
    background-color: var(--surface-color); padding: 35px 40px;
    border-radius: 18px; margin-bottom: 40px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-lg);
}
.category-filters { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 30px; }
.category-filters span { margin-right: 20px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; }
.filters-container input[type="text"] {
    padding: 15px 22px; width: 100%; max-width: 550px;
    border: 2px solid var(--input-border); border-radius: 12px;
    font-size: 1.05rem; background: var(--input-bg); color: var(--input-text);
    transition: all 0.3s ease-in-out;
}
.filters-container input[type="text"]:focus { border-color: var(--primary-color); outline: none; }
.category-btn {
    padding: 10px 22px; font-size: 0.95rem; font-weight: 600;
    border-radius: 10px; color: var(--text-color); background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    text-decoration: none; cursor: pointer; transition: all 0.3s ease-in-out;
}
.category-btn:hover { color: var(--primary-text-color); background-color: var(--primary-color); }
.category-btn.active { color: var(--primary-text-color); background-color: var(--primary-color); border-color: var(--primary-color); }

.table-responsive-wrapper {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color); border-radius: 18px;
    box-shadow: var(--shadow-xl); position: relative;
}

table { 
    width: 100%; border-collapse: separate; 
    border-spacing: 0; table-layout: fixed;
}
table th:first-child { width: 80px; }
table th:last-child { width: 180px; }
table th, table td { padding: 20px 25px; text-align: left; border-bottom: 1px solid var(--border-color); }
table th { font-family: 'Poppins', sans-serif; font-weight: 700; background: var(--table-header-bg); color: var(--table-header-text); border-bottom: 3px solid var(--primary-color); }
table tbody tr:hover { background: var(--table-row-hover-bg); }
.table-no-data { text-align: center; padding: 20px; color: var(--text-muted-color); }

.services-price-note {
    padding: 15px 20px; margin-bottom: 30px;
    text-align: center; font-size: 0.95em; color: var(--text-color);
    background-color: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--primary-color); border-radius: 12px;
}

a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-hover-color); }

footer {
    text-align: center; padding: 40px 30px; background: var(--surface-color);
    color: var(--text-muted-color); margin-top: auto;
    border-top: 1px solid var(--border-color); font-size: 1rem;
    position: relative; z-index: 2;
}

@media (max-width: 1540px) {
    .side-background-text { display: none; }
}

@media (max-width: 1280px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .language-switcher-desktop { display: none; }
}

@media (max-width: 768px) {
    .container { animation: none !important; opacity: 1 !important; }
    body { font-size: 15px; }
    header { padding: 10px 15px; }
    
    .header-logo { height: 65px; }
    .logo-info h1 { font-size: 1.3rem; }
    .logo-info p { display: none; }

    .menu-toggle {
        cursor: pointer; font-size: 2rem;
        color: var(--text-color); background: none; border: none; padding: 0;
        z-index: 1001; position: relative;
    }

    .mobile-nav-container {
        display: block; position: absolute;
        top: 100%; left: 0; width: 100%;
        z-index: 999;
        background: rgba(var(--surface-color-rgb), 0.9);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .mobile-nav-container.active { max-height: 500px; }

    .mobile-nav ul { list-style: none; padding: 10px 0; margin: 0; flex-direction: column; gap: 0; }
    .mobile-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .mobile-nav li:last-of-type { border-bottom: none; }
    .mobile-nav a {
        display: block; padding: 16px 30px; text-align: center;
        color: var(--text-color); font-size: 1rem; font-weight: 600;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    .main-nav a:hover, .mobile-nav a:hover { background-color: var(--primary-color); color: var(--primary-text-color); }
    .language-switcher-mobile { padding: 15px 0; }
    .mobile-nav .language-switcher { justify-content: center; }
    
    .table-responsive-wrapper::after {
        background: linear-gradient(to right, rgba(26, 32, 44, 0), var(--surface-color) 80%);
    }
    table th:first-child { width: 15%; }
    table th:last-child { width: 30%; }
    table th, table td { 
        padding: 12px 10px; font-size: 14px;
        word-break: break-word;
    }
    table th:last-child, table td:last-child { white-space: nowrap; }
    .filters-container { padding: 20px; }
    .category-filters { flex-direction: column; align-items: stretch; gap: 10px; }
    .services-price-note { margin: 0 0 20px 0; padding: 10px 15px; font-size: 0.9em; }
    footer { padding: 25px 20px; }
}