* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: 'Poppins', 'IBM Plex Sans', sans-serif;
}

/* body {
    background: linear-gradient(135deg, #2B1865, #674AC4);
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('star.png'), url("bg1.png");
    background-size: 40rem 30rem, cover;
    background-position: top left, center;

    background-repeat: no-repeat, no-repeat;
} */

body {
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #2B1865;
}

/* gradient layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #2B1865, #674AC4);
    z-index: -3;
}

/* image layer */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("bg1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* stars layer */
html::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("star.png");
    background-size: 40rem 30rem;
    background-position: top left;
    background-repeat: no-repeat;
    z-index: -1;
}


/* .call-container {
    position: relative;              
    text-align: center;
    padding: 120px 30px 40px;          
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    align-self: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(
        135deg,
        rgba(85, 48, 146, 0.8) 0%,
        rgba(45, 170, 225, 1) 100%
    );
} */

.call-container {
    position: relative;
    text-align: center;

    /* Responsive padding */
    padding: clamp(90px, 12vw, 100px) 20px 36px;

    border-radius: 18px;
    width: 90%;
    max-width: 390px;   /* better for 12 Pro */
    min-width: 220px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;

    /* Glass effect background */
    background: linear-gradient(
        135deg,
        rgba(85, 48, 146, 0.8) 10%,
        rgba(45, 170, 225, 0.45) 100%
    );

    /* backdrop-filter: blur(18px) saturate(140%); */
    /* -webkit-backdrop-filter: blur(18px) saturate(140%); */
    border: 1px solid rgba(255,255,255,0.25);
}




.logo {
    position: absolute;
    top: -90px;                 /* pulls logo outside card */
    left: 50%;
    transform: translateX(-50%);
    
    width: 180px;
    height: 180px;

    /* border-radius: 50%; */
    /* background: #fff;           optional white backing */
    padding: 8px;               /* optional padding */
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.25); */
}

.call-container h8 {
    margin-bottom: 10px;
    font-weight: 300;
    font-size: 1.2rem;
    font-family: 'Lato';
}


.call-container h2 {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.6rem;
    font-family: 'Lato';
}

.call-container p {
    font-weight: 300;
    width: 15rem;
    font-size: 1.4rem;
    font-family: 'Lato';
}

#callStatus {
    font-size: 14px;
    opacity: 0.9;
}

/* Call animation */
.call-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.call-animation span {
    width: 12px;
    height: 12px;
    background: #eefafc;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.call-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.call-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

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

.logo-nav{
    position: absolute;
    top: 20px;
    left: 20px;
}

.help{
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.hidden { display: none; }

.connected {
  position: fixed;
  inset: 0;
  background: #000;
}

.bot-frame {
  width: 100%;
  height: 100%;
  border: none;
}

button#startCallBtn {
    /* display: flex; */
    background: #00dac0;
    /* padding: 14px 17px; */
    border-radius: 15px;
    border: none;
    z-index: 10;
    align-items: center;
    justify-content: center;
    /* gap: 10px; */
    width: 9rem;
    height: 2.5rem;
    align-self: center;
}
button#startCallBtn:hover {
    cursor: pointer;
    background: #462497;
    color:#fff;
}
.end-call-btn {
  /* position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%); */
  /* display: flex; */
  background: #ff0000;
  /* padding: 14px 17px; */
  border-radius: 15px;
  border: none;
  z-index: 10;
  align-items: center;
  justify-content: center;
  /* gap:10px; */
  width:9rem;
  height: 2.5rem;
  align-self: center;
}

.end-call-btn:hover{
    cursor: pointer;
    background: #fa2525;
}

.connected-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    color: #000;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background: #0078d4;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #005fa3;
}
