:root {
    /* Dark Theme Colors */
    --bg-dark: #0a0b1a;
    --bg-card-dark: rgba(16, 18, 27, 0.4);
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #a0a0a0;
    --accent-blue: #00f7ff;
    --accent-purple: #9d4edd;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    
    /* Light Theme Colors */
    --bg-light: #ffffff;
    --bg-card-light: rgba(255, 255, 255, 0.7);
    --text-primary-light: #1a1a1a;
    --text-secondary-light: #4a4a4a;
    
    /* Common Variables */
    --navbar-height: 7.41vh;
    --card-border-radius: 0.78vw;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    animation: fadeIn 2s;
    font-family: Arial, sans-serif;
}       

#finger-cursor {
    position: fixed;
    top: 50%;
    right: 50%;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 1);
    border-radius: 100%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
    display: none; /* Initially hidden */

    /* Translucency enhancement */
    backdrop-filter: blur(0.52vw);         /* Blurs content behind */
    -webkit-backdrop-filter: blur(0.52vw); /* For Safari support */
    border: 0.05vw solid rgba(255, 255, 255, 0.2); /* Optional subtle border */
}

.zoom-in-animation {
    animation: zoomIn 0.3s ease forwards;
}

.zoom-out-animation {
    animation: zoomOut 0.3s ease forwards;
}

.right-arrow {
    background: transparent;
    width: 1.25vw;
    height: 2.22vh;
    clip-path: polygon(0% 50%, 60% 0%, 60% 30%, 100% 30%, 100% 70%, 60% 70%, 60% 100%);
    transform: rotate(0deg);
}

.left-arrow {
    background: transparent;
    width: 1.25vw;
    height: 2.22vh;
    clip-path: polygon(0% 30%, 40% 30%, 40% 0%, 100% 50%, 40% 100%, 40% 70%, 0% 70%);
    transform: rotate(0deg);
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@keyframes zoomOut {
    0% { transform: scale(1); }
    50% { transform: scale(0.5); }
    100% { transform: scale(1); }
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
}

#canvas-container {
    width: 100%;
    height: 100%;
}

.watermark {
    position: fixed;
    bottom: 2rem;
    left: 5rem;
    z-index: 1000;
    width: 6.25vw; /* Adjust size as needed */
    opacity: 0.8; /* Makes it translucent */
    filter: blur(0.04vw) brightness(1.1); /* Adds slight blur and brightness */
    pointer-events: none; /* Prevents interaction */
    mix-blend-mode: screen; /* Makes it blend glassily with background */
}

.watermark img {
    width: 4.17vw;
    opacity: 0.8;
    filter: blur(0.03vw) brightness(1.1);
    pointer-events: none;
    mix-blend-mode: screen;
    border-radius: 100%;
}

#controls {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5); /* Slightly lighter for more translucency */
    padding: 0.52vw;
    margin: 1.04vw;
    border-radius: 0.26vw;
    position: absolute;
    z-index: 100;
    flex-wrap: wrap;
    gap: 0.52vw;

    /* Translucency enhancement */
    backdrop-filter: blur(0.52vw);         /* Blurs content behind */
    -webkit-backdrop-filter: blur(0.52vw); /* For Safari support */
    border: 0.05vw solid rgba(255, 255, 255, 0.2); /* Optional subtle border */
}

#controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.94vw;
    cursor: pointer;
    margin: 0.26vw;
    padding: 0.62vw;
    border-radius: 0.26vw;
    transition: background 0.3s ease;
}

#controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#fullscreen-toggle {
    font-size: 1.25vw;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#gesture-label {
    position: fixed;
    top: 1vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #0ff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    display: none;
    z-index: 99999;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 0.26vw;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    max-width: 26.04vw;
    padding: 1.04vw;
    text-align: justify;
}

.tooltip h3 {
    font-weight: bold;
    margin: 0;
}

