/* ============================================
   Liquid glass theme (overrides Tailwind utilities)
   ============================================ */

/* --- Navigation: liquid glass --- */
nav.fixed {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

nav.fixed a {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Cards: liquid glass --- */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.07) 100%
    ) !important;
    background-color: transparent !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Neutralize bg-white on cards so glass shows through */
.glass-card.bg-white,
.glass-card[class*="bg-white"] {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.07) 100%
    ) !important;
    background-color: transparent !important;
}

/* Card text colors for readability on glass */
.glass-card h2,
.glass-card h3,
.glass-card .text-soot-800 {
    color: #1a2233 !important;
}

.glass-card .text-soot-500,
.glass-card .text-soot-400 {
    color: rgba(26, 34, 51, 0.72) !important;
}

/* --- Liquid glass button --- */
.btn-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.10) 100%
    ) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-glass:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.16) 100%
    ) !important;
    transform: translateY(-2px);
}

/* --- News timeline: vertical line with dates, per-news blurred background --- */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.1rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.05)
    );
    z-index: 2;
}

/* News section spans full page width with no gaps */
.timeline-section {
    padding: 0;
}

/* Each news container: larger, height adapts to content */
.timeline-list > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
}

.timeline-row {
    position: relative;
    min-height: 560px;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
}

/* Bigger cards inside the timeline */
.timeline-card-wrap .glass-card {
    padding: 1.75rem !important;
}

/* Blurred news main image as the row background */
.timeline-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.timeline-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.62) saturate(1.1);
    transform: scale(1.1);
}

/* Dark overlay to keep text readable */
.timeline-row::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 17, 23, 0.28);
}

/* Date marker sitting ON the vertical line, vertically centered */
.timeline-marker {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-date {
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 9999px;
    background: #ffffff;
    border: 3px solid #3b82f6;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.18);
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-marker {
        left: 50%;
    }
}

/* Timeline card row: cards offset 20px from the timeline */
.timeline-card-wrap {
    position: relative;
    z-index: 3;
    padding-left: calc(1.1rem + 20px + 0.75rem);
    width: 100%;
}

@media (min-width: 768px) {
    /* Fixed width, positioned relative to the vertical timeline */
    .timeline-card-wrap {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 480px;
        padding: 0;
    }
    .timeline-card-wrap.timeline-left {
        right: calc(50% + 20px);
    }
    .timeline-card-wrap.timeline-right {
        left: calc(50% + 20px);
    }
}

/* --- Hero button shadow --- */
.btn-hero-shadow {
    box-shadow:
        0 12px 30px rgba(56, 130, 246, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.btn-hero-shadow:hover {
    box-shadow:
        0 16px 40px rgba(56, 130, 246, 0.55),
        0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

/* --- Search input (products / FAQ) --- */
.search-input {
    width: 100%;
    padding: 0.9rem 1.4rem 0.9rem 3rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    color: #1a2233;
    background: rgba(255, 255, 255, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 1.1rem center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-input::placeholder {
    color: #64748b;
}
.search-input:focus {
    border-color: rgba(56, 130, 246, 0.6);
    box-shadow: 0 8px 28px rgba(56, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* --- Language switch --- */
.lang-switch {
    margin-left: 1rem;
}
.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.35rem 2rem 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
}
.lang-switch select:hover {
    background-color: rgba(255, 255, 255, 0.24);
}
.lang-switch select option {
    color: #1a2233;
    background: #ffffff;
}

/* --- Social row in footer --- */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}
.social-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 130, 246, 0.4);
    border-color: transparent;
}

/* --- Floating contact widget (right side) --- */
.floating-social {
    position: fixed;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 9999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.float-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}
.float-btn:hover {
    transform: scale(1.12);
    border-color: transparent;
    color: #ffffff;
}
.float-wechat:hover {
    background: #07c160;
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.5);
}
.float-whatsapp:hover {
    background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}
.float-email:hover {
    background: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}
.float-linkedin:hover {
    background: #0a66c2;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.5);
}

/* --- QR code modal --- */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 1rem;
}
.qr-modal.show {
    display: flex;
}
.qr-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.qr-modal-box img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
.qr-modal-box p {
    margin-top: 14px;
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}
.qr-modal-box .qr-modal-email {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 700;
    word-break: break-all;
    padding: 18px 6px 4px;
}
.qr-modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease;
}
.qr-modal-close:hover {
    color: #111827;
}
@media (max-width: 640px) {
    .qr-modal-box img {
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 640px) {
    .floating-social {
        right: 0.6rem;
        padding: 0.45rem;
        gap: 0.45rem;
    }
    .float-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}
