﻿/* ========================================
   REDFISH - Premium Digital Agency
   Design System & Styles
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-hover: #1f1f1f;
    --color-text-primary: #ffffff;
    --color-text-secondary: #999999;
    --color-text-muted: #666666;
    --color-accent: #c41e2a;
    --color-accent-hover: #e63946;
    --color-accent-glow: rgba(196, 30, 42, 0.3);
    --color-border: #222222;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font-primary);

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 700;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--color-accent);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo__image {
    height: 50px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover .logo__image {
    transform: scale(1.05);
}

.logo__text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.logo__fish {
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.logo:hover .logo__fish {
    color: var(--color-accent-hover);
}

/* Desktop Nav Positioning */
.nav {
    margin-left: auto;
    margin-right: 2rem;
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
/* ========================================
   Mobile Menu Toggle
   ======================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-muted);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-base);
}

.lang-btn:hover {
    color: var(--color-text-primary);
}

.lang-btn.active {
    background: var(--color-accent);
    color: var(--color-text-primary);
}

/* ========================================
   Mobile Menu Toggle
   ======================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

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

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

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-text-primary);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--color-accent-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-text-muted);
}

.btn--large {
    padding: 1.5rem 3rem;
    font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0;
    /* overflow: hidden; Removed to allow image overlap */
    z-index: 5;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 42, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(196, 30, 42, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero__content {
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero__label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(196, 30, 42, 0.1);
    border: 1px solid rgba(196, 30, 42, 0.2);
    border-radius: 20px;
}

.hero__title {
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Page Variant */
.hero--page {
    min-height: 60vh;
    padding-top: calc(80px + 6rem);
}

.hero--page .hero__title {
    font-size: 3.5rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 8rem 0;
    position: relative;
}

.section--dark {
    background: var(--color-surface);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.section__label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section__title {
    margin-bottom: 1.5rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover,
.service-card.hover-active {
    background: var(--color-surface-hover);
    transform: translateY(-8px);
}

.service-card:hover::before,
.service-card.hover-active::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(196, 30, 42, 0.1);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon,
.service-card.hover-active .service-card__icon {
    background: var(--color-accent);
    transform: scale(1.1);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card__description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card__link:hover,
.service-card.hover-active .service-card__link {
    color: var(--color-accent-hover);
}

.service-card__link svg {
    transition: transform var(--transition-base);
}

.service-card__link:hover svg,
.service-card.hover-active .service-card__link svg {
    transform: translateX(4px);
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    transition: all var(--transition-smooth);
}

.feature-card:hover,
.feature-card.hover-active {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.feature-card__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    transition: opacity var(--transition-smooth);
    margin-bottom: 1rem;
}

.feature-card:hover .feature-card__number,
.feature-card.hover-active .feature-card__number {
    opacity: 1;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card__description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.features-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__number .accent {
    color: var(--color-accent);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 30, 42, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section__title {
    margin-bottom: 1.5rem;
}

.cta-section__text {
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 3rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.footer__logo span {
    color: var(--color-accent);
}

.footer__description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer__column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__link {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer__legal a:hover {
    color: var(--color-accent);
}

/* ========================================
   Responsive - Tablet (1024px)
   ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 4rem;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Responsive - Mobile (768px)
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Mobile Navigation */
    .nav {
        display: flex;
        /* Added missing flex display */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0a0a0a;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav__link {
        font-size: 1.125rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
        width: 100%;
    }

    .lang-switcher {
        margin-top: 0;
        margin-left: auto;
        margin-right: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Hero */
    .hero {
        min-height: auto;
        padding: 10rem 0 4rem;
    }

    .hero--page {
        padding-top: 8rem;
    }

    .hero--page .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn--large {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Sections */
    .section {
        padding: 4rem 0;
    }

    .section__header {
        margin-bottom: 3rem;
    }

    .services-grid,
    .features-grid,
    .features-two-col {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chat-header__status {
        height: 150px;
        width: auto;
        margin: auto;
        border-radius: 8px;
    }

    /* Mobile Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

/* ========================================
   Responsive - Small Mobile (480px)
   ======================================== */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero__label {
        font-size: 0.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .service-card,
    .feature-card {
        padding: 2rem;
    }

    .chat-header__status {
        height: 130px;
        width: auto;
        margin: auto;
        border-radius: 8px;
    }
}

/* ========================================
   Contact Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal__container {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-smooth);
}

.modal.active .modal__container {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border-color: var(--color-text-muted);
}

.modal__header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.modal__subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group--checkboxes {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.form-group--checkboxes>label:first-child {
    width: 100%;
    margin-bottom: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    margin-bottom: 0;
}

.form-group input,
.form-group textarea {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.modal__submit {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .modal__container {
        padding: 2rem;
    }

    .modal__title {
        font-size: 1.5rem;
    }

    .checkbox-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .checkbox-item label {
        font-size: 0.75rem;
    }
}

/* ========================================
   Hero Side Image
   ======================================== */
.hero__side-image {
    position: absolute;
    right: 0;
    bottom: -180px;
    transform: none;
    width: 55%;
    max-width: 850px;
    z-index: 10;
    pointer-events: none;
    animation: floating 4s ease-in-out infinite;
}

@media (min-width: 1600px) {
    .hero__side-image {
        width: 50%;
        max-width: 1400px;
        bottom: -250px;
    }
}

.hero__side-image .page-visual {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 0 0 16px;
}

/* Floating Animation */
@keyframes floating {

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

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

@media (max-width: 1024px) {
    .hero__side-image {
        width: 45%;
        max-width: 450px;
        bottom: -50px;
    }
}

@media (max-width: 768px) {
    .hero__side-image {
        position: absolute;
        width: 95%;
        max-width: 500px;
        top: auto;
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: -80px;
        opacity: 1;
    }

    .hero__side-image .page-visual {
        border-radius: 16px;
    }

    /* Animation mobile */
    @keyframes floating {

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

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

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   Chatbot Interface
   ======================================== */
.section--chat-wrapper {
    padding: 4rem 0;
}

.chat-interface {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(196, 30, 42, 0.05);
    /* Fond rouge très léger */
    border: 1px solid var(--color-accent);
    /* Contour rouge */
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(196, 30, 42, 0.15);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: rgba(196, 30, 42, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(196, 30, 42, 0.2);
}



.chat-header__status {
    height: 250px;
    width: auto;
    margin: auto;
    /* Push to the right */
    border-radius: 8px;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    /* Fond sombre léger */
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: fadeInUp 0.3s ease-out forwards;
}

.message--bot {
    align-self: flex-start;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 2px;
}

.message--user {
    align-self: flex-end;
    background: var(--color-accent);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(196, 30, 42, 0.3);
}

.message--loading {
    background: transparent;
    padding: 0;
    border: none;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

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

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.chat-input-area {
    padding: 1.5rem;
    background: rgba(196, 30, 42, 0.05);
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(196, 30, 42, 0.2);
}

#chat-input {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    color: var(--color-text);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

.chat-submit {
    background: var(--color-accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.chat-submit:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}