.tooltip video {
    width: 20.83vw;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 1.04vw;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 1.46vw;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Chat Assistant */
.chat-assistant {
    position: fixed;
    bottom: 2rem;
    right: 5rem;
    z-index: 1000;
}

.chat-toggle {
    width: 4.17vw;
    height: 7.41vh;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform var(--transition-speed) ease;
    backdrop-filter: blur(0.52vw);
    -webkit-backdrop-filter: blur(0.52vw);
    border: 0.05vw solid rgba(255, 255, 255, 0.2);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 10vh;
    right: 3.12vw;
    width: 31.25vw;
    height: 74.07vh;
    background: #fff;
    border-radius: var(--card-border-radius);
    border: 0.05vw solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 999999999999;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    padding: 1rem;
    border-bottom: 0.09vh solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Language Picker */
.language-picker {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(0.42vw);
    border: 0.05vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.52vw;
    padding: 0.2rem 0.5rem;
    font-size: 0.73vw;
    color: #000;
    box-shadow: 0 0.1vw 0.21vw rgba(0, 0, 0, 0.1);
}

.language-picker select {
    border: none;
    background: transparent;
    font-size: 0.73vw;
    color: #000;
    outline: none;
    cursor: pointer;
}

/* Chat Body */
.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.52vw;
}

.message {
    padding: 0.52vw 0.78vw;
    border-radius: 0.78vw;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background: #37517e;
    color: white;
    align-self: flex-end;
}

.message.bot {
    background: rgba(0, 0, 0, 1);
    color: var(--text-primary-dark);
    align-self: flex-start;
}

.chat-input {
    padding: 1rem;
    border-top: 0.09vh solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex-grow: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 1.04vw;
    background: rgba(255, 255, 255, 1);
    color: #000;
}

.chat-input button {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.chat-input button:hover {
    color: var(--accent-purple);
}

/* Quick Question Buttons */
.quick-question {
    padding: 0.52vw 0.78vw;
    border: none;
    border-radius: 0.52vw;
    background: var(--accent-purple);
    color: white;
    cursor: pointer;
    font-size: 0.73vw;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin: 0.1vw;
}

.quick-question:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.suggestions {
    display: flex;
    flex-direction: column;
    margin: 0.52vw 0;
}

.suggestion-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 0.31vw;
    padding: 0.42vw 0.62vw;
    margin: 0.26vw 0;
    cursor: pointer;
    text-align: left;
    font-size: 0.73vw;
}

.suggestion-btn:hover {
    background: #d0d0d0;
}

/* Media Query for Mobile */
@media (max-width: 768px) {

    #finger-cursor {
        width: 20px;
        height: 20px;
    }

    #gesture-label {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        border-radius: 0.4rem;
    }

    #controls {
        width: 210px;
        padding: 8px;
        margin: 10px;
        border-radius: 6px;
        gap: 1px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #controls button {
        font-size: 12px;
        margin: 4px;
        padding: 10px;
        border-radius: 6px;
    }

    #fullscreen-toggle {
        font-size: 18px;
    }

    .tooltip {
        max-width: 200px;
        padding: 30px;
        font-size: 16px;
        border-radius: 10px;
        margin-right: 10px;
    }

    .tooltip h3 {
        font-size: 14px;
    }

    .tooltip video {
        width: 180px;
    }

}

@media (max-width: 768px) {

    .chat-assistant {

        position: fixed;
        width: 3rem;
        bottom: 2rem;
        right: 1rem;

    }

    .chat-toggle {
    width: 3rem;
    height: 3rem;
    bottom: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    z-index: 1000;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 200px; /* Leaves 100px from the bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70%;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 999999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.language-picker {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: #000;
}

.language-picker select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #000;
    outline: none;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.message.user {
    background: #37517e;
    color: white;
    align-self: flex-end;
}

.message.bot {
    background: #000;
    color: #fff;
    align-self: flex-start;
}

.chat-input {
    padding: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex-grow: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 1);
    color: #000;
    font-size: 1rem;
}

.chat-input button {
    background: transparent;
    border: none;
    color: #37517e;
    cursor: pointer;
    font-size: 1.25rem;
}

.chat-input button:hover {
    color: #8000ff;
}

.quick-question {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #8000ff;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
    margin: 0.2rem 0;
}

.quick-question:hover {
    background: #37517e;
    transform: scale(1.05);
}

.suggestions {
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
}

.suggestion-btn {
    background: #e0e0e0;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
}

.suggestion-btn:hover {
    background: #d0d0d0;
}

    .watermark,
    .watermark img {
        width: 3rem;
        left: 1rem;
    }
}
