/* Home Page Specific Styles */

/* Source Protection: Deterrents
   Prevents casual text selection across the entire home page. */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection only in specific input fields for accessibility */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure no horizontal overflow at the section level */
section {
    position: relative;
    overflow-x: hidden;
}

/* Section: Impact Stats (Revenue/Insights counters) */
.impact-stats-container {
    max-width: 800px;
    border-color: #f1f5f9 !important;
}
.stat-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-right: 1px solid #f1f5f9;
}
.stat-item:last-child {
    border-right: none;
}
.stat-item:hover {
    transform: translateY(-5px);
}

/* Section: WhatsApp Carousel Container Adjustments */
.wa-carousel-container {
    max-width: 100%;
    width: 450px;
}

.wa-carousel-indicators {
    bottom: -60px;
}

/* Section: Get Started Modal Content Setup */
.get-started-content {
    max-width: 1200px;
}

.journey-media {
    max-height: 65vh;
    object-fit: contain;
}


/* ==========================================================================
   WhatsApp Hero Mockup Styles
   These styles create the highly realistic, animated WhatsApp chat interface
   shown in the hero section.
   ========================================================================== */

/* CTA Button Polish */
.btn-pulse {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    animation: pulseBtn 2s infinite;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.btn-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.25);
    animation: none;
}

/* Hero Title Adjustments */
.hero-title {
    line-height: 1.2;
    font-weight: 800;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: clamp(2rem, 3.8vw, 4.2rem);
    }
}

/* Wrapper & Background Blob */
.wa-mockup-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto;
}
@media (max-width: 991px) { 
    .wa-mockup-wrapper { 
        margin-top: 4rem; 
        max-width: 320px;
    } 
}

