/* Samsung Phone Container */
.phone-mockup {
    width: 100%;
    max-width: 400px;
    /* Match WhatsApp width */
    height: 600px;
    background: #e2e2e2;
    border-radius: 20px;
    padding: 5px;
    position: relative;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Screen Area */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 13px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.status-bar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    z-index: 5;
}

.sb-camera {
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
}

.sb-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Keypad View */
.keypad-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.number-display {
    height: 30%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #000;
    padding-bottom: 20px;
    letter-spacing: 1px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    justify-items: center;
    /* Center keys in their cells */
}

.key {
    width: 60px;
    /* Fixed smaller size */
    height: 60px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.key:active,
.key.active {
    background: #e0e0e0;
}

.key-num {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin-top: 2px;
}

.key-sub {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    margin-top: -10px;
}

.call-btn-area {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.call-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    /* WhatsApp/Phone green */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.1s;
}

.call-btn:active,
.call-btn.active {
    transform: scale(0.95);
}

/* Calling View */
.calling-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #134E5E, #71B280);
    /* Abstract background */
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.calling-view.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.caller-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.caller-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.caller-status {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: auto;
}

.call-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.end-call-btn {
    background: #FF3B30;
}

/* Animation Classes */
.fade-out {
    opacity: 0;
    pointer-events: none;
}