/* Global Variables & Reset */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-darker: #3730a3;
    --primary-light: #818cf8;
    --primary-ultralight: #c7d2fe;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --gradient-start: #e0e7ff;
    --gradient-end: #ede9fe;
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Layout Utilities */
.max-width {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Consistent horizontal padding */
}

.text-center {
    text-align: center;
}

.section {
    padding: 6rem 0;
    /* Consistent vertical padding for sections */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sub-title {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 5px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover:before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-cta {
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem 2.8rem;
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.8rem 2rem;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 0.5rem;
    color: var(--accent);
}

/* Main Navigation (Desktop) */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav ul li a:hover {
    color: var(--primary);
}

.main-nav ul li a:hover:after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    font-size: 1.7rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    /* Position from the right */
    width: 100%;
    /* Full width for small screens, but limited by max-width */
    max-width: 320px;
    /* Max width for the menu */
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1010;
    /* Above header */
    transform: translateX(100%);
    /* Start off-screen to the right */
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align items to the start (left) */
    justify-content: flex-start;
    /* Align content to the top */
    padding: 2rem;
    /* Consistent padding */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active {
    transform: translateX(0);
    /* Slide in */
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.close-menu:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.mobile-nav ul {
    list-style: none;
    text-align: left;
    /* Align text to the left */
    margin-bottom: 2rem;
    width: 100%;
    /* Ensure ul takes full width of its container */
    padding-top: 4rem;
    /* Add padding to push content down from close button */
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 0;
    /* Remove horizontal padding, rely on parent padding */
    display: block;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    background: var(--primary-ultralight);
    color: var(--primary-dark);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    /* Ensure buttons take full width of menu */
    max-width: 300px;
    /* This max-width will apply if the menu itself is wider */
}

.mobile-buttons .btn {
    width: 100%;
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    /* Adjusted top padding for header and bottom padding */
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-ultralight) 0%, rgba(199, 210, 254, 0) 70%);
    z-index: 0;
}

.hero-section:after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light) 0%, rgba(167, 139, 250, 0) 70%);
    z-index: 0;
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Increased gap for better separation */
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 3.85rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-text h1 span:after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(139, 92, 246, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Premium Table */
.comparison-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out, floatAnimation 8s ease-in-out infinite;
    animation-delay: 0.3s;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.comparison-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: -1;
}

.table-header {
    padding: 1.3rem;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
}

.table-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.table-header p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead {
    background: var(--bg-light);
}

.comparison-table th {
    padding: 1.3rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th:first-child {
    border-top-left-radius: var(--radius-xl);
}

.comparison-table th:last-child {
    border-top-right-radius: var(--radius-xl);
}

.comparison-table td {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.5);
}

.comparison-table tr:hover td {
    background: rgba(224, 231, 255, 0.2);
    transform: translateY(-2px);
}

.feature-name {
    font-weight: 600;
    color: var(--text-dark);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-traditional {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-instant {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.comparison-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.7rem;
}

.icon-traditional {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.icon-instant {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.highlight-cell:after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.15);
    z-index: -1;
    animation: pulseBorder 2s infinite;
}

/* How It Works Section */
.how-it-works {
    background: white;
    position: relative;
    overflow: hidden;
}

.how-it-works:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-ultralight) 0%, rgba(199, 210, 254, 0) 70%);
    z-index: 0;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Consistent gap with hero section */
    align-items: center;
}