.wa-mockup-blob {
    position: absolute; z-index: 0;
    border-radius: 50%; 
    filter: blur(70px);
}
.blob-1 {
    width: 100%; height: 90%; 
    background: linear-gradient(135deg, #25d366, #128c7e); 
    opacity: 0.3; top: 5%; left: 5%; 
    animation: blobMorph 8s ease-in-out infinite alternate;
}
.blob-2 {
    width: 85%; height: 85%; 
    background: linear-gradient(135deg, #0ea5e9, #25d366); 
    opacity: 0.2; bottom: -5%; left: -5%; 
    animation: blobMorph 12s ease-in-out infinite alternate-reverse;
}

/* Fix mobile overflow for blobs */
@media (max-width: 767px) {
    .blob-1 { left: 50%; transform: translateX(-50%); width: 100%; }
    .blob-2 { left: 50%; transform: translateX(-50%); width: 85%; }
}

/* Main Device Mockup Outline */
.wa-hero-mockup { 
    position: relative; 
    z-index: 1; 
    border-radius: 38px; 
    overflow: hidden; 
    box-shadow: 0 30px 70px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); 
    border: 12px solid #ffffff; 
    background: #efeae2; 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    height: 650px; /* Fixed phone height to allow inner scrolling */
}

/* Carousel Mockup Overrides */
.wa-carousel-container .wa-hero-mockup {
    border-width: 10px;
    border-radius: 32px;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    height: 600px;
}

/* Header Bar Components */
.wa-hero-header { background-color: #075e54; color: white; padding: 14px 18px; display: flex; align-items: center; z-index: 20; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.wa-hero-avatar { width: 40px; height: 40px; border-radius: 50%; background-color: white; margin: 0 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wa-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-hero-name { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.wa-hero-status { font-size: 0.8rem; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.wa-hero-status::before { 
    content: ''; display: block; width: 8px; height: 8px; 
    background-color: #25d366; border-radius: 50%; 
    animation: pulseDot 2s infinite; 
}

/* Chat Body & Scrollbar */
.wa-hero-body { 
    flex: 1; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    overflow-y: auto; 
    position: relative; 
    background-color: #efeae2; 
    scroll-behavior: smooth;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 16H9v-2h5V9.876L15.376 9h2.248L19 9.876V14h5v2h-5v4.124L17.624 21h-2.248L14 20.124V16zm34 38h-5v-2h5v-4.124L49.376 47h2.248L53 47.876V52h5v2h-5v4.124L51.624 59h-2.248L48 58.124V54zm-22-6h-5v-2h5v-4.124L27.376 41h2.248L31 41.876V46h5v2h-5v4.124L29.624 53h-2.248L26 52.124V48zm42-30h-5v-2h5V11.876L69.376 11h2.248L73 11.876V16h5v2h-5v4.124L71.624 23h-2.248L68 22.124V18z' fill='%23dfd8ce' fill-opacity='0.6' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.wa-hero-body::-webkit-scrollbar { width: 4px; }
.wa-hero-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

/* Date Badge */
.wa-date-badge {
    align-self: center; background-color: rgba(255,255,255,0.9); color: #555555;
    font-size: 0.75rem; font-weight: 700; padding: 6px 16px;
    border-radius: 14px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 8px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px;
    backdrop-filter: blur(4px);
}

/* Chat Bubbles (User & Bot) */
.wa-msg { 
    display: none; 
    max-width: 82%; 
    width: fit-content;
    padding: 10px 14px; 
    border-radius: 16px; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    position: relative; 
    opacity: 0; 
    box-shadow: 0 1.5px 3px rgba(0,0,0,0.06);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.msg-content {
    display: block;
    width: 100%;
}

.wa-msg.show-msg { display: block; animation: slideUpFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
.wa-msg-user { background-color: #d9fdd3; align-self: flex-end; border-top-right-radius: 0; }
.wa-msg-user::before {
    content: ''; position: absolute; top: 0; right: -8px;
    width: 0; height: 0;
    border-top: 10px solid #d9fdd3; border-right: 10px solid transparent;
}
.wa-msg-bot { background-color: #ffffff; align-self: flex-start; border-top-left-radius: 0; }
.wa-msg-bot::before {
    content: ''; position: absolute; top: 0; left: -8px;
    width: 0; height: 0;
    border-top: 10px solid #ffffff; border-left: 10px solid transparent;
}
.wa-time-inline { font-size: 0.65rem; color: #667781; float: right; margin-top: 10px; margin-left: 12px; font-weight: 500; }

/* Typing Indicator */
.wa-typing-bubble { 
    display: none; 
    width: fit-content; 
    padding: 12px 16px; 
    align-self: flex-start; 
    background-color: #ffffff; 
    border-radius: 18px; 
    border-top-left-radius: 0; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
    margin-bottom: 10px;
}
.typing-dots { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    height: 10px; 
}
.typing-dots span { 
    display: block; 
    width: 8px; 
    height: 8px; 
    background-color: #919191; 
    border-radius: 50%; 
    opacity: 0.4;
    animation: bounceDots 1.3s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Footer & Input Section */
.wa-hero-footer { background-color: #f0f2f5; padding: 12px 18px; display: flex; align-items: flex-end; gap: 12px; z-index: 2; border-top: 1px solid rgba(0,0,0,0.05); }
.wa-input-container { 
    background-color: #ffffff; 
    border-radius: 22px; 
    flex-grow: 1; 
    padding: 10px 18px; 
    font-size: 0.95rem; 
    color: #888; 
    display: flex; 
    align-items: center; 
    min-height: 44px; 
    max-height: 150px;
    overflow-y: auto;
    transition: all 0.2s ease;
}
.wa-fake-input { 
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    line-height: 1.4;
    color: #333;
}
.wa-send-btn { background-color: #00a884; color: white; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.2s ease; flex-shrink: 0; cursor: pointer; }
.wa-send-btn:hover { background-color: #008f6f; transform: scale(1.05); }
.wa-send-btn.active { transform: scale(0.9); }

/* Invert icon for carousel controls on white background */
.invert-icon {
    filter: invert(1) grayscale(100%) brightness(0.2);
}

/* Animations */
@keyframes slideUpFadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    } 
}

@keyframes bounceDots { 
    0%, 80%, 100% { transform: scale(1); opacity: 0.4; } 
    40% { transform: scale(1.2); opacity: 0.9; background-color: #555; } 
}

@keyframes blobMorph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Aurora Dynamic Blobs 
   Large, blurred, moving shapes that create a "living" background. */
.aurora-container {
    position: fixed;
    inset: 0;
    z-index: -3;
    filter: blur(100px);
    opacity: 0.5;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    mix-blend-mode: multiply;
    animation: auroraFlow 20s infinite alternate-reverse ease-in-out;
}

.aurora-1 {
    background: rgba(99, 102, 241, 0.12); 
    top: -10%; left: -10%;
}

.aurora-2 {
    background: rgba(37, 211, 102, 0.08); 
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

.aurora-3 {
    background: rgba(14, 165, 233, 0.08); 
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: auroraFlow 25s infinite alternate ease-in-out;
}

@keyframes auroraFlow {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5%, 10%) scale(1.1) rotate(10deg); }
    66% { transform: translate(-10%, 5%) scale(0.9) rotate(-15deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Modern Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff;
}

.tracking-wide {
    letter-spacing: 0.1em;
}
