/*

TemplateMo 550 Diagoona

https://templatemo.com/tm-550-diagoona

*/

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    overflow-x: hidden;
    color: white;
    background-color: #2C353C;
}

a { 
    transition: all 0.3s ease; 
    text-decoration: none;
}

ul { padding: 0; }
a:hover { text-decoration: none; }
button:focus { outline: none; }
p { line-height: 1.9; }

/* Proper heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

/* Site header - keep logo and text on same line */
.tm-site-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.tm-logo { 
    margin-right: 20px;
    flex-shrink: 0;
}

.tm-logo-img {
    width: 60px;
    height: auto;
    transition: opacity 0.6s ease-in-out;
    background-color: rgba(128, 128, 128, 0.25);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tm-slogan { font-size: 0.8rem; }

/* Navigation */
.navbar-toggler {
    padding: 8px 15px;
    border: 0;
    border-radius: 0;
    transform: skewX(-15deg);
    background-color: rgba(0,0,0,0.5);
    color: white;    
}

.navbar-toggler i { transform: skewX(15deg); }

.navbar-expand-lg {
    padding-left: 0;
    padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link { padding: 0; }

.navbar-expand-lg .navbar-nav .tm-nav-link {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;    
    padding-bottom: 30px;    
}

.nav-item { margin-right: 60px; }

.nav-item:last-child { margin-right: 0; }

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
    color: #9CC;
}

/* Page Background */
.tm-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1000;
}

.tm-bg-left,
.tm-bg-right {
    position: relative;
    width: 50%;
    height: 100%;
}

.tm-bg-right { background-color: rgba(0,0,0,0.5); }

.tm-bg-left {
    border-right: 230px solid rgba(0,0,0,0.5);
    border-top: 100vh solid transparent;
}

.tm-bg-controls-wrapper {
    display: inline-block;
    margin-left: -150px;
}

.tm-bg-control {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: rgba(255,255,255,0.5);
    margin: 6px;
    cursor: pointer;
}

.tm-bg-control.active,
.tm-bg-control:hover {
    background-color: white;
}

.tm-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  
}

.tm-row { display: flex; }

.tm-col-left {
    width: 50%;
    height: 100%;
    padding-left: 40px;  
    padding-right: 40px;
}

.tm-col-right {
    width: 50%;
    height: 100%;
    padding-left: 70px;
    padding-right: 70px;
}

.tm-content {
    max-width: 660px;
    margin-top: 50px;
    padding-right: 20px;
}

.tm-about { max-width: 525px; }

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}
  
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(255,255,255,.8);
    box-shadow: 0 0 1px rgba(255,255,255,.8);
}

.tm-content-title { font-size: 1.5rem; }
hr { border-top: 1px solid white; }

.btn {
    padding: 10px 25px;
    border-radius: 0;
}

.btn-big {
    padding: 9px 40px;
    font-size: 1.2rem;;
}

.btn-primary {
    background-color: #e8e8e8;
    color: #1a1a1a;
    border: 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #9CC;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 204, 204, 0.3);
}

.tm-site-footer {
    padding: 30px 0 20px;
    max-width: 660px;
    font-size: 0.85rem;
}

.tm-footer-company {
    opacity: 0.8;
    font-size: 0.8rem;
}

.tm-footer-links {
    font-size: 0.8rem;
}

.tm-footer-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.tm-footer-copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 8px !important;
}

.tm-col-footer { padding-left: 0; }

/* Brainville verification icon */
.tm-verification-icon {
    width: 20px;
    vertical-align: middle;
}

.tm-text-link { color: white; }

.tm-text-link:hover,
.tm-text-link:focus {
    color: #9CC;
}

/* Service */ 
.tm-service-text { max-width: 365px; }
.tm-service-img { margin-right: 25px; }
.tm-service-img-r { margin-left: 25px; }

