/* public/landing/css/styles.css */

/* ===== GLOBAL MOBILE FIX ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.text-shadow-hero {
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.tonal-transition {
    transition: background-color 0.3s ease;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
@keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
#progress-bar {
    animation: grow-progress auto linear forwards;
    animation-timeline: scroll(root);
    transform-origin: 0 50%;
}

.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.hero-title {
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-active .hero-title {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* Premium v2 Chatbot Styles */
#chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 101;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 74, 173, 0.1);
}
#chatbot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    scrollbar-width: none;
}
.chat-bubble {
    max-width: 85%;
    padding: 12px 18px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: bubbleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.bot-bubble {
    background: #f3f3f6;
    color: #1a1c1e;
    align-self: flex-start;
    border-left: 4px solid #004aad;
}
.user-bubble {
    background: #004aad;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}
.chat-options {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.chat-opt-btn {
    background: white;
    border: 1px solid #004aad;
    color: #004aad;
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}
.chat-opt-btn:hover {
    background: #004aad;
    color: white;
}

/* Reading Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #004aad;
    z-index: 100;
}

/* FAQ Accordion Styles */
.faq-item {
    border-bottom: 1px solid rgba(0, 74, 173, 0.1);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}
.faq-item.active .faq-content {
    max-height: 300px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ===== MOBILE RESPONSIVE OVERRIDES ===== */

/* Chatbot - tablets and smaller */
@media (max-width: 768px) {
    #chatbot-window {
        width: calc(100vw - 32px) !important;
        right: 16px !important;
        left: 16px !important;
        bottom: 85px !important;
        height: 500px !important;
        max-height: 70vh !important;
    }
    #chat-toggle {
        width: 52px !important;
        height: 52px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    #chatbot-window {
        width: calc(100vw - 24px) !important;
        right: 12px !important;
        left: 12px !important;
        bottom: 80px !important;
        height: 450px !important;
        max-height: 65vh !important;
    }
}
