:root {
    /* Colors - Bright Luxury Palette */
    --primary-500: #3FBFE7;
    /* Vivid Cyan */
    --primary-600: #4A7A94;
    /* Deep Slate Blue */
    --secondary: #6BC6B8;
    /* Aqua Teal */

    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(63, 191, 231, 0.2);

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.glow-primary {
    box-shadow: 0 4px 14px 0 rgba(63, 191, 231, 0.39);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-500);
}

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 191, 231, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(63, 191, 231, 0.1), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.badge-new {
    display: inline-block;
    background: rgba(63, 191, 231, 0.1);
    color: var(--primary-600);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(63, 191, 231, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Hero Visual & Animations */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 100%;
}

.tech-sphere-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.tech-core {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--primary-500), #8B5CF6);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 10;
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Rings */
.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(63, 191, 231, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 180px;
    height: 180px;
    border-color: rgba(139, 92, 246, 0.4);
    border-style: dashed;
    animation: rotate-left 12s linear infinite;
}

.ring-2 {
    width: 260px;
    height: 260px;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-width: 2px;
    animation: rotate-right 18s linear infinite;
}

.ring-3 {
    width: 380px;
    height: 380px;
    border-color: rgba(63, 191, 231, 0.15);
    animation: rotate-left 25s linear infinite;
}

/* Dots / Satellites */
.tech-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    top: 50%;
    left: 50%;
}

.dot-1 {
    width: 10px;
    height: 10px;
    margin-top: -130px;
    /* Radius of orbit 2 */
    transform-origin: 0 130px;
    animation: orbit 8s linear infinite;
}

.dot-2 {
    margin-top: -190px;
    /* Radius of orbit 3 */
    transform-origin: 0 190px;
    animation: orbit 15s linear infinite reverse;
    background: var(--primary-500);
}

.dot-3 {
    margin-top: -90px;
    transform-origin: 0 90px;
    animation: orbit 5s linear infinite;
    background: #8B5CF6;
}

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(63, 191, 231, 0.8);
    }
}

@keyframes rotate-right {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-left {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Particles */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-500);
    opacity: 0.3;
}

/* Mouse Trail Particles */
.mouse-trail-particle {
    position: fixed;
    /* Fixed to follow mouse over the entire viewport */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 1;
    animation: fadeScaleOut 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeScaleOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -20px))) scale(0);
        opacity: 0;
    }
}

/* Social Proof */
.social-proof {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-secondary);
}

.proof-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.client-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-secondary);
    /* Placeholder style */
}

/* Services Flip Cards */
.services {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card-flip {
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card-front {
    background-color: var(--bg-secondary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    text-align: left;
}

.service-card-back {
    background: white;
    transform: rotateY(180deg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.service-card-back h3 {
    margin-bottom: 16px;
    color: var(--primary-600);
}

.service-card-back p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.tags {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tags span {
    background: rgba(63, 191, 231, 0.1);
    color: var(--primary-600);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Showcase */
.showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-500);
    display: block;
}

.showcase-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: white;
    padding: 16px;
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* About */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 24px;
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(63, 191, 231, 0.2), transparent 70%);
    z-index: -1;
}

/* Contact/CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary), white);
    position: relative;
}

.cta-content {
    max-width: 600px;
}

.contact-form {
    margin-top: 40px;
    padding: 32px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
}

.full-width {
    width: 100%;
}

/* Legal Pages */
.legal-section {
    padding: 120px 0 60px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .hero-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-text {
    padding: 40px;
    background: white;
}

.legal-text h2 {
    color: var(--primary-500);
    margin: 32px 0 16px;
    font-size: 1.5rem;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-text ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-text li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-500);
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-500);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

    /* Typography scaling */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-desc {
        font-size: 0.9rem;
    }

    /* Navbar */
    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        gap: 16px;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo img {
        height: 36px !important;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 250px;
    }

    .tech-sphere-container {
        width: 220px;
        height: 220px;
    }

    .tech-core {
        width: 60px;
        height: 60px;
    }

    .ring-1 {
        width: 100px;
        height: 100px;
    }

    .ring-2 {
        width: 150px;
        height: 150px;
    }

    .ring-3 {
        width: 210px;
        height: 210px;
    }

    .dot-1 {
        margin-top: -75px;
        transform-origin: 0 75px;
    }

    .dot-2 {
        margin-top: -105px;
        transform-origin: 0 105px;
    }

    .dot-3 {
        margin-top: -50px;
        transform-origin: 0 50px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
        text-align: center;
        display: block;
        padding: 14px 24px;
    }

    .badge-new {
        font-size: 0.8rem;
        display: inline-block;
    }

    /* Services */
    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card-flip {
        height: 300px;
    }

    /* Showcase */
    .showcase {
        padding: 60px 0;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-text {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-item {
        margin-bottom: 0;
    }

    /* About */
    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .about-image-container {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Contact */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 20px;
        margin-top: 24px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }
}

/* AI Chat Bubble */
.ai-chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    z-index: 9999;
}

.ai-chat-bubble img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(63, 191, 231, 0.4));
}

.ai-chat-bubble:hover img {
    transform: scale(1.1);
}

.chat-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: white;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-chat-bubble:hover .chat-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 80vh;
    max-height: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    border: 1px solid rgba(63, 191, 231, 0.2);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-secondary), white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.chat-header-info span {
    font-size: 0.75rem;
    color: var(--secondary);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    margin-right: 4px;
}


.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-chat {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-chat:hover {
    color: var(--primary-500);
    background: rgba(63, 191, 231, 0.1);
}

.close-chat {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.close-chat:hover {
    color: var(--primary-500);
}


.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: var(--bg-secondary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Formatted bot message content */
.msg-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.msg-content p {
    margin: 0;
}

.message.bot .msg-content strong {
    color: var(--primary-600);
    font-weight: 600;
}

.message.bot .msg-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message.bot .msg-content ol li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.message.bot .msg-content br+br {
    display: none;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-option-btn {
    background: white;
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: var(--primary-500);
    color: white;
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.chat-input-area button {
    background: var(--primary-500);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .chat-window {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        z-index: 10000;
    }

    .chat-window .chat-header {
        border-radius: 0;
        padding: 14px 16px;
        padding-top: max(14px, env(safe-area-inset-top));
    }

    .chat-window .chat-messages {
        padding: 16px;
    }

    .chat-window .chat-input-area {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .chat-window .chat-input-area input {
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    /* Hide bubble when chat is open */
    .chat-window.active~.ai-chat-bubble,
    .ai-chat-bubble.chat-open {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.5);
        transition: all 0.2s ease;
    }

    .ai-chat-bubble {
        bottom: 20px;
        right: 20px;
        transition: all 0.2s ease;
    }

    .chat-tooltip {
        display: none;
    }

    .message {
        max-width: 90%;
    }
}