/* Contact */
.form-control,
textarea {    
    color: white;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #999A9B;
    border-radius: 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 10px 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-control:focus {
    color: white;
    background-color: transparent;    
    box-shadow: none;
    border-color: #9CC;
    outline: none;
}

.mb-85 { margin-bottom: 85px; }
.tm-contact-main { max-width: 690px; }

.tm-contact {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.form-control::-webkit-input-placeholder { color: white; } /* Edge */  
.form-control:-ms-input-placeholder { color: white; } /* Internet Explorer 10-11 */  
.form-control::placeholder { color: white; }

@media (max-width: 1200px) {
    .nav-item { margin-right: 30px; }

    .tm-page-right {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 992px) {    
    .tm-nav {
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        top: 44px;
        right: 4px;
    }

    .navbar-expand-lg .navbar-nav .tm-nav-link {
        color: white;
        font-size: 1.1rem;
        padding: 13px 20px;
    }

    .nav-item { margin-right: 0; }

    .nav-item.active .tm-nav-link,
    .nav-item:hover .tm-nav-link {
        color: #9CC;
    }

    .tm-content { margin-top: 20px; }
    .tm-site-footer { padding-top: 40px; }
    .tm-col-left { width: 40%; }

    .tm-col-right {
        width: 60%;
        padding-left: 100px;
        padding-right: 30px;
    }
    
    .tm-col-footer { padding-left: 0; }
}

@media (max-width: 768px) {
    .tm-row { flex-direction: column; }

    .tm-col-left,
    .tm-col-right,
    .tm-bg-left,
    .tm-bg-right {
        width: 100%;
    }

    #tm-main-nav {
        position: fixed;
        top: 15px;
        right: 40px;
        padding-bottom: 0;
    }  
    
    .tm-bg { flex-direction: column; }

    .tm-bg-left {
        height: 200px;        
        border-bottom: 50px solid rgba(0,0,0,0.5);
        border-right: 0;
        border-top: 0;
    }

    .tm-bg-right { height: calc(100% - 200px); }

    .tm-bg-controls-wrapper {
        margin-left: 0;
        margin-top: 50px;
    }

    .tm-content {
        max-height: none;
        margin-top: 40px;
    }

    .tm-col-right {
        padding-top: 40px;
        padding-left: 30px;
    }

    .tm-col-footer {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 460px) {
    .tm-logo { margin-right: 15px; }
    .tm-sitename { font-size: 1.8rem; }
    .tm-slogan { font-size: 0.8rem; }
}

@media (max-width: 450px), (min-width: 768px) and (max-width: 830px), (min-width: 992px) and (max-width: 1040px) {
    .tm-service-media { flex-direction: column; }
    .tm-service-media-img-l { flex-direction: column-reverse; }
    .tm-service-text { margin-top: 20px; }
    .tm-service-img { margin-right: 0; }
    .tm-service-img-r { margin-left: 0; }
}

/* Language Toggle */
.tm-lang-toggle {
    display: flex;
    gap: 5px;
    margin-right: 20px;
}

/* Discreet corner language toggle */
.tm-lang-toggle-corner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 100;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    background: rgba(44, 53, 60, 0.9);
    padding: 0;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.tm-lang-toggle-corner:hover {
    opacity: 1;
}

.tm-lang-toggle-corner.expanded {
    width: 130px;
    height: 40px;
    padding: 0 8px 0 0;
    border-radius: 20px;
    gap: 6px;
    justify-content: flex-start;
}

.tm-lang-icon {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.tm-lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.tm-lang-toggle-corner.expanded .tm-lang-separator {
    display: block;
    opacity: 1;
}

.tm-lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.3s ease 0.1s;
    font-family: 'Open Sans', Arial, sans-serif;
    display: none;
    opacity: 0;
    white-space: nowrap;
}

.tm-lang-toggle-corner.expanded .tm-lang-btn {
    display: block;
    opacity: 1;
}

.tm-lang-btn:hover {
    color: white;
    text-decoration: underline;
}

.tm-lang-btn.active {
    color: #9CC;
    font-weight: 600;
}

/* Company Info in Footer */
.tm-company-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.tm-company-info p {
    line-height: 1.5;
}

/* Cookie Consent Banner */
.tm-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 53, 60, 0.98);
    padding: 20px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.tm-cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tm-cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tm-cookie-link {
    color: #9CC;
    text-decoration: none;
    font-size: 0.9rem;
}

.tm-cookie-link:hover {
    color: white;
    text-decoration: underline;
}

#cookie-accept {
    padding: 8px 25px;
    font-size: 0.9rem;
}

/* Centered and tighter site header */
.tm-site-header-centered {
    text-align: center;
}

.tm-site-header-centered .tm-sitename {
    margin-bottom: 0.25rem;
}

.tm-site-header-centered .tm-slogan {
    margin-top: 0;
    margin-bottom: 0;
}

/* Clickable Qualion logo link */
.tm-sitename-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tm-sitename-link:hover {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tm-lang-toggle-corner {
        bottom: 15px;
        right: 15px;
        top: auto;
        left: auto;
        padding: 0;
        gap: 0;
        font-size: 0.7rem;
        width: 35px;
        height: 35px;
        min-width: 35px;
        justify-content: flex-start;
    }

    .tm-lang-toggle-corner.expanded {
        width: 115px;
        height: 35px;
        padding: 0 6px 0 0;
        gap: 5px;
        justify-content: flex-start;
    }

    .tm-lang-icon {
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }

    .tm-lang-btn {
        font-size: 0.65rem;
        padding: 2px 4px;
    }

    .tm-lang-separator {
        font-size: 0.7rem;
    }

    .tm-cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .tm-cookie-content p {
        min-width: auto;
    }
}

/* Privacy Page */
.tm-privacy-content {
    max-width: 700px;
}

.tm-privacy-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tm-privacy-section p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.tm-cookie-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.tm-cookie-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tm-cookie-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #9CC;
}

