@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f8fafc; color: #334155; overflow-x: hidden; }

/* Header */
.app-header { background: #ffffff; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.main-nav { display: none; gap: 20px; }
@media(min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { text-decoration: none; color: #334155; font-weight: 600; transition: color 0.3s; }
.main-nav a:hover { color: #2563eb; }
.status-badge { background: #e0e7ff; color: #4338ca; padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; border: 1px solid #c7d2fe; }
.global-timer { font-weight: bold; color: #dc2626; background: #fee2e2; padding: 6px 16px; border-radius: 20px; border: 1px solid #fca5a5; }

/* Buttons */
button { border: none; cursor: pointer; border-radius: 8px; font-weight: 600; transition: all 0.3s ease; padding: 12px 24px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-secondary { background: #e2e8f0; color: #334155; }
.btn-danger { background: #ef4444; color: white; }
.start-large-btn { padding: 18px 40px; font-size: 20px; border-radius: 30px; }
.pulse-btn { animation: pulse-blue 2s infinite; }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }

/* Screens */
.app-container { width: 100%; display: flex; flex-direction: column; align-items: center; }
.screen { display: none; width: 100%; animation: fadeIn 0.5s ease-out; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
.hidden { display: none !important; }

/* Landing Layout */
.animated-bg { background: linear-gradient(-45deg, #1e3a8a, #2563eb, #3b82f6, #60a5fa); background-size: 400% 400%; animation: gradientBG 15s ease infinite; color: white; padding: 120px 20px; text-align: center; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }

.section-container { padding: 60px 20px; max-width: 1000px; margin: 0 auto; text-align: center; }
.section-subtitle { color: #64748b; font-size: 18px; margin-bottom: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;}
.section-container h2 { font-size: 32px; color: #0f172a; margin-bottom: 20px; font-weight: 800; }
.bg-light { background-color: #f1f5f9; border-radius: 16px; margin: 40px auto; width: 100%; max-width: 1200px; }
.about-content { text-align: left; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); line-height: 1.8; font-size: 16px; color: #475569; }

/* Testimonials Section */
.testimonials-section { padding: 60px 20px; background-color: transparent; text-align: center; }
.testimonials-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; max-width: 1000px; margin: 0 auto; margin-top: 30px; }
.testimonial { background: white; padding: 35px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); flex: 1; min-width: 300px; max-width: 450px; text-align: left; transition: transform 0.3s ease; }
.testimonial:hover { transform: translateY(-10px); }
.testimonial.blue-border { border-top: 4px solid #2563eb; }
.testimonial.green-border { border-top: 4px solid #10b981; }
.testimonial .stars { color: #fbbf24; font-size: 24px; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial .stars span { color: #cbd5e1; }
.testimonial p { color: #475569; font-size: 16px; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial h4 { color: #0f172a; font-size: 18px; font-weight: 700; }

/* Contact Us Section */
.contact-section { background: #f1f5f9; padding: 80px 20px; text-align: center; width: 100%; margin-top: 40px; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px 20px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 16px; font-family: inherit; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Mic Permission Popup (Modal) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-overlay.hidden { display: none !important; }
.modal-content { background: white; padding: 40px; border-radius: 16px; max-width: 400px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.3s ease; width: 90%; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-icon { width: 70px; height: 70px; background: #eff6ff; color: #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 20px; animation: pulse-blue 2s infinite; }
.modal-content h3 { font-size: 24px; color: #0f172a; margin-bottom: 10px; font-weight: 700; }
.modal-content p { color: #64748b; font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.modal-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.modal-buttons button { flex: 1; min-width: 140px; }

/* Footer */
.mega-footer { background-color: #0f172a; color: #f8fafc; padding: 60px 20px 20px; text-align: center; width: 100%;}
.footer-col h3 { font-size: 24px; color: white; margin-bottom: 10px; }
.footer-col h3 span { color: #38bdf8; }

/* Mock Test Interface */
.mock-test-container { max-width: 900px; padding: 40px 20px; margin: 0 auto; width: 100%; }
.chat-area { height: 450px; background: #ffffff; border-radius: 16px; padding: 25px; overflow-y: auto; margin-bottom: 20px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 15px; }
.message { max-width: 80%; padding: 14px 20px; border-radius: 16px; line-height: 1.6; font-size: 15px; word-wrap: break-word;}
.msg-ai { background: #f1f5f9; align-self: flex-start; border-bottom-left-radius: 4px; color: #0f172a; }
.msg-user { background: #2563eb; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.input-container { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
textarea { flex: 1; padding: 15px; border-radius: 12px; border: 2px solid #cbd5e1; resize: none; min-height: 60px; font-size: 16px; font-family: inherit;}
textarea:focus { border-color: #2563eb; outline: none; }
.test-controls { display: flex; justify-content: space-between; border-top: 1px solid #e2e8f0; padding-top: 20px; }

/* Mic Button */
.mic-btn { border-radius: 50%; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; padding: 0;}
.mic-btn.recording { background-color: #ef4444; color: white; animation: pulse-red 1.5s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }