/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a192f;
    /* Dark blue background */
    color: #ccd6f6;
    /* Light text color */
    font-size: 16px;
}

@media (min-width: 640px) {
    body {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

.glassmorphism {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accent-color {
    color: #64ffda;
}

.secondary-text {
    color: #8892b0;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color, background-color;
    transition-duration: 300ms;
}

.nav-link:hover {
    background-color: rgb(51, 65, 85);
    /* bg-slate-700 */
    color: white;
}

.nav-link-active {
    background-color: rgb(2, 132, 199);
    /* bg-sky-600 */
    color: white;
}

.cta-button {
    padding: 0.75rem 2rem;
    background-color: rgb(14, 165, 233);
    /* bg-sky-500 */
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition-property: transform, background-color;
    transition-duration: 300ms;
    display: inline-block;
}

.cta-button:hover {
    background-color: rgb(2, 132, 199);
    /* bg-sky-600 */
    transform: scale(1.05);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(56 189 248 / 0.75);
    /* ring-sky-400 */
}

.section-title {
    font-size: 1.875rem;
    /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
        /* text-4xl */
        line-height: 2.5rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75rem;
    color: #8892b0;
    /* secondary-text */
    margin-bottom: 3rem;
    text-align: center;
    max-width: 42rem;
    /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: 1.25rem;
        /* text-xl */
        line-height: 1.75rem;
    }
}

.service-card {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    transition-property: all;
    transition-duration: 300ms;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgb(14 165 233 / 0.3);
    /* shadow-sky-500/30 */
    transform: translateY(-0.25rem);
}

.faq-item summary {
    padding: 1rem 0.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.375rem;
    outline: none;
}

.faq-item summary:hover {
    background-color: rgb(51, 65, 85);
    /* bg-slate-700 */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.faq-item p,
.faq-item ul {
    padding: 1rem;
    color: #8892b0;
    background-color: rgb(30, 41, 59);
    /* bg-slate-800 */
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-animated {
    transform-origin: center;
    backface-visibility: hidden;
}

.image-overlay {
    background-color: rgba(10, 25, 47, 0.7);
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.lang-btn {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(71 85 105 / 0.5);
    /* border-slate-600/50 */
    background-color: rgb(51 65 85 / 0.3);
    /* bg-slate-700/30 */
    transition-property: all;
    transition-duration: 300ms;
    color: #cbd5e1;
}

.lang-btn:hover {
    background-color: rgb(71 85 105 / 0.5);
    border-color: rgb(14 165 233 / 0.5);
    color: rgb(56 189 248);
    /* text-sky-400 */
}

.lang-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(14 165 233 / 0.5);
    border-color: rgb(14 165 233);
}

.lang-btn.active {
    background-color: rgb(14 165 233 / 0.2);
    border-color: rgb(14 165 233 / 0.7);
    color: rgb(56 189 248);
    box-shadow: 0 10px 15px -3px rgb(14 165 233 / 0.2);
}

.lang-btn:not(.active) {
    color: rgb(203 213 225);
    /* text-slate-300 */
}

.lang-btn:not(.active):hover {
    color: rgb(56 189 248);
}

.lang-separator {
    color: rgb(100 116 139);
    /* text-slate-500 */
    font-size: 0.875rem;
    font-weight: 300;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.project-card ul {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.project-card li {
    display: flex;
    align-items: center;
    color: #8892b0;
    margin-bottom: 0.5rem;
    /* space-y-2 equivalent */
}

.project-card .fa-check-circle {
    color: rgb(74 222 128);
    /* text-green-400 */
    margin-right: 0.75rem;
}

.client-card-link {
    display: block;
    height: 100%;
}

.client-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.client-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 0 15px rgba(56, 189, 248, 0.2);
}

.client-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.client-logo {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.client-meta {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.4;
}

.client-quote {
    font-size: 1.05rem;
    color: #cbd5e1;
    font-style: italic;
    margin-top: auto;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.client-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 2.5rem;
    color: rgba(56, 189, 248, 0.4);
    font-family: serif;
    line-height: 1;
}

.hero-cta-button {
    background-color: #38bdf8;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.hero-cta-button:hover {
    background-color: #0284c7;
    transform: scale(1.05);
}

.tooltip-container {
    position: relative;
    cursor: help;
    color: #38bdf8;
    text-decoration: underline;
    text-decoration-style: dotted;
    font-weight: 600;
}

.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
    text-align: left;
    border-radius: 0.5rem;
    padding: 1rem;
    position: absolute;
    z-index: 50;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-size: 0.75rem;
    line-height: 1.5;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.3) transparent transparent transparent;
}

@media (max-width: 640px) {
    .tooltip-text {
        width: 250px;
        left: 50%;
        transform: translateX(-60%);
    }
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Chat Widget Styles */
.n8n-chat-widget,
.n8n-chat-bubble-button,
.n8n-chat-window {
    display: none !important;
}

#chat-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    z-index: 1000;
    pointer-events: none;
}

#chat-widget {
    display: none;
    width: 350px;
    height: 500px;
    background: rgba(17, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    margin-left: auto;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    will-change: transform;
}

#chat-toggle-button {
    pointer-events: auto;
}

#chat-widget.open {
    display: flex;
}

.chat-header {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.8);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    max-width: 85%;
    font-size: 0.875rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-message {
    background: rgba(56, 189, 248, 0.2);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.server-message {
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.chat-input-form {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(30, 41, 59, 0.8);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#chat-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.9);
    color: #fff;
    outline: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    line-height: 1.4;
    box-sizing: border-box;
}

#chat-send-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background: rgba(56, 189, 248, 0.9);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#chat-send-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.typing-indicator {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.typing-indicator.visible {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-indicator span {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.5rem);
        background: rgba(56, 189, 248, 0.8);
    }
}

@media (max-width: 640px) {
    #chat-widget-container {
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }

    #chat-widget {
        width: 100%;
        max-width: 350px;
        min-width: 280px;
        margin-left: auto;
        height: 450px;
    }

    .chat-input-form {
        padding: 0.5rem;
        gap: 0.375rem;
    }

    #chat-input {
        height: 40px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    #chat-send-btn {
        width: 40px;
        height: 40px;
    }

    #chat-send-btn svg {
        width: 18px;
        height: 18px;
    }

    .chat-messages {
        padding: 0.75rem;
    }

    .message {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    #chat-widget-container {
        right: 0.5rem;
        bottom: 0.5rem;
    }

    #chat-widget {
        min-width: 260px;
        height: 400px;
    }

    .chat-input-form {
        padding: 0.375rem;
    }

    #chat-input {
        padding: 0.5rem 0.625rem;
    }
}

