@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    overflow-x: hidden;
    color: #111827;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
::selection { background-color: black; color: white; }
::-moz-selection { background-color: black; color: white; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #f3f4f6;
}
.navbar-inner {
    max-width: 80rem; margin: 0 auto;
    padding: 0 1rem; display: flex;
    justify-content: space-between; align-items: center; height: 4rem;
}
@media(min-width:640px){ .navbar-inner{ padding:0 1.5rem; } }
@media(min-width:1024px){ .navbar-inner{ padding:0 2rem; } }

.navbar-brand { display: flex; align-items: baseline; }
.navbar-brand a { display: flex; align-items: baseline; }
.navbar-brand img { height: 1.5rem; width: 1.5rem; margin-right: .5rem; margin-top: .75rem; }
.navbar-brand-name { font-size: 1.5rem; font-weight: 700; color: #111827; }
.navbar-by { color: #6b7280; font-size: .875rem; margin-left: .5rem; transition: color .2s; }
.navbar-by:hover { color: #374151; }

.navbar-links { display: none; align-items: center; gap: 2.5rem; }
@media(min-width:768px){ .navbar-links{ display:flex; } }

.nav-link {
    color: #374151; font-weight: 500; position: relative; transition: color .2s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: #000; transition: width .3s;
}
.nav-link.active::after { width: 66.66%; }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #111827; }

.btn-book-call {
    background: #000; color: #fff; padding: .5rem 1.25rem;
    border-radius: .5rem; font-weight: 500; white-space: nowrap; transition: background .2s;
}
.btn-book-call:hover { background: #1f2937; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
    display: flex; align-items: center; color: #374151;
    font-weight: 500; padding: .5rem 0; transition: color .2s;
}
.dropdown-trigger i { margin-left: .375rem; font-size: .75rem; transition: transform .2s; }
.dropdown:hover .dropdown-trigger i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; left: 50%; transform: translateX(-50%);
    margin-top: 0; width: 14rem; background: #fff;
    border-radius: .75rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    padding: .5rem 0; opacity: 0; visibility: hidden;
    transition: all .2s; z-index: 50; border: 1px solid #f3f4f6;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-item {
    display: block; padding: .75rem 1rem; font-size: .875rem;
    color: #374151; transition: background .15s, color .15s;
}
.dropdown-item:hover { background: #f9fafb; }
.dropdown-item i { margin-right: .75rem; padding: .375rem; border-radius: .5rem; }
/* dropdown icon colors */
.dropdown-item.di-realestate:hover { color: #2563eb; }
.dropdown-item.di-realestate i { color: #3b82f6; background: #eff6ff; }
.dropdown-item.di-ecommerce:hover { color: #d97706; }
.dropdown-item.di-ecommerce i { color: #f59e0b; background: #fffbeb; }
.dropdown-item.di-travel:hover { color: #0284c7; }
.dropdown-item.di-travel i { color: #0ea5e9; background: #f0f9ff; }
.dropdown-item.di-studyabroad:hover { color: #0d9488; }
.dropdown-item.di-studyabroad i { color: #14b8a6; background: #f0fdfa; }
.dropdown-item.di-food:hover { color: #e11d48; }
.dropdown-item.di-food i { color: #f43f5e; background: #fff1f2; }
.dropdown-item.di-agencies:hover { color: #7c3aed; }
.dropdown-item.di-agencies i { color: #8b5cf6; background: #f5f3ff; }

/* Mobile menu button */
.mobile-menu-icon { height: 1.5rem; width: 1.5rem; }
.mm-sub-group { padding-left: .75rem; }
.mobile-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .5rem; border-radius: .375rem; color: #9ca3af; transition: all .15s;
}
.mobile-menu-btn:hover { color: #6b7280; background: #f3f4f6; }
@media(min-width:768px){ .mobile-menu-btn{ display:none; } }

/* Mobile menu */
.mobile-menu {
    display: none; padding: .5rem .75rem 1rem;
}
@media(min-width:768px){ .mobile-menu{ display:none!important; } }
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu p {
    display: block; padding: .5rem .75rem; border-radius: .375rem;
    font-weight: 500; color: #374151;
}
.mobile-menu a:hover { color: #111827; }
.mobile-menu .mm-active { background: #e5e7eb; }
.mobile-menu .mm-section-label {
    font-size: .75rem; font-weight: 600; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .05em;
}
.mobile-menu .mm-sub { padding-left: 1.5rem; border-left: 2px solid transparent; }
.mobile-menu .mm-sub:hover { background: #f9fafb; }
.mobile-menu .mm-sub.ms-realestate:hover { border-color: #3b82f6; background: #eff6ff; }
.mobile-menu .mm-sub.ms-ecommerce:hover { border-color: #f59e0b; background: #fffbeb; }
.mobile-menu .mm-sub.ms-travel:hover { border-color: #0ea5e9; background: #f0f9ff; }
.mobile-menu .mm-sub.ms-studyabroad:hover { border-color: #14b8a6; background: #f0fdfa; }
.mobile-menu .mm-sub.ms-food:hover { border-color: #f43f5e; background: #fff1f2; }
.mobile-menu .mm-sub.ms-agencies:hover { border-color: #8b5cf6; background: #f5f3ff; }
.mobile-menu .mm-book-call { background: #000; color: #fff; }

/* ===== INTEGRATIONS HERO ===== */
.integrations-section { padding: 4rem 0 6rem; }
@media(min-width:640px){ .integrations-section{ padding: 6rem 0 6rem; } }
.integrations-container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px){ .integrations-container{ padding:0 1.5rem; } }
@media(min-width:1024px){ .integrations-container{ padding:0 2rem; } }

.integrations-header { text-align: center; margin-bottom: 4rem; }
.integrations-header h1 {
    font-size: 2.25rem; font-weight: 700; color: #111827;
    margin-bottom: 1.5rem; font-family: 'Rubik', sans-serif;
}
@media(min-width:640px){ .integrations-header h1{ font-size:3rem; } }
@media(min-width:768px){ .integrations-header h1{ font-size:3.75rem; } }
.integrations-header h1 .highlight { color: #9333ea; }
.integrations-header p { font-size: 1.125rem; color: #4b5563; max-width: 48rem; margin: 0 auto; }
@media(min-width:640px){ .integrations-header p{ font-size:1.25rem; } }

/* Grid */
.integrations-grid { display: grid; gap: 2rem; }
@media(min-width:768px){ .integrations-grid{ grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .integrations-grid{ grid-template-columns: repeat(3,1fr); } }

/* CTA */
.integrations-cta { text-align: center; margin-top: 4rem; }
.integrations-cta h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }
.integrations-cta p { color: #4b5563; max-width: 42rem; margin: 0 auto 2rem; }
.integrations-cta .cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; padding: .75rem 2rem; border-radius: .5rem; font-weight: 500;
}
.integrations-cta .cta-btn i { margin-left: .5rem; transition: transform .2s; }
.integrations-cta .cta-btn:hover i { transform: translateX(4px); }

/* ===== FOOTER ===== */
.site-footer {
    background: #fff; border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -20px 50px -10px rgba(0,0,0,.7);
    padding: 2rem 1rem;
}
@media(min-width:640px){ .site-footer{ padding: 2rem 1.5rem; } }
@media(min-width:1024px){ .site-footer{ padding: 2rem 2rem; } }
.footer-inner {
    max-width: 80rem; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
}
@media(min-width:768px){
    .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-brand { margin-bottom: 1rem; }
@media(min-width:768px){ .footer-brand{ margin-bottom:0; } }
.footer-brand span { font-size: 1.5rem; font-weight: 700; color: #111827; }
.footer-brand p { color: #4b5563; margin-top: .25rem; font-size: .875rem; }
.footer-copy { color: #4b5563; font-size: .875rem; text-align: center; }
@media(min-width:768px){ .footer-copy{ text-align:right; } }

/* ===== CHAT WIDGET ===== */
.chatbot-container {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end;
    font-family: 'Inter', sans-serif;
}
.chatbot-window {
    margin-bottom: 1.5rem; width: 24rem; max-width: 90vw; height: 600px;
    background: #fff; border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid #f1f5f9;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: scale(.8) translateY(40px);
    transition: all .5s cubic-bezier(.175,.885,.32,1.1);
    transform-origin: bottom right;
}
.chatbot-window.is-active {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: scale(1) translateY(0);
}
.chat-header {
    padding: 1.5rem; color: #fff; display: flex; justify-content: space-between;
    align-items: center; position: relative; overflow: hidden; flex-shrink: 0;
    background: rgba(15,23,42,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chat-header-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, #34d399, #22d3ee);
}
.chat-header-info { display: flex; align-items: center; gap: 1rem; }
.chat-avatar-wrap { position: relative; }
.chat-avatar {
    width: 3rem; height: 3rem; border-radius: 50%;
    border: 2px solid rgba(16,185,129,.3); box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
.chat-avatar-dot {
    position: absolute; bottom: 0; right: 0; width: .875rem; height: .875rem;
    background: #34d399; border: 2px solid #0f172a; border-radius: 50%;
}
.chat-header-name { font-weight: 700; font-size: 1.125rem; line-height: 1; }
.chat-header-role { font-size: .75rem; color: #6ee7b7; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.chat-close-btn {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; transition: background .2s;
}
.chat-close-btn:hover { background: rgba(255,255,255,.1); }
.chat-close-btn i { font-size: 1.125rem; }

.chat-messages {
    flex: 1; display: flex; flex-direction: column;
    overflow-y: auto; padding: 1.5rem; gap: 1rem;
    background: linear-gradient(to bottom, #f8fafc, #fff);
}
.chat-messages::-webkit-scrollbar { display: none; }
.chat-messages-today {
    text-align: center; font-size: 10px; font-weight: 700;
    color: #94a3b8; text-transform: uppercase; letter-spacing: .2em;
}
.chat-input-area {
    padding: 1.5rem; background: #fff; border-top: 1px solid #f8fafc; flex-shrink: 0;
}
.chat-form {
    display: flex; align-items: center; gap: .75rem;
    background: #f1f5f9; border-radius: 1rem; padding: .75rem 1.25rem; width: 100%;
}
.chat-form input {
    background: transparent; border: none; outline: none; flex: 1;
    font-size: .875rem; font-family: inherit;
}
.chat-form button { color: #10b981; transition: transform .15s; }
.chat-form button:hover { transform: scale(1.1); }
.chat-form button i { font-size: 1.125rem; }

.chatbot-toggle {
    position: relative; width: 4rem; height: 4rem;
    background: #0f172a; color: #fff; border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center; z-index: 10000;
}
.chatbot-toggle i {
    position: absolute; font-size: 1.5rem;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.chatbot-toggle .icon-hidden { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chatbot-toggle.chatbot-toggle-active { background-color: #ffffff; color: #0f172a; }

/* Ripple */
.ripple-active::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(16,185,129,.4); border-radius: 50%;
    z-index: -1; animation: ripple 2s infinite;
}
@keyframes ripple { 0%{ transform:scale(1); opacity:1; } 100%{ transform:scale(1.6); opacity:0; } }

/* Chat message animations */
.chat-message {
    transform: translateY(20px); opacity: 0;
    transition: all .3s ease; display: inline-block; word-break: break-word;
}
.chat-message.show { transform: translateY(0); opacity: 1; }
.chat-message-user {
    background: #0f172a; color: #fff; padding: 1rem;
    border-radius: 1.5rem 1.5rem 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: .875rem;
    align-self: flex-end; max-width: 80%;
}
.chat-message-ai {
    background: #fff; color: #000; padding: 1rem;
    border-radius: 1.5rem 1.5rem 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.1); font-size: .875rem;
    align-self: flex-start; max-width: 80%;
}
.typing-dots { display: inline-flex; gap: 3px; align-items: center; justify-content: center; }
.typing-dots span {
    width: 6px; height: 6px; background: #000; border-radius: 50%;
    animation: dot-blink 1.4s infinite both;
}
.typing-dots span:nth-child(1){ animation-delay:0s; }
.typing-dots span:nth-child(2){ animation-delay:.2s; }
.typing-dots span:nth-child(3){ animation-delay:.4s; }
@keyframes dot-blink { 0%,80%,100%{ opacity:0; } 40%{ opacity:1; } }

/* ===== SHEEN BUTTON ===== */
.sheen-button {
    background: linear-gradient(115deg, #4f00bc 0%, #6f00e6 30%, #9b4dff 50%, #6f00e6 70%, #4f00bc 100%);
    background-size: 300% auto;
    animation: shine 7s linear infinite;
    color: #fff; transition: background-position .3s;
}
@keyframes shine { 0%{ background-position:-300% center; } 100%{ background-position:300% center; } }

/* ===== INTEGRATION CARD COMPONENTS ===== */

/* Icon wrapper: the colored box holding each integration's icon */
.integration-icon-wrapper {
    width: 4rem; height: 4rem; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    margin-left: auto; margin-right: auto; margin-bottom: 1rem;
}

/* SVG icon inside the wrapper */
.integration-icon-svg { width: 2rem; height: 2rem; }

/* FontAwesome icon inside the wrapper */
.integration-icon-fa { font-size: 1.5rem; }

/* Card title */
.integration-card-name { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }

/* Tag container (flex row of tags) */
.integration-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }

/* Individual tag pill */
.integration-tag {
    display: inline-flex; align-items: center;
    padding-left: .75rem; padding-right: .75rem;
    padding-top: .25rem; padding-bottom: .25rem;
    border-radius: 9999px; font-size: .75rem; font-weight: 500;
}

/* Multi-tag variant (slightly smaller horizontal padding, bottom margin) */
.integration-tag-spaced {
    padding-left: .5rem; padding-right: .5rem; margin-bottom: .25rem;
}

/* ===== SURFACE COLORS (background accents) ===== */
.surface-white { background-color: #fff; }
.surface-blue-lighter { background-color: #eff6ff; }
.surface-blue-light { background-color: #dbeafe; }
.surface-purple-lighter { background-color: #faf5ff; }
.surface-purple-light { background-color: #f3e8ff; }
.surface-green-light { background-color: #dcfce7; }
.surface-yellow-light { background-color: #fef9c3; }
.surface-indigo-light { background-color: #e0e7ff; }
.surface-red-light { background-color: #fee2e2; }
.surface-teal-light { background-color: #ccfbf1; }
.surface-pink-light { background-color: #fce7f3; }
.surface-slate-light { background-color: #f1f5f9; }
.surface-emerald-light { background-color: #d1fae5; }
.surface-orange-lighter { background-color: #fff7ed; }
.surface-orange-light { background-color: #ffedd5; }
.surface-amber-lighter { background-color: #fffbeb; }
.surface-amber-light { background-color: #fef3c7; }

/* ===== FOREGROUND COLORS (text/icon accents) ===== */
.foreground-blue-light { color: #60a5fa; }
.foreground-blue { color: #3b82f6; }
.foreground-blue-bold { color: #2563eb; }
.foreground-blue-dark { color: #1e40af; }
.foreground-purple-bold { color: #9333ea; }
.foreground-purple-dark { color: #6b21a8; }
.foreground-pink-bold { color: #db2777; }
.foreground-pink-dark { color: #9d174d; }
.foreground-green { color: #22c55e; }
.foreground-green-bold { color: #16a34a; }
.foreground-green-dark { color: #166534; }
.foreground-yellow-dark { color: #854d0e; }
.foreground-indigo-bold { color: #4f46e5; }
.foreground-indigo-dark { color: #3730a3; }
.foreground-red-dark { color: #991b1b; }
.foreground-teal-dark { color: #115e59; }
.foreground-slate-dark { color: #1e293b; }
.foreground-emerald-dark { color: #065f46; }
.foreground-orange { color: #f97316; }
.foreground-orange-dark { color: #9a3412; }
.foreground-amber-bold { color: #d97706; }
.foreground-amber-dark { color: #92400e; }
/* Integration card */
.integration-card {
    background: #fff; border-radius: 1rem; padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); border: 1px solid #e5e7eb;
    text-align: center; transition: box-shadow .3s;
}
.integration-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
.integration-card h3 { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.integration-card p.card-subtitle { color: #4b5563; margin-bottom: 1rem; }

/* sr-only */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
