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

:root {
    --brand-green: #77ac77;
    --brand-gold: #fbdc80;
    --brand-coral: #FC636B;
    --brand-bg-light: #f8f8f5;
    --brand-bg-purple: #fd7eba;
    --brand-bg-blue: #a9d6e5;
    --brand-bg-lila: #c6a6c9;
    --brand-bg-pink: #f4bbe2;
    --brand-bg-red: #e99d83;
    --brand-bg-brown: #a6866d;
}

/* Glassmorphic Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
}

.glass-nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-nav.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--brand-green);
    background: rgba(124, 168, 131, 0.1);
}

.nav-link.nav-cta {
    background: transparent;
    color: #000;
    border: none;
    padding: 8px 16px 8px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.nav-link.nav-cta::before {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #fcdd80;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.nav-link.nav-cta .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border-radius: 50%;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1;
    color: #000;
}

.nav-link.nav-cta .btn-arrow svg {
    width: 12px;
    height: 12px;
    fill: #000;
}

.nav-link.nav-cta > span:not(.btn-arrow) {
    position: relative;
    z-index: 1;
}

.nav-link.nav-cta:hover {
    color: #000;
}

.nav-link.nav-cta:hover::before {
    width: 100%;
    height: 100%;
    right: 0;
    border-radius: 50px;
}

.nav-link.nav-cta:hover .btn-arrow svg {
    fill: #000;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .glass-nav {
        justify-content: center;
    }
}

body {
    font-family: 'Lexend', sans-serif;
    color: #333;
    background-color: var(--brand-bg-light);
    overflow-x: hidden;
}

/* Main Layout from Backup */
.main-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    min-height: 720px;
    z-index: 1;
}

.main-card {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(60, 80, 60, 0.10);
}

.main-content {
    position: relative;
    display: flex;
    padding: 48px 32px;
    gap: 32px;
    min-height: 720px;
}

.main-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 24px;
    margin-left: 24px;
}

.main-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 24px;
    position: relative;
}

 #chat-window{
    border-radius: 24px;
    filter: drop-shadow(8px 8px 32px rgba(60, 80, 60, 0.20));
    overflow: hidden;
 }


.logo {
    font-family: 'Pally', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-green);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 24px;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.6;
}

.notify-section {
    margin-bottom: 24px;
}

.notify-section span {
    display: block;
    font-size: 1rem;
    color: #666;
}

/* Common Button Styles */
/* .btn, .notify-button, button[type="submit"], .modal-content button {
    background: transparent;
    color: #000;
    border: 1px solid var(--brand-gold);
    padding: 14px 24px 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
} */

/* .btn::before, .notify-button::before, button[type="submit"]::before, .modal-content button::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #fcdd80;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
} */

/* .btn-arrow, .notify-button .btn-arrow, button[type="submit"] .btn-arrow, .modal-content button .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 50%;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1;
    color: #000;
}

.btn-arrow svg, .notify-button .btn-arrow svg, button[type="submit"] .btn-arrow svg, .modal-content button .btn-arrow svg {
    width: 16px;
    height: 16px;
    fill: #000;
}

.btn:hover, .notify-button:hover, button[type="submit"]:hover, .modal-content button:hover {
    color: #000;
}

.btn:hover::before, .notify-button:hover::before, button[type="submit"]:hover::before, .modal-content button:hover::before {
    width: 100%;
    height: 100%;
    right: 0;
    border-radius: 50px;
}

.btn:hover .btn-arrow svg, .notify-button:hover .btn-arrow svg, button[type="submit"]:hover .btn-arrow svg, .modal-content button:hover .btn-arrow svg {
    fill: #000;
}

.btn > span:not(.btn-arrow), .notify-button > span:not(.btn-arrow), button[type="submit"] > span:not(.btn-arrow), .modal-content button > span:not(.btn-arrow) {
    position: relative;
    z-index: 1;
} */

