/* FONT IMPORT */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Local Font */
/* @font-face {
	font-family: "Font Name";
	src: url("../fonts/fontpath.ttf");
  } */

:root {
    --white: #fff;
    --black: #000;
    --primary: #ff0000;
    --secondary: #333333;

}

html {
    scroll-behavior: smooth;
    height: 100%;
}


section {
    position: relative;
    padding: 6rem 0;
}



.img-auto {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

figure {
    margin: 0;
}


/* Cursor Start */

.mouse-cursor {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    border-radius: 50%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    visibility: hidden;
}

.cursor-inner {
    margin-left: 2px;
    margin-top: 2px;
    width: 7px;
    height: 7px;
    z-index: 10000001;
    background-color: var(--primary);
    -webkit-transition: width 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, margin 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.cursor-inner.cursor-hover {
    margin-left: -10px;
    margin-top: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    opacity: 0.3;
}


/* Cursor End */


/* PRELOADER */

.preLoader {
    width: 100%;
    height: 100%;
    z-index: 1111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.preLoader.black {
    background-color: var(--secondary);
    z-index: 11113;
}

.preLoader.white {
    z-index: 11112;
    background-color: var(--primary);
}



#voice-translation-section {
    background: #ffffff;
    padding: 0;
}

/* Dropdown Box */
.lang-dropdown {
    width: 410px;
    max-width: 100%;
    margin: auto;
    padding: 16px 22px;
    background: #fff;
    border: 1.5px solid #ff4242;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(255, 66, 66, 0.05);
}

.lang-dropdown .btn {
    box-shadow: none !important;
}

.flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.selected-lang {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

/* Dropdown Menu */
.lang-menu {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
}

.lang-menu .dropdown-item {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item.active {
    background: #fff5f5;
    color: #ff4242;
}

.lang-menu .dropdown-item img {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .lang-dropdown {
        width: 100%;
        padding: 14px 18px;
    }

    .selected-lang {
        font-size: 16px;
    }
}

/* Swap Button */
.btn-swap-lang {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px dashed #ff4242;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.btn-swap-lang:hover {
    background: #fff5f5;
    transform: rotate(180deg);
}

/* Waves */
.sound-waves {
    gap: 20px;
    height: 150px;
}

.wave-bar {
    width: 3px;
    background: #ff2f2f;
    border-radius: 3px;
}

.wave-dot {
    width: 8px;
    height: 3px;
    background: #ff2f2f;
    border-radius: 5px;
}

/* Orb */
.voice-orb-wrapper {
    width: 460px;
    height: 460px;
}

.voice-orb {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%,
            #ff9c9c 0%,
            #ff4b4b 35%,
            #f10000 70%,
            #a40000 100%);
    box-shadow:
        0 0 50px rgba(255, 0, 0, 0.5),
        0 0 120px rgba(255, 0, 0, 0.25),
        inset 0 0 35px rgba(255, 255, 255, 0.35);
}

.inner-waves-svg {
    width: 170%;
    height: 170%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

/* Rings */
.bg-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-outer {
    width: 460px;
    height: 460px;
    border: 1px dashed rgba(255, 66, 66, 0.25);
}

.ring-middle {
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 66, 66, 0.12);
}

.ring-inner {
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 66, 66, 0.06);
}

/* Instructions */
.instruction-title {
    font-size: 42px;
    font-weight: 700;
}

.instruction-desc {
    font-size: 20px;
}

/* Buttons */
.action-btn-small {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    border: 1px solid #ffd5d5;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    transition: .3s;
}

.action-btn-small i {
    font-size: 24px;
}

.action-btn-small span {
    font-size: 14px;
    font-weight: 700;
}

.action-btn-small:hover {
    border-color: #ff4242;
    transform: translateY(-3px);
}

.btn-speak-main {
    width: 380px;
    height: 75px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(180deg, #ff4a4a, #e60000);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 14px 28px rgba(230, 0, 0, 0.35);
    transition: .3s;
}

.btn-speak-main:hover {
    transform: translateY(-2px);
}

/* Listening Animation */
@keyframes pulseListening {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.is-listening .voice-orb {
    animation: pulseListening 1.2s infinite alternate ease-in-out;
}

.is-listening .wave-bar {
    animation: waveAnim .7s infinite alternate ease-in-out;
}

@keyframes waveAnim {
    from {
        transform: scaleY(.7);
    }

    to {
        transform: scaleY(1.5);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .sound-waves {
        display: none !important;
    }

    .voice-orb-wrapper {
        width: 320px;
        height: 320px;
    }

    .voice-orb {
        width: 220px;
        height: 220px;
    }

    .ring-outer {
        width: 320px;
        height: 320px;
    }

    .ring-middle {
        width: 270px;
        height: 270px;
    }

    .ring-inner {
        width: 230px;
        height: 230px;
    }

    .instruction-title {
        font-size: 28px;
    }

    .instruction-desc {
        font-size: 16px;
    }

    .btn-speak-main {
        width: 260px;
        font-size: 20px;
    }

    .action-btn-small {
        width: 80px;
        height: 80px;
    }
}

.speaktest {
    margin-top: -6rem;
}

/* Full Screen Modal Fixes */
.modal-fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
}

.modal-content {
    overflow-y: auto;
}

.btn-close-modal {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 1051;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: #ff4242;
    color: #fff;
    border-color: #ff4242;
    transform: rotate(90deg);
}

#voice-translation-section.modal-body {
    padding: 2rem 0;
}

#voice-history-panel.panel-open {
    width: 400px !important; /* Sidebar width desktop standard layout size */
    border-left: 1px solid #eef0f2 !important;
}

.btn.btn-open-translator {
    color: #b31b1b;
    margin-left: auto;
    flex-shrink: 0;
}
.btn.btn-open-translator:hover {
    color: #b31b1b !important;
}

/* Jab screen mobile screen standard size (<768px) ho jaye */
@media (max-width: 767.98px) {
    #voice-history-panel.panel-open {
        width: 100% !important; /* Full width screen covers on phones */
        position: absolute;
        right: 0;
        top: 0;
    }
}

.btn.btn-open-translator1 {
    color: #b31b1b;
    margin-left: 14px;
}
