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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    min-height: 100vh;
    overflow-x: hidden;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

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

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 100px auto;
    background: white;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.animated-title {
    font-size: 3.5rem;
    color: #667eea;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
}

.language-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 20px 40px;
    font-size: 1.5rem;
    border: 3px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.lang-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header h2 {
    color: #667eea;
    font-size: 2rem;
}

.back-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #667eea;
    color: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    border: none;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

/* Character Grid */
.character-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.character-grid.active-category {
    display: grid;
}

.character-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.character-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.character-image {
    font-size: 5rem;
    margin-bottom: 15px;
}

.character-card h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.character-card p {
    color: #666;
    font-size: 1rem;
}

/* Chat Screen */
.chat-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    height: calc(100vh - 150px);
}

.hero-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge {
    font-size: 2rem;
}

.header-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.session-note {
    background: rgba(102, 126, 234, 0.15);
    color: #0b2147;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.hero-image-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.hero-image-container img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    display: none;
}

#heroVideo {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
    max-height: 380px;
    object-fit: cover;
}

.gap-branding {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: bold;
}

.talking-visual {
    font-size: 4.4rem;
    padding: 26px;
    margin-bottom: 18px;
    background: radial-gradient(circle at 30% 30%, #8fd3f4 0%, #84fab0 40%, #a6c0fe 100%);
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 230px;
    height: 250px;
}

.hero-image-container.speaking .talking-visual {
    animation: pulseTalk 1s infinite;
}

@keyframes pulseTalk {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102,126,234,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(102,126,234,0.0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(102,126,234,0.0); }
}

.talking-visual .face {
    position: relative;
    width: 180px;
    height: 200px;
    background: #f6d7c3;
    border-radius: 50% 50% 46% 46%;
    overflow: hidden;
    box-shadow: inset 0 -6px 0 rgba(0,0,0,0.1);
}

.talking-visual .hair {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 200px;
    height: 130px;
    background: #2b1b18;
    border-radius: 60% 60% 40% 40%;
}

.hero-pushpa .hair { background: #22120f; }
.hero-bahubali .hair { background: #1f1a1a; }
.hero-maheshbabu .hair { background: #2c1f2f; }
.hero-arundathi .hair { background: #301f38; }

.talking-visual .eyes .eye {
    position: absolute;
    top: 95px;
    width: 16px;
    height: 16px;
    background: #222;
    border-radius: 50%;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.talking-visual .eyes .eye.left { left: 60px; }
.talking-visual .eyes .eye.right { right: 60px; }

.talking-visual .moustache {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #23140f;
    border-radius: 50%;
    box-shadow: 0 8px 0 -6px rgba(0,0,0,0.35);
}

.hero-arundathi .moustache { display: none; }

.talking-visual .mouth {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 10px;
    background: #b23b5c;
    border-radius: 0 0 30px 30px;
    transition: height 0.2s ease, border-radius 0.2s ease;
}

.hero-image-container.speaking .mouth {
    height: 24px;
    border-radius: 0 0 40px 40px;
}

.talking-visual .label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.1);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 800;
    color: #0b2147;
    font-size: 0.95rem;
}

.chat-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.chat-messages {
    display: none;
}

.message {
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

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

.message.user {
    background: #667eea;
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.message.hero {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
}

.message.hero strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.image-bubble {
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 0 0 1px #f0f0f0;
}

.image-bubble img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.image-bubble p {
    margin-top: 8px;
    color: #444;
    font-size: 0.95rem;
}

.chat-input-area {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.voice-controls {
    text-align: center;
    margin-bottom: 15px;
}

.mic-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.mic-btn:hover {
    background: #ff3838;
    transform: scale(1.05);
}

.mic-btn.listening {
    background: #2ed573;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.text-input-group {
    display: none;
}

.text-input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.send-btn {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.send-btn:hover {
    background: #764ba2;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-actions button {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-actions button:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-image-container {
        max-height: 300px;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* GAP Branding Area Styles */
.gap-branding-area {
    background: linear-gradient(135deg, #0057b8 0%, #003d82 50%, #0057b8 100%);
    border-radius: 15px;
    padding: 30px 20px;
    margin-top: 15px;
}

.gap-branding-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 800px;
}

/* Animated GAP Logo */
.gap-logo-animated {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 15px;
    margin-bottom: 15px;
    font-family: 'Arial Black', sans-serif;
}

.gap-letter {
    display: inline-block;
    animation: gapBounce 1.5s ease-in-out infinite;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gap-letter:nth-child(1) {
    animation-delay: 0s;
}

.gap-letter:nth-child(2) {
    animation-delay: 0.2s;
}

.gap-letter:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes gapBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.1);
    }
    50% {
        transform: translateY(0) scale(1);
    }
}

/* GAP Facts */
.gap-fact {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.6;
    margin: 25px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: factFadeIn 0.6s ease-in-out;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

@keyframes factFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thinking Indicator */
.thinking-indicator {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.thinking-indicator.hidden {
    display: none;
}

.thinking-indicator .dots {
    animation: thinkingPulse 1.5s ease-in-out infinite;
    font-size: 24px;
}

.thinking-indicator .dots:nth-child(1) {
    animation-delay: 0s;
}

.thinking-indicator .dots:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes thinkingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive adjustments for GAP branding */
@media (max-width: 768px) {
    .gap-logo-animated {
        font-size: 56px;
        letter-spacing: 10px;
    }
    
    .gap-fact {
        font-size: 18px;
        min-height: 70px;
    }
    
    .gap-tagline {
        font-size: 14px;
    }
}
