@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(170deg, #1d2b3c 0%, #121212 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    display: flex; 
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

#logo{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4f4f4f;
    margin-bottom: 10px;
}
h1{
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 5px;
}
#name{
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
#va{
    color: #a7a7a7;
}

#content {
    font-size: 1rem;
    color: #b0b0b0;
    min-height: 30px;
    font-weight: 300;
    padding: 0 10px;
    max-width: 100%;
    word-wrap: break-word;
}

#btn{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    margin: 10px 0;
}

#btn:hover{
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
}

#btn img {
    width: 25px;
    height: 25px;
}

.voice-indicator {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #4facfe;
    opacity: 0;
    transform: scale(1);
    transition: all 0.5s ease;
    z-index: 5;
}

.voice-indicator::before,
.voice-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #00f2fe;
    border-radius: 50%;
    opacity: 0;
}

.voice-indicator.listening {
    opacity: 1;
    animation: pulse 1.5s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.voice-indicator.speaking::before {
    animation: speaking-wave 2s infinite ease-out;
}

.voice-indicator.speaking::after {
    animation: speaking-wave 2s 1s infinite ease-out;
}

@keyframes speaking-wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive Design for tablets */
@media (min-width: 481px) {
    body {
        padding: 20px;
    }
    
    .container {
        gap: 25px;
    }
    
    #logo {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    #content {
        font-size: 1.1rem;
    }
    
    #btn {
        width: 70px;
        height: 70px;
    }
    
    .voice-indicator {
        width: 70px;
        height: 70px;
    }
    
    #btn img {
        width: 30px;
        height: 30px;
    }
}

/* Responsive Design for desktops */
@media (min-width: 769px) {
    body {
        padding: 30px;
    }
    
    .container {
        gap: 30px;
        max-width: 600px;
    }
    
    #logo {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    #content {
        font-size: 1.2rem;
    }
    
    #btn {
        width: 80px;
        height: 80px;
    }
    
    .voice-indicator {
        width: 80px;
        height: 80px;
    }
    
    #btn img {
        width: 35px;
        height: 35px;
    }
}

.input-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-top: 15px;
    gap: 8px;
}

#text-input {
    flex-grow: 1;
    border: 1px solid #4f4f4f;
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    min-width: 0;
}

#text-input:focus {
    outline: none;
    border-color: #4facfe;
}

#send-btn {
    border: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    font-weight: 600;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

#send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* Extra small devices (phones, 480px and down) */
@media only screen and (max-width: 480px) {
    .input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #send-btn {
        padding: 10px;
    }
}