/* Withdraw Consent Section */
.tm-withdraw-consent-wrapper {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.tm-withdraw-consent-wrapper .btn {
    margin-bottom: 0;
    font-size: 0.85rem;
    padding: 6px 16px;
}

.tm-withdraw-message {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
    animation: slideDown 0.3s ease-out;
}

.tm-withdraw-message p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Privacy Warning Notice */
.tm-privacy-notice {
    display: none;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left: 4px solid #FFC107;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tm-privacy-notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.tm-privacy-notice-icon {
    font-size: 1.3rem;
    color: #FFC107;
    margin-right: 12px;
    flex-shrink: 0;
}

.tm-privacy-notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #FFC107;
    margin: 0;
}

.tm-privacy-notice-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding-left: 32px;
}

.tm-privacy-notice-text a {
    color: #FFC107;
    text-decoration: underline;
    font-weight: 400;
}

.tm-privacy-notice-text a:hover {
    color: #FFD54F;
}

.tm-privacy-notice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.tm-privacy-notice-close:hover {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.1);
}

.tm-privacy-notice-close:active {
    transform: scale(0.95);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .tm-privacy-notice {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .tm-privacy-notice-icon {
        font-size: 1.1rem;
        margin-right: 10px;
    }

    .tm-privacy-notice-title {
        font-size: 0.95rem;
    }

    .tm-privacy-notice-text {
        font-size: 0.85rem;
        padding-left: 28px;
    }

    .tm-privacy-notice-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
        padding: 2px 6px;
    }

    .tm-withdraw-consent-wrapper {
        padding: 0;
        margin-top: 12px;
    }

    .tm-withdraw-consent-wrapper .btn {
        width: 100%;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .tm-withdraw-message {
        margin-top: 10px;
        padding: 10px;
    }

    .tm-withdraw-message p {
        font-size: 0.75rem;
    }
}

/* Profile Section Styles */
.tm-profile-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #9CC;
}

.tm-profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(156, 204, 204, 0.4);
}

.tm-profile-title {
    color: #9CC;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Certification Badges */
.tm-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tm-cert-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(156, 204, 204, 0.15);
    border: 1px solid rgba(156, 204, 204, 0.35);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #9CC;
    transition: all 0.3s ease;
}

.tm-cert-badge:hover {
    background: rgba(156, 204, 204, 0.25);
    border-color: #9CC;
    transform: translateY(-2px);
}

.tm-cert-badge i {
    margin-right: 6px;
}

/* Industry Cards */
.tm-industry-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid #9CC;
    height: 100%;
    transition: all 0.3s ease;
}

.tm-industry-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tm-industry-card i {
    color: #9CC;
}

.tm-industry-card h3 {
    color: #9CC;
    margin-top: 10px;
}

.tm-industry-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Technologies Grid */
.tm-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tm-tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tm-tech-item:hover {
    background: rgba(156, 204, 204, 0.15);
    border-color: #9CC;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(156, 204, 204, 0.25);
}

.tm-tech-item i {
    color: #9CC;
}

.tm-tech-item h4 {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: white;
    font-weight: 400;
}

/* Responsive adjustments for new sections */
@media (max-width: 991px) {
    .tm-profile-img {
        width: 100px;
        height: 100px;
    }

    .tm-profile-section {
        padding: 20px;
    }

    .tm-tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tm-industry-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .tm-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .tm-profile-img {
        width: 80px;
        height: 80px;
    }

    .tm-profile-section {
        padding: 15px;
    }

    .tm-certifications {
        justify-content: flex-start;
    }

    .tm-cert-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .tm-tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tm-tech-item {
        padding: 15px 10px;
    }

    .tm-tech-item i {
        font-size: 1.5rem;
    }

    .tm-tech-item h4 {
        font-size: 0.75rem;
    }
}