@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0067a5;
    --primary-light: #0085ca;
    --secondary: #0085ca;
    --accent: #f58220;
    --accent-dark: #cc6b18;
    --white: #ffffff;
    --black: #0a1e29;
    --gray-light: #f4f7f9;
    --gray-medium: #dce5eb;
    --text-main: #0a1e29;
    --text-muted: #546e7a;
    
    --shadow-soft: 0 10px 30px rgba(0, 103, 165, 0.08);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 20px rgba(0, 103, 165, 0.08);
    transition: var(--transition);
}

.nav-logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.4);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 130, 32, 0.6);
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.92;
    font-weight: 300;
    line-height: 1.7;
}

/* Slide Badge */
.slide-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 90px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-white {
    background: var(--white) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.cta-white:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Product Cards */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-medium);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card-img {
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.product-card .btn-link {
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    font-size: 30px;
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(5deg);
}

/* Allied Companies (Logos) */
/* Background Blobs */
.bg-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 103, 165, 0.1), rgba(245, 130, 32, 0.1));
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: blob-float 20s infinite alternate ease-in-out;
}
.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -100px; left: -100px; animation-duration: 25s; animation-delay: -5s; }

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.allies-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--gray-medium);
    overflow: hidden;
}

.allies-section .section-title {
    margin-bottom: 40px;
}

.allies-section .section-title h2 {
    font-size: 2rem;
}

.allies-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.allies-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.allies-track-container:hover .allies-track {
    animation-play-state: paused;
}

.ally-logo {
    height: 100px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.ally-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Video Promo Section */
.video-promo {
    background-color: var(--black);
    color: var(--white);
    padding: 90px 0;
}

.video-promo-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.video-promo .video-content h2 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.video-promo .video-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    opacity: 0.85;
    font-weight: 300;
}

.video-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.6;
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px;
    width: 55px;
    height: 55px;
    background: var(--white);
    color: var(--primary);
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px 0 0 12px;
    transition: var(--transition);
}

.social-sidebar a:hover {
    width: 65px;
    background: var(--accent);
    color: var(--white);
}

.social-sidebar a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    nav {
        background: var(--glass);
        backdrop-filter: blur(10px);
    }
    nav.scrolled .nav-links a, nav .nav-links a {
        color: var(--text-main);
    }
    .nav-links {
        display: none;
    }
    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 10px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .carousel-controls {
        padding: 0 15px;
    }
    .control-btn {
        width: 38px;
        height: 38px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    section {
        padding: 70px 0;
    }
    
    .social-sidebar {
        display: none; /* Hide on very small mobile screens */
    }

    .video-promo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

/* Chatbot UI */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 103, 165, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.chatbot-fab:hover {
    transform: scale(1.1);
}
.chatbot-fab .material-icons {
    font-size: 38px;
}
.chatbot-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--gray-medium);
}
.chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
}
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--gray-light);
}
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.bot-message {
    background: white;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.user-message {
    background: var(--primary-light);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.chatbot-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 10px;
    align-items: center;
}
.chatbot-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
}
.chatbot-input-area input:focus {
    border-color: var(--primary);
}
.chatbot-input-area button {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.chatbot-input-area button:hover {
    background: var(--accent-dark);
}
.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 0 2px;
}
.chatbot-options-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.chat-option-btn {
    background: white;
    border: none;
    color: var(--primary);
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(0, 103, 165, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--primary);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}
.chat-option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.chat-option-btn span {
    position: relative;
    z-index: 1;
}
.chat-option-btn:hover::before {
    opacity: 1;
}
.chat-option-btn:hover {
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 103, 165, 0.3);
    border-left-color: transparent;
}
.chat-option-btn:hover .material-icons {
    color: white !important;
}
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
    }
}

/* Tech / 3D Upgrades Overrides */
.cta-btn {
    box-shadow: 0 5px 15px rgba(245, 130, 32, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.cta-btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 25px rgba(245, 130, 32, 0.6), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}

.product-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1px solid rgba(0,103,165,0.1) !important;
    box-shadow: 0 10px 30px rgba(0,103,165,0.05), inset 0 0 0 1px rgba(255,255,255,0.5) !important;
}
.product-card:hover {
    transform: translateY(-15px) perspective(1000px) rotateX(2deg) rotateY(2deg) !important;
    box-shadow: 0 20px 40px rgba(0,103,165,0.15), inset 0 0 0 1px rgba(255,255,255,1), 0 0 20px rgba(0,103,165,0.2) !important;
}

.chatbot-fab {
    box-shadow: 0 10px 25px rgba(0, 103, 165, 0.5), inset 0 5px 10px rgba(255, 255, 255, 0.4), inset 0 -5px 10px rgba(0, 0, 0, 0.3) !important;
    animation: float-pulse-bot 2.5s infinite ease-in-out;
    border: 1px solid rgba(255,255,255,0.5);
    background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%) !important;
}
@keyframes float-pulse-bot {
    0% { transform: translateY(0px) scale(1); box-shadow: 0 10px 25px rgba(0, 103, 165, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.4); }
    50% { transform: translateY(-12px) scale(1.1); box-shadow: 0 20px 40px rgba(0, 210, 255, 0.6), 0 0 30px rgba(0, 210, 255, 0.8), inset 0 3px 6px rgba(255, 255, 255, 0.8); }
    100% { transform: translateY(0px) scale(1); box-shadow: 0 10px 25px rgba(0, 103, 165, 0.5), inset 0 3px 6px rgba(255, 255, 255, 0.4); }
}

