/* Base styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

.messages-container {
    flex-grow: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Message bubbles */
.message-bubble {
    max-width: 80%;
    border-radius: 24px;
    padding: 12px 18px;
    margin: 6px 0;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transform-origin: bottom;
    animation: message-pop 0.3s ease-out forwards;
}

@keyframes message-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ai-message {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
}

/* Typing indicator */
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    margin: 0 2px;
}

.dark .typing-indicator span {
    background-color: rgba(255,255,255,0.3);
}

.typing-indicator span:nth-child(1) {
    animation: blink 1.4s infinite 0s both;
}

.typing-indicator span:nth-child(2) {
    animation: blink 1.4s infinite 0.2s both;
}

.typing-indicator span:nth-child(3) {
    animation: blink 1.4s infinite 0.4s both;
}

@keyframes blink {
    0% { transform: scale(1); opacity: 0.4; }
    20% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Choice buttons */
.choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.choice-button {
    padding: 10px 18px;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.choice-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(93, 92, 222, 0.2);
}

.choice-button:hover::before {
    transform: translateX(100%);
}

.dark .choice-button:hover {
    box-shadow: 0 4px 12px rgba(93, 92, 222, 0.4);
}

/* Links */
a {
    text-decoration: none;
    color: #5D5CDE;
    position: relative;
    transition: color 0.2s;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #5D5CDE;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a:hover {
    color: #7C3AED;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.dark a {
    color: #8583ff;
}

.dark a:hover {
    color: #9f9dff;
}

.dark a::after {
    background-color: #8583ff;
}

/* Sections */
.content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-section.active {
    display: flex;
    opacity: 1;
}

/* Developer cards */
.dev-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.dev-card:hover {
    transform: translateY(-10px) rotate(1deg);
}

.dev-card:hover .dev-image-container {
    transform: scale(1.05);
}

.dev-image-container {
    transition: transform 0.5s ease;
}

.dev-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #5D5CDE;
    transition: all 0.3s ease;
}

.dark .dev-image {
    border-color: #6e6df0;
}

/* Modern backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #5D5CDE 0%, #7C3AED 100%);
}

.dark .gradient-bg {
    background: linear-gradient(135deg, #4e4dbc 0%, #6e35d5 100%);
}

.soft-gradient-bg {
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.dark .soft-gradient-bg {
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.gradient-text {
    background: linear-gradient(90deg, #5D5CDE, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.dark .gradient-text {
    background: linear-gradient(90deg, #8583ff, #9e67ff);
}

/* Badges and labels */
.level-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.primary-badge {
    background-color: rgba(74, 222, 128, 0.2);
    color: #065F46;
}

.secondary-badge {
    background-color: rgba(96, 165, 250, 0.2);
    color: #1E40AF;
}

.dark .primary-badge {
    background-color: rgba(6, 95, 70, 0.3);
    color: #4ADE80;
}

.dark .secondary-badge {
    background-color: rgba(30, 64, 175, 0.3);
    color: #60A5FA;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(93, 92, 222, 0.2);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(93, 92, 222, 0.3);
}

/* Modern navigation */
.modern-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover::before {
    width: 40%;
    opacity: 0.7;
}

.nav-link.active::before {
    width: 60%;
    opacity: 1;
}

/* Neomorphic elements */
.neo-button {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05), 
               -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.neo-button:active {
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.1), 
               inset -3px -3px 5px rgba(255, 255, 255, 0.8);
}

.dark .neo-button {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3), 
               -5px -5px 10px rgba(255, 255, 255, 0.05);
}

.dark .neo-button:active {
    box-shadow: inset 3px 3px 5px rgba(0, 0, 0, 0.3), 
               inset -3px -3px 5px rgba(255, 255, 255, 0.05);
}

/* Blob background */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.7;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.blob-1 {
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: rgba(93, 92, 222, 0.15);
    animation: blob-move-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: 10%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, 0.12);
    animation: blob-move-2 30s infinite alternate ease-in-out;
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(74, 222, 128, 0.1);
    animation: blob-move-3 20s infinite alternate ease-in-out;
}

@keyframes blob-move-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.2); }
}

@keyframes blob-move-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, -40px) scale(1.3); }
}

@keyframes blob-move-3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

.dark .blob-1 {
    background: rgba(93, 92, 222, 0.1);
}

.dark .blob-2 {
    background: rgba(124, 58, 237, 0.08);
}

.dark .blob-3 {
    background: rgba(74, 222, 128, 0.07);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(255, 255, 255, 0.05);
}

/* Loading animations */
@keyframes loading-wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-shine {
    position: relative;
    overflow: hidden;
}

.loading-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
              transparent, 
              rgba(255, 255, 255, 0.3), 
              transparent);
    animation: loading-wave 1.5s infinite;
}