/* Base Reset & Variables */
:root {
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-900: #164e63;
    --black: #000000;
    --white: #ffffff;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-grid {
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.loading-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.05), transparent);
    animation: pulse 3s ease-in-out infinite;
}

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

.loading-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo-container {
    position: relative;
    width: 128px;
    height: 128px;
    margin-bottom: 48px;
}

.loading-logo-glow {
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    filter: blur(32px);
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo-border {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 80px;
    height: 80px;
    color: var(--cyan-400);
}

.loading-text {
    text-align: center;
    animation: fadeIn 0.5s ease-out 0.5s both;
}

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

.loading-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--white);
    font-style: italic;
    margin-bottom: 8px;
}

.loading-subtitle {
    color: var(--cyan-400);
    font-size: 10px;
    letter-spacing: 0.3em;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.loading-bar-container {
    width: 256px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-bar {
    height: 100%;
    background: var(--cyan-500);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.8);
    width: 0%;
    transition: width 0.15s ease-out;
}

.loading-status {
    display: flex;
    justify-content: space-between;
    width: 256px;
    margin-top: 16px;
    font-size: 8px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.loading-corner {
    position: absolute;
    width: 80px;
    height: 80px;
}

.loading-corner-tl {
    top: 40px;
    left: 40px;
    border-top: 2px solid rgba(34, 211, 238, 0.2);
    border-left: 2px solid rgba(34, 211, 238, 0.2);
}

.loading-corner-tr {
    top: 40px;
    right: 40px;
    border-top: 2px solid rgba(34, 211, 238, 0.2);
    border-right: 2px solid rgba(34, 211, 238, 0.2);
}

.loading-corner-bl {
    bottom: 40px;
    left: 40px;
    border-bottom: 2px solid rgba(34, 211, 238, 0.2);
    border-left: 2px solid rgba(34, 211, 238, 0.2);
}

.loading-corner-br {
    bottom: 40px;
    right: 40px;
    border-bottom: 2px solid rgba(34, 211, 238, 0.2);
    border-right: 2px solid rgba(34, 211, 238, 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--cyan-500);
    z-index: 100;
    transform-origin: left;
    width: 0%;
}

/* Side Progress Indicator */
.side-progress {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .side-progress {
        display: flex;
    }
}

.side-progress-line {
    width: 1px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.side-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--cyan-400);
    height: 0%;
    transition: height 0.3s ease;
}

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.side-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.side-nav-item.active .side-nav-dot {
    background: var(--cyan-400);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.side-nav-label {
    position: absolute;
    right: 24px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    color: var(--white);
}

.side-nav-item:hover .side-nav-label,
.side-nav-item.active .side-nav-label {
    opacity: 1;
    transform: translateX(0);
}

.side-nav-item.active .side-nav-label {
    color: var(--cyan-400);
}

/* Background Container */
.background-container {
    position: fixed;
    inset: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(from transparent, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.bg-gradient-top {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.bg-gradient-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.logo-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
}

.logo-glow {
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    filter: blur(20px);
    transform: scale(0);
    transition: transform 0.7s ease;
}

.logo-button:hover .logo-glow {
    transform: scale(1.5);
}

.logo-svg {
    width: 56px;
    height: 56px;
    color: var(--cyan-400);
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}

.logo-button:hover .logo-svg {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1;
}

.logo-mira {
    color: var(--cyan-600);
}

.logo-tech {
    color: var(--cyan-400);
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--cyan-300);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.logo-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, rgba(34, 211, 238, 0.5), transparent);
    margin-top: 4px;
}

.logo-tagline {
    font-size: 7px;
    letter-spacing: 0.2em;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-item {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--cyan-400);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan-400);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.inquire-btn {
    padding: 8px 24px;
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: var(--cyan-400);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.5s ease;
}

.inquire-btn:hover {
    background: var(--cyan-500);
    color: var(--black);
}

/* Hero Overlay */
.hero-overlay {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

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

.hero-line {
    width: 1px;
    height: 96px;
    background: linear-gradient(to bottom, transparent, var(--cyan-400), transparent);
    margin: 0 auto 24px;
}

.hero-hint {
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    font-size: 12px;
    margin-bottom: 16px;
}

.hero-chevron {
    width: 24px;
    height: 24px;
    color: var(--cyan-400);
    margin: 0 auto;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* Content Sections */
.content-section {
    height: 150vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.section-content {
    max-width: 896px;
    padding: 0 24px;
    text-align: center;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 0.6s ease-out;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-icon-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.section-icon-wrapper {
    display: inline-flex;
    padding: 24px;
    border-radius: 16px;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.15);
}

.section-icon {
    width: 48px;
    height: 48px;
    color: var(--cyan-400);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--white), var(--cyan-400), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 72px;
    }
}

.section-subtitle {
    color: rgba(34, 211, 238, 0.9);
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-size: 10px;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 14px;
    }
}

.section-text {
    font-size: 20px;
    color: var(--gray-300);
    font-weight: 300;
    line-height: 1.7;
    max-width: 672px;
    margin: 0 auto 48px;
}

@media (min-width: 768px) {
    .section-text {
        font-size: 24px;
    }
}

.section-btn {
    padding: 20px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.7s ease;
    pointer-events: auto;
}

.section-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cyan-500);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.7s ease;
    opacity: 1;
}

