:root {
    --bg-color: #F8FAFC;
    /* Light bluish grey */
    --text-color: #1E293B;
    /* Slate 800 */
    --primary-color: #2563EB;
    /* Royal Blue */
    --secondary-color: #64748B;
    /* Slate 500 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    /* More opaque white for light mode */
    --glass-border: rgba(226, 232, 240, 0.8);
    /* Slate 200 */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #E0F2FE 0%, #F8FAFC 60%);
    z-index: -1;
}

.background-gradient::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: #3B82F6;
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.background-gradient::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: #14B8A6;
    /* Teal */
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    flex: 1;
}

.header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
    margin-top: 2rem;
}

.brand-logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: #0F172A;
    /* Slate 900 */
    text-decoration: none;
    display: inline-block;
}

.highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Grid Layout for Home Page */
.industry-section {
    width: 100%;
    margin-bottom: 3rem;
}

.industry-title {
    font-size: 1.5rem;
    color: #0F172A;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.demo-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.demo-card-small {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.demo-card-small:hover {
    transform: translateY(-5px);
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.demo-card-small h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1E293B;
}

.demo-card-small p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Individual Demo Page Styles */
.back-link {
    align-self: flex-start;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-color);
}

.demo-container {
    width: 100%;
    max-width: 800px;
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
}

.demo-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

.demo-container p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Use Case Section Styles */
.use-case-section {
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.section-title {
    font-size: 1.8rem;
    color: #0F172A;
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.metrics-container {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.metric-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-item p {
    font-size: 1rem;
    opacity: 0.9;
}

.footer {
    margin-top: auto;
    padding: 2rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calling Form Styles */
.call-form-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.call-form-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.form-title {
    font-size: 1.5rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #64748B;
    font-weight: 500;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #1E293B;
    transition: all 0.2s;
    background: #F8FAFC;
}

.form-input.with-prefix {
    padding-left: 3.5rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.call-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.call-button:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.call-button:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.toast {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-size: 0.95rem;
    color: #1E293B;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Call History Styles */
.call-history-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.history-card {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    font-size: 0.95rem;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background-color: #F8FAFC;
    cursor: pointer;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-completed {
    background-color: #DCFCE7;
    color: #166534;
}

.status-failed {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-in-progress {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-registered {
    background-color: #E0F2FE;
    color: #075985;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    background: #FFFFFF;
    height: 100%;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.open .modal-content {
    transform: translateX(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    color: #64748B;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Chat UI */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.chat-avatar.bot {
    background-color: var(--primary-color);
}

.chat-avatar.user {
    background-color: #64748B;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-message.bot .chat-bubble {
    background-color: #F1F5F9;
    color: #1E293B;
    border-top-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 4px;
}

/* Audio Player */
.audio-player-container {
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.audio-player-container h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #64748B;
}

.audio-element {
    width: 100%;
}

/* Analysis Section */
.analysis-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.analysis-title {
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.analysis-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.key-points-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.key-points-list li {
    margin-bottom: 0.5rem;
}