* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background: #0a0e17;
color: #ffffff;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
#app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
min-height: 100vh;
padding: 2rem;
position: relative;
z-index: 2;
}
.main-header {
text-align: center;
margin-bottom: 3rem;
max-width: 800px;
background: rgba(30, 35, 50, 0.85);
border-radius: 16px;
padding: 2.5rem;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 2px solid rgba(0, 229, 255, 0.3);
}
.bot-avatar {
margin-bottom: 1.5rem;
}
.avatar-container {
width: 100px;
height: 100px;
border-radius: 50%;
background: linear-gradient(135deg, #00e5ff 0%, #0099cc 100%);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
border: 3px solid rgba(255, 255, 255, 0.2);
}
.avatar-icon {
font-size: 3rem;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.main-header h1 {
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 700;
margin-bottom: 0.5rem;
line-height: 1.2;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
background: linear-gradient(135deg, #00e5ff 0%, #0099cc 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.subtitle {
font-size: 1.2rem;
color: #b0b7c3;
font-weight: 500;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.chat-main {
width: 100%;
max-width: 1200px;
margin-bottom: 2rem;
}
.chat-container {
background: rgba(30, 35, 50, 0.85);
border-radius: 16px;
padding: 2rem;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 2px solid rgba(0, 229, 255, 0.3);
margin-bottom: 2rem;
}
.chat-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header h2 {
font-size: 1.8rem;
color: #00e5ff;
margin-bottom: 0.5rem;
font-weight: 600;
}
.chat-header p {
color: #b0b7c3;
font-size: 1rem;
}
.chat-messages {
height: 400px;
overflow-y: auto;
padding: 1.5rem;
background: rgba(15, 20, 35, 0.6);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.chat-messages::-webkit-scrollbar {
width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb {
background: #00e5ff;
border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
background: #0099cc;
}
.bot-message, .user-message {
display: flex;
gap: 1rem;
max-width: 80%;
animation: messageSlide 0.3s ease-out;
}
@keyframes messageSlide {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.bot-message {
align-self: flex-start;
}
.user-message {
align-self: flex-end;
flex-direction: row-reverse;
}
.message-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
flex-shrink: 0;
}
.bot-message .message-avatar {
background: linear-gradient(135deg, #00e5ff 0%, #0099cc 100%);
}
.user-message .message-avatar {
background: linear-gradient(135deg, #ffce00 0%, #ff9f00 100%);
}
.message-content {
background: rgba(255, 255, 255, 0.1);
padding: 1rem 1.25rem;
border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.1);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
flex: 1;
}
.bot-message .message-content {
border-bottom-left-radius: 4px;
background: rgba(0, 229, 255, 0.15);
border-color: rgba(0, 229, 255, 0.3);
}
.user-message .message-content {
border-bottom-right-radius: 4px;
background: rgba(255, 206, 0, 0.15);
border-color: rgba(255, 206, 0, 0.3);
text-align: right;
}
.message-content p {
color: #ffffff;
line-height: 1.5;
margin-bottom: 0.5rem;
word-wrap: break-word;
}
.message-time {
font-size: 0.75rem;
color: #b0b7c3;
opacity: 0.7;
}
.welcome-message {
animation: welcomePulse 2s ease-in-out;
}
@keyframes welcomePulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.02);
}
}
.chat-input-container {
background: rgba(15, 20, 35, 0.6);
border-radius: 12px;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
#user-input {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(0, 229, 255, 0.3);
border-radius: 12px;
padding: 1rem 1.25rem;
color: #ffffff;
font-size: 1rem;
font-family: 'Inter', sans-serif;
resize: vertical;
min-height: 80px;
max-height: 150px;
transition: all 0.3s ease;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
#user-input:focus {
outline: none;
border-color: #00e5ff;
box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
background: rgba(255, 255, 255, 0.08);
}
#user-input::placeholder {
color: #b0b7c3;
}
.chat-actions {
display: flex;
justify-content: flex-end;
margin-top: 1rem;
}
.bot-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.feature-card {
background: rgba(30, 35, 50, 0.85);
border-radius: 16px;
padding: 1.5rem;
text-align: center;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 2px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: rgba(0, 229, 255, 0.3);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.feature-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
display: block;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.feature-card h3 {
color: #00e5ff;
font-size: 1.2rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.feature-card p {
color: #b0b7c3;
font-size: 0.9rem;
line-height: 1.5;
}
.action-buttons {
display: flex;
gap: 1.5rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 2rem;
}
.btn {
display: flex;
align-items: center;
text-decoration: none;
padding: 1rem 1.5rem;
border-radius: 16px;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: 2px solid;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
background: rgba(30, 35, 50, 0.85);
gap: 0.5rem;
min-width: 200px;
justify-content: center;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, 
transparent, 
rgba(255, 255, 255, 0.3), 
transparent);
transition: left 0.6s ease;
}
.btn:hover::before {
left: 100%;
}
.btn-primary {
border-color: #00e5ff;
color: #00e5ff;
background: rgba(25, 35, 50, 0.9);
box-shadow: 0 8px 24px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0, 229, 255, 0.4);
background: rgba(20, 40, 60, 0.95);
}
.btn-secondary {
border-color: #ffce00;
color: #ffce00;
background: rgba(40, 35, 30, 0.9);
box-shadow: 0 8px 24px rgba(255, 206, 0, 0.2);
}
.btn-secondary:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(255, 206, 0, 0.4);
background: rgba(50, 40, 25, 0.95);
}
.btn-back {
border-color: #b0b7c3;
color: #b0b7c3;
background: rgba(50, 50, 50, 0.9);
box-shadow: 0 8px 24px rgba(176, 183, 195, 0.2);
}
.btn-back:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(176, 183, 195, 0.4);
background: rgba(60, 60, 60, 0.95);
}
.btn-icon {
font-size: 1.2rem;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.btn-text {
font-size: 1rem;
font-weight: 600;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.btn-subtext {
font-size: 0.8rem;
opacity: 0.9;
font-weight: 400;
}
.main-footer {
text-align: center;
margin-top: auto;
background: rgba(30, 35, 50, 0.85);
border-radius: 16px;
padding: 1.5rem 2rem;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 2px solid rgba(0, 229, 255, 0.3);
width: 100%;
max-width: 800px;
}
.main-footer p {
color: #b0b7c3;
margin: 0.3rem 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.footer-sub {
font-size: 0.9rem;
opacity: 0.8;
}
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 1;
overflow: hidden;
}
.background-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, 
rgba(10, 14, 23, 0.95) 0%, 
rgba(26, 31, 46, 0.9) 50%, 
rgba(10, 14, 23, 0.95) 100%);
z-index: 1;
}
.background-image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
object-fit: cover;
opacity: 0.3;
filter: blur(4px) brightness(0.8);
z-index: 0;
}
@media (max-width: 768px) {
#app {
padding: 1.5rem;
}
.chat-container {
padding: 1.5rem;
}
.chat-messages {
height: 300px;
padding: 1rem;
}
.bot-message, .user-message {
max-width: 90%;
}
.bot-features {
grid-template-columns: 1fr;
}
.action-buttons {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
max-width: 300px;
}
.main-header {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
#app {
padding: 1rem;
}
.main-header h1 {
font-size: 1.8rem;
}
.subtitle {
font-size: 1rem;
}
.avatar-container {
width: 80px;
height: 80px;
}
.avatar-icon {
font-size: 2.5rem;
}
.chat-container {
padding: 1rem;
}
.chat-messages {
height: 250px;
}
.message-content {
padding: 0.75rem 1rem;
}
.feature-card {
padding: 1.25rem;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.main-header {
animation: fadeInUp 0.8s ease-out forwards;
}
.chat-container {
animation: fadeInUp 0.8s ease-out 0.2s forwards;
opacity: 0;
}
.bot-features {
animation: fadeInUp 0.8s ease-out 0.4s forwards;
opacity: 0;
}
.action-buttons {
animation: fadeInUp 0.8s ease-out 0.6s forwards;
opacity: 0;
}
.main-footer {
animation: fadeInUp 0.8s ease-out 0.8s forwards;
opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
.btn:focus, #user-input:focus, #teach-btn:focus {
outline: 3px solid #00e5ff;
outline-offset: 2px;
}
@media (min-aspect-ratio: 16/9) {
.background-image {
width: 100%;
height: auto;
}
}
@media (max-aspect-ratio: 16/9) {
.background-image {
width: auto;
height: 100%;
}
}