/* CSS Styles */

:root {
    --primary-color: #577cff;
    --accent-pink: #ec4899;
    --chat-bg: #0f172a;
    --bg-neutral: #F1F1F4;
    --card-lavender: #E8E7FF;
    --card-lilac: #F3E8FF;
    --card-blue: #E0F2FE;
    --card-purple: #7C3AED;
    --text-dark: #1E1B4B;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar Scroll Styles */
nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled .glass,
.navbar-scrolled .glass-light {
    background: white !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dark .navbar-scrolled .glass,
.dark .navbar-scrolled .glass-light {
    background: #0b0c14 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-scrolled .logo-main img {
    height: 28px;
}

.navbar-scrolled a {
    color: #1e1b4b !important;
}

.dark .navbar-scrolled a {
    color: white !important;
}

@media (max-width: 768px) {
    nav {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    nav .glass,
    nav .glass-light {
        background: white !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .dark nav .glass,
    .dark nav .glass-light {
        background: #0b0c14 !important;
    }

    nav .logo-main img {
        height: 28px;
    }

    nav button {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.75rem !important;
    }
}

.animated-gradient-text {
    background: linear-gradient(to right, #577cff, #1e1b4b, #577cff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

/* Global Heading & Spacing Standards */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000000;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #ffffff;
}

.text-blue-accent {
    color: #577cff;
}

.section-standard {
    padding-top: 120px;
    padding-bottom: 120px;
    min-height: 600px; /* Base stability */
    content-visibility: auto; /* Browser optimization */
    contain-intrinsic-size: 1px 600px;
}

@media (max-width: 768px) {
    .section-standard {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.shimmer-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #6366f1, #818cf8, #6366f1);
    background-size: 200% auto;
    animation: pulse-gradient 3s infinite;
}

.shimmer-button-pink {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ec4899, #f472b6, #ec4899);
    background-size: 200% auto;
    animation: pulse-gradient 3s infinite;
}

.logo-main {
    width: 160px;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.ai-glow {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    border-bottom: 2px solid #a855f7;
    padding: 0 2px;
    cursor: pointer;
}

.live-pulse {
    position: relative;
}

.live-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    border: 2px solid currentColor;
    animation: ripple 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.testimonial-img {
    transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-img {
    transform: scale(1.15) translateZ(20px);
}

@keyframes scale-up {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-up {
    animation: scale-up 0.2s ease-out forwards;
}

#resizeHandle {
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    cursor: nw-resize;
}

/* Utility for Demo Content */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    /* meaningful for animation */
}

/* Slide In Right Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

/* Typing Indicator */
.typing-dot {
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* --- Premium Testimonials --- */
.testimonial-card-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .testimonial-card-premium {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.dark .testimonial-card-premium:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Featured Card Special Styling */
.testimonial-card-premium.featured {
    transform: scale(1.05);
    z-index: 10;
    /* border-color: rgba(236, 72, 153, 0.3); */
    box-shadow: 0 20px 50px -10px rgba(236, 72, 153, 0.15);
}

.testimonial-card-premium.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(236, 72, 153, 0.25);
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 2.5rem;
    /* Increased whitespace */
    padding: 1rem 0;
}

@media (max-width: 1280px) {
    .bento-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 2.5rem;
    /* More internal whitespace */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dark .bento-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.1);
    transform: translateY(-8px);
}

.bento-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.bento-desc {
    font-size: 0.9375rem;
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 500;
}

/* Static Chat Snapshot Styles */
.chat-snapshot-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.chat-bubble-static {
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    max-width: 90%;
    position: relative;
    line-height: 1.4;
    font-weight: 500;
}

.chat-bubble-left {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
}

.chat-bubble-right {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.chat-avatar-static {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

/* Progress Indicator */
.progress-ring-static {
    width: 6rem;
    height: 6rem;
    position: relative;
    margin-top: 1rem;
}

.itinerary-task {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
}

/* Dashboard Card Color Variants */
.card-lavender {
    background-color: #E8E7FF;
    color: #1E1B4B;
}

.card-lilac {
    background-color: #F3E8FF;
    color: #1E1B4B;
}

.card-blue {
    background-color: #E0F2FE;
    color: #1E1B4B;
}

.card-purple {
    background-color: #7C3AED;
    color: #FFFFFF;
}

.card-purple h3,
.card-purple h4,
.card-purple h5,
.card-purple p,
.card-purple span {
    color: #FFFFFF !important;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Executive Dashboard Additions --- */
.text-huge {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.grid-compact {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    grid-auto-rows: minmax(80px, auto);
}

@media (max-width: 1024px) {
    .grid-compact {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-compact {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-card {
        padding: 1.5rem !important;
    }

    .text-huge {
        font-size: 2.25rem;
    }

    .panel-header h4 {
        font-size: 1.25rem;
    }

    .dashboard-card p {
        font-size: 0.875rem;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.material-symbols-outlined.fill-icon {
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}

/* Dashboard Card Variants */
.dashboard-card {
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.dark .dashboard-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
}