.server-message h1,
.server-message h2,
.server-message h3 {
    font-weight: 600;
    margin: 0.5rem 0;
    color: rgb(56, 189, 248);
}

.server-message p {
    margin: 0.5rem 0;
}

.server-message ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.server-message li {
    margin: 0.25rem 0;
    position: relative;
}

.server-message strong {
    color: rgb(56, 189, 248);
    font-weight: 600;
}

.server-message em {
    font-style: italic;
    opacity: 0.9;
}

#chat-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
}

#chat-send-btn:hover {
    background: rgba(2, 132, 199, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#chat-send-btn:active {
    transform: translateY(0);
    background: rgba(2, 132, 199, 1);
}

#chat-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(56, 189, 248);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

#chat-toggle-button:hover {
    background: rgb(2, 132, 199);
    transform: scale(1.05);
}

#chat-toggle-button svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.chat-icon-close {
    display: none;
}

#chat-widget.open+#chat-toggle-button .chat-icon-open {
    display: none;
}

#chat-widget.open+#chat-toggle-button .chat-icon-close {
    display: block;
}

.chat-footer {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.8);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

#captcha {
    width: 5rem;
    padding: 0.75rem;
    background-color: rgb(51 65 85 / 0.5);
    border: 1px solid rgb(71 85 105 / 0.5);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s;
    color: white;
    text-align: center;
}

#captcha:focus {
    box-shadow: 0 0 0 2px rgb(14 165 233);
    border-color: rgb(14 165 233);
    background-color: rgb(51 65 85 / 0.7);
}

#captcha:hover {
    background-color: rgb(51 65 85 / 0.7);
}

#chat-popup {
    position: absolute;
    bottom: 70px;
    right: 20px;
    left: auto;
    transform: translateX(0);
    background: rgba(56, 189, 248, 0.95);
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    color: white;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    pointer-events: auto;
    max-width: 200px;
    text-align: center;
}

#chat-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(-5px);
}

#chat-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 25px;
    left: auto;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(56, 189, 248, 0.95);
}

@media (max-width: 640px) {
    .hero-cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}