* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #8B5E3C 0%, #A0715E 50%, #6B4423 100%);
    color: #FFFFFF;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    padding: 30px 0;
    position: relative;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.logo-image {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Keep old logo-icon styles for backwards compatibility */
.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFF;
    border-radius: 50%;
    left: 8px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #FFF;
    right: 8px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-links a:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.cta-button {
    background: #FFFFFF;
    color: #8B5E3C;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    padding: 100px 0 150px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(135deg, #ffb773 0%, #ffffff71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary {
    background: #FFFFFF;
    color: #8B5E3C;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
}

.chat-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 94, 60, 0.1);
    margin-bottom: 25px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-info h3 {
    color: #8B5E3C;
    font-size: 18px;
    margin-bottom: 3px;
}

.chat-status {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 600;
}

.chat-message {
    background: rgba(139, 94, 60, 0.1);
    padding: 15px 20px;
    border-radius: 18px;
    margin-bottom: 15px;
    color: #5D4037;
    font-size: 15px;
    line-height: 1.6;
}

.chat-message.user {
    background: #8B5E3C;
    color: #FFFFFF;
    margin-left: 50px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: rgba(139, 94, 60, 0.1);
    border-radius: 18px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #8B5E3C;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 80px;
    right: -30px;
    animation-delay: 1.5s;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.card-text {
    color: #8B5E3C;
    font-weight: 700;
    font-size: 14px;
}

.card-subtext {
    color: #A0715E;
    font-size: 12px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    backdrop-filter: blur(10px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 15px;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 80px 0;
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.contact p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 16px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    h1 {
        font-size: 52px;
    }

    .hero-visual {
        height: 500px;
    }

    .chat-preview {
        width: 100%;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #8B5E3C 0%, #A0715E 100%);
        flex-direction: column;
        padding: 100px 30px 30px 30px;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-links .cta-button {
        margin-top: 20px;
        text-align: center;
        border-bottom: none;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    /* Make hero section full width */
    .hero {
        padding: 60px 0 100px 0;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 16px;
    }

    .chat-preview {
        padding: 20px;
    }

    .floating-card {
        display: none;
    }

    .contact h2 {
        font-size: 32px;
    }
    
    /* Better mobile spacing */
    .hero {
        padding: 40px 0 80px 0;
    }
    
    .badge {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 30px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }

    /* Optimize fixed preview for small mobile screens */
    .preview-panel {
        padding: 10px;
    }
    
    .preview-screen {
        max-width: 100%;
        min-height: 280px;
    }
    
    .preview-content {
        padding: 20px 15px;
        min-height: 230px;
    }
    
    .preview-header {
        padding: 8px 12px;
    }
    
    .preview-dot {
        width: 10px;
        height: 10px;
    }
    
    .preview-url {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .customization-panel {
        margin-bottom: 300px;
    }
}

/* Video Demo Section */
.video-demo {
    background: #FFFFFF;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    top: -100px;
    left: -50px;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #A0715E, #6B4423);
    top: 50%;
    right: -50px;
    animation: float-2 15s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #6B4423, #8B5E3C);
    bottom: -50px;
    left: 20%;
    animation: float-3 18s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    top: 20%;
    left: 10%;
    animation: float-4 22s ease-in-out infinite;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #A0715E, #8B5E3C);
    bottom: 20%;
    right: 15%;
    animation: float-5 17s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(50px, 100px) rotate(120deg);
    }

    66% {
        transform: translate(-30px, 50px) rotate(240deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-80px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(40px, -80px) rotate(240deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(70px, -60px) rotate(120deg);
    }

    66% {
        transform: translate(-50px, -30px) rotate(240deg);
    }
}

@keyframes float-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-60px, 80px) rotate(120deg);
    }

    66% {
        transform: translate(50px, -50px) rotate(240deg);
    }
}

@keyframes float-5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(60px, 70px) rotate(120deg);
    }

    66% {
        transform: translate(-70px, 40px) rotate(240deg);
    }
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(139, 94, 60, 0.2);
    z-index: 10;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.video-demo .container {
    position: relative;
    z-index: 10;
}

/* Trusted By Section */
.trusted-by {
    background: #F8F5F2;
    padding: 60px 0;
    border-top: 1px solid #E5DDD5;
    border-bottom: 1px solid #E5DDD5;
}

.logo-slider {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #F8F5F2 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #F8F5F2 0%, transparent 100%);
}

.logo-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-item img {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Floating Chat Button */
.chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(139, 94, 60, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(139, 94, 60, 0.6);
}

/* Chat Modal Styles */
.chat-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.chat-modal-header {
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    padding: 20px 25px;
    border: none;
}

.chat-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.chat-modal-header .btn-close:hover {
    opacity: 1;
}

.chat-modal-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-modal-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.chat-modal-body {
    padding: 0;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: #F8F5F2;
}

.chat-bot-message,
.chat-user-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.chat-user-message {
    justify-content: flex-end;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-message-content {
    background: white;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 70%;
    color: #333;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message-content a {
    color: #8B5E3C;
    font-weight: 600;
    text-decoration: none;
}

.chat-message-content a:hover {
    text-decoration: underline;
}

.user-msg {
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
}

.faq-section {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.faq-title {
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 15px;
    font-size: 15px;
}

.faq-btn {
    display: block;
    width: 100%;
    background: #F8F5F2;
    border: 2px solid #E5DDD5;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    color: #5D4037;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-btn:hover {
    background: #8B5E3C;
    color: white;
    border-color: #8B5E3C;
    transform: translateX(5px);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #8B5E3C;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-input-area {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #E5DDD5;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 2px solid #E5DDD5;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: #8B5E3C;
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

@media (max-width: 768px) {
    .chat-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .modal-lg {
        margin: 10px;
    }
    
    .chat-modal-body {
        height: 450px;
    }
    
    .chat-message-content {
        max-width: 85%;
    }
}

/* Fixed Size Control Bar */
.size-control-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    display: none; /* Hidden by default */
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.15);
    z-index: 1070;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 94, 60, 0.1);
}

.size-control-bar.show {
    display: flex; /* Show when modal is open */
}

.size-control-label {
    font-weight: 600;
    color: #8B5E3C;
    font-size: 14px;
    margin-right: 5px;
}

.size-btn {
    background: transparent;
    border: 2px solid #E5DDD5;
    color: #8B5E3C;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover {
    background: rgba(139, 94, 60, 0.1);
    border-color: #8B5E3C;
}

.size-btn.active {
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border-color: #8B5E3C;
}

@media (max-width: 768px) {
    .size-control-bar {
        top: 10px;
        padding: 10px 15px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .size-control-label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .size-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Button Customization Section */
.button-customization {
    background: #FFFFFF;
    padding: 100px 0;
    position: relative;
}

.customization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Customization Panel */
.customization-panel {
    background: #F8F5F2;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(139, 94, 60, 0.1);
}

.control-group {
    margin-bottom: 35px;
}

.control-label {
    display: block;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 20px;
}

/* Icon Options */
.icon-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.icon-option {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #E5DDD5;
    background: white;
    border-radius: 12px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-option:hover {
    border-color: #8B5E3C;
    transform: scale(1.05);
}

.icon-option.active {
    border-color: #8B5E3C;
    background: rgba(139, 94, 60, 0.1);
    border-width: 3px;
}

/* Style Options */
.style-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pill-preview {
    border-radius: 100px;
    width: 60px !important;
    height: 30px !important;
}

.style-option {
    background: white;
    border: 2px solid #E5DDD5;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.style-option:hover {
    border-color: #8B5E3C;
}

.style-option.active {
    border-color: #8B5E3C;
    background: rgba(139, 94, 60, 0.05);
    border-width: 3px;
}

.style-option span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.style-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    flex-shrink: 0;
}

.circle-preview {
    border-radius: 50%;
}

.rounded-preview {
    border-radius: 12px;
}

.square-preview {
    border-radius: 0;
}

/* Size Options */
.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.size-option {
    background: white;
    border: 2px solid #E5DDD5;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.size-option:hover {
    border-color: #8B5E3C;
}

.size-option.active {
    border-color: #8B5E3C;
    background: rgba(139, 94, 60, 0.1);
    border-width: 3px;
}

/* Position Grid */
.position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.position-option {
    background: white;
    border: 2px solid #E5DDD5;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
}

.position-option:hover {
    border-color: #8B5E3C;
}

.position-option.active {
    border-color: #8B5E3C;
    background: rgba(139, 94, 60, 0.1);
    border-width: 3px;
}

.cta-box {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed #8B5E3C;
}

/* Preview Panel */
.preview-panel {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.preview-container {
    background: #F8F5F2;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(139, 94, 60, 0.1);
}

.preview-screen {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    position: relative;
    min-height: 400px;
}

.preview-header {
    background: #E5DDD5;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8B5E3C;
    opacity: 0.4;
}

.preview-url {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    background: white;
    padding: 4px 12px;
    border-radius: 5px;
}

.preview-content {
    padding: 40px;
    min-height: 350px;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

/* Custom AI Button in Preview */
.custom-ai-button {
    position: absolute;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(139, 94, 60, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 30px;
    right: 30px;
}

.custom-ai-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(139, 94, 60, 0.6);
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Customization Features Grid */
.customization-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.custom-feature-card {
    background: #F8F5F2;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 94, 60, 0.15);
}

.custom-feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.custom-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #8B5E3C;
    margin-bottom: 10px;
}

.custom-feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .customization-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .preview-panel {
        position: relative;
        top: 0;
        transition: all 0.3s ease;
    }

    .preview-panel.fixed-preview {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 100;
        background: rgba(248, 245, 242, 0.98);
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
    }

    .preview-panel.fixed-preview .preview-container {
        max-width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .preview-panel.fixed-preview .preview-screen {
        max-width: 500px;
        margin: 0 auto;
    }

    .preview-panel.fixed-preview ~ * .preview-features,
    .preview-panel.fixed-preview .preview-features {
        display: none;
    }
    
    .preview-container {
        max-width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    
    .preview-screen {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Hide preview features on mobile to save space */
    .preview-features {
        display: none;
    }
    
    .customization-panel {
        margin-bottom: 40px;
    }

    .preview-panel.fixed-preview ~ .customization-panel,
    .button-customization:has(.preview-panel.fixed-preview) .customization-panel {
        margin-bottom: 320px;
    }
    
    .customization-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .button-customization {
        padding: 60px 0;
    }
    
    .customization-panel {
        padding: 30px 25px;
    }
    
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .icon-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .customization-features {
        grid-template-columns: 1fr;
    }
    
    /* Mobile optimizations for button customization */
    .button-customization h2 {
        font-size: 36px !important;
    }
    
    .button-customization p {
        font-size: 16px !important;
    }
    
    .customization-panel {
        padding: 25px 20px;
    }
    
    .customization-panel h3 {
        font-size: 20px !important;
    }
    
    .control-label {
        font-size: 14px;
    }
    
    /* Color options - 2 rows of 3 */
    .color-options {
        justify-content: center;
    }
    
    .color-option {
        width: 45px;
        height: 45px;
    }
    
    /* Icon options - 4 per row works well on mobile */
    .icon-option {
        font-size: 24px;
    }
    
    /* Style options - 2 per row on mobile */
    .style-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .style-preview {
        width: 35px;
        height: 35px;
    }
    
    .pill-preview {
        width: 50px !important;
        height: 25px !important;
    }
    
    /* Size options */
    .size-option {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Position grid stays 2x2 */
    .position-option {
        padding: 15px;
        font-size: 20px;
    }
    
    /* Sliders */
    .slider-control {
        padding: 12px 15px;
    }
    
    .slider-value {
        font-size: 13px;
        min-width: 45px;
    }
    
    /* Text input */
    .text-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Text position options */
    .text-position-options {
        gap: 8px;
    }
    
    .text-pos-option {
        padding: 12px 8px;
    }
    
    .text-pos-option span:first-child {
        font-size: 12px;
    }
    
    /* Toggle control */
    .toggle-control {
        padding: 12px 16px;
    }
    
    .toggle-label {
        font-size: 13px;
    }
    
    /* CTA box */
    .cta-box {
        padding: 20px;
    }
    
    .cta-box p {
        font-size: 13px !important;
    }
    
    /* Preview container */
    .preview-container {
        padding: 20px;
    }
    
    .preview-screen {
        min-height: 350px;
    }
    
    .preview-content {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .preview-content h4 {
        font-size: 16px;
    }
    
    .preview-content p {
        font-size: 13px;
    }
    
    .custom-ai-button {
        bottom: 20px;
        right: 20px;
    }
    
    .preview-features {
        gap: 10px;
    }
    
    .preview-feature {
        font-size: 13px;
    }
    
    .feature-check {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    /* Custom feature cards */
    .custom-feature-card {
        padding: 25px 20px;
    }
    
    .custom-feature-icon {
        font-size: 36px;
    }
    
    .custom-feature-card h4 {
        font-size: 16px;
    }
    
    .custom-feature-card p {
        font-size: 13px;
    }
}

/* Slider Controls */
.slider-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #E5DDD5;
}

.custom-slider {
    flex: 1;
    height: 6px;
    border-radius: 5px;
    background: #E5DDD5;
    outline: none;
    -webkit-appearance: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 94, 60, 0.3);
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 94, 60, 0.3);
}

.slider-value {
    font-weight: 700;
    color: #8B5E3C;
    font-size: 14px;
    min-width: 50px;
    text-align: right;
}

/* Text Input */
.text-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E5DDD5;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.text-input:focus {
    border-color: #8B5E3C;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.text-input::placeholder {
    color: #999;
}

/* Text Position Options */
.text-position-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.text-pos-option {
    background: white;
    border: 2px solid #E5DDD5;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.text-pos-option span:first-child {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.text-pos-option small {
    font-size: 11px;
    color: #666;
}

.text-pos-option:hover {
    border-color: #8B5E3C;
}

.text-pos-option.active {
    border-color: #8B5E3C;
    background: rgba(139, 94, 60, 0.05);
    border-width: 3px;
}

/* Updated Custom AI Button for Text */
.custom-ai-button {
    position: absolute;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(139, 94, 60, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 30px;
    right: 30px;
    gap: 10px;
    white-space: nowrap;
    padding: 0 20px;
}

.custom-ai-button .button-text {
    font-size: 15px;
    font-weight: 600;
    display: none;
}

.custom-ai-button.has-text {
    width: auto;
    min-width: 65px;
}

.custom-ai-button.has-text .button-text {
    display: block;
}

/* Toggle Switch */
.toggle-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #E5DDD5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5DDD5;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8B5E3C, #A0715E);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Hide icon picker when toggle is off */
.icon-options.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Message Actions (Copy & Read Aloud) */
.chat-message-bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 70%;
}

.message-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chat-bot-message:hover .message-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(139, 94, 60, 0.1);
    border: 1px solid rgba(139, 94, 60, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(139, 94, 60, 0.2);
    border-color: rgba(139, 94, 60, 0.4);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.speaking {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Mobile adjustments for action buttons */
@media (max-width: 640px) {
    .message-actions {
        opacity: 1; /* Always visible on mobile */
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 18px;
    }
}

/* Markdown Styling in Chat Messages */
.chat-message-content h1,
.chat-message-content h2,
.chat-message-content h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    color: #8B5E3C;
    font-weight: 700;
}

.chat-message-content h1 {
    font-size: 22px;
}

.chat-message-content h2 {
    font-size: 19px;
}

.chat-message-content h3 {
    font-size: 16px;
}

.chat-message-content p {
    margin-bottom: 10px;
}

.chat-message-content strong {
    font-weight: 700;
    color: #6B4423;
}

.chat-message-content em {
    font-style: italic;
}

.chat-message-content ul,
.chat-message-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.chat-message-content li {
    margin-bottom: 5px;
}

.chat-message-content code {
    background: rgba(139, 94, 60, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #6B4423;
}

.chat-message-content pre {
    background: rgba(139, 94, 60, 0.1);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.chat-message-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
}

.chat-message-content blockquote {
    border-left: 4px solid #8B5E3C;
    padding-left: 12px;
    margin-left: 0;
    margin-bottom: 10px;
    color: #666;
    font-style: italic;
}

.chat-message-content a {
    color: #8B5E3C;
    text-decoration: underline;
    font-weight: 600;
}

.chat-message-content a:hover {
    color: #6B4423;
}

.chat-message-content hr {
    border: none;
    border-top: 2px solid rgba(139, 94, 60, 0.2);
    margin: 15px 0;
}

.chat-message-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 10px;
}

.chat-message-content table th,
.chat-message-content table td {
    border: 1px solid rgba(139, 94, 60, 0.2);
    padding: 8px;
    text-align: left;
}

.chat-message-content table th {
    background: rgba(139, 94, 60, 0.1);
    font-weight: 700;
}

/* Clear Chat Button */
.btn-clear-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-clear-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.btn-clear-chat:active {
    transform: scale(0.95);
}