.steps-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.step-text p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.steps-gif {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tutorial-gif {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
}

.gif-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.gif-caption i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

@media (max-width: 1024px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-gif {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Adjusted minmax for better fit on smaller desktops */
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(199, 210, 254, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Adjusted minmax for better fit */
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(199, 210, 254, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.05);
    line-height: 1;
    font-family: Georgia, serif;
}

.stars {
    color: #facc15;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    font-weight: 700;
    color: var(--text-dark);
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: white;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.cta-text {
    position: relative;
    z-index: 3;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.cta-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.highlight-count,
.highlight-time {
    position: relative;
    display: inline-block;
}

.highlight-count:after,
.highlight-time:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-cta-pulse {
    position: relative;
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.btn-cta-pulse:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.btn-cta-pulse .btn-icon {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-cta-pulse:hover .btn-icon {
    transform: translateX(5px);
}

.pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    z-index: -1;
    animation: pulse 2s infinite;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.cta-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* CTA Visual Elements */
.cta-visual {
    position: relative;
    height: 300px;
    animation: fadeInRight 1s ease-out;
}

.floating-paper {
    position: absolute;
    width: 240px;
    height: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.paper-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 60px 60px 0;
    border-color: transparent var(--primary-light) transparent transparent;
}

.paper-content {
    padding: 2rem 1.5rem;
}

.paper-line {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    margin-bottom: 1.2rem;
    border-radius: 4px;
}

.paper-line.short {
    width: 70%;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: floatIcon 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.icon-circle:nth-child(1) {
    top: 10%;
    left: 10%;
}

.icon-circle:nth-child(2) {
    top: 60%;
    left: 70%;
}

.icon-circle:nth-child(3) {
    top: 30%;
    left: 80%;
}

/* Animated Background Particles */
.cta-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
    z-index: 1;
}

.cta-particle-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cta-particle-2 {
    width: 30px;
    height: 30px;
    top: 60%;
    left: 15%;
    animation-delay: 2s;
}

.cta-particle-3 {
    width: 15px;
    height: 15px;
    top: 30%;
    right: 10%;
    animation-delay: 4s;
}

.cta-particle-4 {
    width: 25px;
    height: 25px;
    bottom: 20%;
    right: 15%;
    animation-delay: 6s;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(-5deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-5deg) translateY(-20px);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50px) translateX(20px);
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) translateX(40px);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons,
    .cta-features {
        justify-content: center;
    }

    .cta-visual {
        height: 250px;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {

    /* Header adjustments */
    header {
        padding: 1rem 1.5rem;
    }

    .main-nav,
    .header-buttons {
        display: none;
        /* Hide desktop nav and buttons */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger menu */
    }

    /* Hero section adjustments */
    .hero-section {
        padding: 6rem 0 4rem;
        /* Adjusted padding for mobile */
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Stack content vertically */
        gap: 3rem;
        /* Adjusted gap for mobile */
        padding-top: 2rem;
        /* Add some top padding to avoid header overlap */
    }

    .hero-text {
        text-align: center;
        /* Center align text */
    }

    .hero-text p {
        max-width: 90%;
        /* Adjust max-width for better text flow */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        /* Stack buttons vertically */
        gap: 1rem;
        /* Adjust gap */
        align-items: center;
        /* Center buttons */
    }

    .hero-buttons .btn {
        width: 80%;
        /* Make buttons wider */
        max-width: 300px;
        /* Limit button width */
    }

    .hero-features {
        justify-content: center;
        /* Center feature items */
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cta-pulse,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .logo{
        font-size: 1.6rem;
    }
    .step-icon{
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .hero-text h1 {
        font-size: 1.6rem;
        /* Even smaller font for very small screens */
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        /* Smaller padding for buttons */
        font-size: 0.9rem;
    }

    .max-width {
        padding: 0 1rem;
        /* Reduce horizontal padding */
    }

    .section-title {
        font-size: 1.6rem;
    }

    .sub-title {
        font-size: 0.9rem;
    }

    .comparison-container {
        display: none;
    }

    .feature-card p{
        font-size: 14px;
    }

    .hero-section:before,
    .hero-section:after,
    .how-it-works:before {
        display: none;
    }
    .feature-card h3{
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}


/* FAQ Section */
.faq {
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 1000px;
    /* Sufficiently large to show content */
}

.faq-answer p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-medium);
}

.question-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.type-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
}

.type-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.type-card span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .question-types {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.footer-about p {
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links ul li a i {
    font-size: 0.8rem;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0) rotate(0.5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-0.5deg);
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Contact Section Styles */
.contact-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.floating label {
    position: absolute;
    top: 1rem;
    left: 3rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
    z-index: 1;
    /* Ensure label is above input when floating */
}

.form-group.floating .input-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--primary);
    z-index: 1;
    /* Ensure icon is above input */
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    /* Needed for z-index to work correctly */
    background: transparent;
    /* Ensure background is transparent for label to show */
}

.form-group.floating textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label,
.form-group.floating textarea:focus+label,
.form-group.floating textarea:not(:placeholder-shown)+label {
    top: -0.6rem;
    left: 2rem;
    font-size: 0.8rem;
    color: var(--primary);
    background: white;
    /* Background for the floating label */
    padding: 0 0.3rem;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Contact Info Styles */
.contact-info-container {
    position: relative;
}

.contact-info-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    /* Use flexbox for vertical alignment */
    flex-direction: column;
    justify-content: space-between;
    /* Distribute space */
}

.info-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-header p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.info-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.info-content a,
.info-content p {
    display: block;
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-content a:hover {
    color: var(--primary);
}

.social-links {
    margin-top: 3rem;
    /* Adjusted margin for consistency */
}

.social-links p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Floating Elements */
.contact-float {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
    animation: float2 6s ease-in-out infinite;
}

.contact-float-1 {
    background: var(--primary);
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.contact-float-2 {
    background: var(--accent);
    bottom: 15%;
    right: 8%;
    animation-delay: 1s;
}

.contact-float-3 {
    background: var(--success);
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

header.scrolled{
    padding: 1rem 1.5rem;
}

    .contact-form-container,
    .contact-info-card {
        padding: 1rem;
    }

    .contact-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        display: none;
    }

    .section,
    .contact-section {
        padding: 3.5rem 0;
        /* Adjusted section padding for mobile */
    }
}


.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 95%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.login-container:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.close-login {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-lighter);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-login:hover {
    color: var(--primary);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-logo i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.login-logo span {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.login-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-lighter);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-lighter);
}

.show-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    transition: color 0.3s ease;
}

.show-password:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary);
}

.forgot-password {
    color: var(--text-lighter);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

.btn-login {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.social-login {
    text-align: center;
    margin: 1.5rem 0;
}

.social-login p {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-btn.google {
    background: #DB4437;
    color: white;
}

.social-btn.microsoft {
    background: #0078D7;
    color: white;
}

.social-btn.apple {
    background: #000000;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.signup-link {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .login-container {
        padding: 1.6rem;
    }

    .section,
    .contact-section {
        padding: 3.5rem 0;
    }
}


/* WHatsapp Icon */
/* 1. Floating Container */
#whatsapp-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* 2. Main Floating WhatsApp Button */
#whatsapp-button {
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#whatsapp-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* 3. Chat Box Styling */
#chat-box {
    position: absolute;
    right: 0;
    bottom: 84px;
    /* Space between box and button */
    width: 320px;
    min-height: 400px;
    /* MANDATORY MIN HEIGHT */
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;

    /* Transition properties */
    opacity: 0;
    transform: scale(0.8);
    transform-origin: bottom right;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    /* Prevents interaction when hidden */
}

.chat-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Chat Header */
#chat-header {
    background-color: #128C7E;
    /* Deeper WhatsApp Green */
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chat-header i {
    font-size: 24px;
}

#chat-header-text p:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.15rem;
}

#chat-header-text p:last-child {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0;
    line-height: 0.76rem;
}

/* Message History Area */
#message-history {
    background-color: #E5DDD5;
    /* Light chat background */
    padding: 15px;
    flex-grow: 1;
    /* Allows it to fill space and respect min-height */
    overflow-y: auto;
    max-height: 400px;
    /* Adjust based on header/footer size */
}

/* Custom scrollbar for message history */
#message-history::-webkit-scrollbar {
    width: 6px;
}

#message-history::-webkit-scrollbar-thumb {
    background-color: #b0b0b0;
    border-radius: 3px;
}