/* --- BECA PREMIUM UI UPDATES --- */

.beca-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px !important;
    min-width: 60px;
    background: #e9ecef !important;
}

.beca-typing span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: beca-dot-pulse 1.4s infinite ease-in-out;
    opacity: 0.4;
}

.beca-typing span:nth-child(2) { animation-delay: 0.2s; }
.beca-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes beca-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; }
}

.bot-message {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,103,165,0.05);
    color: var(--text-main);
    font-weight: 500;
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.2);
    font-weight: 500;
}

#chatMessages {
    scroll-behavior: smooth;
    padding: 25px 20px;
}

.chatbot-intro-video {
    width: 100%;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Floating Animation for Beca Avatar in FAB */
.chatbot-fab img {
    animation: beca-avatar-sway 4s infinite ease-in-out;
}

@keyframes beca-avatar-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* Scrollbar Style for Chat */
#chatMessages::-webkit-scrollbar {
    width: 6px;
}
#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}
#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* --- BECA VOICE EMBEDDED STYLES --- */

.beca-voice-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: rgba(15, 20, 40, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 30px 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.beca-voice-container.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.beca-voice-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.beca-voice-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.beca-voice-close:hover {
    background: rgba(255,255,255,0.2);
}

.avatar-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(rgba(15, 20, 40, 1), rgba(15, 20, 40, 1)) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-ring.listening .ring {
    border: 3px solid #00e676;
    box-shadow: 0 0 0 0 rgba(0,230,118,0.6);
    animation: ripple 1.1s ease-out infinite;
}

.avatar-ring.speaking .ring {
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 0 rgba(245,130,32,0.6);
    animation: ripple 0.7s ease-out infinite;
}

@keyframes ripple {
    0%   { box-shadow: 0 0 0 0 rgba(0,230,118,0.55); }
    70%  { box-shadow: 0 0 0 15px rgba(0,230,118,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 8px 16px;
    color: #e8eaf6;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}

.status-badge.listen .status-dot { background: #00e676; animation: blink 1s step-end infinite; }
.status-badge.think .status-dot { background: var(--accent); animation: blink 0.5s step-end infinite; }
.status-badge.speak .status-dot { background: var(--primary); animation: blink 0.7s step-end infinite; }

@keyframes blink { 50% { opacity: 0; } }

.wave-bars {
    display: none;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.wave-bars.visible { display: flex; }

.wave-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--primary), var(--accent));
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50%       { transform: scaleY(1.2); }
}

.mic-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), #004d8c);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,103,165,0.4);
    transition: var(--transition);
}

.mic-btn:hover { transform: scale(1.08); }
.mic-btn.listening { background: linear-gradient(135deg, #00c853, #009624); box-shadow: 0 8px 25px rgba(0,200,83,0.4); }

.summary-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    background: rgba(20, 25, 45, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.summary-card.visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.summary-title { color: var(--accent); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.summary-item { margin-bottom: 10px; }
.summary-item label { display: block; color: rgba(255,255,255,0.45); font-size: 0.7rem; text-transform: uppercase; margin-bottom: 2px; }
.summary-item strong { color: #e8eaf6; display: block; font-size: 0.9rem; }

.rating-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 85%;
    background: rgba(15, 20, 35, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 25px 20px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.rating-modal.visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.rating-stars { display: flex; justify-content: center; gap: 8px; margin: 15px 0; }
.star { font-size: 2rem; color: #444; cursor: pointer; transition: all 0.2s; }
.star:hover, .star.active { color: #FFD700; transform: scale(1.1); text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.rating-thanks { display: none; color: #00c853; font-weight: 600; margin-top: 8px; font-size: 0.9rem; }

#error-toast {
    display: none;
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,82,82,0.15);
    border: 1px solid rgba(255,82,82,0.4);
    color: #ff8a80;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 1300;
    backdrop-filter: blur(10px);
}


/* --- PREMIUM CALL OVERLAY ENHANCEMENTS --- */

.beca-voice-container {
    /* Centered overlay feel */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    width: 420px;
    height: auto;
    max-height: 80vh;
    padding: 30px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.7), 0 0 40px rgba(0, 103, 165, 0.3);
    border-radius: 24px;
    background: rgba(16, 24, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000; /* Super high index */
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.beca-voice-container.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 480px) {
    .beca-voice-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        transform: translateY(100%);
        border-radius: 0;
        max-height: 100vh;
    }
    .beca-voice-container.active {
        transform: translateY(0);
    }
}

/* Add a blur background when active */
body.beca-active::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
}


/* --- INTRO VIEW STYLES --- */
.intro-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.intro-avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #00A3E0;
    padding: 5px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 30px rgba(0, 163, 224, 0.2);
}

.intro-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.intro-body h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.intro-body p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin-bottom: 35px;
    line-height: 1.5;
    max-width: 280px;
}

.start-call-btn {
    background: linear-gradient(135deg, #00A3E0, #0067A5);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 103, 165, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-call-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 103, 165, 0.5);
}

.start-call-btn .material-icons {
    font-size: 22px;
}

/* --- VIEW TRANSITION --- */
.beca-view {
    width: 100%;
    animation: fadeIn 0.5s ease forwards;
}

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