/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #1b2735 0%, #090a0f 100%);
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Phone Container ===== */
.phone {
  width: 350px;
  height: 700px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(12px);
}

/* ===== Glass Effect ===== */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

/* ===== Status Bar ===== */
.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 14px;
  opacity: 0.9;
}

/* ===== Screen Transitions ===== */
.screen {
  display: none;
  height: 100%;
  padding: 30px 20px;
  flex-direction: column;
  justify-content: space-evenly
}

.screen.active {
  display: flex;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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

/* ===== Caller Info ===== */
.caller-info {
  text-align: center;
  margin-top: 70px;
}

.robot-icon-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  animation: pulseAndGlow 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(179, 178, 178, 0.4);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.robot-icon-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
}

@keyframes pulseAndGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(179, 178, 178, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(235, 235, 237, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(143, 142, 142, 0.4);
  }
}


.caller-info h1 {
  font-size: 22px;
  margin-bottom: 6px;
}

.caller-info span {
  display: block;
  font-size: 16px;
  opacity: 0.8;
  margin-top: 5px;
}

/* ===== Controls ===== */
.call-controls,
.keypad-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  justify-items: center;
  padding: 20px;
  border-radius: 25px;
}

.control-btn,
.hangup-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.control-btn i,
.hangup-btn i {
  font-size: 22px;
  margin-bottom: 4px;
}

.control-btn span {
  font-size: 12px;
  opacity: 0.8;
}

.control-btn:hover,
.hangup-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pulse {
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
  }
}

/* ===== Hangup Button ===== */
.hangup-btn {
  background: #ff3b30;
}

.hangup-btn:hover {
  background: #ff5a5f;
}

/* ===== Keypad ===== */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}

.key {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.key span {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.key:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* ===== Transcript ===== */
.transcript {
  height: 130px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  padding: 12px 15px;
  font-size: 13px;
  margin: 0 20px;
}

.transcript p {
  margin-bottom: 8px;
}

.transcript .user {
  color: #00ffff;
}

.transcript .ivr {
  color: #ffcc00;
}

/* ===== Round Controls ===== */
.round {
  width: 65px;
  height: 65px;
}

/* ===== Responsiveness ===== */
@media (max-width: 400px) {
  .phone {
    transform: scale(0.9);
  }
}