.section-btn:hover::before {
    transform: scaleY(1);
}

.section-btn:hover {
    color: var(--black);
}

.section-btn span {
    position: relative;
    z-index: 10;
    transition: color 0.7s ease;
}

.btn-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--cyan-400);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 864px;
    margin: 0 auto 48px;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
}

.feature-title {
    color: var(--cyan-400);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--gray-400);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(48px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.form-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cyan-500);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cyan-400);
    font-weight: 700;
}

.form-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    color: var(--white);
    font-size: 14px;
    transition: border-color 0.3s ease;
    border-radius: 8px;
    outline: none;
}

.form-input:focus {
    border-color: var(--cyan-400);
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.form-textarea {
    height: 96px;
    resize: none;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: var(--cyan-500);
    color: var(--black);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    border: none;
    cursor: pointer;
    transition: all 0.7s ease;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.form-submit:hover {
    background: var(--white);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: var(--black);
    padding: 96px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.footer-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5), transparent);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 64px;
}

.footer-logo-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.footer-logo-svg {
    width: 80px;
    height: 80px;
    color: var(--cyan-400);
}

.footer-logo-glow {
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    filter: blur(32px);
}

.footer-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1;
}

.footer-mira {
    color: var(--cyan-600);
}

.footer-tech {
    color: var(--cyan-400);
}

.footer-subtitle {
    font-size: 12px;
    letter-spacing: 0.5em;
    color: var(--cyan-300);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 8px;
}

.footer-tagline {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 0.6em;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 896px;
    margin: 0 auto 80px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
}

@media (min-width: 768px) {
    .footer-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info-title {
    color: var(--cyan-400);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.footer-info-text {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info-italic {
    color: var(--gray-600);
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--cyan-400);
}

.social-icon {
    width: 20px;
    height: 20px;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.1);
}

.social-label {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-label {
    opacity: 1;
}

.footer-copyright {
    color: var(--gray-700);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-window {
    width: 350px;
    max-width: 100%;
    height: 500px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(48px);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 24px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    margin-bottom: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 211, 238, 0.1);
}

@media (min-width: 768px) {
    .chat-window {
        width: 400px;
    }
}

.chat-window.open {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

.chat-window.minimized {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) translateX(0);
    }
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, rgba(22, 78, 99, 0.2), transparent);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
}

.chat-avatar-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cyan-400);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bot-icon {
    width: 20px;
    height: 20px;
    color: var(--black);
}

.chat-status-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--black);
    border-radius: 50%;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.chat-status {
    color: var(--cyan-400);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-action-btn {
    padding: 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-action-btn:hover {
    color: var(--white);
}

.chat-action-btn svg {
    width: 16px;
    height: 16px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-message {
    display: flex;
}

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

.chat-message-model {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: 85%;
    padding: 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message-user .chat-message-bubble {
    background: var(--cyan-500);
    color: var(--black);
    font-weight: 500;
}

.chat-message-model .chat-message-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-loading {
    display: flex;
    justify-content: flex-start;
}

.chat-loading-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-loading-spinner {
    width: 16px;
    height: 16px;
    color: var(--cyan-400);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-loading-text {
    font-size: 12px;
    color: var(--gray-400);
}

.chat-input-container {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--cyan-400);
}

.chat-input::placeholder {
    color: var(--gray-500);
}

.chat-send-btn {
    padding: 8px;
    background: var(--cyan-500);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-send-btn:hover {
    background: var(--white);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    color: var(--black);
}

.chat-footer {
    text-align: center;
    font-size: 9px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0 16px 8px;
}

.chat-toggle {
    position: relative;
    padding: 16px;
    background: var(--black);
    border: 2px solid var(--cyan-400);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-toggle:active {
    transform: scale(0.9);
}

.chat-toggle.hidden {
    display: none;
}

.chat-toggle-glow {
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    filter: blur(20px);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.chat-toggle:hover .chat-toggle-glow {
    transform: scale(1.5);
}

.chat-toggle-icon {
    width: 28px;
    height: 28px;
    color: var(--cyan-400);
    position: relative;
    z-index: 10;
}

.chat-minimized-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--cyan-500);
    border: 2px solid var(--black);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.chat-minimized-dot.hidden {
    display: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}