/* Message Bubble - General Styling */
.message-bubble {
    margin-bottom: 12px;
}

/* User Message Bubble */
.user-bubble {
    display: flex;
    justify-content: flex-end;
}

.user-content {
    background-color: #DCF8C6;
    /* Light green for user */
    padding: 10px 14px;
    border-radius: 10px 10px 0 10px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Agent Message Bubble (System) */
.agent-bubble {
    display: flex;
    justify-content: flex-start;
}

.agent-content {
    background-color: #fff;
    /* White for agent */
    padding: 10px 14px;
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.agent-content strong {
    color: #075E54;
    /* Darker green/teal for label */
    display: block;
    margin-bottom: 4px;
}


/* Input Section */
#chat-input-area {
    padding: 10px;
    border-top: 1px solid #ccc;
    display: flex;
    gap: 8px;
    background-color: #f0f0f0;
}

#user-message {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#user-message:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 1px #25D366;
}

#send-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s;
}

#send-whatsapp:hover {
    background-color: #1DA851;
}

#send-whatsapp:active {
    transform: scale(0.95);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 400px) {
    #chat-box {
        width: 90vw;
        /* Take up more screen width */
        right: 1.5vw;
        min-height: 350px;
        /* Slightly reduce min-height on tiny screens */
    }
    .step-card{
        gap: 1rem;
    }

    #whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
    .faq-question h3{
        font-size: 1rem;
    }
    .faq-answer p{
        font-size: 14px;
    }
}


/* --- Quick Reply Styling --- */
#quick-replies-container {
    margin-top: 15px;
    padding-top: 5px;
}

.quick-reply-button {
    background-color: #f0f0f0;
    color: #1f2937;
    /* Dark text */
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 20px;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s, border-color 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    /* Important for stacking */
}

/* Special style for the first two initial buttons */
.initial-reply {
    width: calc(50% - 4px);
    /* Side by side */
    display: inline-flex;
    justify-content: center;
    text-align: center;
}

/* Ensure the initial replies stack on small screens */
@media (max-width: 350px) {
    .initial-reply {
        width: 100%;
        display: flex;
    }
}


.quick-reply-button:hover {
    background-color: #e0e0e0;
    border-color: #c0c0c0;
}

/* Typing indicator CSS (basic pulse) */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background-color: #fff;
    border-radius: 10px 10px 10px 0;
    max-width: fit-content;
    margin-bottom: 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #075E54;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