.socials {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #e6e6e6;
    border-radius: 50%;
    color: var(--brand-green);
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.socials a:hover {
    background: var(--brand-green);
    color: white;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 32px 24px;
    }
    
    .main-left, .main-right {
        padding: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-right .logo {
        display: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Cloud Background Animation */
@keyframes cloud-move {
    0% { background-position: 0 0; }
    100% { background-position: 2000px 0; }
}

.cloud-bg {
    position: relative;
    overflow: hidden;
}

.cloud-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background-image: url('../assets/BackgroundBetter.png');  */
    background-repeat: repeat-x;
    background-size: 2000px 100%;
    animation: cloud-move 120s linear infinite;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.cloud-bg-green {
    background-color: var(--brand-green);
    color: white;
}

.cloud-bg-gold {
    background-color: var(--brand-gold);
    color: white;
}

.cloud-bg-coral {
    background-color: var(--brand-coral);
    color: white;
}

.cloud-bg-blue {
    background-color: var(--brand-bg-blue);
    color: white;
}

.section-content {
    position: relative;
    z-index: 1;
}

/* Flip Card */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background-color: white;
    color: black;
}

.flip-card-back {
    background-color: var(--brand-green);
    color: white;
    transform: rotateY(180deg);
}

/* Adjusted font size for flip card back text */
.moji-flip-card-back p {
    font-size: 0.875rem; /* Reduced font size to ensure text fits */
}

/* Tab to Image */
.tab-active {
    background-color: var(--brand-green);
    color: white;
    transform: scale(1.05);
}

.tab-inactive {
    background-color: white;
    color: #555;
}

.tab-inactive:hover {
    background-color: #f0f0f0;
}

/* Custom Scrollbar for horizontal list on mobile */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Chatbot Embed Container */
.chatbot-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 600px;
    width: 100%;
    position: relative;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Try Me Chip */
.try-me-chip {
    position: absolute;
    top: 40px;
    left: -50px;
    transform: translateY(0);
    background: #77ac77;
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.try-me-text {
    white-space: nowrap;
}

.try-me-arrow {
    color: white;
    animation: pointRight 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(0) translateX(-10px);
    }
}

@keyframes pointRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .try-me-chip {
        display: none;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: var(--brand-green);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    background-color: var(--brand-green);
    color: white;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(119, 172, 119, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Meet the Mojis Section with Peeking Characters */
.mojis-wrapper {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moji-decorations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: 100%;
    pointer-events: none;
}

.moji-decoration {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 5;
}

.moji-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Left side characters - peek from behind left edge */
.moji-left-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-20%) rotate(-15deg);
    animation: peekFromBehindLeft 20s infinite;
    animation-delay: 0s;
}

.moji-left-2 {
    top: 35%;
    left: 50%;
    transform: translateX(-20%) rotate(-20deg);
    animation: peekFromBehindLeft 20s infinite;
    animation-delay: 7s;
}

.moji-left-3 {
    bottom: 5%;
    left: 50%;
    transform: translateX(-20%) rotate(-10deg);
    animation: peekFromBehindLeft 20s infinite;
    animation-delay: 14s;
}

/* Right side characters - peek from behind right edge */
.moji-right-1 {
    top: 5%;
    right: 50%;
    transform: translateX(20%) rotate(15deg);
    animation: peekFromBehindRight 20s infinite;
    animation-delay: 3s;
}

.moji-right-2 {
    top: 35%;
    right: 50%;
    transform: translateX(20%) rotate(20deg);
    animation: peekFromBehindRight 20s infinite;
    animation-delay: 10s;
}

.moji-right-3 {
    bottom: 5%;
    right: 50%;
    transform: translateX(20%) rotate(10deg);
    animation: peekFromBehindRight 20s infinite;
    animation-delay: 17s;
}

/* Peeking animations - from behind the text block */
@keyframes peekFromBehindLeft {
    0%, 10% {
        left: 50%;
        opacity: 0;
    }
    15% {
        left: -10%;
        opacity: 1;
    }
    45% {
        left: -10%;
        opacity: 1;
    }
    50%, 100% {
        left: 50%;
        opacity: 0;
    }
}

@keyframes peekFromBehindRight {
    0%, 10% {
        right: 50%;
        opacity: 0;
    }
    15% {
        right: -10%;
        opacity: 1;
    }
    45% {
        right: -10%;
        opacity: 1;
    }
    50%, 100% {
        right: 50%;
        opacity: 0;
    }
}

/* Centered content block */
.mojis-content-center {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.mojis-text-block {
    background: white;
    padding: 50px 60px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 3px solid #77ac77;
}

.mojis-text-block h2 {
    line-height: 1.2;
}

.mojis-text-block p {
    margin-bottom: 0;
}

/* Updated text color for the paragraph in "How it Works" section */
#how-it-works p.text-xl {
    color: #1a202c; /* Dark color for the paragraph text */
}

.mojis-feature-box {
    background: #f8f8f5;
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.mojis-feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(119, 172, 119, 0.2);
}

/* Moji Flip Card */
.moji-flip-card {
    background-color: transparent;
    width: 100%;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.moji-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.moji-flip-card:hover .moji-flip-card-inner {
    transform: rotateY(180deg);
}

.moji-flip-card-front,
.moji-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.moji-flip-card-front {
    background: #f8f8f5;
    color: #1e293b;
}

.moji-flip-card-back {
    background: linear-gradient(135deg, #77ac77 0%, #5a8a5a 100%);
    color: white;
    transform: rotateY(180deg);
}

/* Updated styles for "How it Works" section */
#how-it-works h2 {
    color: #1a202c; /* Dark color for the header text */
}

#how-it-works .bg-white\/10 {
    background-color: #ffffff; /* Light theme background for the cards */
    color: #1a202c; /* Dark theme text for the cards */
}

#how-it-works .bg-white\/10 h3 {
    color: #1a202c; /* Ensure card headers are dark */
}

#how-it-works .bg-white\/10 p {
    color: #4a5568; /* Slightly lighter dark color for card text */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .moji-decoration {
        width: 140px;
        height: 140px;
    }
    
    @keyframes peekFromBehindLeft {
        0%, 10% {
            left: 50%;
            opacity: 0;
        }
        15% {
            left: -5%;
            opacity: 1;
        }
        45% {
            left: -5%;
            opacity: 1;
        }
        50%, 100% {
            left: 50%;
            opacity: 0;
        }
    }
    
    @keyframes peekFromBehindRight {
        0%, 10% {
            right: 50%;
            opacity: 0;
        }
        15% {
            right: -5%;
            opacity: 1;
        }
        45% {
            right: -5%;
            opacity: 1;
        }
        50%, 100% {
            right: 50%;
            opacity: 0;
        }
    }
}

@media (max-width: 768px) {
    .moji-decoration {
        display: none;
    }
    
    .mojis-text-block {
        padding: 30px 25px;
        border-width: 2px;
    }
    
    .mojis-text-block h2 {
        font-size: 2rem;
    }
    
    .mojis-text-block .text-2xl {
        font-size: 1.25rem;
    }
    
    .mojis-feature-box {
        padding: 16px;
    }
}
